nextDeve / Depression-detect-ResNet

depression-detect Predicting depression from AVEC2014 using ResNet18.
37 stars 4 forks source link

请问运行preprocess.py文件时,是要等他全部运行完毕吗?由于我运行了一个下午,preprocess.py文件依旧在运行,所以我强制结束运行,并运行main.py文件时,出现ValueError: num_samples should be a positive integer value, but got num_samples=0,请问如何解决 #2

Open jack-people opened 1 year ago

jack-people commented 1 year ago

File "E:\Depression detect\Depression-detect-ResNet-main\main.py", line 24, in test_loader = DataLoader(dataset=dataset_test, batch_size=batch_size, shuffle=True, pin_memory=True, drop_last=True) File "C:\Users\ASUS.conda\envs\DepressionEstimation-main\lib\site-packages\torch\utils\data\dataloader.py", line 353, in init sampler = RandomSampler(dataset, generator=generator) # type: ignore[arg-type] File "C:\Users\ASUS.conda\envs\DepressionEstimation-main\lib\site-packages\torch\utils\data\sampler.py", line 107, in init raise ValueError("num_samples should be a positive integer " ValueError: num_samples should be a positive integer value, but got num_samples=0

nextDeve commented 1 year ago

运行预处理时,应该会有进度条,要等进度条100% 才算运行结束。预处理有提取人脸的过程,会比较慢,建议配置GPU环境。

nextDeve commented 1 year ago

预处理有两部,第一步是从视频中提取图片,第二步是从图片中提取人脸信息,一共两个进度条。

jack-people commented 1 year ago

好的,感谢你的解答。

GongQingTuanYuan commented 6 months ago

File "E:\Depression detect\Depression-detect-ResNet-main\main.py", line 24, in test_loader = DataLoader(dataset=dataset_test, batch_size=batch_size, shuffle=True, pin_memory=True, drop_last=True) File "C:\Users\ASUS.conda\envs\DepressionEstimation-main\lib\site-packages\torch\utils\data\dataloader.py", line 353, in init sampler = RandomSampler(dataset, generator=generator) # type: ignore[arg-type] File "C:\Users\ASUS.conda\envs\DepressionEstimation-main\lib\site-packages\torch\utils\data\sampler.py", line 107, in init raise ValueError("num_samples should be a positive integer " ValueError: num_samples should be a positive integer value, but got num_samples=0

好的,感谢你的解答。

你好,我也在调试这个代码,可以交流下吗?

jack-people commented 6 months ago

File "E:\Depression detect\Depression-detect-ResNet-main\main.py", line 24, in test_loader = DataLoader(dataset=dataset_test, batch_size=batch_size, shuffle=True, pin_memory=True, drop_last=True) File "C:\Users\ASUS.conda\envs\DepressionEstimation-main\lib\site-packages\torch\utils\data\dataloader.py", line 353, in init sampler = RandomSampler(dataset, generator=generator) # type: ignore[arg-type] File "C:\Users\ASUS.conda\envs\DepressionEstimation-main\lib\site-packages\torch\utils\data\sampler.py", line 107, in init raise ValueError("num_samples should be a positive integer " ValueError: num_samples should be a positive integer value, but got num_samples=0

好的,感谢你的解答。

你好,我也在调试这个代码,可以交流下吗?

不好意思,时间太久了。电脑已经找不到这个项目了,不过建议你可以结合kaggle网站上类似的项目来找思路,祝你好运!!!

GongQingTuanYuan commented 6 months ago

好的谢谢!

---- 回复的原邮件 ---- | 发件人 | @.> | | 日期 | 2024年02月27日 13:50 | | 收件人 | @.> | | 抄送至 | @.>@.> | | 主题 | Re: [nextDeve/Depression-detect-ResNet] 请问运行preprocess.py文件时,是要等他全部运行完毕吗?由于我运行了一个下午,preprocess.py文件依旧在运行,所以我强制结束运行,并运行main.py文件时,出现ValueError: num_samples should be a positive integer value, but got num_samples=0,请问如何解决 (Issue #2) |

File "E:\Depression detect\Depression-detect-ResNet-main\main.py", line 24, in test_loader = DataLoader(dataset=dataset_test, batch_size=batch_size, shuffle=True, pin_memory=True, drop_last=True) File "C:\Users\ASUS.conda\envs\DepressionEstimation-main\lib\site-packages\torch\utils\data\dataloader.py", line 353, in init sampler = RandomSampler(dataset, generator=generator) # type: ignore[arg-type] File "C:\Users\ASUS.conda\envs\DepressionEstimation-main\lib\site-packages\torch\utils\data\sampler.py", line 107, in init raise ValueError("num_samples should be a positive integer " ValueError: num_samples should be a positive integer value, but got num_samples=0

好的,感谢你的解答。

你好,我也在调试这个代码,可以交流下吗?

不好意思,时间太久了。电脑已经找不到这个项目了,不过建议你可以结合kaggle网站上类似的项目来找思路,祝你好运!!!

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>