02d58e0f9f7ea0b802b887edf47309a78e2cee48,run_inference.py,,main,#,40

Before Change


        for suffix, flow_output in zip(["flow", "inv_flow"], output):
            rgb_flow = flow2rgb(args.div_flow * flow_output, max_value=args.max_flow)
            to_save = (rgb_flow * 255).astype(np.uint8).transpose(1,2,0)
            imsave(save_path/"{}{}.png".format(img1_file.namebase[:-1], suffix), to_save)


if __name__ == "__main__":
    main()

After Change


    global args, save_path
    args = parser.parse_args()

    if args.output_value == "both":
        output_string = "raw output and RGB visualization"
    elif args.output_value == "raw":
        output_string = "raw output"
    elif args.output_value == "vis":
        output_string = "RGB visualization"
    print("=> will save " + output_string)
    data_dir = Path(args.data)
    print("=> fetching img pairs in "{}"".format(args.data))
    if args.output is None:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: ClementPinard/FlowNetPytorch
Commit Name: 02d58e0f9f7ea0b802b887edf47309a78e2cee48
Time: 2019-04-04
Author: clement.pinard@parrot.com
File Name: run_inference.py
Class Name:
Method Name: main


Project Name: anishathalye/neural-style
Commit Name: 1a5e08e41aa574d5a281dbec0098b69ed75a2c62
Time: 2016-03-14
Author: akx@iki.fi
File Name: neural_style.py
Class Name:
Method Name: main


Project Name: tyarkoni/pliers
Commit Name: 23d59108f866be3edd2085e1ce43a94eb1d08d18
Time: 2016-11-02
Author: quinten.mcnamara@gmail.com
File Name: featurex/extractors/api.py
Class Name: ClarifaiAPIExtractor
Method Name: _extract