Please update dgx_requirements.txt
It will work simply by applying the differences from requirements.txt (torchcodec is not needed).
In the meantime, you need only modify dgx_requirements.txt to use the later diffusers package and it will update properly.
I understand, but new (or near new) users won't understand. I think it would be better to fix it.
I agree completely.
So to fix this error
ImportErrorImportError: : Diffusers is out of date. Update diffusers to the latest version by doing pip uninstall diffusers and then pip install -r requirements.txtDiffusers is out of date. Update diffusers to the latest version by doing pip uninstall diffusers and then pip install -r requirements.txt
Do the following:
pico requirements.txt
remove torchcodec
pip3 install -r requirements.txt
it will run normally after that.
Change the diffusers line in dgx_requirements.txt to the line from requirements.txt and run pip install -r dgx_requirements.txt and you should be good to go.
none of this worked for me. Would it work if I did a fresh install or do I need to wait for ostris to correct this if I don't want to modify anything?
same issue here. none of the fixes have worked for me.
Same not working for me
I The above does work. I figured it out and It may be obvious to some (but not to others like me) You have to run the venv commands before running the commands above. First copy this line in your requirements.txt file (git+https://github.com/huggingface/diffusers) There will be an @and other numbers after the /diffusers copy that entire line and paste it in the dgx_requirements.txt file in the exact same line. Paste over whats there.
Then run the following commands CMD inside your toolkit folder and then cd ai-toolkit python -m venv venv .\venv\Scripts\activate pip install -r requirements.txt
Hope this helps someone.
This should be resolved in the latest version. If not, please let me know.
Im getting this issue again after doing an update.
@shyt47 Can you be more specific?
File "C:\Ai\ai-toolkit_origin\ai-toolkit\extensions_built_in\diffusion_models\ltx2_init_.py", line 1, in
(venv) C:\Ai\ai-toolkit_origin\ai-toolkit>pip show diffusers Name: diffusers Version: 0.38.0.dev0 Summary: State-of-the-art diffusion in PyTorch and JAX. Home-page: https://github.com/huggingface/diffusers Author: The Hugging Face team (past and future) with the help of all our contributors (https://github.com/huggingface/diffusers/graphs/contributors) Author-email: [email protected] License: Apache 2.0 License Location: C:\Ai\ai-toolkit\venv\Lib\site-packages Requires: filelock, httpx, huggingface-hub, importlib_metadata, numpy, Pillow, regex, requests, safetensors Required-by: lycoris_lora
(venv) C:\Ai\ai-toolkit_origin\ai-toolkit>pip show torch Name: torch Version: 2.7.0+cu128 Summary: Tensors and Dynamic neural networks in Python with strong GPU acceleration Home-page: https://pytorch.org/ Author: PyTorch Team Author-email: [email protected] License: BSD-3-Clause Location: C:\Ai\ai-toolkit\venv\Lib\site-packages Requires: filelock, fsspec, jinja2, networkx, sympy, typing-extensions Required-by: accelerate, bitsandbytes, clean-fid, clip-anytorch, controlnet_aux, dctorch, easy_dwpose, invisible-watermark, k-diffusion, kornia, lpips, lycoris_lora, open_clip_torch, optimum-quanto, peft, pytorch-fid, pytorch-wavelets, timm, torchaudio, torchdiffeq, torchsde, torchvision
so the fix is - you need to install venv with python 3.12 . other versions dont work
The torchcodec still can't install on the DGX machine.