How to use it with ComfyUI?

#9
by WarriorMama777 - opened

How can I use this safetensor with ComfyUI?
In the FLUX workflow that ComfyUI has released as a sample, it uses the "Load Diffusion Model Node" to load the weights for the unet for inference, and this model could not be selected.
If possible, it would be helpful if you could share the workflow.

Owner

Make sure to place it into the ComfyUI\models\unet -folder.

Updated Comfyui and tried running it in different modes , getting this:
Does torch also need to be updated ?

Dtype not understood: F8_E4M3

\safetensors\torch.py", line 310, in load_file
    result[k] = f.get_tensor(k)```
Owner

Updated Comfyui and tried running it in different modes , getting this:
Does torch also need to be updated ?

Dtype not understood: F8_E4M3

\safetensors\torch.py", line 310, in load_file
    result[k] = f.get_tensor(k)```

That kinda sounds like it... but it would mean you have very old torch version then.

Make sure to place it into the ComfyUI\models\unet -folder.

Once I placed it in the unet folder, I was able to select it and generate it successfully.
I realized I had been making mistakes by using unnecessary elements like the load checkpoint node😇
Thank you.

WarriorMama777 changed discussion status to closed

Update safetensors worked for me

cd D:\Projects\ComfyUI_windows_portable
.\python_embeded\python.exe -m pip install safetensors --upgrade

Sign up or log in to comment