Skip to content

minimax Ref2V 训练报错问题 #1790

Open

Description

@Doncic7

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时候出现了报错,请问下,这个问题目前有解决吗

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions