marshal007 commited on
Commit
c83c9e3
โ€ข
1 Parent(s): e29fb35

add install steps

Browse files
Files changed (2) hide show
  1. app.py +18 -0
  2. requirements.txt +1 -0
app.py CHANGED
@@ -1,4 +1,22 @@
1
  import os
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  import random
3
  from pathlib import Path
4
  import numpy as np
 
1
  import os
2
+
3
+ import subprocess
4
+
5
+ # ๅฎ‰่ฃ…้ขๅค–็š„ๅบ“
6
+ subprocess.run(["pip", "install", "pip", "-U"])
7
+ subprocess.run(["pip", "install", "torch==2.5.1", "torchvision==0.20.1", "torchaudio==2.5.1", "xformers==0.0.28.post3", "--index-url", "https://download.pytorch.org/whl/cu124"])
8
+ subprocess.run(["pip", "install", "torchao", "--index-url", "https://download.pytorch.org/whl/nightly/cu124"])
9
+ subprocess.run(["pip", "install", "-r", "requirements.txt"])
10
+ subprocess.run(["pip", "install", "--no-deps", "facenet_pytorch==2.6.0"])
11
+
12
+ # ่ฎพ็ฝฎ FFMPEG ่ทฏๅพ„
13
+ os.environ["FFMPEG_PATH"] = "/path/to/ffmpeg-4.4-amd64-static"
14
+
15
+ # ไธ‹่ฝฝ้ข„่ฎญ็ปƒๆจกๅž‹
16
+ subprocess.run(["git", "lfs", "install"])
17
+ subprocess.run(["git", "clone", "https://huggingface.co/BadToBest/EchoMimicV2", "pretrained_weights"])
18
+
19
+
20
  import random
21
  from pathlib import Path
22
  import numpy as np
requirements.txt CHANGED
@@ -37,3 +37,4 @@ IPython
37
  scenedetect
38
  moviepy==1.0.3
39
  huggingface_hub==0.26.2
 
 
37
  scenedetect
38
  moviepy==1.0.3
39
  huggingface_hub==0.26.2
40
+ torchao