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
a0263b2e
Commit
a0263b2e
authored
Apr 04, 2023
by
Patrick von Platen
Browse files
make style
parent
62c01d26
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
examples/controlnet/train_controlnet.py
examples/controlnet/train_controlnet.py
+1
-1
examples/controlnet/train_controlnet_flax.py
examples/controlnet/train_controlnet_flax.py
+1
-1
No files found.
examples/controlnet/train_controlnet.py
View file @
a0263b2e
...
...
@@ -106,7 +106,7 @@ def log_validation(vae, text_encoder, tokenizer, unet, controlnet, args, acceler
image_logs
=
[]
for
validation_prompt
,
validation_image
in
zip
(
validation_prompts
,
validation_images
):
validation_image
=
Image
.
open
(
validation_image
).
convert
(
'
RGB
'
)
validation_image
=
Image
.
open
(
validation_image
).
convert
(
"
RGB
"
)
images
=
[]
...
...
examples/controlnet/train_controlnet_flax.py
View file @
a0263b2e
...
...
@@ -110,7 +110,7 @@ def log_validation(controlnet, controlnet_params, tokenizer, args, rng, weight_d
prompt_ids
=
pipeline
.
prepare_text_inputs
(
prompts
)
prompt_ids
=
shard
(
prompt_ids
)
validation_image
=
Image
.
open
(
validation_image
).
convert
(
'
RGB
'
)
validation_image
=
Image
.
open
(
validation_image
).
convert
(
"
RGB
"
)
processed_image
=
pipeline
.
prepare_image_inputs
(
num_samples
*
[
validation_image
])
processed_image
=
shard
(
processed_image
)
images
=
pipeline
(
...
...
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