AI::MXNet::Gluon::ModelZoo - A collection of pretrained MXNet Gluon models
## run forward prediction on random data use AI::MXNet::Gluon::ModelZoo qw(get_model); my $alexnet = get_model('alexnet', pretrained => 1); my $out = $alexnet->(mx->nd->random->uniform(shape=>[1, 3, 224, 224])); print $out->aspdl;
This module houses a collection of pretrained models (the parameters are hosted on public mxnet servers). https://mxnet.incubator.apache.org/api/python/gluon/model_zoo.html See examples/image_classification.pl for the example of real time image classification using a pretrained model from the ModelZoo
Returns a pre-defined model by name Parameters ---------- $name : Str Name of the model. :$pretrained : Bool Whether to load the pretrained weights for model. :$classes : Int Number of classes for the output layer. :$ctx : AI::MXNet::Context, default CPU The context in which to load the pretrained weights. :$root : Str, default '~/.mxnet/models' Location for keeping the model parameters. Returns ------- HybridBlock The model.
Sergey Kolychev, <sergeykolychev.github@gmail.com>
This library is licensed under Apache 2.0 license L<https://www.apache.org/licenses/LICENSE-2.0>
To install AI::MXNet::Gluon::ModelZoo, copy and paste the appropriate command in to your terminal.
cpanm
cpanm AI::MXNet::Gluon::ModelZoo
CPAN shell
perl -MCPAN -e shell install AI::MXNet::Gluon::ModelZoo
For more information on module installation, please visit the detailed CPAN module installation guide.