Spaces:
Running
on
Zero
Running
on
Zero
Update model/fetch_museum_results/__init__.py
Browse files
model/fetch_museum_results/__init__.py
CHANGED
@@ -2,8 +2,8 @@ from .imagen_museum import TASK_DICT, DOMAIN
|
|
2 |
from .imagen_museum import fetch_indexes, fetch_indexes_no_csv
|
3 |
import random
|
4 |
|
5 |
-
ARENA_TO_IG_MUSEUM = {"LCM(v1.5/XL)":"LCM",
|
6 |
-
|
7 |
|
8 |
def draw2_from_imagen_museum(task, model_name1, model_name2):
|
9 |
task_name = TASK_DICT[task]
|
@@ -61,6 +61,9 @@ def draw2_from_videogen_museum(task, model_name1, model_name2):
|
|
61 |
domain = "https://github.com/ChromAIca/VideoGenMuseum/raw/main/Museum/"
|
62 |
baselink = domain + "VideoGenHub_Text-Guided_VG"
|
63 |
|
|
|
|
|
|
|
64 |
matched_results = fetch_indexes_no_csv(baselink)
|
65 |
r = random.Random()
|
66 |
uid, value = r.choice(list(matched_results.items()))
|
@@ -77,6 +80,8 @@ def draw_from_videogen_museum(task, model_name):
|
|
77 |
domain = "https://github.com/ChromAIca/VideoGenMuseum/raw/main/Museum/"
|
78 |
baselink = domain + "VideoGenHub_Text-Guided_VG"
|
79 |
|
|
|
|
|
80 |
matched_results = fetch_indexes_no_csv(baselink)
|
81 |
r = random.Random()
|
82 |
uid, value = r.choice(list(matched_results.items()))
|
|
|
2 |
from .imagen_museum import fetch_indexes, fetch_indexes_no_csv
|
3 |
import random
|
4 |
|
5 |
+
ARENA_TO_IG_MUSEUM = {"LCM(v1.5/XL)":"LCM", "PlayGroundV2.5": "PlayGroundV2_5"}
|
6 |
+
ARENA_TO_VG_MUSEUM = {"StableVideoDiffusion": "FastSVD"}
|
7 |
|
8 |
def draw2_from_imagen_museum(task, model_name1, model_name2):
|
9 |
task_name = TASK_DICT[task]
|
|
|
61 |
domain = "https://github.com/ChromAIca/VideoGenMuseum/raw/main/Museum/"
|
62 |
baselink = domain + "VideoGenHub_Text-Guided_VG"
|
63 |
|
64 |
+
model_name1 = ARENA_TO_VG_MUSEUM[model_name1] if model_name1 in ARENA_TO_VG_MUSEUM else model_name1
|
65 |
+
model_name2 = ARENA_TO_VG_MUSEUM[model_name2] if model_name2 in ARENA_TO_VG_MUSEUM else model_name2
|
66 |
+
|
67 |
matched_results = fetch_indexes_no_csv(baselink)
|
68 |
r = random.Random()
|
69 |
uid, value = r.choice(list(matched_results.items()))
|
|
|
80 |
domain = "https://github.com/ChromAIca/VideoGenMuseum/raw/main/Museum/"
|
81 |
baselink = domain + "VideoGenHub_Text-Guided_VG"
|
82 |
|
83 |
+
model_name = ARENA_TO_VG_MUSEUM[model_name] if model_name in ARENA_TO_VG_MUSEUM else model_name
|
84 |
+
|
85 |
matched_results = fetch_indexes_no_csv(baselink)
|
86 |
r = random.Random()
|
87 |
uid, value = r.choice(list(matched_results.items()))
|