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.

Auto Labeling Error

See original GitHub issue

When uploading my TF web model to cloud annotations, I get the following error in console when trying to run auto label on an image:

Unhandled Promise Rejection: Error: The shape of dict['x'] provided in model.execute(dict) must be [1,320,320,3], but was [1,1,1,3].

Any idea how to fix this? I can provide additional info if needed.

My model is a custom trained YOLOv5s (converted to a tfjs web model) with the image size set to 320x320 during training and export.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

bourdakos1commented, Nov 19, 2021

That sounds good to me 👍

UPstartDevelopercommented, Nov 19, 2021

Hey @bourdakos1 - I’m another dev from @Panda64’s team:

We looked a bit into the kind of preprocessing in Mobilenet, and we’re thinking we’ll try to do the following to make our model work. We’re curious to hear if you’d have any additional thoughts on our approach:

  1. Convert the initial model (implemented in PyTorch) to a Tensorflow SavedModel format
  2. Add 2 additional layers to the tf model: 1. A Resizing layer to crop/pad the input images to be what the model expects (e.g. 320x320) (from Keras) 2. A Lambda layer we can use to standardize the pixel values to fall between [0, 1] (also from Keras)
  3. If all goes well, then go about the rest of steps like normal (e.g. converting to tfjs, and uploading it to IBM Cloud Annotations)
Read more comments on GitHub >

github_iconTop Results From Across the Web

Common Automatic Labeling Problems and Solutions
Die strikes are usually the most common problem with auto application and are the responsibility of your label plant.
Read more >
Automatic Label Inspection Prevents Labeling Errors - TEKLYNX
Leverage automatic label inspection technologies by inspecting every label as it prints to stop critical labeling errors which cost time and ...
Read more >
Automated Detection of Label Errors in Semantic ... - arXiv
In this work, we for the first time present a method for detecting label errors in image datasets with semantic segmentation, i.e., pixel-wise ......
Read more >
Error in AIP Auto-labeling for Office apps with Microsoft ...
Hello,. I added to detect content that matches all out of the box Microsoft Sensitive info types (about 100) in AIP Auto-Labeling for...
Read more >
Key Challenges To Automated Data Labeling and How To ...
Challenge #3: Probability of Errors ... Not unlike a train that's been thrown off its original tracks and diverted with the pull of...
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 Post

No results found

github_iconTop Related Hashnode Post

No results found