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
3d2648d7
Unverified
Commit
3d2648d7
authored
Mar 03, 2023
by
Patrick von Platen
Committed by
GitHub
Mar 03, 2023
Browse files
[Post release] Push post release (#2546)
parent
1f4deb69
Changes
12
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
13 additions
and
16 deletions
+13
-16
examples/dreambooth/train_dreambooth.py
examples/dreambooth/train_dreambooth.py
+1
-1
examples/dreambooth/train_dreambooth_flax.py
examples/dreambooth/train_dreambooth_flax.py
+1
-1
examples/dreambooth/train_dreambooth_lora.py
examples/dreambooth/train_dreambooth_lora.py
+1
-1
examples/text_to_image/train_text_to_image.py
examples/text_to_image/train_text_to_image.py
+1
-1
examples/text_to_image/train_text_to_image_flax.py
examples/text_to_image/train_text_to_image_flax.py
+1
-1
examples/text_to_image/train_text_to_image_lora.py
examples/text_to_image/train_text_to_image_lora.py
+1
-1
examples/textual_inversion/textual_inversion.py
examples/textual_inversion/textual_inversion.py
+1
-1
examples/textual_inversion/textual_inversion_flax.py
examples/textual_inversion/textual_inversion_flax.py
+1
-1
examples/unconditional_image_generation/train_unconditional.py
...les/unconditional_image_generation/train_unconditional.py
+1
-1
setup.py
setup.py
+1
-1
src/diffusers/__init__.py
src/diffusers/__init__.py
+1
-1
src/diffusers/pipelines/repaint/pipeline_repaint.py
src/diffusers/pipelines/repaint/pipeline_repaint.py
+2
-5
No files found.
examples/dreambooth/train_dreambooth.py
View file @
3d2648d7
...
@@ -47,7 +47,7 @@ from diffusers.utils.import_utils import is_xformers_available
...
@@ -47,7 +47,7 @@ from diffusers.utils.import_utils import is_xformers_available
# Will error if the minimal version of diffusers is not installed. Remove at your own risks.
# Will error if the minimal version of diffusers is not installed. Remove at your own risks.
check_min_version
(
"0.1
4.
0"
)
check_min_version
(
"0.1
5.0.dev
0"
)
logger
=
get_logger
(
__name__
)
logger
=
get_logger
(
__name__
)
...
...
examples/dreambooth/train_dreambooth_flax.py
View file @
3d2648d7
...
@@ -36,7 +36,7 @@ from diffusers.utils import check_min_version
...
@@ -36,7 +36,7 @@ from diffusers.utils import check_min_version
# Will error if the minimal version of diffusers is not installed. Remove at your own risks.
# Will error if the minimal version of diffusers is not installed. Remove at your own risks.
check_min_version
(
"0.1
4.
0"
)
check_min_version
(
"0.1
5.0.dev
0"
)
# Cache compiled models across invocations of this script.
# Cache compiled models across invocations of this script.
cc
.
initialize_cache
(
os
.
path
.
expanduser
(
"~/.cache/jax/compilation_cache"
))
cc
.
initialize_cache
(
os
.
path
.
expanduser
(
"~/.cache/jax/compilation_cache"
))
...
...
examples/dreambooth/train_dreambooth_lora.py
View file @
3d2648d7
...
@@ -54,7 +54,7 @@ from diffusers.utils.import_utils import is_xformers_available
...
@@ -54,7 +54,7 @@ from diffusers.utils.import_utils import is_xformers_available
# Will error if the minimal version of diffusers is not installed. Remove at your own risks.
# Will error if the minimal version of diffusers is not installed. Remove at your own risks.
check_min_version
(
"0.1
4.
0"
)
check_min_version
(
"0.1
5.0.dev
0"
)
logger
=
get_logger
(
__name__
)
logger
=
get_logger
(
__name__
)
...
...
examples/text_to_image/train_text_to_image.py
View file @
3d2648d7
...
@@ -47,7 +47,7 @@ from diffusers.utils.import_utils import is_xformers_available
...
@@ -47,7 +47,7 @@ from diffusers.utils.import_utils import is_xformers_available
# Will error if the minimal version of diffusers is not installed. Remove at your own risks.
# Will error if the minimal version of diffusers is not installed. Remove at your own risks.
check_min_version
(
"0.1
4.
0"
)
check_min_version
(
"0.1
5.0.dev
0"
)
logger
=
get_logger
(
__name__
,
log_level
=
"INFO"
)
logger
=
get_logger
(
__name__
,
log_level
=
"INFO"
)
...
...
examples/text_to_image/train_text_to_image_flax.py
View file @
3d2648d7
...
@@ -34,7 +34,7 @@ from diffusers.utils import check_min_version
...
@@ -34,7 +34,7 @@ from diffusers.utils import check_min_version
# Will error if the minimal version of diffusers is not installed. Remove at your own risks.
# Will error if the minimal version of diffusers is not installed. Remove at your own risks.
check_min_version
(
"0.1
4.
0"
)
check_min_version
(
"0.1
5.0.dev
0"
)
logger
=
logging
.
getLogger
(
__name__
)
logger
=
logging
.
getLogger
(
__name__
)
...
...
examples/text_to_image/train_text_to_image_lora.py
View file @
3d2648d7
...
@@ -48,7 +48,7 @@ from diffusers.utils.import_utils import is_xformers_available
...
@@ -48,7 +48,7 @@ from diffusers.utils.import_utils import is_xformers_available
# Will error if the minimal version of diffusers is not installed. Remove at your own risks.
# Will error if the minimal version of diffusers is not installed. Remove at your own risks.
check_min_version
(
"0.1
4.
0"
)
check_min_version
(
"0.1
5.0.dev
0"
)
logger
=
get_logger
(
__name__
,
log_level
=
"INFO"
)
logger
=
get_logger
(
__name__
,
log_level
=
"INFO"
)
...
...
examples/textual_inversion/textual_inversion.py
View file @
3d2648d7
...
@@ -78,7 +78,7 @@ else:
...
@@ -78,7 +78,7 @@ else:
# Will error if the minimal version of diffusers is not installed. Remove at your own risks.
# Will error if the minimal version of diffusers is not installed. Remove at your own risks.
check_min_version
(
"0.1
4.
0"
)
check_min_version
(
"0.1
5.0.dev
0"
)
logger
=
get_logger
(
__name__
)
logger
=
get_logger
(
__name__
)
...
...
examples/textual_inversion/textual_inversion_flax.py
View file @
3d2648d7
...
@@ -57,7 +57,7 @@ else:
...
@@ -57,7 +57,7 @@ else:
# ------------------------------------------------------------------------------
# ------------------------------------------------------------------------------
# Will error if the minimal version of diffusers is not installed. Remove at your own risks.
# Will error if the minimal version of diffusers is not installed. Remove at your own risks.
check_min_version
(
"0.1
4.
0"
)
check_min_version
(
"0.1
5.0.dev
0"
)
logger
=
logging
.
getLogger
(
__name__
)
logger
=
logging
.
getLogger
(
__name__
)
...
...
examples/unconditional_image_generation/train_unconditional.py
View file @
3d2648d7
...
@@ -27,7 +27,7 @@ from diffusers.utils import check_min_version, is_accelerate_version, is_tensorb
...
@@ -27,7 +27,7 @@ from diffusers.utils import check_min_version, is_accelerate_version, is_tensorb
# Will error if the minimal version of diffusers is not installed. Remove at your own risks.
# Will error if the minimal version of diffusers is not installed. Remove at your own risks.
check_min_version
(
"0.1
4.
0"
)
check_min_version
(
"0.1
5.0.dev
0"
)
logger
=
get_logger
(
__name__
,
log_level
=
"INFO"
)
logger
=
get_logger
(
__name__
,
log_level
=
"INFO"
)
...
...
setup.py
View file @
3d2648d7
...
@@ -219,7 +219,7 @@ install_requires = [
...
@@ -219,7 +219,7 @@ install_requires = [
setup
(
setup
(
name
=
"diffusers"
,
name
=
"diffusers"
,
version
=
"0.1
4.
0"
,
# expected format is one of x.y.z.dev0, or x.y.z.rc1 or x.y.z (no to dashes, yes to dots)
version
=
"0.1
5.0.dev
0"
,
# expected format is one of x.y.z.dev0, or x.y.z.rc1 or x.y.z (no to dashes, yes to dots)
description
=
"Diffusers"
,
description
=
"Diffusers"
,
long_description
=
open
(
"README.md"
,
"r"
,
encoding
=
"utf-8"
).
read
(),
long_description
=
open
(
"README.md"
,
"r"
,
encoding
=
"utf-8"
).
read
(),
long_description_content_type
=
"text/markdown"
,
long_description_content_type
=
"text/markdown"
,
...
...
src/diffusers/__init__.py
View file @
3d2648d7
__version__
=
"0.1
4.
0"
__version__
=
"0.1
5.0.dev
0"
from
.configuration_utils
import
ConfigMixin
from
.configuration_utils
import
ConfigMixin
from
.utils
import
(
from
.utils
import
(
...
...
src/diffusers/pipelines/repaint/pipeline_repaint.py
View file @
3d2648d7
...
@@ -21,7 +21,7 @@ import torch
...
@@ -21,7 +21,7 @@ import torch
from
...models
import
UNet2DModel
from
...models
import
UNet2DModel
from
...schedulers
import
RePaintScheduler
from
...schedulers
import
RePaintScheduler
from
...utils
import
PIL_INTERPOLATION
,
deprecate
,
logging
,
randn_tensor
from
...utils
import
PIL_INTERPOLATION
,
logging
,
randn_tensor
from
..pipeline_utils
import
DiffusionPipeline
,
ImagePipelineOutput
from
..pipeline_utils
import
DiffusionPipeline
,
ImagePipelineOutput
...
@@ -90,7 +90,6 @@ class RePaintPipeline(DiffusionPipeline):
...
@@ -90,7 +90,6 @@ class RePaintPipeline(DiffusionPipeline):
generator
:
Optional
[
Union
[
torch
.
Generator
,
List
[
torch
.
Generator
]]]
=
None
,
generator
:
Optional
[
Union
[
torch
.
Generator
,
List
[
torch
.
Generator
]]]
=
None
,
output_type
:
Optional
[
str
]
=
"pil"
,
output_type
:
Optional
[
str
]
=
"pil"
,
return_dict
:
bool
=
True
,
return_dict
:
bool
=
True
,
**
kwargs
,
)
->
Union
[
ImagePipelineOutput
,
Tuple
]:
)
->
Union
[
ImagePipelineOutput
,
Tuple
]:
r
"""
r
"""
Args:
Args:
...
@@ -124,9 +123,7 @@ class RePaintPipeline(DiffusionPipeline):
...
@@ -124,9 +123,7 @@ class RePaintPipeline(DiffusionPipeline):
True, otherwise a `tuple. When returning a tuple, the first element is a list with the generated images.
True, otherwise a `tuple. When returning a tuple, the first element is a list with the generated images.
"""
"""
message
=
"Please use `image` instead of `original_image`."
original_image
=
image
original_image
=
deprecate
(
"original_image"
,
"0.15.0"
,
message
,
take_from
=
kwargs
)
original_image
=
original_image
or
image
original_image
=
_preprocess_image
(
original_image
)
original_image
=
_preprocess_image
(
original_image
)
original_image
=
original_image
.
to
(
device
=
self
.
device
,
dtype
=
self
.
unet
.
dtype
)
original_image
=
original_image
.
to
(
device
=
self
.
device
,
dtype
=
self
.
unet
.
dtype
)
...
...
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