2 frames
/usr/local/lib/python3.10/dist-packages/diffusers/loaders/lora.py in load_lora_weights(self, pretrained_model_name_or_path_or_dict, adapter_name, **kwargs)
1212 """
1213 if not USE_PEFT_BACKEND:
-> 1214 raise ValueError("PEFT backend is required for this method.")
1215
1216 # We could have accessed the unet config from lora_state_dict() too. We pass
ValueError: PEFT backend is required for this method.
Loading PhotoMaker components [1] id_encoder from [/root/.cache/huggingface/hub/models--TencentARC--PhotoMaker/snapshots/d7ec3fc17290263135825194aeb3bc456da67cc5]... Loading PhotoMaker components [2] lora_weights from [/root/.cache/huggingface/hub/models--TencentARC--PhotoMaker/snapshots/d7ec3fc17290263135825194aeb3bc456da67cc5]
ValueError Traceback (most recent call last) in <cell line: 12>()
10 ).to(device="cuda")
11
---> 12 pipe.load_photomaker_adapter(
13 os.path.dirname(photomaker_ckpt),
14 subfolder="",
2 frames /usr/local/lib/python3.10/dist-packages/diffusers/loaders/lora.py in load_lora_weights(self, pretrained_model_name_or_path_or_dict, adapter_name, **kwargs) 1212 """ 1213 if not USE_PEFT_BACKEND: -> 1214 raise ValueError("PEFT backend is required for this method.") 1215 1216 # We could have accessed the unet config from
lora_state_dict()
too. We passValueError: PEFT backend is required for this method.