Open khawar-islam opened 3 years ago
Same problem!
Same problem!
Solved by assigning the image_size
Same problem!
Solved by assigning the image_size
Hello, I have the same problem. Could you tell me how to assign the image_size? Thank you!
@culiver Hello, I have the same problem. Could you tell me how to assign the image_size? Thank you!
@culiver Hello, I have the same problem. Could you tell me how to assign the image_size? Thank you!
I assigned the image size as the below code. model = ViT('B_16_imagenet1k', pretrained=True, num_classes=37, image_size=opt.input_size).cuda()
Note that do not put this line in nn.Sequential or it might not change the input size.
@culiver Hello, I have the same problem. Could you tell me how to assign the image_size? Thank you!
I assigned the image size as the below code. model = ViT('B_16_imagenet1k', pretrained=True, num_classes=37, image_size=opt.input_size).cuda()
Note that do not put this line in nn.Sequential or it might not change the input size.
Thanks !
I am using a pre-trained VIT model and trained on some different task but I got an error
model.py file
Traceback