↓ 28 callersMethodeval(
self,
input_ids,
prompt,
seed=0,
batch_size=1,
height=512,
Diffusion-MU-Attack/src/tasks/classifier_.py:552
↓ 2 callersFunctioncalculate_activation_statisticsCalculates the statistics used by FID Args: images: torch.tensor, shape: (N, 3, H, W), dtype: torch.float32 in range 0 - 1 batch_s
scripts/fid_unlearncanvas.py:110
↓ 2 callersFunctioncalculate_fidCalculate FID between images1 and images2 Args: images1: np.array, shape: (N, H, W, 3), dtype: np.float32 between 0-1 or np.uint8
scripts/fid_unlearncanvas.py:237
↓ 2 callersMethodget_loss(self, x0, t, input_ids, input_embeddings, **kwargs)
Diffusion-MU-Attack/src/tasks/classifier_.py:310
↓ 2 callersFunctionpreprocess_imagesResizes and shifts the dynamic range of image to 0-1 Args: images: np.array, shape: (N, H, W, 3), dtype: float32 between 0-1 or np.uint8
scripts/fid_unlearncanvas.py:210