Skip to content
This repository was archived by the owner on Jun 5, 2024. It is now read-only.

Commit f75171c

Browse files
committed
activitybox exp
1 parent d4bb241 commit f75171c

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

Diff for: obj_detect.py

+1
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ def get_args():
8383
parser.add_argument("--resnet50",action="store_true",help="")
8484
parser.add_argument("--resnet34",action="store_true",help="")
8585
parser.add_argument("--resnet18",action="store_true",help="")
86+
parser.add_argument("--use_resnext", action="store_true", help="")
8687
parser.add_argument("--use_se",action="store_true",help="use squeeze and excitation in backbone")
8788
parser.add_argument("--use_frcnn_class_agnostic", action="store_true", help="use class agnostic fc head")
8889
parser.add_argument("--use_att_frcnn_head", action="store_true",help="use attention to sum [K, 7, 7, C] feature into [K, C]")

Diff for: obj_detect_tracking.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def get_args():
101101
parser.add_argument("--nn_budget", type=int, default=5,
102102
help="Maximum size of the appearance descriptors gallery. If None, no budget is enforced.")
103103

104-
104+
parser.add_argument("--bupt_exp", action="store_true", help="activity box experiemnt")
105105
# ---- tempory: for activity detection model
106106
parser.add_argument("--actasobj", action="store_true")
107107
parser.add_argument("--actmodel_path", default="/app/activity_detection_model")
@@ -112,6 +112,7 @@ def get_args():
112112
parser.add_argument("--resnet18", action="store_true", help="")
113113
parser.add_argument("--use_se", action="store_true", help="use squeeze and excitation in backbone")
114114
parser.add_argument("--use_frcnn_class_agnostic", action="store_true", help="use class agnostic fc head")
115+
parser.add_argument("--use_resnext", action="store_true", help="")
115116
parser.add_argument("--use_att_frcnn_head", action="store_true",
116117
help="use attention to sum [K, 7, 7, C] feature into [K, C]")
117118

@@ -145,6 +146,10 @@ def get_args():
145146
from class_ids import targetAct2id
146147
targetClass2id = targetAct2id
147148
targetid2class = {targetAct2id[one]: one for one in targetAct2id}
149+
if args.bupt_exp:
150+
from class_ids import targetAct2id_bupt
151+
targetClass2id =targetAct2id_bupt
152+
targetid2class = {targetAct2id_bupt[one]: one for one in targetAct2id_bupt}
148153

149154
assert len(targetClass2id) == args.num_class, (len(targetClass2id), args.num_class)
150155

0 commit comments

Comments
 (0)