Open idenc opened 5 years ago
I'm having the same issue on iOS object_detection sample app.
I'm not sure you are correctly applying quantisation on input, input is in uint8, and zero point is 127, and I believe that network expects components to be in 127-255 range, thus image transform should look like image = image / 2.0 + 127.0
if components in cv2 are ranged from 0 to 255. If they are ranged from 0 to 1, image transform should be image = image * 128.0 + 127.0
However, both conversions still result in zero'ed tensor outputs
How do you know the input(feed_dict) and the outputs?
Here is working tflite small model with refrozen pb from provided checkpoint. ssd_mobilenet_v3_coco.zip
@elrid : works very well! Thank you for posting.
@elrid: could you outline how you have re-created the tflite model?
@elrid Hi, elrid, could you please provide a tflite with only uint8 computation?
@elrid: How did you do the conversion? I would like to do something similar for other detector models from the model zoo.
Here is working tflite small model with refrozen pb from provided checkpoint. ssd_mobilenet_v3_coco.zip
where is the inference file to run this model? share a link? share link for this resource all?
@elrid I'm using the standard tflite converter and facing issues with Mobilnet V3's inference graph file. It's not returning any output at all. Can you tell me how you got it to work for you? Any script you use to do the conversion?
Thanks!
this pull request has links to correct model checkpoints with inference files.
Where can I find the label.txt file to this dataset? I have no idea where I can find it.
Where can I find the label.txt file to this dataset? I have no idea where I can find it.
You can use label.txt file provided with demo example code. It is working for me with v3 model.
Here is working tflite small model with refrozen pb from provided checkpoint. ssd_mobilenet_v3_coco.zip
Thank you so much for the help...cheers!!!
Here is working tflite small model with refrozen pb from provided checkpoint. ssd_mobilenet_v3_coco.zip
@elrid Do you have any idea similar to your recreated model do we have officially released v3 model by tensorflow on their website?
@elrid @filipvg68 @Ammu1991 can you tell me the output and input dimensoins of variables(i.e images and outputmap) in your refrozen ssd_mobilenet_v3 model
Here is working tflite small model with refrozen pb from provided checkpoint. ssd_mobilenet_v3_coco.zip
it is mobilnet-v2 not v3 ;)
Here is working tflite small model with refrozen pb from provided checkpoint. ssd_mobilenet_v3_coco.zip
it is mobilnet-v2 not v3 ;)
How? proof?
still not getting any way to run ssd mobilenet v3 ? if anyone have the resources do attached the link.
Please go to Stack Overflow for help and support:
http://stackoverflow.com/questions/tagged/tensorflow
Also, please understand that many of the models included in this repository are experimental and research-style code. If you open a GitHub issue, here is our policy:
Here's why we have that policy: TensorFlow developers respond to issues. We want to focus on work that benefits the whole community, e.g., fixing bugs and adding features. Support only helps individuals. GitHub also notifies thousands of people when issues are filed. We want them to see you communicating an interesting problem, rather than being redirected to Stack Overflow.
System information
Describe the problem
No matter what I try it seems the Mobilenet V3 SSD outputs all zeroes. I downloaded both the small and large models from the detection model zoo. I have tried using multiple images, both normalized and unnormalized, running both the provided .tflite and frozen .pbs for the small and large models, and using different installs of Tensorflow to no avail. I also tried using the object_detection_tutorial.ipynb provided but MBV3 SSD does not work with that script. What am I doing wrong? Or is there a problem with the provided model?
Source code / 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. Try to provide a reproducible test case that is the bare minimum necessary to generate the problem.
This script gives output:
So the input to the sigmoid is all zero and the box outputs are all basically zero (I have checked the whole tensors for larger values).