PhotoMaker icon indicating copy to clipboard operation
PhotoMaker copied to clipboard

ValueError: PEFT backend is required for this method

Open mak448a opened this issue 1 year ago • 2 comments

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 pass

ValueError: PEFT backend is required for this method.

mak448a avatar Jul 04 '24 10:07 mak448a

Please use the latest environment.

Paper99 avatar Jul 24 '24 12:07 Paper99

image

wolaoer avatar Dec 26 '24 04:12 wolaoer