Closed postBG closed 4 years ago
They should be the same unless your model changed between when the batchfile
was generated and when you run this snippet. One possibility that I can see is that the model is not run in .eval()
mode, so the batch statistics is different than the stored batch normalization statistics. Can you verify this?
Hi, Thanks for helping me.
Yes, that was the problem. I omitted the .eval
.
My bad.
Hi, Thanks for sharing your code. I have a question about labels and predictions in your code. It would be helpful if you answer to my question.
When I test the code with this code, the values of preds and labels[args.image_idx] are different. Can you explain why the values are different? I have run your code to generate the
batchfile.
I used this script for set-up the val folder.