MCPcopy Create free account

hub / github.com/CSAILVision/IBD / functions

Functions276 in github.com/CSAILVision/IBD

↓ 21 callersMethodsize
(self)
loader/caption_helper.py:189
↓ 13 callersMethodload_state_dict
Copies parameters and buffers from :attr:`state_dict` into this module and its descendants. If :attr:`strict` is ``True`` then the key
loader/caffe_model.py:265
↓ 10 callersMethodadd
(self, incoming)
util/vecquantile.py:38
↓ 9 callersMethodcategory_names
Returns the set of category names.
loader/data_loader.py:243
↓ 8 callersMethodsplit
Which split contains item i.
loader/data_loader.py:170
↓ 6 callersMethod__init__
(self, local_size=1, alpha=1.0, beta=0.75, ACROSS_CHANNELS=True)
loader/caffe_model.py:20
↓ 6 callersMethodforward
(self, input)
util/feature_operation.py:72
↓ 6 callersMethodlabel_size
Returns the number of distinct labels (plus zero), i.e., one more than the maximum label number. If a category is specified,
loader/data_loader.py:206
↓ 5 callersMethod__len__
(self)
loader/vqa_data_loader.py:149
↓ 5 callersFunctionvis_cam_mask
(cam_mat, org_img, vis_size, font_text=None)
util/image_operation.py:34
↓ 4 callersMethod__init__
(self, embedding_tokens)
loader/vqa_model.py:48
↓ 4 callersMethod__init__
(self, size_average=True, alpha=0.01)
util/feature_decoder.py:163
↓ 4 callersMethod_make_layer
(self, block, planes, blocks, stride=1)
loader/vqa_resnet.py:121
↓ 4 callersMethod_scan_extremes
(self, incoming)
util/vecquantile.py:101
↓ 4 callersMethodbatches
Iterator for all batches
loader/data_loader.py:512
↓ 4 callersMethodcam_mat
(self, mat, above_zero=False)
util/feature_operation.py:578
↓ 4 callersFunctionimconcat
(imgs, w, h, margin=0)
util/image_operation.py:10
↓ 4 callersMethodupdate
(self, val, n=1)
util/feature_operation.py:31
↓ 4 callersMethodupdate
(self, val, n=1)
util/experiments.py:33
↓ 4 callersFunctionupsampled_shape
(fieldmap, shape, reduction=1)
util/upsample.py:164
↓ 4 callersFunctionwh_attr
(layer, attrname, default=0, minval=0)
util/upsample.py:238
↓ 3 callersMethod_dataset_maker
(self, negative_samples, positive_samples, split_ratio=None)
loader/feature_loader.py:366
↓ 3 callersMethod_update_extremes
(self, minr, maxr)
util/vecquantile.py:107
↓ 3 callersMethodcategory_index_map
(self, category)
loader/data_loader.py:350
↓ 3 callersFunctioncentered_arange
(fieldmap, activation_shape, reduction=1)
util/upsample.py:359
↓ 3 callersFunctioncompose_fieldmap
Composes two stacked fieldmap maps. Field maps are represented as triples of (offset, size, step), where each is an (x, y) pair. To find
util/upsample.py:277
↓ 3 callersMethoddecompose_Gram_Schmidt
(self, weight_concept, weight_label, prediction_ind=None, MAX=20)
util/feature_operation.py:372
↓ 3 callersMethodforward
(self, input)
util/feature_decoder.py:44
↓ 3 callersMethodforward
(self, input, id=None)
util/feature_decoder.py:199
↓ 3 callersFunctionfull_arange
(output_shape)
util/upsample.py:366
↓ 3 callersFunctionimstack
(imgs)
util/image_operation.py:23
↓ 3 callersMethodinstance_cam_by_file
(self, model, image_file, feat_clf, other_params=None, fig_style=0)
util/feature_operation.py:632
↓ 3 callersFunctionrandom_color
(labels, type="soft")
visualize/plot.py:12
↓ 3 callersMethodsave_snapshot
(self, epoch)
util/feature_decoder.py:30
↓ 3 callersMethodsingle_feature_extraction
(self, model, org_img)
util/feature_operation.py:282
↓ 3 callersMethodweight_extraction
(self, model, feat_clf)
util/feature_operation.py:328
↓ 2 callersMethod__init__
(self, block, layers, num_classes=1000)
loader/vqa_resnet.py:98
↓ 2 callersMethod_add_every
(self, incoming)
util/vecquantile.py:54
↓ 2 callersMethod_init_lstm
(self, weight)
loader/vqa_model.py:122
↓ 2 callersFunctionbig_margin
(vis_size)
util/image_operation.py:98
↓ 2 callersFunctionbuild_dense_label_array
Input: set of rows with 'number' fields (or another field name key). Output: array such that a[number] = the row with the given number.
loader/data_loader.py:353
↓ 2 callersFunctioncentered_slice
(fieldmap, activation_shape, reduction=1)
util/upsample.py:353
↓ 2 callersMethodclose
(self)
loader/data_loader.py:587
↓ 2 callersFunctionconcept_loader
(feat, feat_name, seg_data, concept_size, split=False)
loader/feature_loader.py:398
↓ 2 callersFunctionconv3x3
3x3 convolution with padding
loader/vqa_resnet.py:20
↓ 2 callersMethodcoverage
Returns the pixel coverage of the label in units of whole-images.
loader/data_loader.py:235
↓ 2 callersFunctiondecode_label_dict
(row)
loader/data_loader.py:384
↓ 2 callersMethodextract
Extracts all elements from the TopN. This is a destructive operation. The only method that can be called immediately after extract() is reset
loader/caption_helper.py:201
↓ 2 callersMethodfeature_extraction
(self, model=None, memmap=True)
util/feature_operation.py:132
↓ 2 callersMethodfetch_batch
Returns a single batch as an array of dictionaries.
loader/data_loader.py:520
↓ 2 callersFunctionheadline2
(captions, vis_size, height, width, margin=3)
util/image_operation.py:83
↓ 2 callersMethodinit
(self, questions_path, answers_path, image_path, answerable_only)
loader/vqa_data_loader.py:49
↓ 2 callersMethodintegrate
(self, fun)
util/vecquantile.py:202
↓ 2 callersFunctionlayer_fieldmap
(layer)
util/upsample.py:253
↓ 2 callersFunctionloadmodel
()
loader/model_loader.py:7
↓ 2 callersMethodminmax
(self)
util/vecquantile.py:113
↓ 2 callersFunctionnormalize_label
Given a 0, 1, 2, or 3-dimensional label_data and a default shape of the form (1, y, x), returns a 3d tensor by
loader/data_loader.py:700
↓ 2 callersMethodpush
Pushes a new element.
loader/caption_helper.py:193
↓ 2 callersMethodquantiles
(self, quantiles, old_style=False)
util/vecquantile.py:186
↓ 2 callersFunctionreceptive_field
Computes the receptive field of a specific location. Parameters ---------- location: tuple The x-y position of the unit being que
util/upsample.py:212
↓ 2 callersFunctionsafezoom
Like numpy.zoom, but does not crash when the first dimension of the array is of size 1, as happens often with segmentations
loader/data_loader.py:643
↓ 2 callersMethodtrain
(self, train_loader, c_i, epoch)
util/feature_decoder.py:266
↓ 2 callersMethodval
(self, val_loader, c_i, epoch)
util/feature_decoder.py:239
↓ 1 callersMethod__init__
(self, feat, feat_name, seg_data, concept_size)
loader/feature_loader.py:62
↓ 1 callersMethod__init__
(self, questions_path, answers_path, image_path, answerable_only=False, cache_path=None)
loader/vqa_data_loader.py:25
↓ 1 callersMethod__iter__
(self)
loader/feature_loader.py:210
↓ 1 callersMethod__len__
(self)
loader/feature_loader.py:99
↓ 1 callersMethod_check_integrity
Verify that we are using the correct data
loader/vqa_data_loader.py:111
↓ 1 callersFunction_cropped_slices
(offset, size, limit)
util/upsample.py:310
↓ 1 callersMethod_encode_answers
Turn an answer into a vector
loader/vqa_data_loader.py:127
↓ 1 callersMethod_encode_question
Turn a question into a vector of indices and a question length
loader/vqa_data_loader.py:119
↓ 1 callersMethod_expand
(self)
util/vecquantile.py:118
↓ 1 callersMethod_find_images
(self)
loader/vqa_data_loader.py:208
↓ 1 callersMethod_next_capacity
(self)
util/vecquantile.py:156
↓ 1 callersMethod_shift
(self)
util/vecquantile.py:79
↓ 1 callersMethod_weighted_summary
(self, sort=True)
util/vecquantile.py:162
↓ 1 callersFunctionaccuracy
Computes the precision@k for the specified values of k
util/feature_operation.py:37
↓ 1 callersFunctionaccuracy
Computes the precision@k for the specified values of k
util/experiments.py:40
↓ 1 callersMethodall_names
(self, category, j)
loader/data_loader.py:39
↓ 1 callersFunctionapply_attention
Apply any number of attention maps over the input. The attention map has to have the same size in all dimensions except dim=1.
loader/vqa_model.py:153
↓ 1 callersMethodbeam_search
Runs beam search caption generation on a single image. Args: initial_state: An initial state for the recurrent model Retur
loader/caption_helper.py:101
↓ 1 callersFunctionbuild_numpy_category_map
Input: set of rows with 'number' fields (or another field name key). Output: array such that a[number] = the row with the given number.
loader/data_loader.py:372
↓ 1 callersFunctionclean
()
util/clean.py:4
↓ 1 callersFunctionconvert
(value)
loader/data_loader.py:18
↓ 1 callersFunctioncrop_rectangle
(image_data, offset, size)
util/upsample.py:330
↓ 1 callersFunctiondecode_index_dict
(row)
loader/data_loader.py:403
↓ 1 callersMethodfeat_resize_func
(size)
loader/feature_loader.py:57
↓ 1 callersFunctionfeature_loader
(feat, feat_name, seg_data, concept_size, split=False)
loader/feature_loader.py:409
↓ 1 callersMethodfetch_tensor_batch
Iterator for batches as arrays of tensors.
loader/data_loader.py:533
↓ 1 callersMethodfilename
(self, i)
loader/data_loader.py:43
↓ 1 callersMethodfilename
The filename of the ith jpeg (original image).
loader/data_loader.py:166
↓ 1 callersMethodfixed_val_loader
(self, sample_ratio=20, verbose=False, shuffle=False)
loader/feature_loader.py:305
↓ 1 callersMethodform_caffe_tensors
(self, batch, bgr_mean=None, global_labels=False)
loader/data_loader.py:547
↓ 1 callersMethodgenerate
(self, img,eos_token='EOS',max_caption_length=20)
loader/caption_model.py:89
↓ 1 callersMethodgenerate_label
(self, shape, seg_data)
loader/feature_loader.py:22
↓ 1 callersMethodgenerate_label
(self, shape, feature_name, seg_data)
loader/feature_loader.py:117
↓ 1 callersFunctionheadline
(captions, vis_size, height, width, margin=3)
util/image_operation.py:71
↓ 1 callersMethodimagecap_feature_extraction
(self, model, org_img)
util/feature_operation.py:244
↓ 1 callersFunctionlabel_seg
(img, vis_size, labels, concept_inds, cam=None)
util/image_operation.py:50
↓ 1 callersMethodload_cache
(self, cache_path)
loader/vqa_data_loader.py:91
next →1–100 of 276, ranked by callers