• Naofumi Tomita's avatar
    Apply clamping in save_image (#121) · e65925db
    Naofumi Tomita authored
    * clipping values, and replacing transposes with permute
    
    Without clipping, any values larger than 255 will be replaced with
    int(v mod 256) by byte(), which results in high freq noise in image.
    
    * replaced clip with clamp
    e65925db
utils.py 3.53 KB