devilismyfriend / StableTuner

Finetuning SD in style.
GNU Affero General Public License v3.0
666 stars 51 forks source link

Support for one blank caption file #114

Open tkgix opened 1 year ago

tkgix commented 1 year ago

Thank you for your hard work.

Could you please allow a caption file containing only one space to be recognized? Currently, the exception is caused by the code below.

identifier = f.readline().rstrip() f.close() if len(identifier) < 1: raise ValueError(f" *** Could not find valid text in: {txt_file_path}")