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
091a0582
Commit
091a0582
authored
Apr 11, 2023
by
Patrick von Platen
Browse files
make style
parent
881a6b58
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
examples/community/composable_stable_diffusion.py
examples/community/composable_stable_diffusion.py
+3
-5
No files found.
examples/community/composable_stable_diffusion.py
View file @
091a0582
...
...
@@ -22,6 +22,8 @@ from transformers import CLIPImageProcessor, CLIPTextModel, CLIPTokenizer
from
diffusers
import
DiffusionPipeline
from
diffusers.configuration_utils
import
FrozenDict
from
diffusers.models
import
AutoencoderKL
,
UNet2DConditionModel
from
diffusers.pipelines.stable_diffusion.pipeline_stable_diffusion
import
StableDiffusionPipelineOutput
from
diffusers.pipelines.stable_diffusion.safety_checker
import
StableDiffusionSafetyChecker
from
diffusers.schedulers
import
(
DDIMScheduler
,
DPMSolverMultistepScheduler
,
...
...
@@ -30,10 +32,7 @@ from diffusers.schedulers import (
LMSDiscreteScheduler
,
PNDMScheduler
,
)
from
diffusers.utils
import
is_accelerate_available
,
deprecate
,
logging
from
diffusers.pipelines.stable_diffusion.pipeline_stable_diffusion
import
StableDiffusionPipelineOutput
from
diffusers.pipelines.stable_diffusion.safety_checker
import
StableDiffusionSafetyChecker
from
diffusers.utils
import
deprecate
,
is_accelerate_available
,
logging
logger
=
logging
.
get_logger
(
__name__
)
# pylint: disable=invalid-name
...
...
@@ -579,4 +578,3 @@ class ComposableStableDiffusionPipeline(DiffusionPipeline):
return
(
image
,
has_nsfw_concept
)
return
StableDiffusionPipelineOutput
(
images
=
image
,
nsfw_content_detected
=
has_nsfw_concept
)
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