Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueError: batch_size should be a positive integer value, but got batch_size=0 #106

Open
ImpZhang opened this issue Mar 11, 2024 · 9 comments

Comments

@ImpZhang
Copy link

ImpZhang commented Mar 11, 2024

No description provided.

@ImpZhang
Copy link
Author

微信图片_20240311234425

@2363886687
Copy link

I have met with the same problem

@vaishnavejp
Copy link

!pip install scipy==1.11.1 solves this issue

@vaishnavejp
Copy link

I must mention, I tried it in my local system which threw the same error. but it worked on colab

@ArjunDosajh
Copy link

I must mention, I tried it in my local system which threw the same error. but it worked on colab

I tried this, but it didn't work. Is there any other fix for this error?

@Shiftmichael
Copy link

I met with the same problem when I tried to use "save_stats.npy" as the dataset_stats.
I found the pytorch-fid need ".npz" instead of ".npy"
So changing the stats to ".npz" works.
Maybe you give the path to the stats instead of the dataset?

@shivamgupta2
Copy link

I have this issue as well, and nothing has worked yet. Please advise.

@hcysiren
Copy link

I had the above issue when I was trying to calculate the FID value between two folder datasets that were all JPEG images internally, but the problem was fixed when I changed the extension of all the images to .jpg. As for the pictures in other formats, I haven't checked them one by one yet, I hope it can help you.

@MIy2003
Copy link

MIy2003 commented Nov 15, 2024

I had the same problem,and you can check if there are subfolders in the dataset.Then I solved it by this
#113

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants