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.

Unknown op 'NonMaxSuppressionV5'

See original GitHub issue

To get help from the community, we encourage using Stack Overflow and the tensorflow.js tag.

TensorFlow.js version

I’m using <script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@1.2.11/dist/tf.min.js"></script>

Browser version

Chrome 78

Describe the problem or feature request

I’m trying to run an object detection model created in tensorflow, and I am getting this error:

Unknown op 'NonMaxSuppressionV5'.

Code to reproduce the bug / link to feature request

If you would like to get help from the community, we encourage using Stack Overflow and the tensorflow.js tag.

      const image = tf.browser.fromPixels(MY_DOM_IMAGE)
      const smalImg = tf.image.resizeBilinear(image, [368, 432]);
      const resized = tf.cast(smalImg, 'float32');
      const t4d = tf.tensor4d(Array.from(resized.dataSync()),[1,368,432,3])
      let outputs = await model.executeAsync(
      { 'image_tensor' : t4d },
      [ 'detection_boxes','detection_scores','detection_classes','num_detections', 'detection_multiclass_scores', 'raw_detection_boxes', 'raw_detection_scores']
      );

GitHub issues for this repository are tracked in the tfjs union repository.

Please file your issue there, following the guidance in that issue template.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:13

github_iconTop GitHub Comments

1reaction
lina128commented, Jan 3, 2020

Hi @federicolucca and @alien35, sorry for the issue you are experiencing, this is because the Op ‘NonMaxSuppressionV5’ was not supported in previous versions. We just added the support in 1.5.1, see details here. Please update your tensorflowjs version to 1.5.1 and try again. This should solve the problem.

0reactions
Agiledomcommented, Jul 9, 2020

Hey @lina128 - that would be awesome! Thank you so much! I will track @ #2450

Read more comments on GitHub >

github_iconTop Results From Across the Web

tensorflow::ops::NonMaxSuppressionV4 Class Reference
Greedily selects a subset of bounding boxes in descending order of score,. Summary. pruning away boxes that have high intersection-over-union ( ...
Read more >
TensorFlow Issue - 'NonMaxSuppressionV3' in binary
NotFoundError: Op type not registered 'NonMaxSuppressionV3' in binary running on tegra-ubuntu. Make sure the Op and Kernel are registered in ...
Read more >
Diff - 2349d429d926e258e9a61d34c7fd97660ab9fb98^! - ml/ethos ...
MLBEDSW-3654 Add/use op ifm/ofm shapes Add ifm/ofm shapes to op Changed to rely on ... op.type in elementwise_op_map, f"Unknown elementwise type {op.type}" ...
Read more >
op - Go Packages
Package op defines functions for adding TensorFlow operations to a Graph. ... Output); func NonMaxSuppressionV5(scope *Scope, boxes tf.
Read more >
Model Optimizing SSD Mobilenet model - Intel Communities
SplitBase'> [ INFO ] New subclass: <class 'extensions.ops.parameter. ... Added a new entry NonMaxSuppressionV5 to extractors with custom extractor class ...
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