Skip to content

FYI: Sucessfully converted NanoDet to TensorFlow with eval implemetation in JavaScript #187

@vladmandic

Description

@vladmandic

In case anybody is interested, NanoDet works like a charm in TensorFlow and TensorFlow/JS

Converted models, full JS code as well as conversion notes are at:
https://github.com/vladmandic/nanodet

I've re-implemented score & box decoding to squeeze a bit more performance
and moved NMS as a post-decoding task to avoid calculation of low-probability boxes
(code is fully commented with explanations)

Implementation is now directly applicable to both nanodet-m and nanodet-g and it auto-adjusts
(nanodet-t converted model has some corrupted layers and cannot be used just yet)

Model works in NodeJS using TensorFlow backend and Browser using WebGL backend, but does not work using WASM backend due to missing implementation for an operation SparseToDense (tensorflow/tfjs#4824)

Thank you for a great TINY model!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions