saim1309 commited on
Commit
6a0927d
·
verified ·
1 Parent(s): 1b53a58

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -81,7 +81,7 @@ def infer_mediar(image, temp_dir="temp_mediar"):
81
  }
82
 
83
  model = MEDIARFormer(**model_args)
84
- weights = torch.load("MEDIAR_Weights/from_phase1.pth", map_location=device)
85
  model.load_state_dict(weights, strict=False)
86
  model.to(device)
87
  model.eval()
@@ -177,7 +177,7 @@ with gr.Blocks(title="Cell Segmentation Explorer") as app:
177
  gr.Markdown("---")
178
  gr.Markdown("### Sample Images (click to use as input)")
179
 
180
- original_sample_paths = ["Sample Images/img1.png", "Sample Images/img2.png", "Sample Images/img3.png"]
181
  resized_sample_paths = []
182
 
183
  for idx, p in enumerate(original_sample_paths):
 
81
  }
82
 
83
  model = MEDIARFormer(**model_args)
84
+ weights = torch.load("from_phase1.pth", map_location=device)
85
  model.load_state_dict(weights, strict=False)
86
  model.to(device)
87
  model.eval()
 
177
  gr.Markdown("---")
178
  gr.Markdown("### Sample Images (click to use as input)")
179
 
180
+ original_sample_paths = ["img1.png", "img2.png", "img3.png"]
181
  resized_sample_paths = []
182
 
183
  for idx, p in enumerate(original_sample_paths):