DurgaDeepak commited on
Commit
79815f4
·
verified ·
1 Parent(s): 72884a9

Update core/process.py

Browse files
Files changed (1) hide show
  1. core/process.py +1 -1
core/process.py CHANGED
@@ -76,7 +76,7 @@ def process_image(
76
  if run_det:
77
  logger.info(f"Running detection with model: {det_model}")
78
  load_start = time.time()
79
- model = get_model("detection", DETECTION_MODEL_MAP[det_model], device="cpu")
80
  model.load_model()
81
  logger.info(f"{det_model} detection model loaded in {time.time() - load_start:.2f} seconds.")
82
  boxes = model.predict(image, conf_threshold=det_confidence)
 
76
  if run_det:
77
  logger.info(f"Running detection with model: {det_model}")
78
  load_start = time.time()
79
+ model = get_model("detection", det_model, device="cpu")
80
  model.load_model()
81
  logger.info(f"{det_model} detection model loaded in {time.time() - load_start:.2f} seconds.")
82
  boxes = model.predict(image, conf_threshold=det_confidence)