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

hugging face demo can not opened #11

Open
Stomachache007 opened this issue Jul 5, 2023 · 3 comments
Open

hugging face demo can not opened #11

Stomachache007 opened this issue Jul 5, 2023 · 3 comments

Comments

@Stomachache007
Copy link

Stomachache007 commented Jul 5, 2023

Runtime error
Scheduling failure: not enough hardware capacity

@Stomachache007 Stomachache007 changed the title hugging face demo does not work hugging face demo can not opened Jul 5, 2023
@SSUHan
Copy link

SSUHan commented Aug 5, 2023

Same!

@CesarERamosMedina
Copy link

CesarERamosMedina commented Aug 6, 2023

To fix the hardware capacity issue you need to duplicate the space and assign a GPU instance. I duplicated the space and needed to make the following changes to get it to work again:
i) Specify that you need torchaudio==0.10.0+cu113 instead of torchaudio==0.10.0
ii) RUN pip install 'git+https://github.com/facebookresearch/detectron2.git' within the docker file AFTER pip installing requirements.txt (but make sure you remove detectron2 from the requirements.txt). The issue here was that PIL deprecated a type that broke detectron2 0.6.
iii) gradio might need to be updated to the latest version (gradio==3.36.1) since there was a KeyError

Worth noting: I did this 22 days ago, so who knows if another dependency broke. Also worth noting, I am not part of the team that developed this, so I might be breaking some dependency by doing what I mentioned.

@balloch
Copy link

balloch commented Sep 27, 2023

It also might be worth noting that force restarting the space can sometimes just fix it

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