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
acd19627
Unverified
Commit
acd19627
authored
Jan 28, 2024
by
Sayak Paul
Committed by
GitHub
Jan 28, 2024
Browse files
correct hflip arg (#6743)
parent
5b1b80a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py
...search_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py
+1
-1
No files found.
examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py
View file @
acd19627
...
@@ -741,7 +741,7 @@ def main(args):
...
@@ -741,7 +741,7 @@ def main(args):
combined_im
=
train_resize
(
combined_im
)
combined_im
=
train_resize
(
combined_im
)
# Flipping.
# Flipping.
if
not
args
.
no_flip
and
random
.
random
()
<
0.5
:
if
not
args
.
no_
h
flip
and
random
.
random
()
<
0.5
:
combined_im
=
train_flip
(
combined_im
)
combined_im
=
train_flip
(
combined_im
)
# Cropping.
# Cropping.
...
...
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