ee602b6f68f0bdd19f449a86955697f8f0a2d54c,gluoncv/data/transforms/video.py,VideoNormalize,forward,#VideoNormalize#Any#,69
Before Change
def forward(self, clips):
c, _, _ = clips.shape
num_images = int(c / 3)
clip_mean = self.mean * num_images
clip_std = self.std * num_images
clip_mean = nd.array(np.asarray(clip_mean).reshape((c, 1, 1)))
clip_std = nd.array(np.asarray(clip_std).reshape((c, 1, 1)))
return (clips - clip_mean) / clip_std
class VideoRandomHorizontalFlip(Block):
Randomly flip the input video clip left to right
with a probability of 0.5.
After Change
new_clips = []
for cur_img in clips:
new_clips.append((cur_img - self.mean) / self.std)
return new_clips
class VideoRandomHorizontalFlip(Block):
Randomly flip the images left to right with a probability.
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: VideoNormalize
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: VideoNormalize
Method Name: forward
Project Name: mozilla/TTS
Commit Name: d38872a4d0b4d902d6ce3979560d0c4f4258ac82
Time: 2018-12-17
Author: egolge@mozilla.com
File Name: datasets/TTSDataset.py
Class Name: MyDataset
Method Name: __getitem__
Project Name: mozilla/TTS
Commit Name: 2f0e9545a368cd54dddf9faeecb494439913cf5a
Time: 2018-12-28
Author: egolge@mozilla.com
File Name: datasets/TTSDataset.py
Class Name: MyDataset
Method Name: __getitem__