Why is this code written this way?

Author: 1404971870Created Nov 18, 2024Updated Jan 27, 2025

In pix2pix.py, the sample_images method on line 107, why real_A is extracted from imgs["B"], real_B is extracted from imgs["A"]?

Source: eriklindernoren/PyTorch-GAN