Spaces:
Running
on
L40S
Running
on
L40S
Update app.py
Browse files
app.py
CHANGED
@@ -42,7 +42,9 @@ from utils.video_io import save_videos_from_pil
|
|
42 |
from utils.genextend_inference_utils import adjust_statistics_to_match_reference
|
43 |
from create_graph import path_visualization, graph_pruning, get_motion_reps_tensor, path_visualization_v2
|
44 |
|
45 |
-
|
|
|
|
|
46 |
def search_path_dp(graph, audio_low_np, audio_high_np, loop_penalty=0.1, top_k=1, search_mode="both", continue_penalty=0.1):
|
47 |
T = audio_low_np.shape[0] # Total time steps
|
48 |
N = len(graph.vs) # Total number of nodes in the graph
|
|
|
42 |
from utils.genextend_inference_utils import adjust_statistics_to_match_reference
|
43 |
from create_graph import path_visualization, graph_pruning, get_motion_reps_tensor, path_visualization_v2
|
44 |
|
45 |
+
if not os.path.exist("./datasets/cached_graph/youtube_test/speaker1.pkl"):
|
46 |
+
os.system("cd ./datasets/ && git clone https://huggingface.co/datasets/H-Liu1997/cached_graph && cd ..")
|
47 |
+
|
48 |
def search_path_dp(graph, audio_low_np, audio_high_np, loop_penalty=0.1, top_k=1, search_mode="both", continue_penalty=0.1):
|
49 |
T = audio_low_np.shape[0] # Total time steps
|
50 |
N = len(graph.vs) # Total number of nodes in the graph
|