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

Problem in Data Generation #21

Open
YMX2022 opened this issue Apr 8, 2024 · 2 comments
Open

Problem in Data Generation #21

YMX2022 opened this issue Apr 8, 2024 · 2 comments

Comments

@YMX2022
Copy link

YMX2022 commented Apr 8, 2024

Hi! Wonderful work.
I am currently training the model with my own data using the dataset-generation code you provided.
However, there is an error returning as
image.
I am training on 2 RTX4090 GPUs with 24Gb for each one, is this ram enough for training data generation?
If not, how can I revise the script to decrease the GPU ram for data generation.

Thank you.

@YMX2022 YMX2022 changed the title Problem in Training Data Generation Problem in Data Generation Apr 8, 2024
@frank-xwang
Copy link
Owner

Hi, I suggest using GPUs with higher memory for running the data generation codes. Additionally, consider generating the bounding boxes/masks first using the bounding box/mask generation section of the code, and then save these results locally. Once saved, you can proceed with running the instance-caption generation codes. This approach should help in reducing memory usage by avoiding the need to generate everything simultaneously.

Hope it helps.

@bconstantine
Copy link

Not sure if you have solved the problem, but I can run the Data Generation Process using two RTX A5000 GPUs by distributing the setup as follows: Loading the BLIP2 model to a GPU, while the rest of the models are loaded to another

Doing so will use ~24GB on the BLIP2 GPU and ~11GB on the other models GPU.
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

3 participants