Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail to run MobileNetV2 in TensorFlow.js Model Benchmark with tflite backend #7602

Closed
huningxin opened this issue Apr 19, 2023 · 4 comments · Fixed by #7608
Closed

Fail to run MobileNetV2 in TensorFlow.js Model Benchmark with tflite backend #7602

huningxin opened this issue Apr 19, 2023 · 4 comments · Fixed by #7608
Assignees

Comments

@huningxin
Copy link

huningxin commented Apr 19, 2023

System information

  • Have I written custom code (as opposed to using a stock example script provided in TensorFlow.js): N/A
  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Windows 10
  • Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device: N/A
  • TensorFlow.js installed from (npm or script link): TensorFlow.js Model Benchmark
  • TensorFlow.js version (use command below): 4.4.0
  • Browser version: Chrome 112.0.5615.121
  • Tensorflow.js Converter Version: N/A

Describe the current behavior

  1. Launch TF.js model benchmark: https://tensorflow.github.io/tfjs/e2e/benchmarks/local-benchmark/
  2. Set backend to tflite
  3. Set model to MobileNetV2
  4. Click “Run benchmark"
  5. The site reports error "Error: Please provide a loadTflite method for 'MobileNetV2' model.)"

Describe the expected behavior

The benchmark should run MobileNetV2 model by tflite backend and report performance numbers.

Standalone code to reproduce the issue
Provide a reproducible test case that is the bare minimum necessary to generate
the problem. If possible, please share a link to Colab/CodePen/any notebook.

Other info / logs Include any logs or source code that would be helpful to
diagnose the problem. If including tracebacks, please include the full
traceback. Large logs and files should be attached.

Console log:

Uncaught (in promise) Error: Please provide a loadTflite method for 'MobileNetV2' model.
    at loadModelAndRecordTime ((index):540:15)
    at loadModel ((index):735:15)
    at runBenchmark ((index):764:32)
@huningxin huningxin added the type:bug Something isn't working label Apr 19, 2023
@gaikwadrahul8
Copy link
Contributor

Hi, @huningxin

Apologize for the delayed response and I was able to replicate same issue and it's giving me the same error message which you've mentioned in above error log, For your reference I have added screenshot below and I see to take care of this issue PR #7608 has submitted and it's in progress. Thank you!

image

@google-ml-butler
Copy link

Are you satisfied with the resolution of your issue?
Yes
No

@Linchenn
Copy link
Collaborator

@huningxin The fix has been merged. Please verify it and another ISSUSE your reported, when you get a chance. Thanks!

@huningxin
Copy link
Author

I verify it has been fixed. Thanks much @Linchenn !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants