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

Only exception after runner.py #8

Open
DoctorMG opened this issue Nov 11, 2022 · 2 comments
Open

Only exception after runner.py #8

DoctorMG opened this issue Nov 11, 2022 · 2 comments

Comments

@DoctorMG
Copy link

DoctorMG commented Nov 11, 2022

OS: Win10, no CUDA

  1. Token (type: read) was set
  2. file ".env" available
  3. runner.py was startet (unchanged), just being curious what happens

Result: only a cascade of exceptions on the command line, as following:

Traceback (most recent call last):
File "E:\Programme\Anaconda3\envs\apps\lib\site-packages\huggingface_hub\utils_errors.py", line 213, in hf_raise_for_status
response.raise_for_status()
File "E:\Programme\Anaconda3\envs\apps\lib\site-packages\requests\models.py", line 1021, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://huggingface.co/CompVis/stable-diffusion-v1-4/resolve/main/vae/diffusion_pytorch_model.bin

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "E:\Programme\Anaconda3\envs\apps\lib\site-packages\diffusers\modeling_utils.py", line 394, in from_pretrained
model_file = hf_hub_download(
File "E:\Programme\Anaconda3\envs\apps\lib\site-packages\huggingface_hub\file_download.py", line 1053, in hf_hub_download
metadata = get_hf_file_metadata(
File "E:\Programme\Anaconda3\envs\apps\lib\site-packages\huggingface_hub\file_download.py", line 1359, in get_hf_file_metadata
hf_raise_for_status(r)
File "E:\Programme\Anaconda3\envs\apps\lib\site-packages\huggingface_hub\utils_errors.py", line 254, in hf_raise_for_status
raise HfHubHTTPError(str(HTTPError), response=response) from e
huggingface_hub.utils._errors.HfHubHTTPError: <class 'requests.exceptions.HTTPError'> (Request ID: iJKkSfoiLnBa4bMVHLKZ2)

@shreydan
Copy link
Contributor

the error is 403 Client Error: Forbidden for url. To fix this go to CompVis/stable-diffusion-v1-4 and accept the model license agreement and then it'll work

@cloneofsimo
Copy link
Owner

@DoctorMG did this work? Ill close this issue if so.

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