-
Notifications
You must be signed in to change notification settings - Fork 7
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: num_samples should be a positive integer value, but got num_samples=0 #13
Comments
This is an issue with file path, please change the .cfg to where you expect the videos. If videos are not present at the expected path, num_samples will return 0. |
and I also tried these two above methods by editing the echonet.cfg file with a new folder name and tried methods 1,2 described before. Still got the same errors. |
We've noticed a few errors like this when using a version of pytorch and torchvision different from requirements.txt. Please try using those versions and let us know if still getting that error. |
The issue was resolved. The issue was that in the data provided to us via box, the .csv files that I got had .avi after the video file names. Your code for reading the videos assumes that they didn't have .avi after the video file names. |
Thanks so much for the update! We will update the CSV to reflect that. |
@Beep-Boop-Bopa, could you please let me know your echonet.cfg configuration? All the videos and 2 csv files are kept at path: Thanks in advance. |
In my experience, the echonet.cfg file thing doesn't really work that well. So I am not using it at all. I don't have a .config file. The python file which does "import echonet" is in the same directory as a4c-video-dir. Right now, my code has .avi in it and is working. I dunno why. |
Just try with and without the .avi extension in the csv files and see what works. |
@chinmayabv
|
Hey,
So I downloaded the git and downloaded the data set into a subfolder inside the git. The installation of echonet went fine. But I get this error no matter I try to run any of the given functions.
I have tried renaming the downloaded folder with the .csv files and the videos, and have also edited that echonet.cfg file. I don't really understand what is going on.
The text was updated successfully, but these errors were encountered: