def caculate_fvd_from_activations(
    real_activations: np.ndarray,
    generated_activations: np.ndarray):
  """Computes the Frechet Inception distance for a batch of examples.

  Args:
    real_activations: a numpy array of shape [num_samples, embedding_size]
    generated_activations: a numpy array of shape [num_samples, embedding_size]
  Returns:
    A scalar for FVD.
  """

  return tfgan.eval.frechet_classifier_distance_from_activations(
      real_activations, generated_activations)
Computes the Frechet Inception distance for a batch of examples.

  Args:
    real_activations: a numpy array of shape [num_samples, embedding_size]
    generated_activations: a numpy array of shape [num_samples, embedding_size]
  Returns:
    A scalar for FVD.
  
videogvt/tools/compute_fvd.py