在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):kuan-wang/pytorch-mobilenet-v3开源软件地址(OpenSource Url):https://github.com/kuan-wang/pytorch-mobilenet-v3开源编程语言(OpenSource Language):Python 100.0%开源软件介绍(OpenSource Introduction):A PyTorch implementation of MobileNetV3This is a PyTorch implementation of MobileNetV3 architecture as described in the paper Searching for MobileNetV3. Some details may be different from the original paper, welcome to discuss and help me figure it out.
Training & Accuracytraining setting:
MobileNetV3 large
MobileNetV3 small
UsagePretrained models are still training ... # pytorch 1.0.1
# large
net_large = mobilenetv3(mode='large')
# small
net_small = mobilenetv3(mode='small')
state_dict = torch.load('mobilenetv3_small_67.4.pth.tar')
net_small.load_state_dict(state_dict) Data Pre-processingI used the following code for data pre-processing on ImageNet: normalize = transforms.Normalize(mean=[0.485, 0.456, 0.406],
std=[0.229, 0.224, 0.225])
input_size = 224
train_loader = torch.utils.data.DataLoader(
datasets.ImageFolder(
traindir, transforms.Compose([
transforms.RandomResizedCrop(input_size),
transforms.RandomHorizontalFlip(),
transforms.ToTensor(),
normalize,
])),
batch_size=batch_size, shuffle=True,
num_workers=n_worker, pin_memory=True)
val_loader = torch.utils.data.DataLoader(
datasets.ImageFolder(valdir, transforms.Compose([
transforms.Resize(int(input_size/0.875)),
transforms.CenterCrop(input_size),
transforms.ToTensor(),
normalize,
])),
batch_size=batch_size, shuffle=False,
num_workers=n_worker, pin_memory=True) |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论