Skip to content

Commit

Permalink
Merge pull request PaddlePaddle#1 from lxp521125/lxp521125-patch-1
Browse files Browse the repository at this point in the history
Update webui_stable_diffusion.py通过WebUIStableDiffusionPipeline.from_pretrained_original_ckpt加载模型因为contronet报错修复
  • Loading branch information
lxp521125 authored Aug 8, 2023
2 parents ebb3f5b + 80c4d88 commit f738274
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ppdiffusers/examples/community/webui_stable_diffusion.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,11 +378,11 @@ def __init__(
text_encoder: CLIPTextModel,
tokenizer: CLIPTokenizer,
unet: UNet2DConditionModel,
controlnet: Union[ControlNetModel, List[ControlNetModel], Tuple[
ControlNetModel], MultiControlNetModel],
scheduler: KarrasDiffusionSchedulers,
safety_checker: StableDiffusionSafetyChecker,
feature_extractor: CLIPFeatureExtractor,
controlnet: Union[ControlNetModel, List[ControlNetModel], Tuple[
ControlNetModel], MultiControlNetModel] = None,
requires_safety_checker: bool=True, ):
super().__init__()

Expand Down

0 comments on commit f738274

Please sign in to comment.