Skip to content
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

prediction failure on Cityscapes images #10

Closed
remtav opened this issue Feb 28, 2019 · 6 comments
Closed

prediction failure on Cityscapes images #10

remtav opened this issue Feb 28, 2019 · 6 comments

Comments

@remtav
Copy link

remtav commented Feb 28, 2019

While testing the code with supplied Cityscapes config file and pretrained weights, about 1 prediction out of 80 fails completely. See attached pictures. Did not occur on original tensorflow model.

191_img_2019-02-28
191_pred_2019-02-28_color

212_img_2019-02-28
212_pred_2019-02-28_color

017_img_2019-02-28
017_pred_2019-02-28_color

097_img_2019-02-28
097_pred_2019-02-28_color

@zzllc3
Copy link

zzllc3 commented Mar 19, 2019

I met the same problem on the other dataset. Do you have any idea to solve this problem?

@sunlibocs
Copy link

I also meet this problem. Has anyone found a solution?

@nyoki-mtl
Copy link
Owner

Sorry for late reply.
This problem is because the default value of tensorflow batch normalization eps is different.
So, it can be solved by calling model.update_bn_eps ().

model.update_bn_eps()

@PierfrancescoArdino
Copy link

Sorry @nyoki-mtl when you have to call model.update_bn_eps() in the evaluation/prediction?

@nyoki-mtl
Copy link
Owner

nyoki-mtl commented Sep 4, 2019

@PierfrancescoArdino
If you want to use the trained model converted from tensorflow, you should call update_bn_eps.
But, when you train or predict on your model, you don't need to do.

@PierfrancescoArdino
Copy link

I've tried only the "eval_cityscapes.py" script without changing anything with the converted trained model from TF and I have the same problems of the first post.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants