joshua-wu/deepfakes_faceswap

Amount of RAM needed?

cercata opened this issue · 2 comments

I'm trying to train the network with the example provided, and it crashes with this error:

"Resource exhausted: OOM when allocating tensor with shape"

Python reached 3.7GB, and my compute has 8GB, had a peak of 9.8GB used.

I'm using Tensor Flow on CPU, How Much RAM is needed ?

It depends on the dataset. Maybe your images have a high resolution. Try scaling them down.

Fixed it, the model.py has a formula that allocates 8gb ram. Probably someone with a 1080gtx made it.

Cant paste the right code here, as star symbols wont show... Follow This:

https://pastebin.com/7dyWECmT