ResNet18

на сайте с December 20, 2022 06:26
The model builder above accepts the following values as the weights parameter. ResNet18_Weights.DEFAULT is equivalent to ResNet18_Weights.IMAGENET1K_V1. You can also use strings, e.g. weights='DEFAULT' or weights='IMAGENET1K_V1'. The inference transforms are available at ResNet18_Weights.IMAGENET1K_V1.transforms and perform the following preprocessing operations: Accepts PIL.Image, batched (B, C, H, W) and single (C, H, W) image torch.Tensor objects.