Kosinkadink / ComfyUI-VideoHelperSuite

Nodes related to video workflows
GNU General Public License v3.0
524 stars 92 forks source link

load images #88

Closed bihailantian655 closed 9 months ago

bihailantian655 commented 9 months ago

After running comfyui , Add a new image to the folder that has already been uploaded, this node will not recognize the images in the folder. ~_4UDITV7Y0SG1$(GSF 4U

GS5 UJLZF79_5}2URN~}V 1

root:Traceback (most recent call last): File "H:\ComfyUI\ComfyUI\execution.py", line 153, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) File "H:\ComfyUI\ComfyUI\execution.py", line 83, in get_output_data return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True) File "H:\ComfyUI\ComfyUI\execution.py", line 76, in map_node_over_list results.append(getattr(obj, func)(slice_dict(input_data_all, i))) File "H:\ComfyUI\ComfyUI\custom_nodes\ComfyUI-VideoHelperSuite\videohelpersuite\load_images_nodes.py", line 103, in load_images return load_images(directory, kwargs) File "H:\ComfyUI\ComfyUI\custom_nodes\ComfyUI-VideoHelperSuite\videohelpersuite\load_images_nodes.py", line 44, in load_images raise FileNotFoundError(f"No files in directory '{directory}'.") FileNotFoundError: No files in directory 'H:\ComfyUI\ComfyUI\input\a'.

bihailantian655 commented 9 months ago

VQK6)NN%9P$FAVUSDYLJZU8 Y%HU347%0SPLB2GYDALJQDS

Even if the folder is empty, you will still be able to read out the pictures,。

hope to automatically remove folders from the list if the folders is deleted

AustinMroz commented 9 months ago

I was able to identify and fix a bug that causes the first issue when image_load_cap is 0: When is_changed_load_images is called with an image_load_cap of 0, it is incorrectly applied and calculates the hash of 0 files. Thus, the hash never changes and the node itself keeps it's cached copy of images.
However, your images show you experiencing the issue even when image_load_cap is non-zero which I have not been able to reproduce. There's likely still some underlying issue.

bihailantian655 commented 9 months ago

my fault , I Placed the image in the wrong directory。

ZD%AXJ~}YY)9V)({138AFQ0