-
Notifications
You must be signed in to change notification settings - Fork 45.9k
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
No object detection after exporting the graph #7482
Comments
Thank you for your post. We noticed you have not filled out the following field in the issue template. Could you update them if they are relevant in your case, or leave them as N/A? Thanks. |
OS: "Debian GNU/Linux 9 (stretch)" |
Hello, I had this problem. Training seems to work with RGB and opencv seems to open images in BGR. Adding this solved the problem for me. image = cv2.cvtColor(image, cv2.COLOR_BGR2RGB) Hope it helps! |
Did you find out any solution, I face the simillar issue |
It turned out the model was expecting RGB and opencv grab the frames from
my camera in BGR. Hope this helps.
Best regards,
Lorién Berné
Flight Labs
+34 659061852
www.flightlabs.es
lorienberne@flightlabs.es
https://www.facebook.com/flightlabs
El vie., 10 ene. 2020 a las 10:01, gurucharansrinivas (<
notifications@github.com>) escribió:
… Did you find out any solution, I face the simillar issue
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#7482?email_source=notifications&email_token=ACAOYXZKYCEXGQQFV24XJMLQ5A2QDA5CNFSM4IOIGMIKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEITFT4Q#issuecomment-572938738>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACAOYX5XQGBIX3UYKSWTZDDQ5A2QDANCNFSM4IOIGMIA>
.
|
any news on this having the same issue, works well on eval, model_main_tf2.py |
I've trained the
ssd_mobilenet_v2_coco
for my custom dataset, but the problem is that during the training tensorbaord shows detection in the image. It's something like this:But when I export the graph and do inference I'm not detecting anything in the image (same image as training). For exporting the graph I'm using this script. The exporter generates the following files:
When I use the
frozen_inference_graph.pb
for inference I'm not getting detection in the images (even the same images which I used during training ). The code which I used for inference is this:The
scores
after running inference for a sample image is as follows:But instead of using
frozen_inference_graph.pb
if I usesaved_model/saved_model.pb
with the following code I'm getting all the detections:The scores after running inference is now:
I don't know why is it happening, but using
saved_model/saved_model.pb
has reduced the inference speed but accuracy is good. Also, I want to export the model to TensorRT model. But when usingsaved_model/saved_model.pb
with thetf.contrib.predictor.from_saved_model()
, I'm simply calling the predictor function; I don't know how to export it to RT graph then.The text was updated successfully, but these errors were encountered: