man wearing a black jacket and red shirt, best quality, intricate details."

image = pipe(prompt, num_inference_steps=50).images[0]
image.save("character.png")

load_lora_weights

<
source
>
(
pretrained_model_name_or_path_or_dict: typing.Union[str, typing.Dict[str, torch.Tensor]]
**kwargs

)


Parameters 

pretrained_model_name_or_path_or_dict (str or os.PathLike or dict) —
Can be either:

A string, the model id of a pretrained model hosted in