8753096898d9b23e0ce05a1808e4b93f7475b051,datasets/mpisintel.py,,make_dataset,#Any#Any#Any#,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")
        img2 = os.path.join(img_dir,root_filename+str(frame_nb+1).zfill(4)+".png")

After Change


        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))
        flow_map = os.path.join(flow_dir,flow_map)
        if not (os.path.isfile(os.path.join(dataset_dir,img1)) or os.path.isfile(os.path.join(dataset_dir,img2))):
Italian Trulli
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: CellProfiler/CellProfiler
Commit Name: 6784b6461cbeb6b617840b14e3635bd98f6c6cf7
Time: 2017-09-25
Author: mcquin@users.noreply.github.com
File Name: cellprofiler/modules/_help.py
Class Name:
Method Name: __image_resource


Project Name: pantsbuild/pants
Commit Name: 0349078b01ed693223d0c4a65c8a9b8aafe115bc
Time: 2017-05-26
Author: stuhood@twitter.com
File Name: src/python/pants/backend/jvm/tasks/bundle_create.py
Class Name: BundleCreate
Method Name: bundle