f5d2a886c23010563592eb7a1810edeebd75fba3,mmf/datasets/databases/readers/feature_readers.py,FasterRCNNFeatureReader,read,#FasterRCNNFeatureReader#,85

Before Change



class FasterRCNNFeatureReader:
    def read(self, image_feat_path):
        return torch.from_numpy(np.load(image_feat_path)), None


class CHWFeatureReader:
    def __init__(self, max_features=None):

After Change



class FasterRCNNFeatureReader:
    def read(self, image_feat_path):
        feat = load_feat(image_feat_path, convert_to_tensor=True)
        return feat, None


class CHWFeatureReader:
    def __init__(self, max_features=None):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: facebookresearch/pythia
Commit Name: f5d2a886c23010563592eb7a1810edeebd75fba3
Time: 2020-08-27
Author: vedanuj@fb.com
File Name: mmf/datasets/databases/readers/feature_readers.py
Class Name: FasterRCNNFeatureReader
Method Name: read


Project Name: Shmuma/ptan
Commit Name: e2ec9a36878944e2157d2dfd03b81368b633939f
Time: 2017-10-03
Author: max.lapan@gmail.com
File Name: ptan/agent.py
Class Name: DQNAgent
Method Name: __call__


Project Name: ncullen93/torchsample
Commit Name: f4ca9b361adb382423c753f7f864a5dd0e454964
Time: 2017-05-12
Author: ncullen.th@dartmouth.edu
File Name: torchsample/transforms/tensor_transforms.py
Class Name: ToTensor
Method Name: __call__