Hey,
So this guy Vlad ported nudenet over to TFJS and NodeJS.
https://github.com/vladmandic/nudenet
And he says he got it working with TFJS in browser without issues.
https://github.com/notAI-tech/NudeNet/i ... -772043721
So I have been trying to get this to work, firstly at all and planning for browser but I don't know how to.
I'm currently stuck because I don't have the model and don't know how to get it, well sort of..
There is this line in the nudenet.js files main function.
Code: Select all
log.info(' mkdir models/ mkdir models/saved; curl -L https://github.com/notAI-tech/NudeNet/releases/download/v0/detector_v2_default_checkpoint_tf.tar | tar -C models/saved -x');
But even the mkdir part is giving me syntax errors and the .tar is making me think he is on Linux.
So I have tried to download that and convert it like he shows on github.
Code: Select all
tensorflowjs_converter --input_format tf_saved_model --output_format tfjs_graph_model --strip_debug_ops=* --signature_name=predict --weight_shard_size_bytes=16777216 model-saved/ model-graph/
tensorflowjs_converter --input_format tf_saved_model --output_format tfjs_graph_model --strip_debug_ops=* --signature_name=predict --weight_shard_size_bytes=16777216 --quantize_float16=* ./model-saved ./model-graph-f16
But I can't get the converter to work, all I'm getting is this:
'tensorflowjs_converter' is not recognized as an internal or external command, operable program or batch file.
To be honest, I am probably doing something wrong since I have never worked with node or npm before.
Any help would be appreciated.
Some useful discussions:
https://github.com/notAI-tech/NudeNet/issues/20
https://github.com/notAI-tech/NudeNet/issues/54