1.0.1 • Published 6 days ago

private-detector-js v1.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
6 days ago

private-detector-js

This package provides the necessary image preprocessing to use Bumble's Private Detector™ model in JavaScript or TypeScript.

Install

npm install private-detector-js

Initialize

ESM

const { RunInference } = import 'private-detector-js'

CommonJS

const { RunInference } = require('private-detector-js')

Usage

const probabilities = await RunInference(modelPath, filePaths, options)
ParameterTypeDescription
modelPathStringpath to the model.json file
filePathsArraypath(s) to the image(s) to be evaulated
optionsObjectoptions to manually provide paths to the model's weight files. Currently, weightUrlConverter and weightPathPrefix are supported. More information here

Model

The model can be found here.

This model was converted from Python using TensorFlow.js's converter tool, as described here.

1.0.1

6 days ago

1.0.0

6 days ago

0.0.18

6 days ago

0.0.14

9 days ago

0.0.15

9 days ago

0.0.16

9 days ago

0.0.17

9 days ago

0.0.10

10 days ago

0.0.11

10 days ago

0.0.12

10 days ago

0.0.13

10 days ago

0.0.9

11 days ago

0.0.8

15 days ago

0.0.7

15 days ago

0.0.6

16 days ago

0.0.5

1 month ago