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

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

Comments

@fengzifrank
Copy link

我按要求下载好了模型 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. 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

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]

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

1 participant