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
663f0c19
Unverified
Commit
663f0c19
authored
Nov 09, 2022
by
camenduru
Committed by
GitHub
Nov 09, 2022
Browse files
[Flax] fix extra copy pasta
🍝
(#1187)
parent
6cf72a9b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
16 deletions
+0
-16
examples/dreambooth/train_dreambooth_flax.py
examples/dreambooth/train_dreambooth_flax.py
+0
-16
No files found.
examples/dreambooth/train_dreambooth_flax.py
View file @
663f0c19
...
...
@@ -327,22 +327,6 @@ def main():
if
args
.
seed
is
not
None
:
set_seed
(
args
.
seed
)
if
jax
.
process_index
()
==
0
:
if
args
.
push_to_hub
:
if
args
.
hub_model_id
is
None
:
repo_name
=
get_full_repo_name
(
Path
(
args
.
output_dir
).
name
,
token
=
args
.
hub_token
)
else
:
repo_name
=
args
.
hub_model_id
repo
=
Repository
(
args
.
output_dir
,
clone_from
=
repo_name
)
with
open
(
os
.
path
.
join
(
args
.
output_dir
,
".gitignore"
),
"w+"
)
as
gitignore
:
if
"step_*"
not
in
gitignore
:
gitignore
.
write
(
"step_*
\n
"
)
if
"epoch_*"
not
in
gitignore
:
gitignore
.
write
(
"epoch_*
\n
"
)
elif
args
.
output_dir
is
not
None
:
os
.
makedirs
(
args
.
output_dir
,
exist_ok
=
True
)
rng
=
jax
.
random
.
PRNGKey
(
args
.
seed
)
if
args
.
with_prior_preservation
:
...
...
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