You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would really like to use it, but I have the following errors when trying to :
When using a 1.5 model I have this error (happens when it's on the Sampler step) :
And when i'm using an SDXL model or Turbo, I have this error (happens on the "loading model" step) :
Btw, I also had the problem that the module wouldn't import because of an error with diffusers, it couldn't find LCMsomething in diffusers, I fixed it by running " pip install git+https://github.com/huggingface/diffusers "
Edit : For SDXL I have my answer I guess, it seems it does not support it yet : cumulo-autumn/StreamDiffusion#86
For the 1.5 models, there may be the start of an answer here : cumulo-autumn/StreamDiffusion#62
Edit 2 : Fixed the issue with 1.5 models by modifying the image_utils.py file, just like cvv-student did in the link above :
def denormalize(images: Union[torch.Tensor, np.ndarray]) -> torch.Tensor:
"""
Denormalize an image array to [0,1].
"""
if images.dtype==torch.float16 and images.device.type=="cpu": #added
images = images.float() #added
return (images / 2 + 0.5).clamp(0, 1)
Any idea how I could make this work ?
You could say the issue is solved, but a cleaner way to solve it would probably be a commit in the streamdiffusion original github to solve it for everyone directly.
Thanks in advance.
The text was updated successfully, but these errors were encountered:
antoineprobst
changed the title
"clamp_scalar_cpu" not implemented for 'Half' for SD1.5 models, and "got an unexpected keyword argument 'text_encoder_2' for SDXL models.
"clamp_scalar_cpu" not implemented for 'Half' for SD1.5 models, and "got an unexpected keyword argument 'text_encoder_2' " for SDXL models.
Jan 3, 2024
Hello !
Thank you for making this ComfyUI module.
I would really like to use it, but I have the following errors when trying to :
When using a 1.5 model I have this error (happens when it's on the Sampler step) :
And when i'm using an SDXL model or Turbo, I have this error (happens on the "loading model" step) :
Btw, I also had the problem that the module wouldn't import because of an error with diffusers, it couldn't find LCMsomething in diffusers, I fixed it by running " pip install git+https://github.com/huggingface/diffusers "
Edit : For SDXL I have my answer I guess, it seems it does not support it yet : cumulo-autumn/StreamDiffusion#86
For the 1.5 models, there may be the start of an answer here : cumulo-autumn/StreamDiffusion#62
Edit 2 : Fixed the issue with 1.5 models by modifying the image_utils.py file, just like cvv-student did in the link above :
Any idea how I could make this work ?You could say the issue is solved, but a cleaner way to solve it would probably be a commit in the streamdiffusion original github to solve it for everyone directly.
Thanks in advance.
The text was updated successfully, but these errors were encountered: