Akegarasu / Akegarasu/lora-scripts

无法针对flux-fill-dev训练lora

Đang mở
#666 2 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Python
Star
6.1k
Fork
699
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

- 系统环境
Python 3.10.9
脚本版本:v1.12.0
ubuntu22.0.4

- 问题描述:
使用了flux.1-dev训练lora运行正常,但当我把模型文件更换成models/unet/flux1-fill-dev.safetensors时,报错信息如下:
```shell
Traceback (most recent call last):
File "/data/lora-scripts/./scripts/dev/flux_train_network.py", line 559, in
trainer.train(args)
File "/data/lora-scripts/scripts/dev/train_network.py", line 571, in train
model_version, text_encoder, vae, unet = self.load_target_model(args, weight_dtype, accelerator)
File "/data/lora-scripts/./scripts/dev/flux_train_network.py", line 98, in load_target_model
self.is_schnell, model = flux_utils.load_flow_model(
File "/data/lora-scripts/scripts/dev/library/flux_utils.py", line 136, in load_flow_model
info = model.load_state_dict(sd, strict=False, assign=True)
File "/data/lora-scripts/venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 2215, in load_state_dict
raise RuntimeError('Error(s) in loading state_dict for {}:\n\t{}'.format(
RuntimeError: Error(s) in loading state_dict for Flux:
size mismatch for img_in.weight: copying a param with shape torch.Size([3072, 384]) from checkpoint, the shape in current model is torch.Size([3072, 64]).
```
查询资料发现修复次错误需要创建meta.jsonl配置文件,并设置`conditioning_image_column = "conditioning_image"`,但我在GUI下并没有找到在哪里填写`meta.jsonl`的文件路径和增加`conditioning_image_column`配置的地方。
请问使用本GUI训练fill需要如何配置呢?

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.