Closed vinduon closed 2 years ago
Hi,
Can you provide some additional details about your use case? The clean-fid will resize the images to expected size automatically. You should not need to resize the images manually.
Regards, Gaurav
Thank you for your reply. I got this problem when running the code:
My code is:
How can i fix this? I try to do this on 256, 1024 resolution images but it always exposes this error.
Can you try
score = fid.compute_fid(fdir1, fdir2, num_workers=0)
Can you try
score = fid.compute_fid(fdir1, fdir2, num_workers=0)
It still doesn't work. The same error. I use python 3.6.13. After that I changed to python 3.7 and the error is the same. I use conda env.
The error is the same on google colab. I do not know that fdir1 and fdir2 should be both .npz or just a folder of images?
The fdir1 and fdir2 should be folder of images.
Can you try this colab notebook https://colab.research.google.com/drive/1ElGAHvlwTilIf_3D3cw1boirCEkFsAWI?usp=sharing
I just ran it and it doesn't give me the error.
It just crashes the session. I do not know why? This is exactly what I met in my pc.
Could you try these changes that can cause the Segmentation Fault:
@GaParmar @duongquangvinh Hi guys, I have run into the same issue, and for my case it was bc that I was using torch==1.9.0
. Downgrading it to 1.8.0 fixed the problem. Thanks!
Hi @hangg7
Thanks for pointing this out! This issue is related to this PyTorch JIT issue https://github.com/pytorch/pytorch/issues/64062 I will update the clean-fid with a temporary fix for this soon.
Regards, Gaurav
This issue should be resolved in the current clean-fid version. Feel free to re-open it if you encounter this again.
Hi,
I am a little confused that should the resolution of images in 2 folders be the same or different (folder1: 256x256, folder2: 1024x1024)? If not, can we use PIL to resize it or use torch transform resize?
Many thanks.