DiT-Extrapolation icon indicating copy to clipboard operation
DiT-Extrapolation copied to clipboard

OSError: Error no file named model_index.json

Open MehmetcanTozlu opened this issue 1 year ago • 4 comments

parser.add_argument('--model_id', type=str, help='huggingface path for models', default="/home/wrusr/genai_workspace/hunyuan_env/workspace/pretrained/Hunyuan-RIFLEx-diffusers")

run command:

python /home/wrusr/genai_workspace/hunyuan_env/workspace/RIFLEx/hunyuanvideo.py --finetune

Error:

OSError: Error no file named model_index.json found in directory /home/wrusr/genai_workspace/hunyuan_env/workspace/pretrained/Hunyuan-RIFLEx-diffusers.

How can I solve it?

MehmetcanTozlu avatar Mar 17 '25 09:03 MehmetcanTozlu

Hi @MehmetcanTozlu ,thank you for your attention to our work! What version of diffusers are you using? And have you tried not downloading the model locally, but instead directly using the code we provided?

zhuhz22 avatar Mar 17 '25 13:03 zhuhz22

Thank you for your work.

My diffusers version 0.33.0.dev0. I'm using HunyuanVideo-RIFLEx and model at my local. My gpu A6000 Ada Gen. but when I use normal Hunyuan it gives out of memory error.

MehmetcanTozlu avatar Mar 18 '25 08:03 MehmetcanTozlu

I can't reproduce this issue in my local environment. May you try installing the environment using the requirements.txt we provided (e.g., diffusers==0.32.2) and check if the model you downloaded locally is intact?

zhuhz22 avatar Mar 18 '25 10:03 zhuhz22

Sorry, I wrote late.

I upgraded diffusers version. This pip list:

accelerate 1.5.1 annotated-types 0.7.0 anyio 4.9.0 bitsandbytes 0.45.3 certifi 2025.1.31 charset-normalizer 3.4.1 decorator 5.2.1 diffusers 0.32.2 distro 1.9.0 exceptiongroup 1.2.2 filelock 3.18.0 fsspec 2025.3.0 ftfy 6.3.1 h11 0.14.0 httpcore 1.0.7 httpx 0.28.1 huggingface-hub 0.29.0 idna 3.10 imageio 2.37.0 imageio-ffmpeg 0.6.0 importlib_metadata 8.6.1 Jinja2 3.1.6 jiter 0.9.0 MarkupSafe 3.0.2 moviepy 2.1.2 mpmath 1.3.0 networkx 3.4.2 numpy 1.26.0 nvidia-cublas-cu12 12.4.5.8 nvidia-cuda-cupti-cu12 12.4.127 nvidia-cuda-nvrtc-cu12 12.4.127 nvidia-cuda-runtime-cu12 12.4.127 nvidia-cudnn-cu12 9.1.0.70 nvidia-cufft-cu12 11.2.1.3 nvidia-curand-cu12 10.3.5.147 nvidia-cusolver-cu12 11.6.1.9 nvidia-cusparse-cu12 12.3.1.170 nvidia-cusparselt-cu12 0.6.2 nvidia-nccl-cu12 2.21.5 nvidia-nvjitlink-cu12 12.4.127 nvidia-nvtx-cu12 12.4.127 openai 1.66.3 opencv-python 4.10.0.84 packaging 24.2 peft 0.14.0 pillow 10.4.0 pip 22.0.2 proglog 0.1.10 psutil 7.0.0 pydantic 2.10.6 pydantic_core 2.27.2 python-dotenv 1.0.1 PyYAML 6.0.2 regex 2024.11.6 requests 2.32.3 safetensors 0.5.3 scikit-video 1.1.11 scipy 1.15.2 sentencepiece 0.2.0 setuptools 59.6.0 sniffio 1.3.1 sympy 1.13.1 tokenizers 0.21.1 torch 2.6.0 torchvision 0.21.0 tqdm 4.67.1 transformers 4.48.0 triton 3.2.0 typing_extensions 4.12.2 urllib3 2.3.0 wcwidth 0.2.13 zipp 3.21.0

but I'm having same problem:

OSError: Error no file named model_index.json found in directory /home/wrusr/genai_workspace/hunyuan_env/workspace/pretrained/Hunyuan-RIFLEx-diffusers.

MehmetcanTozlu avatar Mar 25 '25 13:03 MehmetcanTozlu