mridulk commited on
Commit
b6cb5e7
·
verified ·
1 Parent(s): 9d6692a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -48,8 +48,8 @@ def masking_embed(embedding, levels=1):
48
 
49
 
50
  # LOAD MODEL GLOBALLY
51
- ckpt_path = '/globalscratch/mridul/ldm/final_runs_eccv/fishes/2024-03-01T23-15-36_HLE_days3/checkpoints/epoch=000119.ckpt'
52
- config_path = '/globalscratch/mridul/ldm/final_runs_eccv/fishes/2024-03-01T23-15-36_HLE_days3/configs/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,7 +89,7 @@ def generate_image(fish_name, masking_level_input,
89
  all_images = []
90
  labels = []
91
 
92
- class_to_node = '/fastscratch/mridul/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
 
 
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