Closed pierrejeambrun closed 6 years ago
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. What is the top-level directory of the model you are using Have I written custom code Bazel version Exact command to reproduce
I updated the issue with the required information.
I also met this problem,but use tensorflow-1.6.0 is ok ,tensorflow-1.7.0,1.8.0 are terrible.
Indeed downgrading to tensorflow-gpu==1.6.0 solves the issue.
I guess someone might want to take a deeper look into this to fix the problem for more recent tf versions.
For now I will stick to 1.6 when it comes to grayscale models.
Thank you.
Closing as this is resolved
Inference not working after a training with convert_to_grayscale parameter
I Systeme Information
II Describe the Problem
I have successfully trained a faster_rcnn_resnet_101 on my own dataset and run multiple inferences. Latelly I wanted to train a network on grayscale images, I used the available option in the
image_resizer
calledconvert_to_grayscale
. I just switched that flag to true and started a new training. Everything went as usual and I could export the frozen graph aswell. However when I run the inference script on the same image I got an error caused by the FirstStageFeatureExtractor shape assert. (/research/object_detection/models/faster_rcnn_resnet_v1_feature_extractor.py line 109
). If I delete this assert the inference run smoothly but I got a score of 0 for all the boxes. The model detects nothing even for training images where he could find several boxes during the evaluation job. Original images are about 1900x1000.III Logs, Code
The specific error raised during the inference.
My config file:
top-level directory of the model used: N/A custom code: N/A Bazel version: N/A Command to reproduce: Train a network with this config file and use the jupyter notebook to run an inference from the frozen graph.
Any help would be appreciated, Thank you