basicsr.models.realesrnet_model

class basicsr.models.realesrnet_model.RealESRNetModel(opt)[source]

Bases: SRModel

RealESRNet Model for Real-ESRGAN: Training Real-World Blind Super-Resolution with Pure Synthetic Data.

It is trained without GAN losses. It mainly performs: 1. randomly synthesize LQ images in GPU tensors 2. optimize the networks with GAN training.

feed_data(data)[source]

Accept data from dataloader, and then add two-order degradations to obtain LQ images.

nondist_validation(dataloader, current_iter, tb_logger, save_img)[source]