Spaces:
Build error
Build error
root commited on
Commit ·
49bb3b0
1
Parent(s): 9586537
initial commit
Browse filesFiles changed (3)
130 unmodified lines131132133134135136137130 unmodified linescheckpoints/# old versionhotr/models/hotr_v1.pyMakefile.DS_Store130 unmodified lines131132133134135136130 unmodified linescheckpoints/# old versionMakefile.DS_Store
125 unmodified lines126127128129130131132133125 unmodified linesparser.add_argument('--stop_grad_stage',action='store_true',help='Do not back propogate loss to previous stage')parser.add_argument('--path_id', default=0, type=int)parser.add_argument('--sep_enc_forward',action='store_true')# * dataset parametersparser.add_argument('--dataset_file', help='[coco | vcoco]')parser.add_argument('--data_path', type=str)125 unmodified lines126127128129130131125 unmodified linesparser.add_argument('--stop_grad_stage',action='store_true',help='Do not back propogate loss to previous stage')parser.add_argument('--path_id', default=0, type=int)# * dataset parametersparser.add_argument('--dataset_file', help='[coco | vcoco]')parser.add_argument('--data_path', type=str)
22 unmodified lines23242526272829115 unmodified lines14514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118222 unmodified linesfrom .feed_forward import MLPfrom .hotr import HOTRfrom .hotr_v1 import HOTR_V1class DETR(nn.Module):""" This is the DETR module that performs object detection """115 unmodified lineskwargs = {}if args.dataset_file == 'hico-det': kwargs['return_obj_class'] = args.valid_obj_idsif args.sep_enc_forward:model = HOTR_V1(detr=model,num_hoi_queries=args.num_hoi_queries,num_actions=args.num_actions,interaction_transformer=interaction_transformer,augpath_name = args.augpath_name,share_dec_param = args.share_dec_param,stop_grad_stage = args.stop_grad_stage,freeze_detr=(args.frozen_weights is not None),share_enc=args.share_enc,pretrained_dec=args.pretrained_dec,temperature=args.temperature,hoi_aux_loss=args.hoi_aux_loss,**kwargs # only return verb class for HICO-DET dataset)else:model = HOTR(detr=model,num_hoi_queries=args.num_hoi_queries,num_actions=args.num_actions,interaction_transformer=interaction_transformer,augpath_name = args.augpath_name,share_dec_param = args.share_dec_param,stop_grad_stage = args.stop_grad_stage,freeze_detr=(args.frozen_weights is not None),share_enc=args.share_enc,pretrained_dec=args.pretrained_dec,temperature=args.temperature,hoi_aux_loss=args.hoi_aux_loss,**kwargs # only return verb class for HICO-DET dataset)postprocessors = {'hoi': PostProcess(args.HOIDet)}else:criterion = SetCriterion(args.num_classes, matcher=matcher, weight_dict=weight_dict,22 unmodified lines232425262728115 unmodified lines14414514614714814915015115215315415515615715815916016116216316416522 unmodified linesfrom .feed_forward import MLPfrom .hotr import HOTRclass DETR(nn.Module):""" This is the DETR module that performs object detection """115 unmodified lineskwargs = {}if args.dataset_file == 'hico-det': kwargs['return_obj_class'] = args.valid_obj_idsmodel = HOTR(detr=model,num_hoi_queries=args.num_hoi_queries,num_actions=args.num_actions,interaction_transformer=interaction_transformer,augpath_name = args.augpath_name,share_dec_param = args.share_dec_param,stop_grad_stage = args.stop_grad_stage,freeze_detr=(args.frozen_weights is not None),share_enc=args.share_enc,pretrained_dec=args.pretrained_dec,temperature=args.temperature,hoi_aux_loss=args.hoi_aux_loss,**kwargs # only return verb class for HICO-DET dataset)postprocessors = {'hoi': PostProcess(args.HOIDet)}else:criterion = SetCriterion(args.num_classes, matcher=matcher, weight_dict=weight_dict,
.gitignore-1
hotr/engine/arg_parser.py-2
hotr/models/detr.py+16-33