Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
renzhc
diffusers_dcu
Commits
9c6e9684
Unverified
Commit
9c6e9684
authored
Jun 13, 2024
by
Tolga Cangöz
Committed by
GitHub
Jun 13, 2024
Browse files
Refactor `StableDiffusion3Img2ImgPipeline` to remove redundant code (#8533)
parent
2e4841ef
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
2 deletions
+0
-2
src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py
...stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py
+0
-2
No files found.
src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py
View file @
9c6e9684
...
@@ -591,8 +591,6 @@ class StableDiffusion3Img2ImgPipeline(DiffusionPipeline):
...
@@ -591,8 +591,6 @@ class StableDiffusion3Img2ImgPipeline(DiffusionPipeline):
)
)
image
=
image
.
to
(
device
=
device
,
dtype
=
dtype
)
image
=
image
.
to
(
device
=
device
,
dtype
=
dtype
)
if
image
.
shape
[
1
]
==
self
.
vae
.
config
.
latent_channels
:
init_latents
=
image
batch_size
=
batch_size
*
num_images_per_prompt
batch_size
=
batch_size
*
num_images_per_prompt
if
image
.
shape
[
1
]
==
self
.
vae
.
config
.
latent_channels
:
if
image
.
shape
[
1
]
==
self
.
vae
.
config
.
latent_channels
:
...
...
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