Skip to content

Commit 9be0539

Browse files
committed
Increased maximal number of detections during NMS, added logging for adaptive router scores
1 parent 5166d41 commit 9be0539

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

partinet/DynamicDet/models/yolo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ def forward_once(self, x, profile=False):
240240
self.get_score = False
241241
if self.get_score:
242242
return score
243-
243+
print(f"This micrograph has difficulty score {score} for threshold {self.dy_thres}")
244244
need_second = self.training or (not self.dynamic) or score[:, 0] < self.dy_thres
245245
need_first_head = self.training or (self.dynamic and score[:, 0] >= self.dy_thres)
246246

partinet/DynamicDet/utils/general.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ def non_max_suppression(prediction, conf_thres=0.25, iou_thres=0.45, classes=Non
613613

614614
# Settings
615615
min_wh, max_wh = 2, 4096 # (pixels) minimum and maximum box width and height
616-
max_det = 300 # maximum number of detections per image
616+
max_det = 1000 # maximum number of detections per image
617617
max_nms = 30000 # maximum number of boxes into torchvision.ops.nms()
618618
time_limit = 10.0 # seconds to quit after
619619
redundant = True # require redundant detections

0 commit comments

Comments
 (0)