pytorch-CycleGAN-and-pix2pix icon indicating copy to clipboard operation
pytorch-CycleGAN-and-pix2pix copied to clipboard

ValueError: num_samples should be a positive integeral value, but got num_samples=0

Open tpy9 opened this issue 6 years ago • 5 comments

please help!I met this problem and can't solve it

tpy9 avatar Sep 14 '19 09:09 tpy9

We don't have num_samples in this repo. Would it be possible to share with us the trace of the program?

junyanz avatar Sep 14 '19 15:09 junyanz

Thank you for replying.This is the trace.

------------------ 原始邮件 ------------------ 发件人: "Jun-Yan Zhu"[email protected]; 发送时间: 2019年9月14日(星期六) 晚上11:10 收件人: "junyanz/pytorch-CycleGAN-and-pix2pix"[email protected]; 抄送: "tpy"[email protected]; "Author"[email protected]; 主题: Re: [junyanz/pytorch-CycleGAN-and-pix2pix] ValueError: num_samplesshould be a positive integeral value, but got num_samples=0 (#767)

We don't have num_samples in this repo. Would it be possible to share with us the trace of the program?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

tpy9 avatar Sep 15 '19 03:09 tpy9

这个错误的原因是因为你的数据集没有加载进去

lqz790192593 avatar Sep 22 '19 03:09 lqz790192593

我也遇到这个问题,是怎么解决的

1632325673 avatar Aug 10 '21 01:08 1632325673

You need to set the data path correctly.

junyanz avatar Dec 08 '21 21:12 junyanz