Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

models.test issue #19

Closed
TonyZhang1002 opened this issue Mar 9, 2019 · 2 comments
Closed

models.test issue #19

TonyZhang1002 opened this issue Mar 9, 2019 · 2 comments

Comments

@TonyZhang1002
Copy link

TonyZhang1002 commented Mar 9, 2019

In your test() method in models.py, you pass one image into the model each time, in a shape of (1, 256, 256, 1), which in my experiments, create bad results.

I change the codes a little bit, put 8 or 16 images together in the shape of (8 or 16, 256, 256, 1 or 3), as you did in sample(). And then pass this into the model. This can create better results in my experiments.

Please check if that is correct.

@knazeri
Copy link
Member

knazeri commented Mar 10, 2019

@TonyZhang1002
This might be due to batch normalization module, we need to turn the unit off at inference, otherwise, it will create bad results when testing on one image! I'll double check the code. Thanks for pointing that out.

@Chansi
Copy link

Chansi commented Jul 16, 2020

@TonyZhang1002 Did it work?

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

No branches or pull requests

3 participants