Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 612 Bytes

README.md

File metadata and controls

18 lines (13 loc) · 612 Bytes

Utilz

Collection of helper Python, PyTorch functions:

Mean & std:

  • mean_std.py: Computing mean and std of train dataset per channels. #PyTorch

Converting:

  • Tensor >> Numpy >> Image. #Pytorch
  • RGB << >> YCbCr. #Python

Normalizing:

  • Normalizing 4-dim or 3-dim tensor to [0, 1] , [0, 255], [-1, 1]

Metrics:

  • PSNR: Computing Peak Signal-to-Noise Ratio between images(sightly different from matlab version). #python
  • SSIM: Measuring the structural similarity between images(same as Matlab). #Python
「®️」