help with training #328
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
hi all. I don't understand how model training works.
following the instructions i use the command: "python train.py --name simswap224_test --gpu_ids 0 --batchSize 4 --dataset /content/TrainingData/vggface2_crop_arcfacealign_224 --Gdeep False"
but i get error:
processing Swapping dataset images...
Finished preprocessing the Swapping dataset, total dirs number: 0...
Traceback (most recent call last):
File "train.py", line 159, in
train_loader = GetLoader(opt.dataset,opt.batchSize,8,1234)
File "X:\games\SimSwap-main\data\data_loader_Swapping.py", line 119, in GetLoader
drop_last=True,shuffle=True,num_workers=num_workers,pin_memory=True)
File "C:\Users\Spike\anaconda3\envs\simswap\lib\site-packages\torch\utils\data\dataloader.py", line 266, in init
sampler = RandomSampler(dataset, generator=generator) # type: ignore
File "C:\Users\Spike\anaconda3\envs\simswap\lib\site-packages\torch\utils\data\sampler.py", line 104, in init
"value, but got num_samples={}".format(self.num_samples))
ValueError: num_samples should be a positive integer value, but got num_samples=0
I assume that the program doesn't find pictures for training. where should I put them?