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

difference result in difference running test #100

Open
hamhochoi opened this issue Aug 1, 2019 · 1 comment
Open

difference result in difference running test #100

hamhochoi opened this issue Aug 1, 2019 · 1 comment

Comments

@hamhochoi
Copy link

More specific, I trained the model with my custom dataset and saved the weight. But when it's load the weight and predict on the same image, the difference result after each time I run. I think it should have some random factor in here but I can't find any? So can you explain that?

command: python3 src/launcher.py --phase=test --visualize --data-path=data/test_1/test.txt --data-base-dir=./ --log-path=log.txt --load-model --model-dir=train/ --output-dir=results

@cuongpd58
Copy link

You have to change this line of code in model.py
line 133: cnn_model = CNN(self.img_data, True) to cnn_model = CNN(self.img_data, not self.forward only)
Batch norm is the cause of this problem.

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

2 participants