tonylins / pytorch-mobilenet-v2

A PyTorch implementation of MobileNet V2 architecture and pretrained model.
Apache License 2.0
1.37k stars 328 forks source link

linux extract mobilenet_v2.pth.tar and it is empty? #36

Closed pianogGG closed 4 years ago

pianogGG commented 4 years ago

tar -xvf mobilenet_v2.pth.tar tar: This does not look like a tar archive tar: Skipping to next header tar: Exiting with failure status due to previous errors ll mobilenet_v2.pth.tar -rwxrwxrwx 1 ** users 14205652 Jul 7 20:52 mobilenet_v2.pth.tar

Bangbanggetnithecar commented 4 years ago

me too

Kitsunetic commented 4 years ago

me too

$ tar -xvf mobilenet_v2.pth.tar 

tar: This does not look like a tar archive
tar: Skipping to next header
tar: Exiting with failure status due to previous errors
tonylins commented 4 years ago

Hi, sorry for the naming confusion. You should not try to untar it. Instead, directly load it in PyTorch: https://github.com/tonylins/pytorch-mobilenet-v2/blob/master/MobileNetV2.py#L140.