TensorFlowJS Unsupported Ops needed for Yahoo's Open NSFW Model
See original GitHub issueTo get help from the community, check out our Google group.
TensorFlow.js version
tensorflowjs 0.4.1 (installed via pip install tensorflowjs on June 13, 2018)
Browser version
N/A
Describe the problem or feature request
I attempted to convert the TensorFlow model of Yahoo’s Open NSFW model found here with tensorflowjs-convert
. (First, I exported the TensorFlow .npy file into a Frozen Model and also a Saved Model.)
For the Frozen Model, I ran:
tensorflowjs_converter --input_format=tf_frozen_model --output_node_names='fc_nsfw/BiasAdd' --saved_model_tags=serve frozen_open_nsfw.pb web_model
and received the following message:
Unsupported Ops in the model
TensorArrayWriteV3, TensorArrayV3, DecodeBase64, TensorArrayScatterV3, TensorArrayReadV3, EncodeJpeg, Assert, All, TensorArraySizeV3, DecodeJpeg, Unpack, TensorArrayGatherV3
Running on the Saved Model also results in the same Unsupported Ops list.
Request: Please add my vote to support these Ops
- TensorArrayWriteV3
- TensorArrayV3
- DecodeBase64
- TensorArrayScatterV3
- TensorArrayReadV3
- EncodeJpeg
- Assert
- All
- TensorArraySizeV3
- DecodeJpeg
- Unpack (I noticed this was added earlier today but not yet in the latest pip installed version)
- TensorArrayGatherV3
Thanks!
Issue Analytics
- State:
- Created 5 years ago
- Comments:7
Top Results From Across the Web
Why Unsupported Ops in the model before optimization ...
I try to convert a trained model with TensorFlow into a tensorflowjs model using the provided converter with the following statement:.
Read more >How to Implement Yahoo Open-NSFW Model using ... - Morioh
In this tutorial, we'll share TensorFlow 2 implementation of the Yahoo Open-NSFW model. Detecting Not-Suitable-For-Work (NSFW) content is a high demand task ...
Read more >Tensorflowjs Conversion Error: "ValueError: Unsupported Ops"
The short answer is yes, you will need to change them. TensorflowJS will change the ops for optimisation purposes, but not all the...
Read more >Java Online Gaming Real-time Engine - OSCHINA - 中文开源技术 ...
It simplifies stream processing to make it accessible as a stand-alone application programming model for asynchronous services. Developers can embed Kafka ...
Read more >Welcome to Everything.js | Everything.js
adobe/brackets - An open source code editor for the web, written in JavaScript, HTML and CSS. leonardomso/33-js-concepts - 33 concepts every JavaScript ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Same issue here. The only outstanding ops are: DecodeBase64, DecodeJpeg, EncodeJpeg
Thanks! That’s amazing progress!
Also, don’t forget DecodeJpeg please.