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
OpenDAS
diffusers
Commits
8bf5e599
Unverified
Commit
8bf5e599
authored
Dec 12, 2022
by
Patrick von Platen
Committed by
GitHub
Dec 12, 2022
Browse files
Deprecate init image correctly (#1649)
Deprecate init image correctl
parent
4645e283
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
9 additions
and
9 deletions
+9
-9
src/diffusers/pipelines/alt_diffusion/pipeline_alt_diffusion_img2img.py
...pipelines/alt_diffusion/pipeline_alt_diffusion_img2img.py
+1
-1
src/diffusers/pipelines/latent_diffusion/pipeline_latent_diffusion_superresolution.py
...nt_diffusion/pipeline_latent_diffusion_superresolution.py
+1
-1
src/diffusers/pipelines/stable_diffusion/pipeline_cycle_diffusion.py
...rs/pipelines/stable_diffusion/pipeline_cycle_diffusion.py
+1
-1
src/diffusers/pipelines/stable_diffusion/pipeline_onnx_stable_diffusion_img2img.py
...table_diffusion/pipeline_onnx_stable_diffusion_img2img.py
+1
-1
src/diffusers/pipelines/stable_diffusion/pipeline_onnx_stable_diffusion_inpaint_legacy.py
...iffusion/pipeline_onnx_stable_diffusion_inpaint_legacy.py
+2
-2
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py
...nes/stable_diffusion/pipeline_stable_diffusion_img2img.py
+1
-1
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint_legacy.py
...ble_diffusion/pipeline_stable_diffusion_inpaint_legacy.py
+2
-2
No files found.
src/diffusers/pipelines/alt_diffusion/pipeline_alt_diffusion_img2img.py
View file @
8bf5e599
...
...
@@ -420,7 +420,7 @@ class AltDiffusionImg2ImgPipeline(DiffusionPipeline):
def
__call__
(
self
,
prompt
:
Union
[
str
,
List
[
str
]],
image
:
Union
[
torch
.
FloatTensor
,
PIL
.
Image
.
Image
],
image
:
Union
[
torch
.
FloatTensor
,
PIL
.
Image
.
Image
]
=
None
,
strength
:
float
=
0.8
,
num_inference_steps
:
Optional
[
int
]
=
50
,
guidance_scale
:
Optional
[
float
]
=
7.5
,
...
...
src/diffusers/pipelines/latent_diffusion/pipeline_latent_diffusion_superresolution.py
View file @
8bf5e599
...
...
@@ -66,7 +66,7 @@ class LDMSuperResolutionPipeline(DiffusionPipeline):
@
torch
.
no_grad
()
def
__call__
(
self
,
image
:
Union
[
torch
.
Tensor
,
PIL
.
Image
.
Image
],
image
:
Union
[
torch
.
Tensor
,
PIL
.
Image
.
Image
]
=
None
,
batch_size
:
Optional
[
int
]
=
1
,
num_inference_steps
:
Optional
[
int
]
=
100
,
eta
:
Optional
[
float
]
=
0.0
,
...
...
src/diffusers/pipelines/stable_diffusion/pipeline_cycle_diffusion.py
View file @
8bf5e599
...
...
@@ -460,7 +460,7 @@ class CycleDiffusionPipeline(DiffusionPipeline):
self
,
prompt
:
Union
[
str
,
List
[
str
]],
source_prompt
:
Union
[
str
,
List
[
str
]],
image
:
Union
[
torch
.
FloatTensor
,
PIL
.
Image
.
Image
],
image
:
Union
[
torch
.
FloatTensor
,
PIL
.
Image
.
Image
]
=
None
,
strength
:
float
=
0.8
,
num_inference_steps
:
Optional
[
int
]
=
50
,
guidance_scale
:
Optional
[
float
]
=
7.5
,
...
...
src/diffusers/pipelines/stable_diffusion/pipeline_onnx_stable_diffusion_img2img.py
View file @
8bf5e599
...
...
@@ -229,7 +229,7 @@ class OnnxStableDiffusionImg2ImgPipeline(DiffusionPipeline):
def
__call__
(
self
,
prompt
:
Union
[
str
,
List
[
str
]],
image
:
Union
[
np
.
ndarray
,
PIL
.
Image
.
Image
],
image
:
Union
[
np
.
ndarray
,
PIL
.
Image
.
Image
]
=
None
,
strength
:
float
=
0.8
,
num_inference_steps
:
Optional
[
int
]
=
50
,
guidance_scale
:
Optional
[
float
]
=
7.5
,
...
...
src/diffusers/pipelines/stable_diffusion/pipeline_onnx_stable_diffusion_inpaint_legacy.py
View file @
8bf5e599
...
...
@@ -228,8 +228,8 @@ class OnnxStableDiffusionInpaintPipelineLegacy(DiffusionPipeline):
def
__call__
(
self
,
prompt
:
Union
[
str
,
List
[
str
]],
image
:
Union
[
np
.
ndarray
,
PIL
.
Image
.
Image
],
mask_image
:
Union
[
np
.
ndarray
,
PIL
.
Image
.
Image
],
image
:
Union
[
np
.
ndarray
,
PIL
.
Image
.
Image
]
=
None
,
mask_image
:
Union
[
np
.
ndarray
,
PIL
.
Image
.
Image
]
=
None
,
strength
:
float
=
0.8
,
num_inference_steps
:
Optional
[
int
]
=
50
,
guidance_scale
:
Optional
[
float
]
=
7.5
,
...
...
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py
View file @
8bf5e599
...
...
@@ -425,7 +425,7 @@ class StableDiffusionImg2ImgPipeline(DiffusionPipeline):
def
__call__
(
self
,
prompt
:
Union
[
str
,
List
[
str
]],
image
:
Union
[
torch
.
FloatTensor
,
PIL
.
Image
.
Image
],
image
:
Union
[
torch
.
FloatTensor
,
PIL
.
Image
.
Image
]
=
None
,
strength
:
float
=
0.8
,
num_inference_steps
:
Optional
[
int
]
=
50
,
guidance_scale
:
Optional
[
float
]
=
7.5
,
...
...
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint_legacy.py
View file @
8bf5e599
...
...
@@ -423,8 +423,8 @@ class StableDiffusionInpaintPipelineLegacy(DiffusionPipeline):
def
__call__
(
self
,
prompt
:
Union
[
str
,
List
[
str
]],
image
:
Union
[
torch
.
FloatTensor
,
PIL
.
Image
.
Image
],
mask_image
:
Union
[
torch
.
FloatTensor
,
PIL
.
Image
.
Image
],
image
:
Union
[
torch
.
FloatTensor
,
PIL
.
Image
.
Image
]
=
None
,
mask_image
:
Union
[
torch
.
FloatTensor
,
PIL
.
Image
.
Image
]
=
None
,
strength
:
float
=
0.8
,
num_inference_steps
:
Optional
[
int
]
=
50
,
guidance_scale
:
Optional
[
float
]
=
7.5
,
...
...
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