MCPcopy Create free account

hub / github.com/GingL/ARN / functions

Functions100 in github.com/GingL/ARN

↓ 3 callersMethod__init__
(self, opt)
lib/layers/loss.py:35
↓ 3 callersMethod__init__
(self, opt)
lib/layers/visual_encoder.py:40
↓ 3 callersMethod_clip_boxes
Clip boxes to image boundaries.
lib/mrcn/inference.py:355
↓ 3 callersMethod_clip_boxes
Clip boxes to image boundaries.
lib/mrcn/inference_no_imdb.py:372
↓ 3 callersMethod_get_blobs
Convert an image and RoIs within that image into network inputs.
lib/mrcn/inference.py:348
↓ 3 callersMethod_get_blobs
Convert an image and RoIs within that image into network inputs.
lib/mrcn/inference_no_imdb.py:365
↓ 3 callersMethodmse_loss
(self, recons, emb)
lib/layers/loss.py:221
↓ 2 callersMethod__init__
(self, opt)
lib/layers/lang_decoder.py:26
↓ 2 callersMethod__init__
(self, vis_dim, lang_dim, jemb_dim)
lib/layers/match.py:14
↓ 2 callersMethodextract_ann_features
Get features for all ann_ids in an image
lib/loaders/dataloader.py:247
↓ 2 callersMethodfetch_attribute_label
Return - labels : Variable float (N, num_atts) - select_ixs: Variable long (n, )
lib/loaders/dataloader.py:230
↓ 2 callersMethodfetch_neighbour_ids
For a given ann_id, we return - st_ann_ids: same-type neighbouring ann_ids (not include itself) - dt_ann_ids: different-type
lib/loaders/dataloader.py:130
↓ 2 callersMethodfetch_seq
(self, sent_id)
lib/loaders/loader.py:124
↓ 2 callersMethodget_attribute_weights
(self, scale = 10)
lib/loaders/dataloader.py:357
↓ 2 callersFunctionget_imdb_name
(imdb_name)
lib/mrcn/inference.py:39
↓ 2 callersMethodloadFeats
(self, Feats)
lib/loaders/dataloader.py:80
↓ 2 callersFunctionparse_opt
()
tools/opt.py:4
↓ 2 callersMethodprepare_mrcn
Arguments: head_feats_dir: cache/feats/dataset_splitBy/net_imdb_tag, containing all image conv_net feats args: imdb_name,
lib/loaders/dataloader.py:67
↓ 1 callersMethod__init__
(self, vocab_size, word_embedding_size, word_vec_size, hidden_size, bidirectional=False, inpu
lib/layers/lang_encoder.py:11
↓ 1 callersMethod_get_image_blob
Converts an image into a network input. Arguments: im (ndarray): a color image in BGR order Returns: blob (ndarray): a data blob h
lib/mrcn/inference.py:311
↓ 1 callersMethod_get_image_blob
Converts an image into a network input. Arguments: im (ndarray): a color image in BGR order Returns: blob (ndarray): a data blob h
lib/mrcn/inference_no_imdb.py:331
↓ 1 callersMethodbox_to_spatial_fc7
Arguments: net_conv (Variable) : (1, 1024, H, W) im_info (float32) : [[ih, iw, scale]] ori_boxes (float32) : (n, 4) [x1y1x
lib/mrcn/inference.py:247
↓ 1 callersFunctioncomputeIoU
(box1, box2)
lib/models/eval.py:20
↓ 1 callersMethodcompute_dif_lfeats
(self, ann_ids, topK=5)
lib/loaders/dataloader.py:183
↓ 1 callersMethodcompute_lfeats
(self, ann_ids)
lib/loaders/dataloader.py:172
↓ 1 callersMethoddecode_labels
labels: int32 (n, label_length) zeros padded in end return: list of sents in string format
lib/loaders/loader.py:89
↓ 1 callersFunctionevaluate
(params)
tools/eval.py:38
↓ 1 callersMethodfetch_cxt_feats
Return - cxt_feats : ndarray (#ann_ids, topK, fc7_dim) - cxt_lfeats: ndarray (#ann_ids, topK, 5) - cxt_ann_ids: [[ann
lib/loaders/dataloader.py:198
↓ 1 callersMethodfetch_grid_feats
returns -pool5 (n, 1024, 7, 7) -fc7 (n, 2048, 7, 7)
lib/loaders/dataloader.py:167
↓ 1 callersMethodgetBatch
(self, split, opt)
lib/loaders/dataloader.py:277
↓ 1 callersMethodgetTestBatch
(self, split, opt)
lib/loaders/dataloader.py:381
↓ 1 callersFunctionget_imdb_name
(imdb_name)
lib/mrcn/inference_no_imdb.py:37
↓ 1 callersMethodimage_to_head
Returns head: float32 (1, 1024, H, W) im_info: float32 [[im_h, im_w, im_scale]]
lib/loaders/dataloader.py:106
↓ 1 callersFunctionload_model
(checkpoint_path, opt)
tools/eval.py:27
↓ 1 callersMethodload_net
(self)
lib/mrcn/inference.py:70
↓ 1 callersMethodload_net
(self)
lib/mrcn/inference_no_imdb.py:66
↓ 1 callersFunctionmain
(args)
tools/train.py:21
↓ 1 callersMethodresetIterator
(self, split)
lib/loaders/dataloader.py:96
↓ 1 callersMethodshuffle
(self, split)
lib/loaders/dataloader.py:92
↓ 1 callersFunctionxywh_to_xyxy
Convert [x y w h] box format to [x1 y1 x2 y2] format.
lib/loaders/dataloader.py:34
Method__init__
(self, args)
lib/mrcn/inference.py:49
Method__init__
(self, args)
lib/mrcn/inference_no_imdb.py:47
Method__init__
(self, opt)
lib/layers/loss.py:13
Method__init__
(self, opt)
lib/layers/loss.py:114
Method__init__
(self, opt)
lib/layers/loss.py:204
Method__init__
(self, opt)
lib/layers/lang_decoder.py:13
Method__init__
(self, opt)
lib/layers/lang_decoder.py:39
Method__init__
(self, dim, init_norm=20)
lib/layers/visual_encoder.py:12
Method__init__
(self, opt)
lib/layers/visual_encoder.py:25
Method__init__
(self, opt)
lib/layers/visual_encoder.py:68
Method__init__
(self, vis_dim, lang_dim, jemb_dim)
lib/layers/match.py:40
Method__init__
(self, opt)
lib/layers/match.py:75
Method__init__
(self, input_dim)
lib/layers/lang_encoder.py:75
Method__init__
(self, data_json, data_h5=None)
lib/loaders/loader.py:26
Method__init__
(self, data_json, data_h5)
lib/loaders/dataloader.py:44
Method__init__
(self, visual_rank_weight, lang_rank_weight, margin)
lib/crits/max_margin_crit.py:12
Methodbox_to_fc7
Arguments: net_conv (Variable) : (1, 1024, H, W) im_info (float32) : [[ih, iw, scale]] ori_boxes (float32) : (n, 4) [x1y1x
lib/mrcn/inference.py:219
Methodbox_to_fc7
Arguments: net_conv (Variable) : (1, 1024, H, W) im_info (float32) : [[ih, iw, scale]] ori_boxes (float32) : (n, 4) [x1y1x
lib/mrcn/inference_no_imdb.py:267
Methodbox_to_pool5_fc7
Arguments: net_conv (Variable) : (1, 1024, H, W) im_info (float32) : [[ih, iw, scale]] ori_boxes (float32) : (n, 4) [x1y1x
lib/mrcn/inference_no_imdb.py:237
Methodbox_to_spatial_fc7
Arguments: net_conv (Variable) : (1, 1024, H, W) im_info (float32) : [[ih, iw, scale]] ori_boxes (float32) : (n, 4) [x1y1x
lib/mrcn/inference_no_imdb.py:209
Methodboxes_to_masks
Arguments: - img_path: img_file - boxes : ndaray [[xyxy]] (n, 4) in original image - labels : ndarray (n, ) Return: - mask
lib/mrcn/inference.py:124
Methodboxes_to_masks
Arguments: - img_path: img_file - boxes : ndaray [[xyxy]] (n, 4) in original image - labels : ndarray (n, ) Return: - mask
lib/mrcn/inference_no_imdb.py:116
Functionclip_gradient
(optimizer, grad_clip)
lib/models/utils.py:13
Methodcompare
(ann_id0, ann_id1)
lib/loaders/dataloader.py:142
Methoddecode_attribute_label
- scores: Variable (cuda) (n, num_atts) after sigmoid range [0, 1] - labels:list of [[att, sc], [att, sc], ...
lib/loaders/dataloader.py:366
Methodencode_labels
Input: sent_str_list: list of n sents in string format return int32 (n, label_length) zeros padded in end
lib/loaders/loader.py:75
Functioneval_split
(loader, model, split, opt)
lib/models/eval.py:35
Methodexpand_list
(self, L, n)
lib/loaders/dataloader.py:100
Methodextract_head
(self, img_path)
lib/mrcn/inference.py:159
Methodextract_head
(self, img_path)
lib/mrcn/inference_no_imdb.py:151
Methodfetch_label
return: int32 (num_sents, label_length) and picked_sent_ids
lib/loaders/loader.py:103
Methodfetch_sent_ids_by_ref_id
Sample #num_sents sents for each ref_id.
lib/loaders/dataloader.py:116
Methodforward
attribute_feats.shape = (sent_num, ann_num, 512), total_ann_score.shape = (sent_num, ann_num)
lib/layers/loss.py:19
Methodforward
(self, vis_att_fuse, enc_labels, dec_labels)
lib/layers/loss.py:62
Methodforward
sub_phrase_emb, loc_phrase_emb, rel_phrase_emb.shape = (sent_num, 512), labels.shape = (sent_num, sent_length)
lib/layers/loss.py:147
Methodforward
(sub_phrase_emb, sub_phrase_recons, loc_phrase_emb, loc_phrase_recons, rel_phrase_emb, rel_phrase_recons).shape=(sent_num, 512) weigh
lib/layers/loss.py:207
Methodforward
(self, loc_feats, total_ann_score)
lib/layers/lang_decoder.py:17
Methodforward
(self, sub_feats, total_ann_score)
lib/layers/lang_decoder.py:30
Methodforward
(self, rel_feats, total_ann_score, ixs)
lib/layers/lang_decoder.py:46
Methodforward
(self, bottom)
lib/layers/visual_encoder.py:17
Methodforward
(self, lfeats, dif_lfeats)
lib/layers/visual_encoder.py:31
Methodforward
(self, pool5, fc7, phrase_emb)
lib/layers/visual_encoder.py:49
Methodforward
(self, cxt_feats, cxt_lfeats)
lib/layers/visual_encoder.py:73
Methodforward
(self, visual_input, lang_input)
lib/layers/match.py:24
Methodforward
(self, visual_input, lang_input, masks)
lib/layers/match.py:50
Methodforward
(self, pool5, fc7, lfeats, dif_lfeats, cxt_fc7, cxt_lfeats, labels, enc_labels, dec_labels, att_labels, select
lib/layers/match.py:136
Methodforward
Inputs: - input_labels: Variable long (batch, seq_len) Outputs: - output : Variable float (batch, max_len, hidden_size * num_dirs)
lib/layers/lang_encoder.py:24
Methodforward
(self, context, embedded, input_labels)
lib/layers/lang_encoder.py:79
Methodforward
(self, cossim)
lib/crits/max_margin_crit.py:21
Methodhead_to_prediction
Arguments: net_conv (Variable): (1, 1024, H, W) im_info (float) : [[ih, iw, scale]] Returns: scores (ndarray): (num_rois, 8
lib/mrcn/inference.py:170
Methodhead_to_prediction
Arguments: net_conv (Variable): (1, 1024, H, W) im_info (float) : [[ih, iw, scale]] Returns: scores (ndarray): (num_rois, 8
lib/mrcn/inference_no_imdb.py:160
Methodlabel_length
(self)
lib/loaders/loader.py:68
Methodpredict
(self, img_path)
lib/mrcn/inference.py:96
Methodpredict
(self, img_path)
lib/mrcn/inference_no_imdb.py:91
Methodsent_to_Ref
(self, sent_id)
lib/loaders/loader.py:72
Functionset_lr
(optimizer, lr)
lib/models/utils.py:22
Methodspatial_fc7_to_prediction
Only used for testing. Testing the above box_to_fc7 [passed]
lib/mrcn/inference.py:275
Methodspatial_fc7_to_prediction
Only used for testing. Testing the above box_to_fc7 [passed]
lib/mrcn/inference_no_imdb.py:295
Methodvocab_size
(self)
lib/loaders/loader.py:63
Functionxyxy_to_xywh
Convert [x1 y1 x2 y2] box format to [x y w h] format.
lib/loaders/dataloader.py:38