Comfy-Org / Comfy-Org/ComfyUI

Input duplicating when loading an image from input folder

Open
#2,607 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
Python
Stars
133k
Forks
15.7k
Avg merge
1d 7h
Merged PRs (30d)
158

Description

There is currently a bug where if you're using the load image node. As expected, once you select the image, it copies the image into the input folder. however in the case your loaded image came from the input folder, this ends up duplicating the image.
This can lead to endlessly growing folders of duplicate images if one doesn't take the time to clean out their input folder from time to time.

![12](https://github.com/comfyanonymous/ComfyUI/assets/116048802/a510fdaf-6b01-485e-accd-c26f736fb5ec)
![13](https://github.com/comfyanonymous/ComfyUI/assets/116048802/6f77e488-42ed-46f3-9699-c61f239914b8)
![14](https://github.com/comfyanonymous/ComfyUI/assets/116048802/83b471f0-3f2e-41a8-8427-dcd12675aa8e)
![15](https://github.com/comfyanonymous/ComfyUI/assets/116048802/34f2ec14-2203-4b2f-a7df-ab2243296742)

A solution for this issue would be to set up the load image node with a bool check to verify whether the loaded image came from the input folder from within ComfyUI.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.