kohya-ss / sd-scripts

Apache License 2.0
4.88k stars 815 forks source link

Warning on training without tags #487

Open TingTingin opened 1 year ago

TingTingin commented 1 year ago

If your training without tags there should be a notification I was having issues training with --caption_extension "txt"

only to realize that I needed a "." in the extension so --caption_extension ".txt"

The training still went through ignoring tags without any notification that it couldn't find any tag files this took me days to sort out as loras can take a while to train and i was trying to figure out why all my loras suddenly sucked I know that tagless training was added in an update but a warning would go a long way in preventing errors especially if the person explicitly passed --caption_extension

kohya-ss commented 1 year ago

I think it would be appropriate to make an error if none of the files exist when an extension is explicitly specified. However, the difficulty is that the --caption_extension option has a value by default.

It may be a good idea to warn again immediately after the message to start training.

gitfvp commented 1 year ago

"You saved me. This problem has been bothering me for a day. I tried and failed, reinstalled, but still couldn't solve the problem of LoRA without tags. Your method perfectly solved this problem. Thank you so much!!!"---Translated via chatgpt

MalloMalin commented 11 months ago

If your training without tags there should be a notification I was having issues training with --caption_extension "txt"

only to realize that I needed a "." in the extension so --caption_extension ".txt"

The training still went through ignoring tags without any notification that it couldn't find any tag files this took me days to sort out as loras can take a while to train and i was trying to figure out why all my loras suddenly sucked I know that tagless training was added in an update but a warning would go a long way in preventing errors especially if the person explicitly passed --caption_extension

What do you mean? Where do you put that . in the extension?

TingTingin commented 11 months ago

You don't need to do that anymore it's automatically added if not there now