f1fca244a7b6bff0ff66a052b58d3a3798d74ecb,imagenet-classification/create_input_files.py,,main,#Any#,20
Before Change
paths = glob.glob("{}/*/*".format(args.train_file_dir))
with open("train_label", "w") as fp:
for path in paths:
dname, fname = path.rstrip().split("/")[-2:]
label = dname_label[dname]
local_path = os.path.join(dname, fname)
fp.write("{} {}\n".format(local_path, label))
After Change
name_parts = path.parts[len(train_root.parts):]
dname = name_parts[-1].split("_")[0]
label = dname_label[dname]
local_path = str(pathlib.Path(*name_parts))
fp.write("{} {}\n".format(local_path, label))
// File list for valdiation
print("File list for valdiation")
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 5
Instances
Project Name: sony/nnabla-examples
Commit Name: f1fca244a7b6bff0ff66a052b58d3a3798d74ecb
Time: 2020-03-20
Author: Takuya.Narihira@sony.com
File Name: imagenet-classification/create_input_files.py
Class Name:
Method Name: main
Project Name: ultralytics/yolov3
Commit Name: 272b9c7c11b8bd7eae10eb9c1596a8adf22df4fa
Time: 2019-07-29
Author: glenn.jocher@ultralytics.com
File Name: models.py
Class Name:
Method Name: load_darknet_weights
Project Name: matplotlib/matplotlib
Commit Name: 4e61ef1afcc78af5d6061c30cea8f114b13913e3
Time: 2019-06-02
Author: anntzer.lee@gmail.com
File Name: examples/text_labels_and_annotations/font_file.py
Class Name:
Method Name:
Project Name: hyperspy/hyperspy
Commit Name: 629167ee324a0b955ef46cd5a0cd7bb504ef8c44
Time: 2020-09-09
Author: tjof2@cam.ac.uk
File Name: hyperspy/misc/io/tools.py
Class Name:
Method Name: ensure_directory
Project Name: ilastik/ilastik
Commit Name: 3115393fab7b373a4dad1bc47cd9cabd6bc52790
Time: 2019-08-23
Author: tom.fogaca@gmail.com
File Name: ilastik/applets/dataSelection/opDataSelection.py
Class Name: DatasetInfo
Method Name: create_nickname