Giter Site home page Giter Site logo

2 GPU error when training about rcan HOT 8 CLOSED

yulunzhang avatar yulunzhang commented on August 12, 2024
2 GPU error when training

from rcan.

Comments (8)

yulunzhang avatar yulunzhang commented on August 12, 2024

Hi,
I re-ran the code with multi-GPU (2, 3, or 4 GPUs) and they all passed. I used anaconda to install pytorch0.4.0. You can try with this instead of Docker.
However, I didn't use Docker to train or test the code. It seems there're some problems in /proc/mounts. If you still want to use Docker to run the code, you may refer to those links to solve your problem.
https://stackoverflow.com/questions/46138549/docker-openmpi-and-unexpected-end-of-proc-mounts-line
http://www.cloudypoint.com/Tutorials/discussion/docker-solved-docker-openmpi-and-unexpected-end-of-procmounts-line/

from rcan.

KindleHe avatar KindleHe commented on August 12, 2024

Thanks for your good suggestions!I will try to figure it out. I have started training 2x model with 1 P40 GPU,but I found 1000 epochs needs about 20 days to finish,could you please tell more details about traning time and corresponding gpu numbers? By the way,could I reproduce the paper’ results with you training command without any other training tricks?(Your work is really impressive,I will dedicate to super-resolution studying and hope to generate great works as yours)

from rcan.

yulunzhang avatar yulunzhang commented on August 12, 2024

Hi,
I use one Titan Xp for each model. It takes about 6 days to reach 1000 epochs. It seems that multi-gpu training cannot boost the training obviously. Each training image is converted to .npy file to save training time. I also moved the training data to SSD, which can also boost the training.
No extra tricks were used, the results in the paper can be reproduced with my provided training scripts. Some people have reproduced the results with the code.

from rcan.

KindleHe avatar KindleHe commented on August 12, 2024

I see you offer some script for data converting and processing, but as a new pytorch learner, I do quite not understand how the training images being converted to .npy files?

from rcan.

yulunzhang avatar yulunzhang commented on August 12, 2024

Hi,
Please see RCAN_TrainCode/code/data/srdata.py lines 30 to 50.

image

from rcan.

KindleHe avatar KindleHe commented on August 12, 2024

Thanks, it means that I just need to python main.py --model RCAN --save RCAN_BIX2_G10R20P48 --scale 2 --n_resgroups 10 --n_resblocks 20 --n_feats 64 --reset --chop --save_results --print_model --patch_size 96 command and the code will automatically run to the line 30 to 50 to finish the .npy generating process, am I right?

from rcan.

yulunzhang avatar yulunzhang commented on August 12, 2024

Yes, you are right.

from rcan.

swz30 avatar swz30 commented on August 12, 2024

Hi Yulun,
You mentioned in the above comments that "multi-gpu training cannot boost the training obviously". Why is that?

Also, could you please tell how did you end up choosing RG=10 and RCAB=20 for your model? Can I reduce any blocks to train the model faster without compromising accuracy?

Thanks.

from rcan.

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.