You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import torch
model = torch.hub.load('pytorch/vision', 'googlenet', pretrained=True)
model.eval()
There are some mistakes and I encounter: AttributeError: module 'torch.jit' has no attribute 'unused'
And in inception.py line 168, there is @torch.jit.unused.
How can I solve this problem if I want to use your official implementation GoogleNet?
The text was updated successfully, but these errors were encountered:
TorchVision master now requires a recent enough version of PyTorch.
One thing you can do is to use torchvision.models.googlenet, or update your PyTorch installation.
Also, see pytorch/hub#55 for more discussion about this problem (which is in TorchHub, and not in torchvision).
As such, I'm closing this issue, but feel free to continue the discussion at that issue in torchhub
@sdfs1231 You need to install a nightly version of PyTorch and torchvision.
Alternatively, next week we will be releasing a new stable version of both.
When I run the following code
There are some mistakes and I encounter:
AttributeError: module 'torch.jit' has no attribute 'unused'
And in
inception.py
line 168, there is@torch.jit.unused
.How can I solve this problem if I want to use your official implementation GoogleNet?
The text was updated successfully, but these errors were encountered: