Comments (9)
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.
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.
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.
Train time is 120, by that time training mode processed only three picture๐
from deep-makeover.
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.
@subzerofun if my Mac does nvidia, I can just replace it by installation CUDA?
from deep-makeover.
Sorry if it does not have nvidia? @subzerofun
from deep-makeover.
@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.
@subzerofun also will be helpful your finished training weights for my MacBook ๐
from deep-makeover.
Related Issues (13)
- Asap I can't make my boss more pretty. ))) HOT 3
- Results not repeatable? HOT 4
- How to get the key in dm_input.py?? HOT 2
- Getting incorrect images as output
- Is there a paper?
- ResourceExhaustedError (see above for traceback): OOM when allocating tensor with shape[16,100,80,48] HOT 1
- When training for longer time (>7 hours) fails to save checkpoint HOT 5
- Longer training and higher resolution images? HOT 2
- AttributeError: module 'tensorflow' has no attribute 'Variable'
- Where I can get Large-scale CelebFaces Attributes (CelebA) Dataset ??? HOT 4
- Assertion error HOT 5
- AssertionError
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deep-makeover.