WASasquatch / was-node-suite-comfyui

An extensive node suite for ComfyUI with over 210 new nodes
MIT License
1.22k stars 177 forks source link

Error with Image loading node AttributeError: 'Tensor' object has no attribute 'convert' #38

Closed BARETFabrice closed 1 year ago

BARETFabrice commented 1 year ago

Error occurs when trying to load an image, ComfyUI repository is up to date

got prompt
Traceback (most recent call last):
  File "C:\Users\BARET\Desktop\App\ComfyUI\execution.py", line 182, in execute
    executed += recursive_execute(self.server, prompt, self.outputs, x, extra_data)
  File "C:\Users\BARET\Desktop\App\ComfyUI\execution.py", line 58, in recursive_execute
    executed += recursive_execute(server, prompt, outputs, input_unique_id, extra_data)
  File "C:\Users\BARET\Desktop\App\ComfyUI\execution.py", line 58, in recursive_execute
    executed += recursive_execute(server, prompt, outputs, input_unique_id, extra_data)
  File "C:\Users\BARET\Desktop\App\ComfyUI\execution.py", line 67, in recursive_execute
    outputs[unique_id] = getattr(obj, obj.FUNCTION)(**input_data_all)
  File "C:\Users\BARET\Desktop\App\ComfyUI\custom_nodes\was-node-suite-comfyui\WAS_Node_Suite.py", line 3220, in load_image
    return (image.convert('RGB'), mask)
AttributeError: 'Tensor' object has no attribute 'convert'

I send "C:\Users\BARET\Desktop\App\ComfyUI\output\wd_156_m_cup\img7.jpg" as path

WASasquatch commented 1 year ago

Should be patched in 2ff0c04a656d1d69f8eb24d76159dfd8cbf59a04

BARETFabrice commented 1 year ago

Yes it works