isl-org / PhotorealismEnhancement

Code & Data for Enhancing Photorealism Enhancement
1.3k stars 104 forks source link

Inference of the same image is different with same settings #35

Closed lucamarini22 closed 2 years ago

lucamarini22 commented 2 years ago

Hi, When I run the inference on the same test images with the following command

python epe/EPEExperiment.py test ./config/test_pfd2cs.yaml

I get always different looking images as output.

I don't change anything in the configuration (.yaml) files and I trained once before executing the inferences. So, I train once, and then if I run several times the inference on the same images, then every time I get a different output.

Do you know why this happen? And how do I know that when I run the inference I am using the last trained model? Is it because of the field "name_save" specified in the configuration file?

Also, I tried to delete every checkpoint in the folder where checkpoints should be stored and still I can run the above command and still I get different looking outputs for the same images. But how is it possible that I can still run the above command without any saved checkpoint?

Thanks for your amazing work, Please let me know if you have some suggestions

lucamarini22 commented 2 years ago

Ok, I solved my problem. I was not specifying any value for the parameter "name_load" in the test config (.yaml) file :)