Kosinkadink / ComfyUI-Advanced-ControlNet

ControlNet scheduling and masking nodes with sliding context support
GNU General Public License v3.0
622 stars 60 forks source link

Error occurred when executing LoadImagesFromDirectory #107

Closed IGZIHE closed 6 months ago

IGZIHE commented 6 months ago

Hello, when I use the "Load Images " node, it cannot load my image and reports an error: Path not found. I am very confused. I hope you can help me solve this problem. Thank you very much. My path: "F:\comfyui\image\to.jpg"; 1 2

Kosinkadink commented 6 months ago

As the node name states, this Load Images node is deprecated and no further development will happen on it (it has been deprecated for over 6 months now). Use VideoHelperSuite's Load Images (Path) instead.

IGZIHE commented 6 months ago

I'm very sorry that I ignored this prompt. Can you tell me where the VideoHelperSuite node is?

Kosinkadink commented 6 months ago

Also, the deprecated node still works - however it is intended to load images from a directory, not a single file. You provided a single file instead of a folder, so that's why it didn't work.

VideoHelperSuite is a node pack, you can get it from the comfyui manager.

IGZIHE commented 6 months ago

Ok thank you very much, but I have a question, as you said, although it has been deprecated but you can load the folder, then how should I write the folder path?

Kosinkadink commented 6 months ago

Just remove the file name from the end, so remove the "to.jpg"

IGZIHE commented 6 months ago

Thank you very much for your help, but it prompts: cannot identify image file 'F:\comfyui\image\1.mp4' Are there any format requirements for videos, including the VideoHelperSuite node you developed?

Kosinkadink commented 6 months ago

I think you are misunderstanding how the node works. You are supposed to provide a path to a folder, not a file.

IGZIHE commented 6 months ago

Here's the thing, I provided a folder path, but the prompt it gave me was: cannot identify image file 'F:\comfyui\image\1.mp4' Show you my screenshot: 3 As shown in the picture, I provided a folder path instead of a specific file, but it prompted an error: cannot identify image file 'F:\comfyui\image\1.mp4', which should not be able to parse me. video?

Kosinkadink commented 6 months ago

The deprecated node likely requires that only image files are in the folder. The VideoHelperSuite version might be able to automatically ignore non-image files.

IGZIHE commented 6 months ago

Okay, thank you very much for your help. As you said, VideoHelperSuite node is very useful!