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
ModelZoo
magic-animate_pytorch
Commits
a81ceeb3
Commit
a81ceeb3
authored
Dec 18, 2023
by
mashun1
Browse files
Update animate_dist.py
parent
45d3f4ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
demo/animate_dist.py
demo/animate_dist.py
+4
-4
No files found.
demo/animate_dist.py
View file @
a81ceeb3
...
...
@@ -77,9 +77,9 @@ class MagicAnimate():
controlnet
.
to
(
torch
.
float16
)
self
.
appearance_encoder
.
to
(
torch
.
float16
)
unet
.
enable_xformers_memory_efficient_attention
()
self
.
appearance_encoder
.
enable_xformers_memory_efficient_attention
()
controlnet
.
enable_xformers_memory_efficient_attention
()
#
unet.enable_xformers_memory_efficient_attention()
#
self.appearance_encoder.enable_xformers_memory_efficient_attention()
#
controlnet.enable_xformers_memory_efficient_attention()
self
.
pipeline
=
AnimationPipeline
(
vae
=
vae
,
text_encoder
=
text_encoder
,
tokenizer
=
tokenizer
,
unet
=
unet
,
controlnet
=
controlnet
,
...
...
@@ -228,4 +228,4 @@ if __name__ == '__main__':
parser
.
add_argument
(
"--guidance_scale"
,
type
=
float
,
default
=
7.5
,
required
=
False
)
parser
.
add_argument
(
"--save_path"
,
type
=
str
,
default
=
None
,
required
=
True
)
args
=
parser
.
parse_args
()
run
(
args
)
\ No newline at end of file
run
(
args
)
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