64bbca62322389c2ac3a4677b152de593ab4f9f5,test_video.py,,,#,15

Before Change


                image = image.cuda()

            out = model(image)
            out_img = out.cpu().data[0].numpy()
            out_img = cv2.cvtColor(np.asarray(out_img), cv2.COLOR_RGB2BGR)

            if IS_REAL_TIME:

After Change


        // read frame
        success, frame = videoCapture.read()
        while success:
            image = Image.fromarray(cv2.cvtColor(frame, cv2.COLOR_BGR2RGB))
            image = Variable(ToTensor()(image)).unsqueeze(dim=0)
            if torch.cuda.is_available():
                image = image.cuda()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: leftthomas/SRGAN
Commit Name: 64bbca62322389c2ac3a4677b152de593ab4f9f5
Time: 2017-12-19
Author: leftthomas@qq.com
File Name: test_video.py
Class Name:
Method Name:


Project Name: AIRLab-POLIMI/mushroom
Commit Name: c6bc2e28156b2582432c1e78117998bd1734c54e
Time: 2018-04-11
Author: carloderamo@gmail.com
File Name: mushroom/environments/atari.py
Class Name: Atari
Method Name: _preprocess_observation


Project Name: dickreuter/Poker
Commit Name: 4347c4de75f12e11ccdf68d3e421fb685e87141b
Time: 2016-10-12
Author: dickreuter@yahoo.com
File Name: template_matching.py
Class Name:
Method Name: