Closed AaronPeng920 closed 11 months ago
Hi Aaron,
Did you use the requirements.txt
file to install the specific timm version? Newer versions of timm are likely incompatible with these weights.
I was able to evaluate the swin model with a 91.35% accuracy using the following commands:
pip install -r requirements.txt
python .\main.py --model swin --evaluate https://github.com/ehuynh1106/TinyImageNet-Transformers/releases/download/weights/swin_large_384.pth
aise RuntimeError('Error(s) in loading state_dict for {}:\n\t{}'.format( RuntimeError: Error(s) in loading state_dict for SwinTransformer: Missing key(s) in state_dict: "layers.3.downsample.norm.weight", "layers.3.downsample.norm.bias", "layers.3.downsample.reduction.weight", "head.fc.weight", "head.fc.bias". Unexpected key(s) in state_dict: "layers.0.downsample.norm.weight", " ............