f22814f2405f83179c99f1fd4b895671bbdb124c,tools/scripts/features/lmdb_conversion.py,LMDBConversion,extract,#LMDBConversion#,76
Before Change
os.path.join(self.args.features_folder, file_base_name),
item["features"],
)
np.save(
os.path.join(self.args.features_folder, info_file_base_name),
tmp_dict,
)
def execute(self):
if self.args.mode == "convert":
self.convert()
After Change
path = os.path.join(self.args.features_folder, file_base_name)
if PathManager.exists(path):
continue
info_path = os.path.join(self.args.features_folder, info_file_base_name)
base_path = "/".join(path.split("/")[:-1])
PathManager.mkdirs(base_path)
np.save(PathManager.open(path, "wb"), item["features"])
np.save(PathManager.open(info_path, "wb"), tmp_dict)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: facebookresearch/pythia
Commit Name: f22814f2405f83179c99f1fd4b895671bbdb124c
Time: 2021-02-24
Author: asg@fb.com
File Name: tools/scripts/features/lmdb_conversion.py
Class Name: LMDBConversion
Method Name: extract
Project Name: google/nucleus
Commit Name: 2e2f38c9a2b4ec4639860bbfcbde1d502cbae714
Time: 2020-06-22
Author: pichuan@google.com
File Name: nucleus/util/vis.py
Class Name:
Method Name: save_to_png
Project Name: google/deepvariant
Commit Name: e358b26eaf21f4ea1c20ad1835a0cab7b86ce1e5
Time: 2020-06-22
Author: pichuan@google.com
File Name: third_party/nucleus/util/vis.py
Class Name:
Method Name: save_to_png