8753096898d9b23e0ce05a1808e4b93f7475b051,datasets/mpisintel.py,,make_dataset,#,15

Before Change


        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")
        flow_map = os.path.join(flow_dir,flow_map)
        if not (os.path.isfile(os.path.join(dir,img1)) or os.path.isfile(os.path.join(dir,img2))):
            continue

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))
        flow_map = os.path.join(flow_dir,flow_map)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

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: invesalius/invesalius3
Commit Name: 9e2fd40e4ed2d9a005d5241fbf039ce77bbbf35f
Time: 2020-08-20
Author: totonixsame@gmail.com
File Name: invesalius/control.py
Class Name: Controller
Method Name: OnOpenOtherFiles


Project Name: EpistasisLab/tpot
Commit Name: ef29cd9bde8695645d63ae7f568fb298809e7b19
Time: 2018-10-15
Author: weixuanf@pennmedicine.upenn.edu
File Name: tpot/builtins/dataset_selector.py
Class Name: DatasetSelector
Method Name: fit


Project Name: invesalius/invesalius3
Commit Name: 0ea8820aee0a177ee2bf667fa15388f4ab64a25c
Time: 2020-04-09
Author: totonixsame@gmail.com
File Name: invesalius/control.py
Class Name: Controller
Method Name: OnOpenOtherFiles