CoolFace
Datasetpublic

6DammK9/danbooru2024-latents-sdxl-1ktar

Danbooru 2024 SDXL VAE latents in 1k tar Dedicated dataset to align deepghs/danbooru2024-webp-4Mpixel. "4MP-Focus" for average raw image resolution. Latents are ARB with maximum size of 1024x1024 as the recommended setting in kohyas. Major reason is to make sure I can finetune with RTX 3090. VRAM usage will raise drastically after 1024. Generated from prepare_buckets_latents_v2.py, modified from prepare_buckets_latents.py. Used for kohya-ss/sd-scripts. In theory it may replace… See the full description on the dataset page: https://huggingface.co/datasets/6DammK9/danbooru2024-latents-sdxl-1ktar.

sourceHugging Facemitupdated 7mo agoView on Hugging Face
7likes530downloads
Dataset Card

Danbooru 2024 SDXL VAE latents in 1k tar #

log
> python ../sd-scripts-runtime/pack_npz.py --npz_dir="H:/danbooru2024-webp-4Mpixel/kohyas_finetune" --meta_json="H:/danbooru2024-webp-4Mpixel/meta_cap_dd.json" --tar_dir="G:/npz_latents/danbooru_sdxl"
Found entries: 8005010
Max ID in the dataset: 8360499
packing npz files: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1000/1000 [4:02:08<00:00, 14.53s/it]
Files written: 1000
Detected npz: 8005010.

Extra: 12.5M Merged dataset for both danbooru and e621 ##

  • —The keys are casted in such pattern:
py
#250225: Relative to --train_data_dir="/tmp/dataset"
FOLDER_A = "danbooru/"
FOLDER_B = "e621/"

merged = {}

def cast_a(k):
    return f"{FOLDER_A}{k}"

def cast_b(k):
    return f"{FOLDER_B}{k}"
  • —One of the best apporach is create a nested folder like /tmp/dataset/danbooru and /tmp/dataset/e621. Kohyas (torch.data.DataLoader) will support localized path.