question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TensorFlowJS Unsupported Ops needed for Yahoo's Open NSFW Model

See original GitHub issue

To 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:closed
  • Created 5 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
xue160709commented, Dec 21, 2018

Same issue here. The only outstanding ops are: DecodeBase64, DecodeJpeg, EncodeJpeg

1reaction
tomslickcommented, Jul 23, 2018

Thanks! That’s amazing progress!

Also, don’t forget DecodeJpeg please.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found