↓ 4 callersFunctionflow_warpWarp an image or feature map with optical flow Args: x (Tensor): size (N, C, H, W) flow (Tensor): size (N, H, W, 2), normal value
util/flow_utils.py:4
↓ 1 callersFunctionlog_validation(vae, text_encoder, tokenizer, unet, controlnet, args, accelerator, weight_dtype, step, of_model)
train.py:77
↓ 1 callersMethodprepare_latents(self, batch_size, num_channels_latents, height, width, dtype, device, generator, latents=None)
pipeline/stablevsr_pipeline.py:685