Class for creating a Swin Transformer model
The SwinT class can be used to create a Swin Transformer model, that can be used with the fastai library.
Let's see if this class returns a sequential model :
swint_ob = SwinT('swin_base_patch4_window7_224', pretrained = False, num_classes = 2)
swin_model = swint_ob.get_model()
assert isinstance(swin_model, nn.Sequential)
Any SwinT architecture, present in the timm library, can be used with transcv.