facebookresearch / moco

PyTorch implementation of MoCo: https://arxiv.org/abs/1911.05722
MIT License
4.83k stars 794 forks source link

tar: Error opening archive: Unrecognized archive format #22

Closed Yiyun-Liang closed 4 years ago

Yiyun-Liang commented 4 years ago

I am using macOS and I tried to download the pre-trained model with curl -OL https://dl.fbaipublicfiles.com/moco/moco_checkpoints/moco_v2_800ep/moco_v2_800ep_pretrain.pth.tar. I tried to decompress the tar file with tar xvf moco_v2_800ep_pretrain.pth.tar but received the error tar: Error opening archive: Unrecognized archive format. Could you verify that the pre-trained model files are not corrupted please? Thank you very much.

ppwwyyxx commented 4 years ago

The file is not in tar format (despite the name) and cannot be loaded with tar xvf. torch.load can load it.