eeskimez / emotalkingface

The code for the paper "Speech Driven Talking Face Generation from a Single Image and an Emotion Condition"
MIT License
161 stars 29 forks source link

Error when pre-train emoticon discriminator! #6

Open muxiddin19 opened 2 years ago

muxiddin19 commented 2 years ago

Traceback (most recent call last): File "train.py", line 204, in train() File "train.py", line 130, in train train_loader = torch.utils.data.DataLoader(trainDset, File "C:\Users\INHA\anaconda3\envs\face\lib\site-packages\torch\utils\data\dataloader.py", line 268, in init sampler = RandomSampler(dataset, generator=generator) File "C:\Users\INHA\anaconda3\envs\face\lib\site-packages\torch\utils\data\sampler.py", line 102, 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

muxiddin19 commented 2 years ago

Can you please, give some solutions?

eeskimez commented 2 years ago

Hi, this looks like a missing data error. Have you prepared the training data and pointed the folder to the main script?

Please check if the data preparation script works correctly and the output folder populates with samples.

I hope this helps!

Best, Emre