fast-stable-diffusion icon indicating copy to clipboard operation
fast-stable-diffusion copied to clipboard

Dreambooth: Where to upload captions?

Open alinasama opened this issue 2 years ago • 8 comments

Hi, I find it is too slow to manully input the caption for every pictures, is there anywhere I could upload my .txt caption files so I don't have to input them mannully?

alinasama avatar Jan 16 '23 06:01 alinasama

If you have them already captioned and named the same as the corresponding image file you can upload them to your session directly through your gdrive into a folder called captions

I believe the name should also be token-(1).txt and not token (1).txt to preserve the space between the file number and the actual token so that the number doesn't get recognised as part of the token.

fast-dreambooth/Sessions/yoursession/captions/putcaptionshere

Excalibro1 avatar Jan 16 '23 07:01 Excalibro1

upload the captions with the instance images in the instance images cell, make sure all the images have the same extension and each caption txt file holds the same name as the corresponding image. "itrtufnd (1).png" ---> "itrtufnd (1).txt"

TheLastBen avatar Jan 16 '23 09:01 TheLastBen

My bad didn't even know that was a thing! Always wondered why it said upload them here in the captions explanation really good to know tho thanks.

Excalibro1 avatar Jan 16 '23 09:01 Excalibro1

I'll add clear instructions in the instance_images cell

TheLastBen avatar Jan 16 '23 11:01 TheLastBen

thanks for make it clear!

alinasama avatar Jan 18 '23 05:01 alinasama

After I upload the caption with instance image, it has the following error:| ███████▌ | 22/44 Uploaded

OSError Traceback (most recent call last) /usr/lib/python3.8/shutil.py in move(src, dst, copy_function) 790 try: --> 791 os.rename(src, real_dst) 792 except OSError:

OSError: [Errno 18] Invalid cross-device link: 'pfhxlx (1).txt' -> '/content/gdrive/MyDrive/Fast-Dreambooth/Sessions/Heipeifeng/instance_images/pfhxlx (1).txt'

During handling of the above exception, another exception occurred:

FileNotFoundError Traceback (most recent call last) 3 frames /usr/lib/python3.8/shutil.py in copyfile(src, dst, follow_symlinks) 262 os.symlink(os.readlink(src), dst) 263 else: --> 264 with open(src, 'rb') as fsrc, open(dst, 'wb') as fdst: 265 # macOS 266 if _HAS_FCOPYFILE:

FileNotFoundError: [Errno 2] No such file or directory: 'pfhxlx (1).txt'

alinasama avatar Jan 18 '23 05:01 alinasama

does the error persist ?

TheLastBen avatar Jan 18 '23 09:01 TheLastBen

I'm having the same error.

domef avatar Feb 11 '23 18:02 domef