From 0a3cbf6619430935ed0a85b1bd73b4b9b8e259e4 Mon Sep 17 00:00:00 2001 From: erwannmillon Date: Fri, 11 Aug 2023 21:36:22 +0000 Subject: [PATCH] change default cnet start/end vals for nonxl controlnet pipelien --- .gitignore | 10 +++++++++- .../pipelines/controlnet/pipeline_controlnet.py | 4 ++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 45602a1f547e..a9815f231c4c 100644 --- a/.gitignore +++ b/.gitignore @@ -9,6 +9,14 @@ __pycache__/ *.so # tests and logs +**.jpg +**.jpeg +*.jpeg +**/*.png +**.png +*.png +**/*.png +**/*.jpeg tests/fixtures/cached_*_text.txt logs/ lightning_logs/ @@ -173,4 +181,4 @@ tags # ruff .ruff_cache -wandb \ No newline at end of file +wandb diff --git a/src/diffusers/pipelines/controlnet/pipeline_controlnet.py b/src/diffusers/pipelines/controlnet/pipeline_controlnet.py index c61680fe97f5..4c71a7858e31 100644 --- a/src/diffusers/pipelines/controlnet/pipeline_controlnet.py +++ b/src/diffusers/pipelines/controlnet/pipeline_controlnet.py @@ -829,8 +829,8 @@ def __call__( guess_mode: bool = False, img2img_image: Optional[Union[torch.FloatTensor, PIL.Image.Image]] = None, img2img_strength: float = 1.0, - controlnet_start: float = 1.0, - controlnet_end: float = 0.0, + controlnet_start: float = 0.0, + controlnet_end: float = 1.0, ): r""" Function invoked when calling the pipeline for generation.