Giter VIP home page Giter VIP logo

Comments (9)

Ganonmaster avatar Ganonmaster commented on April 28, 2024 1

You most likely ran out of memory. Your computer has 8GB of RAM and at its peak used 9.8GB. Which means it was most likely writing to the swap space on your hard disk. When your PC runs out of RAM space to write to, it will write to and read to a designated "swap" space on your hard drive as if it were part of your memory. This is to prevent your PC from crashing.

You need more than 8GB, because your OS and other apps will also use part of your memory. But 16GB will probably be fine. Just be aware that running it on CPU will most likely be 10 times slower than running it on a GPU. So even if you have the RAM, but not a top of the line CPU or a compatible Nvidia GPU, training will take a long time.

from faceswap.

Clorr avatar Clorr commented on April 28, 2024

This may be specific to your setup. Please tell us what env are you running on. Do you use Docker ? Docker-machine ?

Also, for standard errors, a little Google search can help. This page for example has a couple of reasons/solutions.

from faceswap.

deepfakes avatar deepfakes commented on April 28, 2024

I'm closing this. If you still have problem, please submit them on the "faceswap-playground" repo

from faceswap.

cercata avatar cercata commented on April 28, 2024

So noboby has an Idea of the amount of RAM needed ?

from faceswap.

Ganonmaster avatar Ganonmaster commented on April 28, 2024

@cercata I tested it on a laptop with 16GB of RAM inside a docker container; it used up roughly 4-6GB. Your mileage may vary.

from faceswap.

cercata avatar cercata commented on April 28, 2024

@Ganonmaster Ok, perfect, so no need for huge ammounts of memory :)

from faceswap.

deepfakes avatar deepfakes commented on April 28, 2024

I can start running the train.py on my old iMac with 4Gb, from within a Docker-machine. I never trained fully the model as it takes ages, but at least it starts.

When is your training failing ? At start ? After a while ?

from faceswap.

cercata avatar cercata commented on April 28, 2024

@deepfakes it was in the first minute. After closing other programs, now it runs, and updates the h5 files.
The process has some 5.2GB peaks, using Python 3.6 x64 on a Windows 7 machine.

What do you mean by ages ?
If I install the GPU version of tensorflow, I'll need at least 5.2GB of VRAM ? Or it uses mainly RAM ?

It would be nice to define the "minimal requirements" ... but I guess it depeds on the number of pictures.

from faceswap.

deepfakes avatar deepfakes commented on April 28, 2024

"ages" means that it takes a very long time.
It is an old iMac 2009, so I don't really try to train a model on it. It is just to assess it works...

On the minimal requirements, feel free to share your experience in the faceswap-playground repo. There is no easy way to tell you that this or this platform is eligible or not for training or converting. The only way we have to know that is through the users feedback.

After, if you want to crawl docs of the tools to gather minimal requirements of each tool, feel free, it is up to you.

from faceswap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.