Comments (7)
Thank you for your interest. Due to the inclusion of attention modules in HPINet, the training process requires much computational resources and GPU memory. As mentioned in the paper and README, we had to use 8 V100 GPUs with 32GB of memory each to meet the training requirements. I'm unsure if using 4 RTX 3090 GPUs would be sufficient to achieve the desired batch size and patch size as specified in train.py. Could you please provide the reproduction results on BSD100, Urban100, and Manga109?
from hpinet.
The configuration remains the same in the train.py with the min_batch_size=8 and max_batch_size=64; min_patch_size = 192 and max_patch_size = 720.
The reproduction results are attached. Thanks.
![image](https://private-user-images.githubusercontent.com/109712056/297627696-4c181fa3-191b-4ec6-b35a-141915c29360.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjEzMDQ1MDcsIm5iZiI6MTcyMTMwNDIwNywicGF0aCI6Ii8xMDk3MTIwNTYvMjk3NjI3Njk2LTRjMTgxZmEzLTE5MWItNGVjNi1iMzVhLTE0MTkxNWMyOTM2MC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzE4JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcxOFQxMjAzMjdaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1kNzA5YWUxYmQzZWRmZDg5MjBlYzNkZjJhNGUyYmQzOWM2NTY1ZWFmYTQ1ZWM3N2QwMGE3ZmM0ZjQ4Nzk3NGUzJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.ks63C4hBUADZUudmQibOYJqMgE8pmBJVU8V6qxFb_HY)
from hpinet.
The reproduction results at the 420 epoch are attached.
![image](https://private-user-images.githubusercontent.com/109712056/297941798-d5437d00-66da-4890-a4ed-09813fbeb8bb.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjEzMDQ1MDcsIm5iZiI6MTcyMTMwNDIwNywicGF0aCI6Ii8xMDk3MTIwNTYvMjk3OTQxNzk4LWQ1NDM3ZDAwLTY2ZGEtNDg5MC1hNGVkLTA5ODEzZmJlYjhiYi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzE4JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcxOFQxMjAzMjdaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1iMDM0YTgwOGQ0NjQxYzgzYmMxMjVkMzMxNzM2YWJkYTJkMGJmN2MxMGU4Njk2YWM4ZmVhYWExY2I3ODRmZWZhJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.f_0vRYTwTVPgqn4NPLDxZH-zXRwTCAHumPdV2VVN9QM)
from hpinet.
I have tried training with four 24G GPUs like you did, but I encounter the memory exceed issue. For better results, the training utilizes a patch size that increases with each epoch, leading to a gradual increase in GPU memory usage until it exceeds the capacity of 24G. Therefore, I have no idea that why four 24G GPUs worked perfectly for you. If you're interested, we recommend starting with HPINet-S, as it requires less training time and consumes less memory.
We are planning to release a new training framework in the coming weeks that addresses the issue of excessive GPU memory usage. We will create a new branch and notify you once it's available.
from hpinet.
Here is another code. It can be accommodated by four GPUs.
from hpinet.
If there are further questions, feel free to reopen this issue at any time.
from hpinet.
Thank you for your reply. It helps me a lot.
from hpinet.
Related Issues (5)
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 hpinet.