Coder Social home page Coder Social logo

Comments (9)

subzerofun avatar subzerofun commented on July 16, 2024 1

Read my reply here: #7

You have to check first if your Mac even has a suitable graphics card. Your Tensorflow has probably used your CPU โ€“ and if you have a MacBook the processor is too slow for this kind of computation.

I have tried my best to explain it in the link above. You should look at the Readme more carefully, David wrote that he has used a Nvidia GTX 1080 for training.

from deep-makeover.

subzerofun avatar subzerofun commented on July 16, 2024 1

Sorry, but the Air models do not have a dedicated (extra) graphics card. The graphics processing is integrated in the CPU. And it doesn't work with CUDA, that's only for NVidia cards. The equivalent from AMD is OpenCL.

The processors of the MacBook Air models are intentionally "slow" (low clock speed) โ€“ they are build to consume little energy.

There are other options, like renting an Amazon server with CUDA support. But they're not that easy to set up (for a beginner) โ€“ you would need experience with Linux. And they are not free of course.

A laptop is not really an ideal machine for training neural nets. There are a few exceptions, like machines for 3d work or gaming laptops with high-end GPUs, but that's of no use to you.

If you are only interested in trying out the project i could upload my finished training weights. I don't think that the image generation would take that long, even on your MacBook. I have no idea if that would work, but one can only try.

from deep-makeover.

subzerofun avatar subzerofun commented on July 16, 2024 1

@danchokobo

Should I put into dataset those images of my friends?

No, training should only be run with the aligned celeba dataset images. And you only need to run the training once for one mode (see below) until you get good results in the output pngs. There are four modes for training:

('`train_mode` must be one of: `ftm`, `mtf`, `ftf` or `mtm`')

"ftm" (female to male) is when your input image is female and output will be male
"mtf" = male to female
"ftf" = female to female
"mtm" = male to male

I think this would be the cmd line for a specific train mode:
python3 dm_main.py --run train --train_mode "THREE-LETTER-TRAIN-MODE-WITHOUT-QUOTES" --train_time "TRAIN-TIME-IN-MINUTES"

You could train four models, for all different modes. But you would have to change the name of (or move it to a different directory) of your checkpoint folder before starting a different training mode or else the last one will be overwritten.

How I can test it by real images of my friends?
or type something different into command line?

The code is:

python3 dm_main.py --run inference --infile "YOUR-INPUT-IMAGE-WITHOUT-QUOTES" --outfile "OUTPUT-FILENAME.png"

But remember it will only use the gender conversion mode from your last training, training data gets loaded from the checkpoint folder.

also will be helpful your finished training weights for my MacBook

I've accidentally overwritten my last training model, i will need to start a new one. I will write you when it's finished. Will probably take 1-2 days because my GPU is busy right now with processing another project.

from deep-makeover.

danchokobo avatar danchokobo commented on July 16, 2024

Train time is 120, by that time training mode processed only three picture๐Ÿ™„

from deep-makeover.

danchokobo avatar danchokobo commented on July 16, 2024

So sad story:/ Yeap my Mac is slow, because it is not pro just MacBook air2013:/ I will try it from another mac:(

from deep-makeover.

danchokobo avatar danchokobo commented on July 16, 2024

@subzerofun if my Mac does nvidia, I can just replace it by installation CUDA?

from deep-makeover.

danchokobo avatar danchokobo commented on July 16, 2024

Sorry if it does not have nvidia? @subzerofun

from deep-makeover.

danchokobo avatar danchokobo commented on July 16, 2024

@subzerofun @david-gpu Hi! OKAY I will try do it on more better computer with NVIDIA cards, I just want to know, what I can do after completing all trainings? How I can test it by real images of my friends? Should I put into dataset those images of my friends? then again I should run training mode? or type something different into command line? Help me:)

from deep-makeover.

danchokobo avatar danchokobo commented on July 16, 2024

@subzerofun also will be helpful your finished training weights for my MacBook ๐Ÿ‘

from deep-makeover.

Related Issues (13)

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.