def log_laplace_postprocess(inputs, laplace_eps=0.1):
  """Inverse operation of log_laplace_preprocess.

  Args:
    inputs: images of range [0, 1).
    laplace_eps: epsilon as used in log-laplace distribution.

  Returns:
    Postprocessed images for log-laplace modeling.
  """
  img = (inputs - laplace_eps) / (1.0 - 2.0 * laplace_eps)
  # Cap images in value ranges of [0, 1].
  return jnp.clip(img, 0.0, 1.0)
Inverse operation of log_laplace_preprocess.

  Args:
    inputs: images of range [0, 1).
    laplace_eps: epsilon as used in log-laplace distribution.

  Returns:
    Postprocessed images for log-laplace modeling.
  
videogvt/train_lib/losses.py