Spaces:
Runtime error
Runtime error
Commit ·
675d535
1
Parent(s): 059a773
ICCV_Dynami
Browse files- app.py +2 -1
- config.yaml +7 -3
app.py
CHANGED
|
@@ -120,7 +120,7 @@ class SurveyEngine:
|
|
| 120 |
thread_squash_commits.start()
|
| 121 |
|
| 122 |
def _get_all_video_paths(self):
|
| 123 |
-
video_dir = f"{self.local_dir}/
|
| 124 |
|
| 125 |
method_list = sorted(os.listdir(video_dir))
|
| 126 |
|
|
@@ -137,6 +137,7 @@ class SurveyEngine:
|
|
| 137 |
video_paths = [] # (N_prompts, N_methods)
|
| 138 |
for video_name in video_name_list:
|
| 139 |
paths = [os.path.join(video_dir, method, video_name) for method in method_list]
|
|
|
|
| 140 |
video_paths.append(paths)
|
| 141 |
video_paths = np.array(video_paths)
|
| 142 |
return video_paths, N_prompts, N_methods
|
|
|
|
| 120 |
thread_squash_commits.start()
|
| 121 |
|
| 122 |
def _get_all_video_paths(self):
|
| 123 |
+
video_dir = f"{self.local_dir}/{self.args.task_dir}"
|
| 124 |
|
| 125 |
method_list = sorted(os.listdir(video_dir))
|
| 126 |
|
|
|
|
| 137 |
video_paths = [] # (N_prompts, N_methods)
|
| 138 |
for video_name in video_name_list:
|
| 139 |
paths = [os.path.join(video_dir, method, video_name) for method in method_list]
|
| 140 |
+
np.random.shuffle(paths)
|
| 141 |
video_paths.append(paths)
|
| 142 |
video_paths = np.array(video_paths)
|
| 143 |
return video_paths, N_prompts, N_methods
|
config.yaml
CHANGED
|
@@ -1,8 +1,12 @@
|
|
| 1 |
method_filter:
|
| 2 |
-
-
|
| 3 |
-
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
period_upload: 300 # Period (sec) to upload response files in seconds, 300sec=5min
|
| 5 |
period_squash: 43200 # Period (sec) to squash commits in seconds, 43200sec=12h
|
| 6 |
ask_user_id: True
|
| 7 |
id_platform: Prolific
|
| 8 |
-
task:
|
|
|
|
| 1 |
method_filter:
|
| 2 |
+
- seed123
|
| 3 |
+
- seed234
|
| 4 |
+
- seed345
|
| 5 |
+
- seed456
|
| 6 |
+
- seed567
|
| 7 |
+
task_dir: DynamiCrafter
|
| 8 |
period_upload: 300 # Period (sec) to upload response files in seconds, 300sec=5min
|
| 9 |
period_squash: 43200 # Period (sec) to squash commits in seconds, 43200sec=12h
|
| 10 |
ask_user_id: True
|
| 11 |
id_platform: Prolific
|
| 12 |
+
task: ICCV2025_Dynami
|