copying a param with shape torch.Size([3072, 384]) from checkpoint, the shape in current model is torch.Size([3072, 64]).

#34
by qewqwegreter - opened

Traceback (most recent call last):
File "E:\loratrain\lora-scripts-v1.10.0\scripts\dev\flux_train_network.py", line 588, in
trainer.train(args)
File "E:\loratrain\lora-scripts-v1.10.0\scripts\dev\train_network.py", line 529, in train
model_version, text_encoder, vae, unet = self.load_target_model(args, weight_dtype, accelerator)
File "E:\loratrain\lora-scripts-v1.10.0\scripts\dev\flux_train_network.py", line 93, in load_target_model
self.is_schnell, model = flux_utils.load_flow_model(
File "E:\loratrain\lora-scripts-v1.10.0\scripts\dev\library\flux_utils.py", line 136, in load_flow_model
info = model.load_state_dict(sd, strict=False, assign=True)
File "E:\loratrain\lora-scripts-v1.10.0\python\lib\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]).

Sign up or log in to comment