643bd0823c1f09fcb621207f3345879abf694ab0,demo.py,,main,#,85

Before Change


            // image = cv2.imread(image_list[image_idx])
            // image = utils.fixed_resize(image, (450, 450))
            dismap = utils.fixed_resize(dismap, (450, 450)).astype(np.uint8)
            cv2.imwrite("output.png", dismap)

            dismap = np.expand_dims(dismap, axis=-1)

After Change


            prediction[prediction<=0.8] = 0
            print("prediction done!")
            prediction = np.expand_dims(prediction, axis=-1).astype(np.uint8)
            image = image[:, :, ::-1] // change to bgr
            display_mask = np.concatenate([prediction, prediction, prediction], axis=-1)
            image = cv2.addWeighted(image, 0.9, display_mask, 0.5, 0.1)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: jfzhang95/DeepGrabCut-PyTorch
Commit Name: 643bd0823c1f09fcb621207f3345879abf694ab0
Time: 2018-05-28
Author: jessezhjf@gmail.com
File Name: demo.py
Class Name:
Method Name: main


Project Name: MaybeShewill-CV/lanenet-lane-detection
Commit Name: adae011a04e9208d770b6fc687dff320802b0a6f
Time: 2018-10-23
Author: luoyao@baidu.com
File Name: tools/test_lanenet.py
Class Name:
Method Name: test_lanenet


Project Name: oarriaga/face_classification
Commit Name: afcd2b86b198a6e548ba43ac5cd135a9ccc86ec6
Time: 2017-07-04
Author: arriaga.camargo@gmail.com
File Name: src/utils/grad_cam.py
Class Name:
Method Name: