8753096898d9b23e0ce05a1808e4b93f7475b051,datasets/mpisintel.py,,make_dataset,#,15
Before Change
images = []
for flow_map in sorted(glob.glob(os.path.join(dir,flow_dir,"*","*.flo"))):
flow_map = os.path.relpath(flow_map,os.path.join(dir,flow_dir))
root_filename = flow_map[:-8]
frame_nb = int(flow_map[-8:-4])
img1 = os.path.join(img_dir,root_filename+str(frame_nb).zfill(4)+".png")
After Change
flow_map = os.path.relpath(flow_map,os.path.join(dataset_dir,flow_dir))
scene_dir, filename = os.path.split(flow_map)
no_ext_filename = os.path.splitext(filename)[0]
prefix, frame_nb = no_ext_filename.split("_")
frame_nb = int(frame_nb)
img1 = os.path.join(img_dir, scene_dir, "{}_{:04d}.png".format(prefix, frame_nb))
img2 = os.path.join(img_dir, scene_dir, "{}_{:04d}.png".format(prefix, frame_nb + 1))
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: ClementPinard/FlowNetPytorch
Commit Name: 8753096898d9b23e0ce05a1808e4b93f7475b051
Time: 2018-03-30
Author: clement.pinard@parrot.com
File Name: datasets/mpisintel.py
Class Name:
Method Name: make_dataset
Project Name: gyoisamurai/GyoiThon
Commit Name: 4673937fdcb248168fdc25d49b74c5c8f35eed63
Time: 2019-03-13
Author: gyoiler3@gmail.com
File Name: modules/Gyoi_Creator.py
Class Name: Creator
Method Name: decompress_file