num_samples should be a positive integer value, but got num_samples=0 #309 #426
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?
when i try train ,i get a error
...
AttributeError: 'EfficientNet' object has no attribute 'act1'
i solve it
get another error
num_samples should be a positive integer value, but got num_samples=0
i try follow way like Originally posted by @1YasserAmmar1 in https://github.com/neuralchen/SimSwap/issues/307#issuecomment-1200092061
...................
thin just change the train start code by add the batchsize value --batchSize 4
.............
!python train.py --name simswap224_test --batchSize 4 --gpu_ids 0 --dataset ./content/TrainingData/vggface2_crop_arcfacealign_224 --Gdeep Fals
it still error ,help
I've also encountered this error, and here I made a very stupid mistake.
If you're using a windows environment, don't use WinRAR to extract the dataset (I haven't tried other software, but WinRAR can extract a file but this file can't be used for training), use
tar -xvzf path/to/vggface2_crop_arcfacealign_224.tarinstead!Here is the solution:
!mv /content/vggface2_crop_arcfacealign_224/ /content/TrainingData/vggface2_crop_arcfacealign_224This bug in Colab script has been fixed, please try the new version Colab!
In collab, we are getting this error when trying to extract the training dataset
AttributeError: 'EfficientNet' object has no attribute 'act1',How did this work out, please?