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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The reason will be displayed to describe this comment to others. Learn more.
not working on RX580 Win11 the preview is still broken:
Error occurred when executing KSampler (Efficient):
Cannot handle this data type: (1, 1, 3),
k_callback = lambda x: callback(x["i"], x["denoised"], x["x"], total_steps)
File "C:\Users\WarMa\OneDrive\Escritorio\ComfyUI\ComfyUI\latent_preview.py", line 94, in callback
preview_bytes = previewer.decode_latent_to_preview_image(preview_format, x0)
File "C:\Users\WarMa\OneDrive\Escritorio\ComfyUI\ComfyUI\latent_preview.py", line 19, in decode_latent_to_preview_image
preview_image = self.decode_latent_to_preview(x0)
File "C:\Users\WarMa\OneDrive\Escritorio\ComfyUI\ComfyUI\latent_preview.py", line 48, in decode_latent_to_preview
return Image.fromarray(latents_ubyte.numpy())
File "C:\Users\WarMa\AppData\Local\Programs\Python\Python310\lib\site-packages\PIL\Image.py", line 3092, in fromarray
raise TypeError(msg) from e
The reason will be displayed to describe this comment to others. Learn more.
Can also confirm previews just don't work on DirectML. Though being more specific it starts from this change. 4ae1515 Can confirm previews still worked on DirectML with 0bdc2b1 and earlier.
The reason will be displayed to describe this comment to others. Learn more.
Wanted to add that reverting these lines in latent_preview.py make previews functional again on DirectML. Just for anyone that wants to be on the latest commit while not sacrificing previews for the time being. (I know this probably helps not even a double digit number of people but just putting it out there.)
bf3e334
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not working on RX580 Win11 the preview is still broken:
Error occurred when executing KSampler (Efficient):
Cannot handle this data type: (1, 1, 3),
k_callback = lambda x: callback(x["i"], x["denoised"], x["x"], total_steps)
File "C:\Users\WarMa\OneDrive\Escritorio\ComfyUI\ComfyUI\latent_preview.py", line 94, in callback
preview_bytes = previewer.decode_latent_to_preview_image(preview_format, x0)
File "C:\Users\WarMa\OneDrive\Escritorio\ComfyUI\ComfyUI\latent_preview.py", line 19, in decode_latent_to_preview_image
preview_image = self.decode_latent_to_preview(x0)
File "C:\Users\WarMa\OneDrive\Escritorio\ComfyUI\ComfyUI\latent_preview.py", line 48, in decode_latent_to_preview
return Image.fromarray(latents_ubyte.numpy())
File "C:\Users\WarMa\AppData\Local\Programs\Python\Python310\lib\site-packages\PIL\Image.py", line 3092, in fromarray
raise TypeError(msg) from e
bf3e334
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can also confirm previews just don't work on DirectML. Though being more specific it starts from this change. 4ae1515 Can confirm previews still worked on DirectML with 0bdc2b1 and earlier.
bf3e334
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wanted to add that reverting these lines in
latent_preview.py
make previews functional again on DirectML. Just for anyone that wants to be on the latest commit while not sacrificing previews for the time being. (I know this probably helps not even a double digit number of people but just putting it out there.)