Home

Awesome

Implementing Searching for MobileNetV3 paper using Pytorch

Paper

Todo

MobileNetV3 Block

캡처

Experiments

DatasetsModelacc1acc5EpochParameters
CIFAR-100MobileNetV3(LARGE)70.44%91.34%803.99M
CIFAR-100MobileNetV3(SMALL)67.04%89.41%551.7M
IMAGENETMobileNetV3(LARGE) WORK IN PROCESS5.15M
IMAGENETMobileNetV3(SMALL) WORK IN PROCESS2.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