deepfakes_faceswap icon indicating copy to clipboard operation
deepfakes_faceswap copied to clipboard

Amount of RAM needed?

Open cercata opened this issue 7 years ago • 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 ?

cercata avatar Dec 19 '17 12:12 cercata

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

ghost avatar Dec 24 '17 00:12 ghost

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

Rnijland avatar Jan 25 '18 22:01 Rnijland