Skip to content

Commit bed8ace

Browse files
make style
1 parent 4150933 commit bed8ace

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/diffusers/pipelines/pipeline_utils.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1033,10 +1033,11 @@ def from_pretrained(cls, pretrained_model_name_or_path: Optional[Union[str, os.P
10331033
# 1. Download the checkpoints and configs
10341034
# use snapshot download here to get it working from from_pretrained
10351035
if not os.path.isdir(pretrained_model_name_or_path):
1036-
if pretrained_model_name_or_path.count("/") > 1:
1037-
raise ValueError(
1038-
f"The provided pretrained_model_name_or_path \"{pretrained_model_name_or_path}\""
1039-
" is neither a valid local path nor a valid repo id. Please check the parameter.")
1036+
if pretrained_model_name_or_path.count("/") > 1:
1037+
raise ValueError(
1038+
f'The provided pretrained_model_name_or_path "{pretrained_model_name_or_path}"'
1039+
" is neither a valid local path nor a valid repo id. Please check the parameter."
1040+
)
10401041
cached_folder = cls.download(
10411042
pretrained_model_name_or_path,
10421043
cache_dir=cache_dir,

tests/pipelines/stable_diffusion_xl/test_stable_diffusion_xl_adapter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,6 @@ def test_stable_diffusion_adapter_default_case(self):
184184
)
185185
assert np.abs(image_slice.flatten() - expected_slice).max() < 5e-3
186186

187-
188187
@parameterized.expand(["full_adapter", "full_adapter_xl", "light_adapter"])
189188
def test_total_downscale_factor(self, adapter_type):
190189
"""Test that the T2IAdapter correctly reports its total_downscale_factor."""
@@ -216,6 +215,7 @@ def test_total_downscale_factor(self, adapter_type):
216215
expected_out_image_size,
217216
)
218217

218+
219219
class StableDiffusionXLMultiAdapterPipelineFastTests(
220220
StableDiffusionXLAdapterPipelineFastTests, PipelineTesterMixin, unittest.TestCase
221221
):

0 commit comments

Comments
 (0)