Spaces:
Build error
Build error
root commited on
Commit ·
49bb3b0
1
Parent(s): 9586537
initial commit
Browse filesFiles changed (3)
130 unmodified lines131132133134134135136130 unmodified linescheckpoints/
# old versionhotr/models/hotr_v1.pyMakefile
.DS_Store125 unmodified lines126127128129130129130131125 unmodified lines parser.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 parameters parser.add_argument('--dataset_file', help='[coco | vcoco]') parser.add_argument('--data_path', type=str)22 unmodified lines23242526262728115 unmodified lines14414514614814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817914714814915015115215315415515615715815916016116216316416522 unmodified linesfrom .feed_forward import MLP
from .hotr import HOTRfrom .hotr_v1 import HOTR_V1
class DETR(nn.Module): """ This is the DETR module that performs object detection """115 unmodified lines
kwargs = {} if args.dataset_file == 'hico-det': kwargs['return_obj_class'] = args.valid_obj_ids if 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 )
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,.gitignore-1
hotr/engine/arg_parser.py-2
hotr/models/detr.py+16-33