Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
chenpangpang
diffusers
Commits
bed8acec
Commit
bed8acec
authored
Sep 25, 2023
by
Patrick von Platen
Browse files
make style
parent
41509333
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
src/diffusers/pipelines/pipeline_utils.py
src/diffusers/pipelines/pipeline_utils.py
+5
-4
tests/pipelines/stable_diffusion_xl/test_stable_diffusion_xl_adapter.py
...s/stable_diffusion_xl/test_stable_diffusion_xl_adapter.py
+1
-1
No files found.
src/diffusers/pipelines/pipeline_utils.py
View file @
bed8acec
...
...
@@ -1035,8 +1035,9 @@ class DiffusionPipeline(ConfigMixin, PushToHubMixin):
if
not
os
.
path
.
isdir
(
pretrained_model_name_or_path
):
if
pretrained_model_name_or_path
.
count
(
"/"
)
>
1
:
raise
ValueError
(
f
"The provided pretrained_model_name_or_path
\"
{
pretrained_model_name_or_path
}
\"
"
" is neither a valid local path nor a valid repo id. Please check the parameter."
)
f
'The provided pretrained_model_name_or_path "
{
pretrained_model_name_or_path
}
"'
" is neither a valid local path nor a valid repo id. Please check the parameter."
)
cached_folder
=
cls
.
download
(
pretrained_model_name_or_path
,
cache_dir
=
cache_dir
,
...
...
tests/pipelines/stable_diffusion_xl/test_stable_diffusion_xl_adapter.py
View file @
bed8acec
...
...
@@ -184,7 +184,6 @@ class StableDiffusionXLAdapterPipelineFastTests(PipelineTesterMixin, unittest.Te
)
assert
np
.
abs
(
image_slice
.
flatten
()
-
expected_slice
).
max
()
<
5e-3
@
parameterized
.
expand
([
"full_adapter"
,
"full_adapter_xl"
,
"light_adapter"
])
def
test_total_downscale_factor
(
self
,
adapter_type
):
"""Test that the T2IAdapter correctly reports its total_downscale_factor."""
...
...
@@ -216,6 +215,7 @@ class StableDiffusionXLAdapterPipelineFastTests(PipelineTesterMixin, unittest.Te
expected_out_image_size
,
)
class
StableDiffusionXLMultiAdapterPipelineFastTests
(
StableDiffusionXLAdapterPipelineFastTests
,
PipelineTesterMixin
,
unittest
.
TestCase
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment