leaderj1001 / MobileNetV3-Pytorch

Implementing Searching for MobileNetV3 paper using Pytorch
MIT License
292 stars 70 forks source link
cifar-10 cifar-100 imagenet mobilenetv3 pytorch searching-for-mobilenetv3

Implementing Searching for MobileNetV3 paper using Pytorch

Todo

MobileNetV3 Block

캡처

Experiments

Datasets Model acc1 acc5 Epoch Parameters
CIFAR-100 MobileNetV3(LARGE) 70.44% 91.34% 80 3.99M
CIFAR-100 MobileNetV3(SMALL) 67.04% 89.41% 55 1.7M
IMAGENET MobileNetV3(LARGE) WORK IN PROCESS 5.15M
IMAGENET MobileNetV3(SMALL) WORK IN PROCESS 2.94M

Usage

Train

python main.py

Options:

Test

python main.py --evaluate True

Options:

Number of Parameters

import torch

from model import MobileNetV3

def get_model_parameters(model):
    total_parameters = 0
    for layer in list(model.parameters()):
        layer_parameter = 1
        for l in list(layer.size()):
            layer_parameter *= l
        total_parameters += layer_parameter
    return total_parameters

tmp = torch.randn((128, 3, 224, 224))
model = MobileNetV3(model_mode="LARGE", multiplier=1.0)
print("Number of model parameters: ", get_model_parameters(model))

Requirements