pyiqa.archs.inception¶
File from: https://github.com/mseitzer/pytorch-fid
Module Contents¶
- class pyiqa.archs.inception.InceptionV3(output_blocks=(DEFAULT_BLOCK_INDEX,), resize_input=True, normalize_input=True, requires_grad=False, use_fid_inception=True)[source]¶
Bases:
torch.nn.ModulePretrained InceptionV3 network returning feature maps
- pyiqa.archs.inception.fid_inception_v3()[source]¶
Build pretrained Inception model for FID computation The Inception model for FID computation uses a different set of weights and has a slightly different structure than torchvision’s Inception. This method first constructs torchvision’s Inception and then patches the necessary parts that are different in the FID Inception model.
- class pyiqa.archs.inception.FIDInceptionA(in_channels, pool_features)[source]¶
Bases:
torchvision.models.inception.InceptionAInceptionA block patched for FID computation
- class pyiqa.archs.inception.FIDInceptionC(in_channels, channels_7x7)[source]¶
Bases:
torchvision.models.inception.InceptionCInceptionC block patched for FID computation