LarryJane491 / Image-Captioning-in-ComfyUI

Custom nodes for ComfyUI that let the user load a bunch of images and save them with captions (ideal to prepare a database for LORA training)
47 stars 14 forks source link

LoRA Caption : List Index out of range #11

Open Frithy0 opened 5 months ago

Frithy0 commented 5 months ago

Hi ! When i try to use LoRA Caption Load, i have the error "List Index out of range"

image

Scorpio-mfg commented 5 months ago

same here image

Scorpio-mfg commented 5 months ago

it is working only with .png images, the above issue is resolved for me with .png images

MarkMiso commented 5 months ago

As stated here I've encountered the same error.

I dived deeper on what i think is the cause and a possible fix but the easiest way i found to make it work is placing at least two images (.png) in the folder.

Ma9hraby commented 5 months ago

As stated here I've encountered the same error.

I dived deeper on what i think is the cause and a possible fix but the easiest way i found to make it work is placing at least two images (.png) in the folder

Hello Mark,

my directory used for the LoRA Caption Load has 24 images, not one, and I still get the same issue, is there a solution? and they're all in png format

MarkMiso commented 5 months ago

Hello Mark,

my directory used for the LoRA Caption Load has 24 images, not one, and I still get the same issue, is there a solution? and they're all in png format

Hello, unfortunately i haven't encountered this issue when using more than one image

Ma9hraby commented 5 months ago

Hello Mark, my directory used for the LoRA Caption Load has 24 images, not one, and I still get the same issue, is there a solution? and they're all in png format

Hello, unfortunately i haven't encountered this issue when using more than one image

Okay just to make sure, the folder contains more than 1 image (as much as I want) and they must be in PNG format, are there any other conditions I need to follow? like for an instance, I have txt files with the same image name for each image describing the picture, is that fine?

acgc99 commented 3 months ago

Same issue here, I have to have at least two png images, jpg are ignored. If you get this error and you change folder's content, restart ComfyUI.