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
OpenDAS
diffusers
Commits
0ddc5bf7
Unverified
Commit
0ddc5bf7
authored
Apr 25, 2023
by
Lucca Zenóbio
Committed by
GitHub
Apr 25, 2023
Browse files
fix mixed precision training on train_dreambooth_inpaint_lora (#3138)
cast to weight dtype
parent
c5933c9c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py
...jects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py
+1
-1
No files found.
examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py
View file @
0ddc5bf7
...
@@ -735,7 +735,7 @@ def main():
...
@@ -735,7 +735,7 @@ def main():
torch
.
nn
.
functional
.
interpolate
(
mask
,
size
=
(
args
.
resolution
//
8
,
args
.
resolution
//
8
))
torch
.
nn
.
functional
.
interpolate
(
mask
,
size
=
(
args
.
resolution
//
8
,
args
.
resolution
//
8
))
for
mask
in
masks
for
mask
in
masks
]
]
)
)
.
to
(
dtype
=
weight_dtype
)
mask
=
mask
.
reshape
(
-
1
,
1
,
args
.
resolution
//
8
,
args
.
resolution
//
8
)
mask
=
mask
.
reshape
(
-
1
,
1
,
args
.
resolution
//
8
,
args
.
resolution
//
8
)
# Sample noise that we'll add to the latents
# Sample noise that we'll add to the latents
...
...
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