You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://hf-mirror.com/Tencent-Hunyuan/HunyuanDiT-v1.2/resolve/main/model_index.json
#220
Open
fengzifrank opened this issue
Dec 20, 2024
· 0 comments
/work/ls/envs/HunyuanDiT/lib/python3.8/site-packages/diffusers/models/transformers/transformer_2d.py:34: FutureWarning: Transformer2DModelOutput is deprecated and will be removed in version 1.0.0. Importing Transformer2DModelOutput from diffusers.models.transformer_2d is deprecated and this will be removed in a future version. Please use from diffusers.models.modeling_outputs import Transformer2DModelOutput, instead.
deprecate("Transformer2DModelOutput", "1.0.0", deprecation_message)
Traceback (most recent call last):
File "/work/ls/envs/HunyuanDiT/lib/python3.8/site-packages/huggingface_hub/utils/_http.py", line 406, in hf_raise_for_status
response.raise_for_status()
File "/work/ls/envs/HunyuanDiT/lib/python3.8/site-packages/requests/models.py", line 1024, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://hf-mirror.com/Tencent-Hunyuan/HunyuanDiT-v1.2/resolve/main/model_index.json
The above exception was the direct cause of the following exception:
import torch
from diffusers import HunyuanDiTPipeline
我按要求下载好了模型 HF_ENDPOINT=https://hf-mirror.com huggingface-cli download Tencent-Hunyuan/HunyuanDiT-v1.2 --local-dir ./ckpts 但是运行下面代码 还是报错找不到模型位置 想请教下如何修改哪个配置文件才能找到模型
/work/HunyuanDiT-main/ckpts/ 是我模型存放的位置
/work/ls/envs/HunyuanDiT/lib/python3.8/site-packages/diffusers/models/transformers/transformer_2d.py:34: FutureWarning:
Transformer2DModelOutput
is deprecated and will be removed in version 1.0.0. ImportingTransformer2DModelOutput
fromdiffusers.models.transformer_2d
is deprecated and this will be removed in a future version. Please usefrom diffusers.models.modeling_outputs import Transformer2DModelOutput
, instead.deprecate("Transformer2DModelOutput", "1.0.0", deprecation_message)
Traceback (most recent call last):
File "/work/ls/envs/HunyuanDiT/lib/python3.8/site-packages/huggingface_hub/utils/_http.py", line 406, in hf_raise_for_status
response.raise_for_status()
File "/work/ls/envs/HunyuanDiT/lib/python3.8/site-packages/requests/models.py", line 1024, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://hf-mirror.com/Tencent-Hunyuan/HunyuanDiT-v1.2/resolve/main/model_index.json
The above exception was the direct cause of the following exception:
import torch
from diffusers import HunyuanDiTPipeline
pipe = HunyuanDiTPipeline.from_pretrained("Tencent-Hunyuan/HunyuanDiT-v1.2", torch_dtype=torch.float16)
pipe.to("cuda")
You may also use English prompt as HunyuanDiT supports both English and Chinese
prompt = "An astronaut riding a horse"
prompt = "一个宇航员在骑马"
image = pipe(prompt).images[0]
The text was updated successfully, but these errors were encountered: