-
-
Notifications
You must be signed in to change notification settings - Fork 12
Added --gpu flag to run model on a gpu #8
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
base: main
Are you sure you want to change the base?
Conversation
|
This is great! It will throw an error on my side though if run without the --gpu flag UnboundLocalError: cannot access local variable 'device' where it is not associated with a value |
|
Resolved! |
|
Works nicely! Now we just need to get this merged somehow |
|
It says something about workflows requiring approval. Maybe related to merging? |
|
Oh, no you might have to merge it, since you have write access. |
|
I don't, we need @simonw |
Based on simonw#8 Added --gpu flag to run model on a gpu - modification of the blip_caption.py file
Based on simonw#8 Added --gpu flag to run model on a gpu - modification of the README.md file
|
@simonw is this going to be merged? |
I noticed there wasn't a way to run the model on a gpu, so added a flag to set the device for the pipeline.