Spaces:
Build error
Build error
File size: 304 Bytes
2b0f6fa ac12ce6 |
1 2 3 4 5 6 7 8 9 10 |
import torch
import torchvision
from torchvision.models import EfficientNet_B2_Weights , efficientnet_b2
efficient_weight = EfficientNet_B2_Weights.DEFAULT
efficient_transformer = efficient_weight.transforms()
efficient_model = torch.load("efficient_model_101.pth" , map_location=torch.device('cpu'))
|