Closed nistvan86 closed 1 year ago
It looks like the issue was that clipseg didn't accept rgba data types. I've uploaded a new ComfyI2I.py to the repo that should fix the issue for you. Please let me know if it works out.
Sorry for the late reply, I've just got time. Thanks for the changes, although now it crashes with a different error.
I've tried to run my existing workflow where every Mask Ops node's image input is the original txt2img VAE Decoded image, this was working with the previous version. Now this crashes with the following error.
I've tried updating the dependencies with the install.bat inside ComfyUI\custom_nodes\ComfyI2I\ but it didn't solve the issue. If I revert back to the 6e6f1878f7b98a566f8f0f1f19d63331688f53de commit it's working again.
Error occurred when executing Mask Ops:
'Image' object has no attribute 'cpu'
File "e:\aistuff\ComfyUI_windows_portable\ComfyUI\execution.py", line 151, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
File "e:\aistuff\ComfyUI_windows_portable\ComfyUI\execution.py", line 81, in get_output_data
return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
File "e:\aistuff\ComfyUI_windows_portable\ComfyUI\execution.py", line 74, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
File "E:\aistuff\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyI2I\ComfyI2I.py", line 660, in Mask_Ops
image = tensor2pil(image)
File "E:\aistuff\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyI2I\ComfyI2I.py", line 191, in tensor2pil
return Image.fromarray(np.clip(255. * image.cpu().numpy().squeeze(), 0, 255).astype(np.uint8))
Thank you for your patience. I missed a line. It should be fixed now. Hopefully :). Check the new update and let me know how it goes.
Thanks, it's working correctly now! :)
You're welcome!
I'm trying to chain the "Final output" of the "Combine and Paste" into another "Mask Ops" node to refine different part of the image. I'm getting the following error. It doesn't seem to matter if I'm adding any image conversion node (like sharpening) in between. Am I not supposed to do this and always create masks on the original image?