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

Before Change




def make_dataset(dir, split, dataset_type="clean"):
    training_dir = os.path.join(dir,"training")
    flow_dir = "flow"
    assert(os.path.isdir(os.path.join(training_dir,flow_dir)))
    img_dir = dataset_type
    assert(os.path.isdir(os.path.join(training_dir,img_dir)))

After Change



        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: 3

Non-data size: 4

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: danforthcenter/plantcv
Commit Name: ee7dc09812df5dded34adcde4267d9c754e3b655
Time: 2019-09-11
Author: haleyschuhl@gmail.com
File Name: plantcv/plantcv/hyperspectral/read_data.py
Class Name:
Method Name: read_data


Project Name: AllenCellModeling/pytorch_fnet
Commit Name: f7191ed0517332f563b6107a87c478bd0a6a30d5
Time: 2018-11-01
Author: chek.o@outlook.com
File Name: fnet/utils/viz_utils.py
Class Name:
Method Name: plot_loss