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
e83b4361
Commit
e83b4361
authored
Feb 10, 2023
by
Patrick von Platen
Browse files
make style
parent
1be7df02
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
examples/text_to_image/train_text_to_image_lora.py
examples/text_to_image/train_text_to_image_lora.py
+2
-2
No files found.
examples/text_to_image/train_text_to_image_lora.py
View file @
e83b4361
...
...
@@ -418,9 +418,9 @@ def main():
# freeze parameters of models to save more memory
unet
.
requires_grad_
(
False
)
vae
.
requires_grad_
(
False
)
text_encoder
.
requires_grad_
(
False
)
# For mixed precision training we cast the text_encoder and vae weights to half-precision
# as these models are only used for inference, keeping weights in full precision is not required.
weight_dtype
=
torch
.
float32
...
...
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