@@ -101,7 +101,7 @@ def get_args():
101
101
parser .add_argument ("--nn_budget" , type = int , default = 5 ,
102
102
help = "Maximum size of the appearance descriptors gallery. If None, no budget is enforced." )
103
103
104
-
104
+ parser . add_argument ( "--bupt_exp" , action = "store_true" , help = "activity box experiemnt" )
105
105
# ---- tempory: for activity detection model
106
106
parser .add_argument ("--actasobj" , action = "store_true" )
107
107
parser .add_argument ("--actmodel_path" , default = "/app/activity_detection_model" )
@@ -112,6 +112,7 @@ def get_args():
112
112
parser .add_argument ("--resnet18" , action = "store_true" , help = "" )
113
113
parser .add_argument ("--use_se" , action = "store_true" , help = "use squeeze and excitation in backbone" )
114
114
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 = "" )
115
116
parser .add_argument ("--use_att_frcnn_head" , action = "store_true" ,
116
117
help = "use attention to sum [K, 7, 7, C] feature into [K, C]" )
117
118
@@ -145,6 +146,10 @@ def get_args():
145
146
from class_ids import targetAct2id
146
147
targetClass2id = targetAct2id
147
148
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 }
148
153
149
154
assert len (targetClass2id ) == args .num_class , (len (targetClass2id ), args .num_class )
150
155
0 commit comments