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
45d3f4ff
"src/vscode:/vscode.git/clone" did not exist on "c67f73b0193673243ce5c80767ef37d477178713"
Commit
45d3f4ff
authored
Dec 18, 2023
by
mashun1
Browse files
Update animate.py
parent
e81904b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
demo/animate.py
demo/animate.py
+4
-4
No files found.
demo/animate.py
View file @
45d3f4ff
...
@@ -78,9 +78,9 @@ class MagicAnimate():
...
@@ -78,9 +78,9 @@ class MagicAnimate():
controlnet
.
to
(
torch
.
float16
)
controlnet
.
to
(
torch
.
float16
)
self
.
appearance_encoder
.
to
(
torch
.
float16
)
self
.
appearance_encoder
.
to
(
torch
.
float16
)
unet
.
enable_xformers_memory_efficient_attention
()
#
unet.enable_xformers_memory_efficient_attention()
self
.
appearance_encoder
.
enable_xformers_memory_efficient_attention
()
#
self.appearance_encoder.enable_xformers_memory_efficient_attention()
controlnet
.
enable_xformers_memory_efficient_attention
()
#
controlnet.enable_xformers_memory_efficient_attention()
self
.
pipeline
=
AnimationPipeline
(
self
.
pipeline
=
AnimationPipeline
(
vae
=
vae
,
text_encoder
=
text_encoder
,
tokenizer
=
tokenizer
,
unet
=
unet
,
controlnet
=
controlnet
,
vae
=
vae
,
text_encoder
=
text_encoder
,
tokenizer
=
tokenizer
,
unet
=
unet
,
controlnet
=
controlnet
,
...
@@ -192,4 +192,4 @@ class MagicAnimate():
...
@@ -192,4 +192,4 @@ class MagicAnimate():
save_videos_grid
(
samples_per_video
,
animation_path
)
save_videos_grid
(
samples_per_video
,
animation_path
)
return
animation_path
return
animation_path
\ No newline at end of file
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