Closed wanshun123 closed 5 years ago
With my graphics card I was able to run it with images of 128x128.
maybe consider implement this on Google COlab and run it from there, Colab provides you a free Tesla T4 for doing machine learning, I already using a heavily modified version of ReCycle-GAN on my Colab notebook.
256x256 with batch size of 6 is the max I can go on Google Colab without having to use system's Ram, you could pushed it to Batch size of 8 , but it will train slightly slower ... but the result is worth it! either way whenever I train a GAN in general the more batch size you can squeeze in the better.
@claudetheboof do you have to retrain the model for each person, like trump obama and can only model be used for any face and how long does training take, can you also share you colab notebook?
I've downloaded the faces dataset at https://www.dropbox.com/s/s6kzovbrevin5tr/faces.tar.gz?dl=0 and am running train.py as follows (in my ObamaTrump directory, extracted from faces.tar.gz, there are trainA and trainB folders with each file there containing 3 horizontally concatenated images):
python train.py --dataroot /home/paperspace/rgan/rgan/dataset/faces/ObamaTrump --dataset_mode unaligned_triplet --model recycle_gan
This results in a
cuda runtime error (2) : out of memory
error. My GPU is a Quadro 4000 with 8GB of memory.The full stacktrace is as follows: