Closed Syeda-Farhat closed 11 months ago
How did you run the test code command? The result should not be related to the batch size. Maybe you should run the test code in the corresponding work_dir.
It seems the network params are random initialized.
The val batchsizes are used to accelerate the inferring process.
I just checked with different batch sizes and in the same corresponding work_dir. yes you are right results should not be affected but unfortunately :(
I noticed that your trained weights are saved in tmp_save dir, but the information in the test command is num1. Both the names should be same, otherwise the model can not read the right trained weights.
Have you trained the model? If you don't train the model, you will not get the trained weights in the work_dir, so the loaded trained weight are randomly initialized.
Different loaded weight will output different results.
oh yes, now I get the point. I will try again with these changes. Thank You so much for your response.
The resultant image changes with different batchsizes, why?
)