Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

minimax Ref2V 训练报错问题

Đang mở
#1,790 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
48/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
machine-learning

Hướng nghiên cứu

Start with examples/minimax_h3/model_training/train.py and trace the Adapter training setup into diffsynth/diffusion/training_module.py, diffsynth/diffusion/base_pipeline.py, and diffsynth/utils/lora/general.py, where the reported tensor shape mismatch occurs during LoRA fusion. Reproduce the Ref2V training error and inspect the involved model and adapter weight shapes; done when Adapter training proceeds past LoRA fusion without the size mismatch.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

File "/mnt/workspace/yangxin/yangxin_file/DiffSynth-Studio/examples/minimax_h3/model_training/train.py", line 62, in init
[dlcl7pmobknpjy8d-master-0] [rank6]: self.switch_pipe_to_training_mode(
[dlcl7pmobknpjy8d-master-0] [rank6]: File "/mnt/workspace/yangxin/yangxin_file/DiffSynth-Studio/diffsynth/diffusion/training_module.py", line 282, in switch_pipe_to_training_mode
[dlcl7pmobknpjy8d-master-0] [rank6]: pipe.load_lora(getattr(pipe, preset_lora_model), preset_lora_path)
[dlcl7pmobknpjy8d-master-0] [rank6]: File "/mnt/workspace/yangxin/yangxin_file/DiffSynth-Studio/diffsynth/diffusion/base_pipeline.py", line 288, in load_lora
[dlcl7pmobknpjy8d-master-0] [rank6]: lora_loader.fuse_lora_to_base_model(module, lora, alpha=alpha)
[dlcl7pmobknpjy8d-master-0] [rank6]: File "/mnt/workspace/yangxin/yangxin_file/DiffSynth-Studio/diffsynth/utils/lora/general.py", line 67, in fuse_lora_to_base_model
[dlcl7pmobknpjy8d-master-0] [rank6]: state_dict_base["weight"] = state_dict_base["weight"].to(device=self.device, dtype=self.torch_dtype) + weight_lora
[dlcl7pmobknpjy8d-master-0] [rank6]: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
[dlcl7pmobknpjy8d-master-0] [rank6]: RuntimeError: The size of tensor a (0) must match the size of tensor b (5376) at non-singleton dimension 1

在使用Adapter训练Ref2V时候出现了报错,请问下,这个问题目前有解决吗

Ngôn ngữ chính
Python
Star
13.3k
Fork
1.3k
Merge trung bình
1 ngày 14 giờ
Pull request đã merge (30 ngày)
43

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của modelscope/DiffSynth-Studio

Tất cả issue của modelscope/DiffSynth-Studio

Issue tương tự

Thêm issue về Python

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.