Randl / MobileNetV2-pytorch

Impementation of MobileNetV2 in pytorch
https://arxiv.org/abs/1801.04381
MIT License
270 stars 83 forks source link

Automatic calculate the number of classes when training #15

Open zacario-li opened 4 years ago

zacario-li commented 4 years ago

number of classes, here the net use 1000 as default, this line code, I suggest that, we can use len(train_loader.dataset.classes).