Spaces:
Running
Running
David Krajewski
commited on
Commit
·
e188d3a
1
Parent(s):
d4b3717
Changed ckpt path
Browse files
app.py
CHANGED
@@ -225,8 +225,8 @@ class Drag:
|
|
225 |
self.device = device
|
226 |
|
227 |
ckpts_dir = "ckpts/"
|
228 |
-
svd_ckpt = "ckpts/stable-video-diffusion-img2vid-xt-1-1"
|
229 |
-
mofa_ckpt = "ckpts/controlnet"
|
230 |
|
231 |
self.device = 'cuda'
|
232 |
self.weight_dtype = torch.float16
|
@@ -647,26 +647,6 @@ class Drag:
|
|
647 |
|
648 |
|
649 |
with gr.Blocks() as demo:
|
650 |
-
import os
|
651 |
-
# import nvidia.cublas.lib
|
652 |
-
# import nvidia.cudnn.lib
|
653 |
-
# # print(os.path.dirname(nvidia.cublas.lib.__file__))
|
654 |
-
# print(os.path.dirname(nvidia.cudnn.lib.__file__))
|
655 |
-
|
656 |
-
# /usr/local/lib/python3.10/site-packages/nvidia/cudnn/lib
|
657 |
-
|
658 |
-
import os
|
659 |
-
|
660 |
-
folder_path = "/usr/local/lib/python3.10/site-packages/nvidia/cusolver/lib"
|
661 |
-
if os.path.exists(folder_path) and os.path.isdir(folder_path):
|
662 |
-
print(f"Contents of the folder '{folder_path}':")
|
663 |
-
for item in os.listdir(folder_path):
|
664 |
-
print(item)
|
665 |
-
else:
|
666 |
-
print(f"The folder '{folder_path}' does not exist or is not a directory.")
|
667 |
-
|
668 |
-
print(os.environ["LD_LIBRARY_PATH"])
|
669 |
-
|
670 |
gr.Markdown("""<h1 align="center">MOFA-Video</h1><br>""")
|
671 |
|
672 |
gr.Markdown("""Official Gradio Demo for <a href='https://myniuuu.github.io/MOFA_Video'><b>MOFA-Video: Controllable Image Animation via Generative Motion Field Adaptions in Frozen Image-to-Video Diffusion Model</b></a>.<br>""")
|
|
|
225 |
self.device = device
|
226 |
|
227 |
ckpts_dir = "ckpts/"
|
228 |
+
svd_ckpt = "./ckpts/stable-video-diffusion-img2vid-xt-1-1"
|
229 |
+
mofa_ckpt = "./ckpts/controlnet"
|
230 |
|
231 |
self.device = 'cuda'
|
232 |
self.weight_dtype = torch.float16
|
|
|
647 |
|
648 |
|
649 |
with gr.Blocks() as demo:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
650 |
gr.Markdown("""<h1 align="center">MOFA-Video</h1><br>""")
|
651 |
|
652 |
gr.Markdown("""Official Gradio Demo for <a href='https://myniuuu.github.io/MOFA_Video'><b>MOFA-Video: Controllable Image Animation via Generative Motion Field Adaptions in Frozen Image-to-Video Diffusion Model</b></a>.<br>""")
|