Relative Content

Tag Archive for pytorchvision-transformer

Error loading state_dict for ViT-H-14 model in PyTorch

I’m trying to train a Vision Transformer (ViT-H-14) model using a pre-trained weight file, but I’m encountering an error when loading the state_dict. The error occurs when I load the weights manually using the following code: