Skip to content
This repository was archived by the owner on Dec 24, 2024. It is now read-only.

jaewoosong/mobilenet-torch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

mobilenet-torch

Torch implementation of MobileNet (https://arxiv.org/abs/1704.04861), implemented by Jaewoo Song.

CUDNN and NN versions

Why two versions?

  • MobileNet uses depthwise separable convolutions. They are implemented differently in Torch.
  • Only nn module has function named nn.SpatialDepthWiseConvolution().
  • On the other hand, cudnn module's function cudnn.SpatialConvolution() has one more parameter than its equivalent in nn. By setting nInputPlane, the very last parameter, one can implement depthwise separable convolutions.

So, any difference?

  • It is much faster to train the cudnn version. Training the nn version is really slow.
  • But under the circumstances without GPUs, nn version is the only choice.

About

Torch implementation of MobileNet

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages