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
f2df39fa
"git@developer.sourcefind.cn:OpenDAS/dgl.git" did not exist on "12d706300cba4d9ec25cfa1075ab4d2703dd89f0"
Commit
f2df39fa
authored
Apr 18, 2023
by
Patrick von Platen
Browse files
make style
parent
8ecdd3ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
examples/controlnet/train_controlnet_flax.py
examples/controlnet/train_controlnet_flax.py
+6
-2
No files found.
examples/controlnet/train_controlnet_flax.py
View file @
f2df39fa
...
@@ -1076,7 +1076,9 @@ def main():
...
@@ -1076,7 +1076,9 @@ def main():
and
global_step
%
args
.
validation_steps
==
0
and
global_step
%
args
.
validation_steps
==
0
and
jax
.
process_index
()
==
0
and
jax
.
process_index
()
==
0
):
):
_
=
log_validation
(
pipeline
,
pipeline_params
,
state
.
params
,
tokenizer
,
args
,
validation_rng
,
weight_dtype
)
_
=
log_validation
(
pipeline
,
pipeline_params
,
state
.
params
,
tokenizer
,
args
,
validation_rng
,
weight_dtype
)
if
global_step
%
args
.
logging_steps
==
0
and
jax
.
process_index
()
==
0
:
if
global_step
%
args
.
logging_steps
==
0
and
jax
.
process_index
()
==
0
:
if
args
.
report_to
==
"wandb"
:
if
args
.
report_to
==
"wandb"
:
...
@@ -1108,7 +1110,9 @@ def main():
...
@@ -1108,7 +1110,9 @@ def main():
if
args
.
validation_prompt
is
not
None
:
if
args
.
validation_prompt
is
not
None
:
if
args
.
profile_validation
:
if
args
.
profile_validation
:
jax
.
profiler
.
start_trace
(
args
.
output_dir
)
jax
.
profiler
.
start_trace
(
args
.
output_dir
)
image_logs
=
log_validation
(
pipeline
,
pipeline_params
,
state
.
params
,
tokenizer
,
args
,
validation_rng
,
weight_dtype
)
image_logs
=
log_validation
(
pipeline
,
pipeline_params
,
state
.
params
,
tokenizer
,
args
,
validation_rng
,
weight_dtype
)
if
args
.
profile_validation
:
if
args
.
profile_validation
:
jax
.
profiler
.
stop_trace
()
jax
.
profiler
.
stop_trace
()
else
:
else
:
...
...
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