SYMBOL INDEX (168 symbols across 24 files) FILE: lib/crits/max_margin_crit.py class MaxMarginCriterion (line 9) | class MaxMarginCriterion(nn.Module): method __init__ (line 11) | def __init__(self, visual_rank_weight, lang_rank_weight, margin): method forward (line 19) | def forward(self, cossim): FILE: lib/layers/joint_match.py class Matching (line 19) | class Matching(nn.Module): method __init__ (line 21) | def __init__(self, vis_dim, lang_dim, jemb_dim, jemb_drop_out): method forward (line 38) | def forward(self, visual_input, lang_input): class RelationMatching (line 65) | class RelationMatching(nn.Module): method __init__ (line 66) | def __init__(self, vis_dim, lang_dim, jemb_dim, jemb_drop_out): method forward (line 83) | def forward(self, visual_input, lang_input, masks): class JointMatching (line 113) | class JointMatching(nn.Module): method __init__ (line 115) | def __init__(self, opt): method forward (line 158) | def forward(self, pool5, fc7, lfeats, dif_lfeats, cxt_fc7, cxt_lfeats,... method sub_rel_kl (line 205) | def sub_rel_kl(self, sub_attn, rel_attn, input_labels): FILE: lib/layers/lang_encoder.py class RNNEncoder (line 11) | class RNNEncoder(nn.Module): method __init__ (line 12) | def __init__(self, vocab_size, word_embedding_size, word_vec_size, hid... method forward (line 27) | def forward(self, input_labels): class PhraseAttention (line 85) | class PhraseAttention(nn.Module): method __init__ (line 86) | def __init__(self, input_dim): method forward (line 91) | def forward(self, context, embedded, input_labels): FILE: lib/layers/visual_encoder.py class Normalize_Scale (line 11) | class Normalize_Scale(nn.Module): method __init__ (line 12) | def __init__(self, dim, init_norm=20): method forward (line 17) | def forward(self, bottom): class LocationEncoder (line 28) | class LocationEncoder(nn.Module): method __init__ (line 29) | def __init__(self, opt): method forward (line 36) | def forward(self, lfeats, dif_lfeats): class SubjectEncoder (line 51) | class SubjectEncoder(nn.Module): method __init__ (line 53) | def __init__(self, opt): method forward (line 73) | def forward(self, pool5, fc7, phrase_emb): method extract_subj_feats (line 117) | def extract_subj_feats(self, pool5, fc7): class RelationEncoder (line 153) | class RelationEncoder(nn.Module): method __init__ (line 154) | def __init__(self, opt): method forward (line 160) | def forward(self, cxt_feats, cxt_lfeats): FILE: lib/loaders/dets_loader.py function xywh_to_xyxy (line 37) | def xywh_to_xyxy(boxes): function xyxy_to_xywh (line 41) | def xyxy_to_xywh(boxes): class DetsLoader (line 47) | class DetsLoader(Loader): method __init__ (line 49) | def __init__(self, data_json, data_h5, dets_json): method prepare_mrcn (line 83) | def prepare_mrcn(self, head_feats_dir, args): method loadFeats (line 99) | def loadFeats(self, Feats): method resetIterator (line 112) | def resetIterator(self, split): method expand_list (line 116) | def expand_list(self, L, n): method image_to_head (line 122) | def image_to_head(self, image_id): method fetch_neighbour_ids (line 131) | def fetch_neighbour_ids(self, ref_det_id): method image_to_head (line 167) | def image_to_head(self, image_id): method fetch_grid_feats (line 177) | def fetch_grid_feats(self, boxes, net_conv, im_info): method compute_lfeats (line 185) | def compute_lfeats(self, det_ids): method compute_dif_lfeats (line 196) | def compute_dif_lfeats(self, det_ids, topK=5): method fetch_cxt_feats (line 213) | def fetch_cxt_feats(self, det_ids, opt): method getTestBatch (line 248) | def getTestBatch(self, split, opt): method getImageBatch (line 305) | def getImageBatch(self, image_id, sent_ids=None, opt={}): FILE: lib/loaders/gt_mrcn_loader.py function xywh_to_xyxy (line 35) | def xywh_to_xyxy(boxes): function xyxy_to_xywh (line 39) | def xyxy_to_xywh(boxes): class GtMRCNLoader (line 43) | class GtMRCNLoader(Loader): method __init__ (line 45) | def __init__(self, data_json, data_h5): method prepare_mrcn (line 68) | def prepare_mrcn(self, head_feats_dir, args): method loadFeats (line 81) | def loadFeats(self, Feats): method shuffle (line 94) | def shuffle(self, split): method resetIterator (line 98) | def resetIterator(self, split): method expand_list (line 102) | def expand_list(self, L, n): method getBatch (line 109) | def getBatch(self, split, opt): method sample_neg_ids (line 234) | def sample_neg_ids(self, ann_id, seq_per_ref, sample_ratio): method fetch_neighbour_ids (line 265) | def fetch_neighbour_ids(self, ref_ann_id): method fetch_sent_ids_by_ref_id (line 305) | def fetch_sent_ids_by_ref_id(self, ref_id, num_sents): method combine_feats (line 319) | def combine_feats(self, feats0, feats1): method image_to_head (line 325) | def image_to_head(self, image_id): method fetch_grid_feats (line 336) | def fetch_grid_feats(self, boxes, net_conv, im_info): method compute_lfeats (line 344) | def compute_lfeats(self, ann_ids): method compute_dif_lfeats (line 355) | def compute_dif_lfeats(self, ann_ids, topK=5): method fetch_cxt_feats (line 372) | def fetch_cxt_feats(self, ann_ids, opt): method get_attribute_weights (line 407) | def get_attribute_weights(self, scale=10): method fetch_attribute_label (line 416) | def fetch_attribute_label(self, ref_ann_ids): method decode_attribute_label (line 432) | def decode_attribute_label(self, scores): method getAttributeBatch (line 448) | def getAttributeBatch(self, split): method getSentBatch (line 486) | def getSentBatch(self, sent_id, opt): method getTestBatch (line 524) | def getTestBatch(self, split, opt): method getImageBatch (line 582) | def getImageBatch(self, image_id, sent_ids=None, opt={}): FILE: lib/loaders/loader.py class Loader (line 24) | class Loader(object): method __init__ (line 26) | def __init__(self, data_json, data_h5=None): method vocab_size (line 63) | def vocab_size(self): method label_length (line 67) | def label_length(self): method encode_labels (line 70) | def encode_labels(self, sent_str_list): method decode_labels (line 84) | def decode_labels(self, labels): method fetch_label (line 97) | def fetch_label(self, ref_id, num_sents): method fetch_seq (line 117) | def fetch_seq(self, sent_id): FILE: lib/models/eval_dets_utils.py function computeIoU (line 18) | def computeIoU(box1, box2): function eval_split (line 33) | def eval_split(loader, model, crit, split, opt): FILE: lib/models/eval_easy_utils.py function compute_overall (line 17) | def compute_overall(predictions): function eval_attributes (line 41) | def eval_attributes(loader, model, split, opt): function eval_split (line 83) | def eval_split(loader, model, crit, split, opt): function eval_dets_split (line 200) | def eval_dets_split(loader, model, crit, split, opt): FILE: lib/models/utils.py function clip_gradient (line 10) | def clip_gradient(optimizer, grad_clip): function set_lr (line 15) | def set_lr(optimizer, lr): FILE: lib/mrcn/inference.py function get_imdb_name (line 36) | def get_imdb_name(imdb_name): class Inference (line 44) | class Inference: method __init__ (line 46) | def __init__(self, args): method load_net (line 67) | def load_net(self): method predict (line 91) | def predict(self, img_path): method boxes_to_masks (line 116) | def boxes_to_masks(self, img_path, boxes, labels): method extract_head (line 152) | def extract_head(self, img_path): method head_to_prediction (line 161) | def head_to_prediction(self, net_conv, im_info): method box_to_fc7 (line 208) | def box_to_fc7(self, net_conv, im_info, ori_boxes): method box_to_spatial_fc7 (line 236) | def box_to_spatial_fc7(self, net_conv, im_info, ori_boxes): method spatial_fc7_to_prediction (line 264) | def spatial_fc7_to_prediction(self, spatial_fc7, im_info, ori_boxes): method _get_image_blob (line 298) | def _get_image_blob(self, im): method _get_blobs (line 332) | def _get_blobs(self, im): method _clip_boxes (line 339) | def _clip_boxes(self, boxes, im_shape): FILE: lib/mrcn/inference_no_imdb.py function get_imdb_name (line 36) | def get_imdb_name(imdb_name): class Inference (line 44) | class Inference: method __init__ (line 46) | def __init__(self, args): method load_net (line 65) | def load_net(self): method predict (line 89) | def predict(self, img_path): method boxes_to_masks (line 115) | def boxes_to_masks(self, img_path, boxes, labels): method extract_head (line 151) | def extract_head(self, img_path): method head_to_prediction (line 160) | def head_to_prediction(self, net_conv, im_info): method box_to_spatial_fc7 (line 207) | def box_to_spatial_fc7(self, net_conv, im_info, ori_boxes): method box_to_pool5_fc7 (line 235) | def box_to_pool5_fc7(self, net_conv, im_info, ori_boxes): method box_to_fc7 (line 265) | def box_to_fc7(self, net_conv, im_info, ori_boxes): method spatial_fc7_to_prediction (line 293) | def spatial_fc7_to_prediction(self, spatial_fc7, im_info, ori_boxes): method _get_image_blob (line 327) | def _get_image_blob(self, im): method _get_blobs (line 361) | def _get_blobs(self, im): method _clip_boxes (line 368) | def _clip_boxes(self, boxes, im_shape): FILE: tools/eval_dets.py function load_model (line 25) | def load_model(checkpoint_path, opt): function evaluate (line 35) | def evaluate(params): FILE: tools/eval_easy.py function load_model (line 25) | def load_model(checkpoint_path, opt): function evaluate (line 35) | def evaluate(params): FILE: tools/eval_masks.py function computeIoU (line 25) | def computeIoU(pred_rle, gd_rle): function annToRLE (line 33) | def annToRLE(ann, h, w): function main (line 49) | def main(args): FILE: tools/extract_mrcn_ann_feats.py function xywh_to_xyxy (line 29) | def xywh_to_xyxy(boxes): function xyxy_to_xywh (line 33) | def xyxy_to_xywh(boxes): function image_to_head (line 37) | def image_to_head(head_feats_dir, image_id): function ann_to_fc7 (line 47) | def ann_to_fc7(mrcn, ann, net_conv, im_info): function ann_to_pool5_fc7 (line 61) | def ann_to_pool5_fc7(mrcn, ann, net_conv, im_info): function main (line 76) | def main(args): FILE: tools/extract_mrcn_det_feats.py function xywh_to_xyxy (line 28) | def xywh_to_xyxy(boxes): function xyxy_to_xywh (line 32) | def xyxy_to_xywh(boxes): function image_to_head (line 36) | def image_to_head(head_feats_dir, image_id): function det_to_pool5_fc7 (line 46) | def det_to_pool5_fc7(mrcn, det, net_conv, im_info): function main (line 62) | def main(args): FILE: tools/extract_mrcn_head_feats.py function main (line 29) | def main(args): FILE: tools/mattnet.py function xywh_to_xyxy (line 36) | def xywh_to_xyxy(boxes): function show_boxes (line 40) | def show_boxes(img, boxes, colors, texts=None): function show_mask (line 57) | def show_mask(img, mask, color): class MattNet (line 70) | class MattNet(): method __init__ (line 72) | def __init__(self, args): method load_matnet_model (line 97) | def load_matnet_model(self, checkpoint_path, opt): method forward_image (line 107) | def forward_image(self, img_path, nms_thresh=.3, conf_thresh=.65): method comprehend (line 190) | def comprehend(self, img_data, expr): method encode_labels (line 259) | def encode_labels(self, sent_str_list, word_to_ix): method compute_lfeats (line 275) | def compute_lfeats(self, det_ids, Dets, im): method fetch_neighbour_ids (line 286) | def fetch_neighbour_ids(self, ref_det_id, Dets): method compute_dif_lfeats (line 320) | def compute_dif_lfeats(self, det_ids, Dets, topK=5): method fetch_cxt_feats (line 337) | def fetch_cxt_feats(self, det_ids, Dets, spatial_fc7, opt): method cls_to_detections (line 376) | def cls_to_detections(self, scores, boxes, nms_thresh, conf_thresh): FILE: tools/opt.py function parse_opt (line 4) | def parse_opt(): FILE: tools/prepro.py function build_vocab (line 46) | def build_vocab(refer, params): function check_sentLength (line 94) | def check_sentLength(sentToFinal): function encode_captions (line 108) | def encode_captions(sentences, wtoi, params): function check_encoded_labels (line 124) | def check_encoded_labels(sentences, labels, itow): function prepare_json (line 135) | def prepare_json(refer, sentToFinal, ref_to_att_wds, params): function build_att_vocab (line 185) | def build_att_vocab(refer, params, att_types=['r1', 'r2', 'r7']): function main (line 226) | def main(params): FILE: tools/run_detect.py function cls_to_detections (line 26) | def cls_to_detections(scores, boxes, imdb, nms_thresh, conf_thresh): function main (line 46) | def main(args): FILE: tools/run_detect_to_mask.py function xywh_to_xyxy (line 29) | def xywh_to_xyxy(boxes): function xyxy_to_xywh (line 33) | def xyxy_to_xywh(boxes): function main (line 38) | def main(args): FILE: tools/train.py function lossFun (line 30) | def lossFun(loader, optimizer, model, mm_crit, att_crit, opt, iter): function main (line 82) | def main(args):