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
chenpangpang
diffusers
Commits
cb8a3dbe
"G" did not exist on "ee010726ab20ef93a193cdef7a5cdb3478a2df2c"
Commit
cb8a3dbe
authored
Jan 04, 2023
by
Patrick von Platen
Browse files
make style
parent
bcd6f3f9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
examples/dreambooth/train_dreambooth_flax.py
examples/dreambooth/train_dreambooth_flax.py
+1
-3
No files found.
examples/dreambooth/train_dreambooth_flax.py
View file @
cb8a3dbe
...
@@ -629,9 +629,7 @@ def main():
...
@@ -629,9 +629,7 @@ def main():
def
checkpoint
(
step
=
None
):
def
checkpoint
(
step
=
None
):
# Create the pipeline using the trained modules and save it.
# Create the pipeline using the trained modules and save it.
scheduler
,
_
=
FlaxPNDMScheduler
.
from_pretrained
(
scheduler
,
_
=
FlaxPNDMScheduler
.
from_pretrained
(
"CompVis/stable-diffusion-v1-4"
,
subfolder
=
"scheduler"
)
"CompVis/stable-diffusion-v1-4"
,
subfolder
=
"scheduler"
)
safety_checker
=
FlaxStableDiffusionSafetyChecker
.
from_pretrained
(
safety_checker
=
FlaxStableDiffusionSafetyChecker
.
from_pretrained
(
"CompVis/stable-diffusion-safety-checker"
,
from_pt
=
True
"CompVis/stable-diffusion-safety-checker"
,
from_pt
=
True
)
)
...
...
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