7d8f3f66495979f1bbd27205d422d673991709f2,GANs/stylegan2/ops.py,,convert_images_to_uint8,#,123
Before Change
if isinstance(images, nn.Variable):
images = images.d
if images.ndim == 4:
images = images[0]
scale = 255 / (drange[1] - drange[0])
images = images * scale + (0.5 - drange[0] * scale)
return np.uint8(np.clip(images, 0, 255))
After Change
if isinstance(images, nn.Variable):
images = images.d
if isinstance(images, nn.NdArray):
images = images.data
scale = 255 / (drange[1] - drange[0])
images = images * scale + (0.5 - drange[0] * scale)
return np.uint8(np.clip(images, 0, 255))
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 9
Instances
Project Name: sony/nnabla-examples
Commit Name: 7d8f3f66495979f1bbd27205d422d673991709f2
Time: 2021-01-26
Author: Krishna.Wadhwani@sony.com
File Name: GANs/stylegan2/ops.py
Class Name:
Method Name: convert_images_to_uint8
Project Name: prody/ProDy
Commit Name: 63d8db941c87501296c0e8c73c7871541455571a
Time: 2020-06-09
Author: shz66@pitt.edu
File Name: prody/dynamics/functions.py
Class Name:
Method Name: calcENM
Project Name: sony/nnabla-examples
Commit Name: 9dab8ae56ce90f1b9ba6808a6e0673ab6f13103e
Time: 2020-12-15
Author: Krishna.Wadhwani@sony.com
File Name: GANs/stylegan2/ops.py
Class Name:
Method Name: convert_images_to_uint8