Neural-IMage-Assessment icon indicating copy to clipboard operation
Neural-IMage-Assessment copied to clipboard

The score for the same picture varies

Open yier2333 opened this issue 4 years ago • 5 comments

yier2333 avatar Jul 01 '21 01:07 yier2333

Try add

torch.backends.cudnn.deterministic = True

and

torch.cuda.manual_seed_all(seed)

to see if you can get consistent results. If not then according to https://pytorch.org/docs/stable/notes/randomness.html

Completely reproducible results are not guaranteed across PyTorch releases, individual commits, or different platforms. Furthermore, results may not be reproducible between CPU and GPU executions, even when using identical seeds.

yunxiaoshi avatar Jul 01 '21 23:07 yunxiaoshi

Try add

torch.backends.cudnn.deterministic = True

and

torch.cuda.manual_seed_all(seed)

to see if you can get consistent results. If not then according to https://pytorch.org/docs/stable/notes/randomness.html

Completely reproducible results are not guaranteed across PyTorch releases, individual commits, or different platforms. Furthermore, results may not be reproducible between CPU and GPU executions, even when using identical seeds.

not train model, I use your pretrained model to infer my image many times, but get different value

yier2333 avatar Jul 02 '21 03:07 yier2333

I found the problem, your test_transform should use CenterCrop not RandomCrop

yier2333 avatar Jul 02 '21 06:07 yier2333

Try add

torch.backends.cudnn.deterministic = True

and

torch.cuda.manual_seed_all(seed)

to see if you can get consistent results. If not then according to https://pytorch.org/docs/stable/notes/randomness.html

Completely reproducible results are not guaranteed across PyTorch releases, individual commits, or different platforms. Furthermore, results may not be reproducible between CPU and GPU executions, even when using identical seeds.

Can you tell me how you downloaded the dataset and decompress it?

wcc17864158993 avatar Apr 12 '22 12:04 wcc17864158993

Hello, when I want to test my image, how does test_labels.csv get generated? What does test_labels.csv mean? Looking forward to your answer!

cherryolg avatar Apr 18 '22 07:04 cherryolg