Marthee commited on
Commit
59ef905
·
verified ·
1 Parent(s): 3f7e167

Update doors_fasterrcnn.py

Browse files
Files changed (1) hide show
  1. doors_fasterrcnn.py +2 -2
doors_fasterrcnn.py CHANGED
@@ -386,7 +386,7 @@ def main_run(img_pillow,pdf_fullpath, weights_path, weights_path2, pdf_name,pdfp
386
  img_pillow = convert2pillow(pdf_fullpath)
387
 
388
  # For Single Doors
389
- num_classes = 12 # classes + background
390
  # Load the model with the specified number of classes
391
  model = get_model(num_classes)
392
  # Load the saved model's state dictionary with map_location to handle CPU
@@ -403,7 +403,7 @@ def main_run(img_pillow,pdf_fullpath, weights_path, weights_path2, pdf_name,pdfp
403
 
404
 
405
  # For Double Doors
406
- num_classes2 = 11 # classes + background
407
  # Load the model with the specified number of classes
408
  model2 = get_model(num_classes2)
409
  # Load the saved model's state dictionary with map_location to handle CPU
 
386
  img_pillow = convert2pillow(pdf_fullpath)
387
 
388
  # For Single Doors
389
+ num_classes = 10 # classes + background
390
  # Load the model with the specified number of classes
391
  model = get_model(num_classes)
392
  # Load the saved model's state dictionary with map_location to handle CPU
 
403
 
404
 
405
  # For Double Doors
406
+ num_classes2 = 12 # classes + background
407
  # Load the model with the specified number of classes
408
  model2 = get_model(num_classes2)
409
  # Load the saved model's state dictionary with map_location to handle CPU