Dharini Baskaran commited on
Commit
8af70b5
·
1 Parent(s): b6510a9

updated the model weight path

Browse files
README.md CHANGED
@@ -31,11 +31,11 @@ A Gradio web app that allows you to upload 2D floorplan images and automatically
31
 
32
  3. **Download the pretrained model:**
33
 
34
- - Download `model_final.pth` from [Google Drive here](https://drive.google.com/file/d/1yr64AOgaYZPTcQzG6cxG6lWBENHR9qjW/view?usp=sharing).
35
  - Place it inside:
36
 
37
  ```plaintext
38
- floorplan-vectorizer/rcnn_model/output/model_final.pth
39
  ```
40
 
41
  4. **Run the app:**
 
31
 
32
  3. **Download the pretrained model:**
33
 
34
+ - Download `model_final_2.pth` from [Google Drive here](https://drive.google.com/file/d/1TJLKFI-sSQQ4JOqDgS6aqcw26IsadXGO/view?usp=sharing).
35
  - Place it inside:
36
 
37
  ```plaintext
38
+ floorplan-vectorizer/rcnn_model/output/model_final_2.pth
39
  ```
40
 
41
  4. **Run the app:**
app.py CHANGED
@@ -17,7 +17,7 @@ JSON_DIR = "/tmp/results/"
17
  OUTPUT_DIR = "/tmp/output/"
18
  MODEL_DIR = os.path.join(BASE_DIR, "rcnn_model", "scripts")
19
  logo_path = os.path.join(BASE_DIR, "public", "logo.png")
20
- model_path = os.path.join(OUTPUT_DIR, "model_final.pth")
21
 
22
  # Google Drive model
23
  GOOGLE_DRIVE_FILE_ID = "1ptdr6d_jglk_78e4d5s1jUO04XWS1zo"
 
17
  OUTPUT_DIR = "/tmp/output/"
18
  MODEL_DIR = os.path.join(BASE_DIR, "rcnn_model", "scripts")
19
  logo_path = os.path.join(BASE_DIR, "public", "logo.png")
20
+ model_path = os.path.join(OUTPUT_DIR, "model_final_2.pth")
21
 
22
  # Google Drive model
23
  GOOGLE_DRIVE_FILE_ID = "1ptdr6d_jglk_78e4d5s1jUO04XWS1zo"
rcnn_model/scripts/rcnn_eval.py CHANGED
@@ -23,7 +23,7 @@ def main(cfg,results_filename = "eval_results.txt"):
23
  #update config file
24
  cfg.DATALOADER.NUM_WORKERS = 1
25
  cfg.SOLVER.IMS_PER_BATCH = 1
26
- cfg.MODEL.WEIGHTS = os.path.join(cfg.OUTPUT_DIR, "model_final.pth")
27
 
28
  #run evaluation
29
  results = standard_evaluation(cfg)
 
23
  #update config file
24
  cfg.DATALOADER.NUM_WORKERS = 1
25
  cfg.SOLVER.IMS_PER_BATCH = 1
26
+ cfg.MODEL.WEIGHTS = os.path.join(cfg.OUTPUT_DIR, "model_final_2.pth")
27
 
28
  #run evaluation
29
  results = standard_evaluation(cfg)
rcnn_model/scripts/rcnn_run.py CHANGED
@@ -22,7 +22,7 @@ def main(cfg,img_source_path, coco_dest_filename, val_img_dest_filename):
22
  #configure model
23
  cfg.DATALOADER.NUM_WORKERS = 1
24
  cfg.SOLVER.IMS_PER_BATCH = 1
25
- cfg.MODEL.WEIGHTS = os.path.join(model_directory, "model_final.pth")
26
  cfg.MODEL.DEVICE = "cpu"
27
  predictor = DefaultPredictor(cfg)
28
 
 
22
  #configure model
23
  cfg.DATALOADER.NUM_WORKERS = 1
24
  cfg.SOLVER.IMS_PER_BATCH = 1
25
+ cfg.MODEL.WEIGHTS = os.path.join(model_directory, "model_final_2.pth")
26
  cfg.MODEL.DEVICE = "cpu"
27
  predictor = DefaultPredictor(cfg)
28