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
4a3e5748
Commit
4a3e5748
authored
Jul 09, 2023
by
Patrick von Platen
Browse files
make style
parent
c2a28c34
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
examples/dreambooth/train_dreambooth_lora.py
examples/dreambooth/train_dreambooth_lora.py
+1
-1
No files found.
examples/dreambooth/train_dreambooth_lora.py
View file @
4a3e5748
...
@@ -871,7 +871,7 @@ def main(args):
...
@@ -871,7 +871,7 @@ def main(args):
lora_attn_processor_class
=
(
lora_attn_processor_class
=
(
LoRAAttnProcessor2_0
if
hasattr
(
F
,
"scaled_dot_product_attention"
)
else
LoRAAttnProcessor
LoRAAttnProcessor2_0
if
hasattr
(
F
,
"scaled_dot_product_attention"
)
else
LoRAAttnProcessor
)
)
module
=
lora_attn_processor_class
(
hidden_size
=
hidden_size
,
cross_attention_dim
=
cross_attention_dim
)
module
=
lora_attn_processor_class
(
hidden_size
=
hidden_size
,
cross_attention_dim
=
cross_attention_dim
)
unet_lora_attn_procs
[
name
]
=
module
unet_lora_attn_procs
[
name
]
=
module
unet_lora_parameters
.
extend
(
module
.
parameters
())
unet_lora_parameters
.
extend
(
module
.
parameters
())
...
...
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