dimtoneff / ComfyUI-PixelArt-Detector

Generate, downscale, change palletes and restore pixel art images with SDXL.
MIT License
174 stars 10 forks source link

Error occurred when executing PixelArtDetectorSave #9

Closed woldioo closed 10 months ago

woldioo commented 10 months ago

What I have done was just loading the workflow presets(workflow.json, workflow_webp.json and this one)

and got this error

Error occurred when executing PixelArtDetectorSave:

cannot convert float NaN to integer

File "C:\Users\wordi\문서\ComfyUI_windows_portable\ComfyUI\execution.py", line 152, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
File "C:\Users\wordi\문서\ComfyUI_windows_portable\ComfyUI\execution.py", line 82, in get_output_data
return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
File "C:\Users\wordi\문서\ComfyUI_windows_portable\ComfyUI\execution.py", line 75, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
File "C:\Users\wordi\문서\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-PixelArt-Detector\PixelArtDetector.py", line 383, in process
downscale = pixel_detect(pilImage)
File "C:\Users\wordi\문서\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-PixelArt-Detector\pixelUtils.py", line 235, in pixel_detect
round(image.width/np.median(hspacing)),
woldioo commented 10 months ago

solve by using this vae