Skip to content
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

Training very slow #90

Open
hungk64it1x opened this issue Apr 12, 2022 · 3 comments
Open

Training very slow #90

hungk64it1x opened this issue Apr 12, 2022 · 3 comments

Comments

@hungk64it1x
Copy link

Hi minivision team,

I clone your repo and I did not change anything from the original code, I only modified image folders for my own dataset.
My dataset has about 240k images and I trained with image size 80x80.
But I found in the training the loader for dataset was very slowly and it mostly didn't use GPU core for training.
Have any idea about this issue?

Thank you.

@zhuyingSeu
Copy link
Member

If you have one gpu, python train.py --device_ids 0.

@amilkcar
Copy link

Hi @hungk64it1x , do you have an example on how to crop and resize the images... i have like 10k images but i didnt understand how to crop and resize the original images

@chau25102001
Copy link

Hi minivision team,

I clone your repo and I did not change anything from the original code, I only modified image folders for my own dataset. My dataset has about 240k images and I trained with image size 80x80. But I found in the training the loader for dataset was very slowly and it mostly didn't use GPU core for training. Have any idea about this issue?

Thank you.

It's probably due to the time cost for reading large images and generating FT images during training. Maybe you should consider resize your images and generate/save FT images before hand, then read them in getitem() function of the dataset instead of generating FT on the fly. Hope this helps!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants