Comments (6)
I have tried 1080 Ti or P100 for training, the speed is around 0.4 batches/sec.
Regarding your case, several options are available:
- Use more GPUs for parallel training, a simple modification is required. Please refer to #14
- Use low-resolution images will significantly increase speed. E.g., change IMG_SHAPES: [256, 256, 3] to [64, 64, 3] in inpaint.yml.
from generative_inpainting.
okay, thanks for your suggestions. I will try it.
from generative_inpainting.
I have changed Trainer to MultiGPUTrainer and use 4 x 1080 Ti for training, but the training speed seems slower than single GPU:(
|----------------------------| 0.10%, 4953/4947597 sec. train epoch 1, iter 10/10000, loss 1.013579, 0.00 batches
|----------------------------| 0.20%, 10009/5046506 sec. train epoch 1, iter 20/10000, loss 0.890207, 0.00 batche
|----------------------------| 0.30%, 15481/5455784 sec. train epoch 1, iter 30/10000, loss 0.796239, 0.00 batche
|----------------------------| 0.40%, 20848/5345027 sec. train epoch 1, iter 40/10000, loss 0.757341, 0.00 batche
|----------------------------| 0.50%, 26577/5700523 sec. train epoch 1, iter 50/10000, loss 0.715168, 0.00 batche
|----------------------------| 0.60%, 32215/5603806 sec. train epoch 1, iter 60/10000, loss 0.686893, 0.00 batche
|----------------------------| 0.70%, 37648/5395326 sec. train epoch 1, iter 70/10000, loss 0.657164, 0.00 batche
|----------------------------| 0.80%, 43417/5722711 sec. train epoch 1, iter 80/10000, loss 0.638888, 0.00 batches/sec.
Is there any point I have ignored? When using single GPU, it can run a little faster at 0.01 batches/sec.
Thank you
from generative_inpainting.
@tabsun Hi, thanks for your interest in our work first.
There must be some problems here, and here are several potential bugs:
- Your disk is very slow, which makes the data loading part blocked.
- Check your GPU utilization and make sure that all of them are running on different GPUs.
from generative_inpainting.
@JiahuiYu Thanks for your advices. I have tried to move my training data into the same disk as my code. The speed has no change. What do you mean by GPU utilization ? I have checked all 4 GPU memory has been occupied, is this enough? Maybe I should deep into the training code to verify what has blocked the process.
from generative_inpainting.
@tabsun You can view your GPU utilization by nvidia-smi
. In most cases, the GPU utilization should be above 90%.
from generative_inpainting.
Related Issues (20)
- flow image
- Process finished with exit code -1073741819 (0xC0000005)
- DeepFill V2 Protocol
- not able to train the model
- Training of dataset
- required broadcastable shapes [Op:Mul]
- How to change the learned model
- Terrible result image
- NotImplementedError: Cannot convert a symbolic Tensor HOT 1
- Increase/decrease of input/output dimensions
- New easy to use symmetric face inpainting
- URGENT
- I don't have access to the Google download Pretrained models HOT 2
- Training on own dataset HOT 1
- form of flist HOT 1
- I write something easy to modify. HOT 2
- Why remove l1_loss in v2 ?
- Why split in 2 instead of 3 in gen_conv ?
- two same repo?
- AssertionError loss_value is NaN
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 generative_inpainting.