ee602b6f68f0bdd19f449a86955697f8f0a2d54c,gluoncv/data/transforms/video.py,VideoTenCrop,forward,#VideoTenCrop#Any#,304
Before Change
bl = clips[h - oh:h, 0:ow, :]
tr = clips[0:oh, w - ow:w, :]
br = clips[h - oh:h, w - ow:w, :]
crops = nd.concat(*[center, tl, bl, tr, br], dim=2)
crops = nd.concat(*[crops, nd.flip(crops, axis=1)], dim=2)
return crops
After Change
raise ValueError("Cannot crop area {} from image with size \
({}, {})".format(str(self.size), h, w))
new_clips = []
for cur_img in clips:
center = cur_img[(h - oh) // 2:(h + oh) // 2, (w - ow) // 2:(w + ow) // 2, :]
tl = cur_img[0:oh, 0:ow, :]
bl = cur_img[h - oh:h, 0:ow, :]
tr = cur_img[0:oh, w - ow:w, :]
br = cur_img[h - oh:h, w - ow:w, :]
new_clips.append(center)
new_clips.append(tl)
new_clips.append(bl)
new_clips.append(tr)
new_clips.append(br)
new_clips.append(np.flip(center, axis=1))
new_clips.append(np.flip(tl, axis=1))
new_clips.append(np.flip(bl, axis=1))
new_clips.append(np.flip(tr, axis=1))
new_clips.append(np.flip(br, axis=1))
return new_clips
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 8
Instances
Project Name: dmlc/gluon-cv
Commit Name: ee602b6f68f0bdd19f449a86955697f8f0a2d54c
Time: 2019-09-21
Author: yizhu59@gmail.com
File Name: gluoncv/data/transforms/video.py
Class Name: VideoTenCrop
Method Name: forward
Project Name: dmlc/gluon-cv
Commit Name: ee602b6f68f0bdd19f449a86955697f8f0a2d54c
Time: 2019-09-21
Author: yizhu59@gmail.com
File Name: gluoncv/data/transforms/video.py
Class Name: VideoTenCrop
Method Name: forward
Project Name: broadinstitute/keras-rcnn
Commit Name: b540e054944fce7065635ac7891f65571ffc4d55
Time: 2017-06-10
Author: jujihong.cn@gmail.com
File Name: keras_rcnn/backend/tensorflow_backend.py
Class Name:
Method Name: crop_and_resize
Project Name: google/tf_mesh_renderer
Commit Name: 8aaabd6dfcd2f4ae5618ef08657bbba82e8bd69f
Time: 2019-05-28
Author: david.erler@gmail.com
File Name: mesh_renderer/rasterize_triangles.py
Class Name:
Method Name: rasterize_clip_space