Spaces:
Running
on
CPU Upgrade
How do I fix this error in the notebook?
HTTPError: 403 Client Error: Forbidden for url: https://huggingface.co/api/models/CompVis/stable-diffusion-v1-4/revision/fp16 (Request ID: fYYaDaM-qgmRC8scj5jh0)
Hi @bat63 , if you are getting this error it means you probably did not visit https://huggingface.co/CompVis/stable-diffusion-v1-4, read, accepted and acknowledged the LICENSE. If you do so, it should work!
I've already done this, so there is no button to do so again. And yet I'm still getting the error. I seem to have no way to proceed now.
Edit: Seems fixed when I tried again today. Everything else was the same. Strange.
Yeah it happened to me too kinda weird and I've accepted the license and all but it didn't work for some reason even refreshed a ton of times still the same problem.
I have the same issue. Anyone else running into this or have a solution?
I am also having this issue.
Is there a way to allow me to accept it again?
i am also having this error
Same
Figured out a fix. Revisit https://huggingface.co/CompVis/stable-diffusion-v-1-4-original and reaccept the terms and you should be able to access it again with your token.
same issue even after accepting the license - EDIT waited a few minutes (like, 5 or so) now it's all good
also having this issue
Both on https://huggingface.co/CompVis/stable-diffusion-v1-4 and https://huggingface.co/CompVis/stable-diffusion-v-1-4-original there isn't any license to accept!
There isn't any checkbox of form to submit... I really don't understand where to accept the license in these pages.
I've accepted the terms on both links from all 3 different major browsers and still getting the same issue
EDIT: It works now. I was adding the auth token in between single quotes. I removed the quotes and it's working now
There was a specific connection error when trying to load CompVis/stable-diffusion-v1-4:
<class 'requests.exceptions.HTTPError'> (Request ID: bnhNFO6r4jqqKNaYYE2F7)
Figured out a fix. Revisit https://huggingface.co/CompVis/stable-diffusion-v-1-4-original and reaccept the terms and you should be able to access it again with your token.
But the button doesn't appear? Like how do I do that?
also having same issue.
HTTPError: 403 Client Error: Forbidden for url: https://huggingface.co/CompVis/stable-diffusion-v1-4/resolve/fp16/model_index.json
andOSError: There was a specific connection error when trying to load CompVis/stable-diffusion-v1-4: <class 'requests.exceptions.HTTPError'> (Request ID: xOpbQN_WipKp1D2fSP5U-)
https://huggingface.co/CompVis/stable-diffusion-v1-4
accept this will resolve
https://huggingface.co/CompVis/stable-diffusion-v1-4
accept this will resolve
Solved. however new issue is as follows:
RuntimeError Traceback (most recent call last)
<ipython-input-5-af4f9f89fc6e> in <module>
36
37 prompt = "a cat sitting on a bench"
---> 38 images = pipe.inpaint(prompt=prompt, init_image=init_image, mask_image=mask_image, strength=0.75).images
15 frames
/usr/local/lib/python3.7/dist-packages/torch/nn/modules/conv.py in _conv_forward(self, input, weight, bias)
452 _pair(0), self.dilation, self.groups)
453 return F.conv2d(input, weight, bias, self.stride,
--> 454 self.padding, self.dilation, self.groups)
455
456 def forward(self, input: Tensor) -> Tensor:
RuntimeError: Input type (torch.cuda.FloatTensor) and weight type (torch.cuda.HalfTensor) should be the same
i cant see any license acceptance button , am I missing anything?
https://huggingface.co/runwayml/stable-diffusion-v1-5 . Visit this page and accept the license. It is working for me.
move to the 'Files and versions' tab, and then the buttom comes.
Had to use write
token instead read
token to make http 403 error go away
Can some one help with this error pls (RuntimeError: "log" "_vml_cpu" not implemented for 'Half')
Can somebody help me with this error please.
venv "C:\Ai\venv\Scripts\Python.exe"
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Commit hash:
Installing torch and torchvision
Traceback (most recent call last):
File "C:\Ai\launch.py", line 255, in
prepare_enviroment()
File "C:\Ai\launch.py", line 173, in prepare_enviroment
run(f'"{python}" -m {torch_command}', "Installing torch and torchvision", "Couldn't install torch")
File "C:\Ai\launch.py", line 34, in run
raise RuntimeError(message)
RuntimeError: Couldn't install torch.
Command: "C:\Ai\venv\Scripts\python.exe" -m pip install torch==1.12.1+cu113 torchvision==0.13.1+cu113 --extra-index-url https://download.pytorch.org/whl/cu113
Error code: 2
stdout: Looking in indexes: https://pypi.org/simple, https://download.pytorch.org/whl/cu113
Collecting torch==1.12.1+cu113
Downloading https://download.pytorch.org/whl/cu113/torch-1.12.1%2Bcu113-cp310-cp310-win_amd64.whl (2143.8 MB)
------ 0.4/2.1 GB 7.4 MB/s eta 0:04:03
stderr: ERROR: Exception:
Traceback (most recent call last):
File "C:\Ai\venv\lib\site-packages\pip_vendor\urllib3\response.py", line 435, in _error_catcher
yield
File "C:\Ai\venv\lib\site-packages\pip_vendor\urllib3\response.py", line 516, in read
data = self._fp.read(amt) if not fp_closed else b""
File "C:\Ai\venv\lib\site-packages\pip_vendor\cachecontrol\filewrapper.py", line 90, in read
data = self.__fp.read(amt)
File "C:\Users\reece\AppData\Local\Programs\Python\Python310\lib\http\client.py", line 465, in read
s = self.fp.read(amt)
File "C:\Users\reece\AppData\Local\Programs\Python\Python310\lib\socket.py", line 705, in readinto
return self._sock.recv_into(b)
File "C:\Users\reece\AppData\Local\Programs\Python\Python310\lib\ssl.py", line 1274, in recv_into
return self.read(nbytes, buffer)
File "C:\Users\reece\AppData\Local\Programs\Python\Python310\lib\ssl.py", line 1130, in read
return self._sslobj.read(len, buffer)
TimeoutError: The read operation timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Ai\venv\lib\site-packages\pip_internal\cli\base_command.py", line 167, in exc_logging_wrapper
status = run_func(*args)
File "C:\Ai\venv\lib\site-packages\pip_internal\cli\req_command.py", line 247, in wrapper
return func(self, options, args)
File "C:\Ai\venv\lib\site-packages\pip_internal\commands\install.py", line 369, in run
requirement_set = resolver.resolve(
File "C:\Ai\venv\lib\site-packages\pip_internal\resolution\resolvelib\resolver.py", line 92, in resolve
result = self._result = resolver.resolve(
File "C:\Ai\venv\lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 481, in resolve
state = resolution.resolve(requirements, max_rounds=max_rounds)
File "C:\Ai\venv\lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 348, in resolve
self._add_to_criteria(self.state.criteria, r, parent=None)
File "C:\Ai\venv\lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 172, in _add_to_criteria
if not criterion.candidates:
File "C:\Ai\venv\lib\site-packages\pip_vendor\resolvelib\structs.py", line 151, in bool
return bool(self._sequence)
File "C:\Ai\venv\lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 155, in bool
return any(self)
File "C:\Ai\venv\lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 143, in
return (c for c in iterator if id(c) not in self._incompatible_ids)
File "C:\Ai\venv\lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 47, in _iter_built
candidate = func()
File "C:\Ai\venv\lib\site-packages\pip_internal\resolution\resolvelib\factory.py", line 206, in _make_candidate_from_link
self._link_candidate_cache[link] = LinkCandidate(
File "C:\Ai\venv\lib\site-packages\pip_internal\resolution\resolvelib\candidates.py", line 297, in init
super().init(
File "C:\Ai\venv\lib\site-packages\pip_internal\resolution\resolvelib\candidates.py", line 162, in init
self.dist = self._prepare()
File "C:\Ai\venv\lib\site-packages\pip_internal\resolution\resolvelib\candidates.py", line 231, in _prepare
dist = self._prepare_distribution()
File "C:\Ai\venv\lib\site-packages\pip_internal\resolution\resolvelib\candidates.py", line 308, in _prepare_distribution
return preparer.prepare_linked_requirement(self._ireq, parallel_builds=True)
File "C:\Ai\venv\lib\site-packages\pip_internal\operations\prepare.py", line 438, in prepare_linked_requirement
return self._prepare_linked_requirement(req, parallel_builds)
File "C:\Ai\venv\lib\site-packages\pip_internal\operations\prepare.py", line 483, in _prepare_linked_requirement
local_file = unpack_url(
File "C:\Ai\venv\lib\site-packages\pip_internal\operations\prepare.py", line 165, in unpack_url
file = get_http_url(
File "C:\Ai\venv\lib\site-packages\pip_internal\operations\prepare.py", line 106, in get_http_url
from_path, content_type = download(link, temp_dir.path)
File "C:\Ai\venv\lib\site-packages\pip_internal\network\download.py", line 147, in call
for chunk in chunks:
File "C:\Ai\venv\lib\site-packages\pip_internal\cli\progress_bars.py", line 53, in _rich_progress_bar
for chunk in iterable:
File "C:\Ai\venv\lib\site-packages\pip_internal\network\utils.py", line 63, in response_chunks
for chunk in response.raw.stream(
File "C:\Ai\venv\lib\site-packages\pip_vendor\urllib3\response.py", line 573, in stream
data = self.read(amt=amt, decode_content=decode_content)
File "C:\Ai\venv\lib\site-packages\pip_vendor\urllib3\response.py", line 509, in read
with self._error_catcher():
File "C:\Users\reece\AppData\Local\Programs\Python\Python310\lib\contextlib.py", line 153, in exit
self.gen.throw(typ, value, traceback)
File "C:\Ai\venv\lib\site-packages\pip_vendor\urllib3\response.py", line 440, in _error_catcher
raise ReadTimeoutError(self._pool, None, "Read timed out.")
pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='download.pytorch.org', port=443): Read timed out.
[notice] A new release of pip available: 22.2.1 -> 22.3.1
[notice] To update, run: C:\Ai\venv\Scripts\python.exe -m pip install --upgrade pip
Can some one help with this error pls (RuntimeError: "log" "_vml_cpu" not implemented for 'Half')
same problem update now "get pull"
You need to provide a token or be logged in to Hugging Face with huggingface-cli login
or huggingface_hub.login
. See https://huggingface.co/settings/tokens.
The yaml file for using SD 2.1 does not save as yaml file. It saves as a text file.
HTTPError Traceback (most recent call last)
/usr/local/lib/python3.8/dist-packages/huggingface_hub/utils/_errors.py in hf_raise_for_status(response, endpoint_name)
238 try:
--> 239 response.raise_for_status()
240 except HTTPError as e:
9 frames
HTTPError: 404 Client Error: Not Found 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:
EntryNotFoundError Traceback (most recent call last)
EntryNotFoundError: 404 Client Error. (Request ID: Root=1-63c8ae65-55b53e701509fafd146cdd19)
Entry Not Found for url: https://huggingface.co/CompVis/stable-diffusion-v1-4/resolve/main/vae/diffusion_pytorch_model.bin.
During handling of the above exception, another exception occurred:
OSError Traceback (most recent call last)
/usr/local/lib/python3.8/dist-packages/diffusers/modeling_utils.py in _get_model_file(cls, pretrained_model_name_or_path, weights_name, subfolder, cache_dir, force_download, proxies, resume_download, local_files_only, use_auth_token, user_agent, revision)
627 )
628 except EntryNotFoundError:
--> 629 raise EnvironmentError(
630 f"{pretrained_model_name_or_path} does not appear to have a file named {weights_name}."
631 )
OSError: CompVis/stable-diffusion-v1-4 does not appear to have a file named diffusion_pytorch_model.bin.
"any idea what must be causing this "
Hi everybody, also dealing with RuntimeError: "log" "_vml_cpu" not implemented for 'Half'
I logged in and issued the token then went to "Files and versions" on https://huggingface.co/runwayml/stable-diffusion-v1-5 but there is nothing looking a button for accepting the license, tried a few browsers, what I am doing wrong?
Thanks!
Can someone please tell me how I can accept this license ? I managed to get the webui link to sd but this "RuntimeError: "log" "_vml_cpu" not implemented for 'Half' is occuring. I am no programmer or coder . Just a newbie
i fixed it, just msg me on telegram @aniverb for the fix :)
i am getting this error:
OSError: [WinError 1314] A required privilege is not held by the client: '..\..\blobs\78be8432e1148d0227370439dad9d9a818f08df4' -> 'C:\Users\navee\.cache\huggingface\diffusers\models--CompVis--stable-diffusion-v1-4\snapshots\2880f2ca379f41b0226444936bb7a6766a227587\.gitattributes'
where to accept the license, i am not able to figure out that. can someone help me?
I have Mac and had an issue setting up stable diffusion
finally, I did it from the terminal and I was there
but for the first time when I wanted to try and see how it generates the image I got this error:
RuntimeError: "upsample_nearest2d_channels_last" not implemented for 'Half'
Time taken: 0.74s
? I even edited the command for stable diffusion for no halftime script and updated the Python version but no luck is there any other way
Hey guys, I recently installed sd but seem to be getting the following problem: As I try and type the prompts in the text fields, these are not detected(?) by the software, the number of prompts does not change and thus I can't hit the generate button. Did you encounter this kind of problem before? I included an image to depict what the issue is. thanks in advance!