kohya_ss
kohya_ss copied to clipboard
AttributeError: 'NoneType' object has no attribute 'dtype'
#1910
I am still facing this issue while training LORA model: stabilityai/stable-diffusion-xl-refiner-1.0
trainer.train(args)
File "/home/muneeb/Desktop/projects/proptexx/lora-training/kohya_update/kohya_ss/sd-scripts/train_network.py", line 234, in train
model_version, text_encoder, vae, unet = self.load_target_model(args, weight_dtype, accelerator)
File "/home/muneeb/Desktop/projects/proptexx/lora-training/kohya_update/kohya_ss/sd-scripts/sdxl_train_network.py", line 44, in load_target_model
) = sdxl_train_util.load_target_model(args, accelerator, sdxl_model_util.MODEL_VERSION_SDXL_BASE_V1_0, weight_dtype)
File "/home/muneeb/Desktop/projects/proptexx/lora-training/kohya_update/kohya_ss/sd-scripts/library/sdxl_train_util.py", line 40, in load_target_model
) = _load_target_model(
File "/home/muneeb/Desktop/projects/proptexx/lora-training/kohya_update/kohya_ss/sd-scripts/library/sdxl_train_util.py", line 106, in _load_target_model
if text_encoder1.dtype != torch.float32:
AttributeError: 'NoneType' object has no attribute 'dtype'