yitu-opensource / T2T-ViT

ICCV2021, Tokens-to-Token ViT: Training Vision Transformers from Scratch on ImageNet
Other
1.14k stars 176 forks source link

Downloads all say "tar: This does not look like a tar archive" when I try to un-tar #71

Open lowfuel opened 2 years ago

lowfuel commented 2 years ago

I've tried several tools, and downloaded all the files just to see if maybe the first one was corrupt, but every file I try I get this error (from multiple archive utilities including classic tar).

Anyone else seeing this, or do I just have a problem on my end?

yuanli2333 commented 2 years ago

If you are trying to open the checkpoint, please don't do it. You should use 'torch.load' to load all checkpoint files.

lowfuel commented 2 years ago

Oh okay. My apologies. The other models I'm using were all .pt or .pth, so when I saw .pth.tar here I assumed I needed to untar it first. I will pass the tar file directly to torch.