Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -48,8 +48,8 @@ def masking_embed(embedding, levels=1):
|
|
48 |
|
49 |
|
50 |
# LOAD MODEL GLOBALLY
|
51 |
-
ckpt_path = '/
|
52 |
-
config_path = '/
|
53 |
config = OmegaConf.load(config_path) # TODO: Optionally download from same location as ckpt and chnage this logic
|
54 |
model = load_model_from_config(config, ckpt_path) # TODO: check path
|
55 |
|
@@ -89,7 +89,7 @@ def generate_image(fish_name, masking_level_input,
|
|
89 |
all_images = []
|
90 |
labels = []
|
91 |
|
92 |
-
class_to_node = '/
|
93 |
with open(class_to_node, 'rb') as pickle_file:
|
94 |
class_to_node_dict = pickle.load(pickle_file)
|
95 |
|
|
|
48 |
|
49 |
|
50 |
# LOAD MODEL GLOBALLY
|
51 |
+
ckpt_path = 'model_files/fishes/epoch=000119.ckpt'
|
52 |
+
config_path = 'model_files/fishes/2024-03-01T23-15-36-project.yaml'
|
53 |
config = OmegaConf.load(config_path) # TODO: Optionally download from same location as ckpt and chnage this logic
|
54 |
model = load_model_from_config(config, ckpt_path) # TODO: check path
|
55 |
|
|
|
89 |
all_images = []
|
90 |
labels = []
|
91 |
|
92 |
+
class_to_node = 'model_files/fishes/class_to_ancestral_label.pkl'
|
93 |
with open(class_to_node, 'rb') as pickle_file:
|
94 |
class_to_node_dict = pickle.load(pickle_file)
|
95 |
|