MohammadAliMKH's picture
Upload 7 files
79cd580
raw
history blame
278 Bytes
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("/demo/efficient_b2.pth").to("cpu")