-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RuntimeError: CUDA out of memory. #832
Comments
Hi, @Benybrahim You can try By the way, SETR needs a lot computation capacities, I suggest you change some non-transformer models which needs less GPU memory because Best, |
Thank you @MengzhangLI . Better GPU will instantely solve the problem. Using I posted the question here too: https://github.com/LARC-CMU-SMU/FoodSeg103-Benchmark-v1 Thanks you for you again. |
OK, very happy to hear you would not be bothered by GPU memory error. Do you think it is meaningful to integrate this Best, |
I think you can ask @XiongweiWu since he is the owner of the repo, but It should be meaningful I guess, since it is the only dataset with food ingredient segmentation. |
@Benybrahim I am very glad to see you have addressed the problem and thx for informing me this information. @MengzhangLI Hi, First thx for your suggestion! I think the dataset is meaningful since it's the only dataset for fine-grained food ingredient segmentation, and we are also glad to have more researchers involved in this task. I need to carefully discuss with our project leader about it to avoid any license issue and I will update you when we finish. |
Hi, @XiongweiWu Thanks for your nice reply. We do hope we could support this great dataset for community and it absolutely could make more researchers involved in it. Feel free to contact us anytime. Best, |
@MengzhangLI Hi Mengzhang, I am sorry for replying late since I am involved into one covid-19 positive case recently (luckily I am negative finally...).... I have just saw your email and our project leader also agreed to merge the dataset into the official mmsegmentation repo, but we hope other researcher can still download the dataset via the application form (so that we can trace the download record) and cite our paper if they use the dataset. |
Wow, it is pretty good! Thanks for your nice and generous support! Also very happy to hear you are negative and healthy. You can see our previous dataset preparation that we strictly follow rules of data usage and user of MMSegmentation must go to original website of dataset to write license and finish registration. So we absolutely meet up your leaders requirements. ;) Let us keep in touch and hope we could support benchmark models as soon as possible! |
@MengzhangLI Hi , sorry for the basic question. |
Here is the log: and this is what appears after the log in the terminal : 2021-09-07 18:20:27,626 - mmseg - INFO - workflow: [('train', 1)], max: 40000 iters |
I think it is caused by small GPU memory. Maybe you can try some tiny models with ResNet18 backbone. Looking forward to your feedback. |
@MengzhangLI Thank you so much for the quick response and help. |
Maybe you could try FP16, see this config for example: |
Where can I download "vit_base_patch16_224" and "jx_vit_base_p16_224-80ecf9dd.pth"? Looking forward to and thank you for your reply. @Benybrahim @MengzhangLI |
Thanks for your error report and we appreciate it a lot.
Checklist
Describe the bug
I'm trying to finetune a food segmentation model found here, on new dataset.
When trying to train the model. I got this error. The
batch_size
is set to 1.Thank you in advance for any insights you can give.
Reproduction
Command
Configuration file
I used this japanese dataset for food segmentation: https://mm.cs.uec.ac.jp/uecfoodpix/
I go the model from Foodseg repo and tried to finetune it on the japanese data.
Environment
Error traceback
The text was updated successfully, but these errors were encountered: