-
Notifications
You must be signed in to change notification settings - Fork 18
Help please #1
Comments
It should. MobileNet v2 (or SqueezeNet) input (data)/output (prediction) tensor dimension is the same. So, it work seamlessly (no code changes required to the Unfortunately, when I tested with a quantized MobileNet v2 today, the Android app crashed due to Caffe2 quantized fc op:
I have not tested with non-quantized MobileNet v2 yet. |
Ok, thank you so much! I had another question which was that I have an image classification model, not an object detection model. Would there be any modifications needed? |
Unless I understand it incorrectly, isn't MobileNet/ResNet18 a classification model? |
Yes, the Mobilenet v2 model I made is a classification model. I thought that your tutorial used object detection. Does that require me to make any modifications to the code? What I want to do is have the app take frames from the video, classify the image, and output the classification on the screen. Thank you! |
My tutorials used image classification models. It should not require any modifications to the code if you put aside and do not count my previous reply where the MobileNet v2 is experiencing error. I can't confirm at this point if this problem is due to Caffe2 or my own code, but from the error messages, I can tell that the problem is in Caffe2 or ONNX exporter.
The Android app is doing exactly that. Try it and find out yourself! 🙂 |
Ok, thank you! I tried again without my model, but it couldn't build because I am missing jniLibs.armeabi-v7a/libcaffe2.a Do you know how to get it? |
The steps to download libcaffe2.a and other library files are in the README.
I don't know how you missed it. May be I should have been clearer. |
In this project, it seems to be using resnet or squeezenet. However, in a project I'm doing of my own, I am currently using mobilenetv2. Currently, I have converted the mobilenetv2 model from pytorch to caffe2. If I use this caffe2 file, would it work seamlessly after replacing the _init_net.pb and _predict_net.pb or do I need to make other modifications? Thank you.
The text was updated successfully, but these errors were encountered: