jiecaoyu / pytorch_imagenet

PyTorch implementation of AlexNet
127 stars 37 forks source link

Unable to extract Alexnet weights #5

Open 314rated opened 4 years ago

314rated commented 4 years ago

Hi, Thanks for your efforts in making this repo! We wish to use the Alexnet weights (alexnet.pth.tar) associated with your model, but unfortunately we are getting an error on extracting them. Error is: tar: This does not look like a tar archive tar: Skipping to next header tar: Exiting with failure status due to previous errors

We would be grateful if you could help us Thanks!

jiecaoyu commented 4 years ago

@314rated you can use torch.load() to directly load the file. You don't need to extract them.