f5d2a886c23010563592eb7a1810edeebd75fba3,mmf/datasets/databases/readers/feature_readers.py,PaddedFasterRCNNFeatureReader,_load,#PaddedFasterRCNNFeatureReader#,132
Before Change
def _load(self, image_feat_path):
image_info = {}
image_info["features"] = np.load(image_feat_path, allow_pickle=True)
info_path = "{}_info.npy".format(image_feat_path.split(".npy")[0])
if PathManager.exists(info_path):
image_info.update(np.load(info_path, allow_pickle=True).item())
After Change
def _load(self, image_feat_path):
image_info = {}
image_info["features"] = load_feat(image_feat_path)
info_path = "{}_info.npy".format(image_feat_path.split(".npy")[0])
if PathManager.exists(info_path):
image_info.update(load_feat(info_path).item())
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 2
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: PaddedFasterRCNNFeatureReader
Method Name: _load
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: facebookresearch/pythia
Commit Name: f5d2a886c23010563592eb7a1810edeebd75fba3
Time: 2020-08-27
Author: vedanuj@fb.com
File Name: mmf/datasets/databases/readers/feature_readers.py
Class Name: CHWFeatureReader
Method Name: read