New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

retinanetjs

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

retinanetjs

Wrapper for models built using keras-retinanet.

  • 0.0.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

retinanetjs

This package provides some convenience methods for using TensorFlow models created using keras-retinanet.

Getting Started

Convert RetinaNet Model to TensorFlowJS

In Python, use the two functions defined in notebooks/Functions.ipynb to convert an existing RetinaNet model to a RetinaNetJS-compatible TensorFlowJS folder. The only dependencies are keras_retinanet and tensorflowjs.

The two functions (save_retinanet_to_savedmodel and convert_retinanet_savedmodel_to_tfjs) have to be used in two separate Python sessions (e.g., in Jupyter, you must restart the kernel).

For example, to convert the pretrained ResNet50 model, you can follow the example in notebooks/Convert COCO (ResNet50).ipynb.

Using Model with retinanetjs

This is the (easier) part. See examples for use cases.

import { load } from 'retinanetjs'

detector = await load('http://www.example.com/path/to/coco_resnet50', COCO_CLASSES)

FAQs

Package last updated on 08 Jul 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc