Closed ChrisKorz closed 9 months ago
Found 76 images. Creating a new metadata file Merging tags and captions into metadata json. 100% 76/76 [00:00<00:00, 20336.02it/s] 38/76 images have captions 38/76 images have tags Writing metadata: /content/LoRA/meta_clean.json Done! found 76 images. loading existing metadata: /content/LoRA/meta_clean.json load VAE: /content/vae/sdxl_vae.safetensors 46% 35/76 [00:06<00:07, 5.57it/s]Could not load image path / 画像を読み込めません: /content/LoRA/train_data/MACOSX/CHRISLORA/._0439b6d5f50941f7be3c5e6fd6a95919-2.jpeg, error: cannot identify image file '/content/LoRA/train_data/MACOSX/CHRISLORA/._0439b6d5f50941f7be3c5e6fd6a95919-2.jpeg' Could not load image path / 画像を読み込めません: /content/LoRA/train_data/MACOSX/CHRISLORA/._DSC04054 copie.jpeg, error: cannot identify image file '/content/LoRA/train_data/MACOSX/CHRISLORA/._DSC04054 copie.jpeg' Could not load image path / 画像を読み込めません: /content/LoRA/train_data/MACOSX/CHRISLORA/._B8F1A239-864F-44C0-93DC-05EEC31B454B.jpeg, error: cannot identify image file '/content/LoRA/train_data/MACOSX/CHRISLORA/._B8F1A239-864F-44C0-93DC-05EEC31B454B.jpeg' Could not load image path / 画像を読み込めません: /content/LoRA/train_data/MACOSX/CHRISLORA/._DSC04058.jpeg, error: cannot identify image file '/content/LoRA/train_data/MACOSX/CHRISLORA/._DSC04058.jpeg' 50% 38/76 [00:06<00:06, 5.55it/s] ╭───────────────────── Traceback (most recent call last) ──────────────────────╮ │ /content/kohya-trainer/finetune/prepare_buckets_latents.py:253 in │ │ │ │ 250 │ parser = setup_parser() │ │ 251 │ │ │ 252 │ args = parser.parse_args() │ │ ❱ 253 │ main(args) │ │ 254 │ │ │ │ /content/kohya-trainer/finetune/prepare_buckets_latents.py:117 in main │ │ │ │ 114 │ │ │ 115 │ bucket_counts = {} │ │ 116 │ for data_entry in tqdm(data, smoothing=0.0): │ │ ❱ 117 │ │ if data_entry[0] is None: │ │ 118 │ │ │ continue │ │ 119 │ │ │ │ 120 │ │ img_tensor, image_path = data_entry[0] │ ╰──────────────────────────────────────────────────────────────────────────────╯ IndexError: list index out of range
Can you please help me ?
Okay, found the problem and fixed it. My zip files created a double of all the images in a folder MACOS. Deleted it and it worked.
Found 76 images. Creating a new metadata file Merging tags and captions into metadata json. 100% 76/76 [00:00<00:00, 20336.02it/s] 38/76 images have captions 38/76 images have tags Writing metadata: /content/LoRA/meta_clean.json Done! found 76 images. loading existing metadata: /content/LoRA/meta_clean.json load VAE: /content/vae/sdxl_vae.safetensors 46% 35/76 [00:06<00:07, 5.57it/s]Could not load image path / 画像を読み込めません: /content/LoRA/train_data/MACOSX/CHRISLORA/._0439b6d5f50941f7be3c5e6fd6a95919-2.jpeg, error: cannot identify image file '/content/LoRA/train_data/MACOSX/CHRISLORA/._0439b6d5f50941f7be3c5e6fd6a95919-2.jpeg' Could not load image path / 画像を読み込めません: /content/LoRA/train_data/MACOSX/CHRISLORA/._DSC04054 copie.jpeg, error: cannot identify image file '/content/LoRA/train_data/MACOSX/CHRISLORA/._DSC04054 copie.jpeg' Could not load image path / 画像を読み込めません: /content/LoRA/train_data/MACOSX/CHRISLORA/._B8F1A239-864F-44C0-93DC-05EEC31B454B.jpeg, error: cannot identify image file '/content/LoRA/train_data/MACOSX/CHRISLORA/._B8F1A239-864F-44C0-93DC-05EEC31B454B.jpeg' Could not load image path / 画像を読み込めません: /content/LoRA/train_data/MACOSX/CHRISLORA/._DSC04058.jpeg, error: cannot identify image file '/content/LoRA/train_data/MACOSX/CHRISLORA/._DSC04058.jpeg' 50% 38/76 [00:06<00:06, 5.55it/s] ╭───────────────────── Traceback (most recent call last) ──────────────────────╮ │ /content/kohya-trainer/finetune/prepare_buckets_latents.py:253 in │
│ │
│ 250 │ parser = setup_parser() │
│ 251 │ │
│ 252 │ args = parser.parse_args() │
│ ❱ 253 │ main(args) │
│ 254 │
│ │
│ /content/kohya-trainer/finetune/prepare_buckets_latents.py:117 in main │
│ │
│ 114 │ │
│ 115 │ bucket_counts = {} │
│ 116 │ for data_entry in tqdm(data, smoothing=0.0): │
│ ❱ 117 │ │ if data_entry[0] is None: │
│ 118 │ │ │ continue │
│ 119 │ │ │
│ 120 │ │ img_tensor, image_path = data_entry[0] │
╰──────────────────────────────────────────────────────────────────────────────╯
IndexError: list index out of range
Can you please help me ?