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
OpenDAS
diffusers
Commits
7a396913
Unverified
Commit
7a396913
authored
Jun 02, 2023
by
Will Berman
Committed by
GitHub
Jun 02, 2023
Browse files
linting fix (#3653)
parent
5911a3aa
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
examples/community/mixture_tiling.py
examples/community/mixture_tiling.py
+3
-5
No files found.
examples/community/mixture_tiling.py
View file @
7a396913
...
@@ -218,11 +218,9 @@ class StableDiffusionTilingPipeline(DiffusionPipeline, StableDiffusionExtrasMixi
...
@@ -218,11 +218,9 @@ class StableDiffusionTilingPipeline(DiffusionPipeline, StableDiffusionExtrasMixi
raise
ValueError
(
f
"`seed_tiles_mode` has to be a string or list of lists but is
{
type
(
prompt
)
}
"
)
raise
ValueError
(
f
"`seed_tiles_mode` has to be a string or list of lists but is
{
type
(
prompt
)
}
"
)
if
isinstance
(
seed_tiles_mode
,
str
):
if
isinstance
(
seed_tiles_mode
,
str
):
seed_tiles_mode
=
[[
seed_tiles_mode
for
_
in
range
(
len
(
row
))]
for
row
in
prompt
]
seed_tiles_mode
=
[[
seed_tiles_mode
for
_
in
range
(
len
(
row
))]
for
row
in
prompt
]
if
any
(
mode
not
in
(
modes
:
=
[
mode
.
value
for
mode
in
self
.
SeedTilesMode
])
modes
=
[
mode
.
value
for
mode
in
self
.
SeedTilesMode
]
for
row
in
seed_tiles_mode
if
any
(
mode
not
in
modes
for
row
in
seed_tiles_mode
for
mode
in
row
):
for
mode
in
row
):
raise
ValueError
(
f
"Seed tiles mode must be one of
{
modes
}
"
)
raise
ValueError
(
f
"Seed tiles mode must be one of
{
modes
}
"
)
if
seed_reroll_regions
is
None
:
if
seed_reroll_regions
is
None
:
seed_reroll_regions
=
[]
seed_reroll_regions
=
[]
...
...
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