d7ec164171ea9b9739b6827bf0c3d328a9c0c564,demo.py,,,#,39

Before Change


if __name__ == "__main__":

    // If the model has been trained load the model, otherwise use the given model
    export_models_dir = glob("demo/page_model/export/*")
    if not export_models_dir:
        model_dir = "demo/model/"
    else:
        export_models_dir.sort()

After Change



    // If the model has been trained load the model, otherwise use the given model
    model_dir = "demo/page_model/export"
    if not os.path.exists(model_dir):
        model_dir = "demo/model/"

    input_files = glob("demo/pages/test_a1/images/*")

    output_dir = "demo/processed_images"
    os.makedirs(output_dir, exist_ok=True)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: dhlab-epfl/dhSegment
Commit Name: d7ec164171ea9b9739b6827bf0c3d328a9c0c564
Time: 2018-04-04
Author: seg.benoit@gmail.com
File Name: demo.py
Class Name:
Method Name:


Project Name: nipy/dipy
Commit Name: a0e81d626e2264fc52fee60b32e8b6f1a2d9f2a7
Time: 2016-01-11
Author: matthieu.dumont@usherbrooke.ca
File Name: dipy/workflow/segment.py
Class Name:
Method Name: median_otsu_bet


Project Name: philipperemy/keras-activations
Commit Name: 0bc9d06224686cc32e5cf52f3aae979d3380ca24
Time: 2019-01-03
Author: premy@cogent.co.jp
File Name: examples/mnist.py
Class Name:
Method Name: