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

SD 3.5 error #27

Open
Tamila-2017 opened this issue Dec 19, 2024 · 1 comment
Open

SD 3.5 error #27

Tamila-2017 opened this issue Dec 19, 2024 · 1 comment

Comments

@Tamila-2017
Copy link

Tamila-2017 commented Dec 19, 2024

Hi,

I am executing these commands to install SD 3.5:

# Generate a cat using SD3.5 Large model (at models/sd3.5_large.safetensors) with its default settings
python3 sd3_infer.py --prompt "cute wallpaper art of a cat"

but an error immediately occurs:

.sd3.5) test@servr:~/Stable Diffusion/sd3.5$ python3 sd3_infer.py --prompt "cute wallpaper art of a cat" --model models/sd3.5_large.safetensors
Loading tokenizers...
You are using the default legacy behaviour of the <class 'transformers.models.t5.tokenization_t5.T5Tokenizer'>. This is expected, and simply means that the `legacy` (previous) behavior will be used so nothing changes for you. If you want to use the new behaviour, set `legacy=False`. This should only be set if you understand what it means, and thoroughly read the reason why this was added as explained in https://github.com/huggingface/transformers/pull/24565
Loading Google T5-v1-XXL...
Traceback (most recent call last):
  File "/home/test/Stable Diffusion/sd3.5/sd3_infer.py", line 654, in <module>
    fire.Fire(main)
  File "/home/test/Stable Diffusion/sd3.5/.sd3.5/lib/python3.11/site-packages/fire/core.py", line 135, in Fire
    component_trace = _Fire(component, args, parsed_flag_args, context, name)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/test/Stable Diffusion/sd3.5/.sd3.5/lib/python3.11/site-packages/fire/core.py", line 468, in _Fire
    component, remaining_args = _CallAndUpdateTrace(
                                ^^^^^^^^^^^^^^^^^^^^
  File "/home/test/Stable Diffusion/sd3.5/.sd3.5/lib/python3.11/site-packages/fire/core.py", line 684, in _CallAndUpdateTrace
    component = fn(*varargs, **kwargs)
                ^^^^^^^^^^^^^^^^^^^^^^
  File "/home/test/Stable Diffusion/sd3.5/.sd3.5/lib/python3.11/site-packages/torch/utils/_contextlib.py", line 116, in decorate_context
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/home/test/Stable Diffusion/sd3.5/sd3_infer.py", line 602, in main
    inferencer.load(
  File "/home/test/Stable Diffusion/sd3.5/sd3_infer.py", line 275, in load
    self.t5xxl = T5XXL(model_folder, text_encoder_device, torch.float32)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/test/Stable Diffusion/sd3.5/sd3_infer.py", line 128, in __init__
    with safe_open(
         ^^^^^^^^^^
FileNotFoundError: No such file or directory: "models/t5xxl.safetensors"
(.sd3.5) test@server:~/Stable Diffusion/sd3.5$ 
@Tamila-2017 Tamila-2017 changed the title SD 3.5 cannot be installed SD 3.5 error Dec 19, 2024
@Against-the-Wind
Copy link

Try downloading the checkpoint of the t5xxl model from huggingface into your models folder and change the file name into t5xxl.safetensors
https://huggingface.co/stabilityai/stable-diffusion-3.5-large/blob/main/text_encoders/t5xxl_fp16.safetensors

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

2 participants