Akegarasu / lora-scripts

LoRA & Dreambooth training scripts & GUI use kohya-ss's trainer, for diffusion model.
GNU Affero General Public License v3.0
4.58k stars 565 forks source link

FLUX.1 LORA错误:AttributeError: 'T5EncoderModel' object has no attribute 'text_model' #481

Closed VERT2022 closed 2 months ago

VERT2022 commented 2 months ago

Traceback (most recent call last): File "D:\lora-scripts\sd-scripts\flux_train_network.py", line 411, in trainer.train(args) File "D:\lora-scripts\sd-scripts\train_network.py", line 595, in train t_enc.text_model.embeddings.requiresgrad(True) ^^^^^^^^^^^^^^^^ File "D:\lora-scripts\venv\Lib\site-packages\torch\nn\modules\module.py", line 1729, in getattr raise AttributeError(f"'{type(self).name}' object has no attribute '{name}'") AttributeError: 'T5EncoderModel' object has no attribute 'text_model' 23:02:43-951362 ERROR Training failed / 训练失败