Questions tagged [mxnet]

Apache MXNet is a fast, scalable, open source deep learning framework that supports Python, R, Scala, C++, Julia, Go, and Javascript. MXNet can run on multiple CPUs and multiple GPUs distributed across multiple hosts, with almost linear scalability.

Apache MXNet: Flexible and Efficient Library for Deep Learning

For more details see http://mxnet.io/

Flexible

Supports both imperative and symbolic programming

Portable

Runs on CPUs or GPUs, on clusters, servers, desktops, or mobile phones

Multiple Languages

Supports over 7 programming languages, including C++, Python, R, Scala, Julia, Matlab, Javascript and Perl.

Auto-Differentiation

Calculates the gradient automatically for training a model

Distributed on Cloud

Supports distributed training on multiple CPU/GPU machines, including AWS, GCE, Azure, and Yarn clusters

Performance

Optimized C++ backend engine parallelizes both I/O and computation

701 questions
0
votes
1 answer

A mkl version of mxnet seems not providing ndarray

When to use mxnet-cu101mkl = {version = "==1.5.0",sys_platform = "== 'linux'"}, I get error that I cannot longer import ndarray or nd: ImportError: cannot import name 'ndarray' I have no problem with this when using the same code with mxnet-cu101…
Audrius Meškauskas
  • 20,936
  • 12
  • 75
  • 93
0
votes
1 answer

join arrays every x elements without a loop - python

I have the following arrays: from mxnet import nd A=nd.array([[1,1,1,1],[2,2,2,2]]) B=nd.array([[11,11,11,11],[22,22,22,22]]) Y=nd.array([[91,91,91,91],[92,92,92,92]]) Imagine that each list whithin each array corresponds to a client. So…
GabyLP
  • 3,649
  • 7
  • 45
  • 66
0
votes
1 answer

Mixed,precision with many labels

I want to train a model with mxnet gluon with mixed precision on a dataset with a huge number of classes. However, the number of classes exceeds the limit of float16 and some of the labels and predictions are inf. How do I solve this?
swmeng
  • 1
0
votes
1 answer

Unable to get AWS SageMaker to read RecordIO files

I'm trying to convert an object detection lst file to a rec file and train with it in SageMaker. My list looks something like this: 10 2 5 9.0000 1008.0000 1774.0000 1324.0000 1953.0000 3.0000 2697.0000 3340.0000 948.0000 …
Frankie
  • 11,508
  • 5
  • 53
  • 60
0
votes
0 answers

Conv3D in Keras with MXNet: error with tensor shape

I implemented a 3D CNN in Keras with TensorFlow before which worked really fine. Now to speed up the training on multiple GPU's, I wanted to try MXNet with Keras. I expected that I didn't have to change a lot of the code apart from the…
sdbonte
  • 102
  • 12
0
votes
1 answer

MXNet Gluon - programmatically accessing neural net layer dimensions?

Let's begin by creating a very basic deep neural network in MXNet Gluon (inspired by this tutorial): import mxnet as mx from mxnet import gluon ctx = mx.cpu() net = gluon.nn.Sequential() with net.name_scope(): …
solvingPuzzles
  • 8,541
  • 16
  • 69
  • 112
0
votes
1 answer

Does distributed training produce NN that is average of NNs trained within each distributed node?

I'm currently sifting through a ton of material on distributed training for neural networks (training with backward propagation). And more I dig in to this material the more it appears to me that essentially every distributed neural neural network…
Lu4
  • 14,873
  • 15
  • 79
  • 132
0
votes
1 answer

MXNet NDArray with dtype string?

I want to train a CV network with MXNet and I created a custom Dataset class (works well) but I'd now like this class to return the name of the image file (a string). Problem is MXNet refuses to batch strings. So I tried to create a NDArray from my…
Manon Rmn
  • 3
  • 4
0
votes
1 answer

MXNET custom symbol loss with gluon

I wrote this code,(almost are from tutorial, I just modified a few lines) and this is not working. from mxnet import gluon from mxnet.gluon import nn np.random.seed(42) mx.random.seed(42) ctx = mx.gpu() def data_xform(data): """Move channel…
plhn
  • 5,017
  • 4
  • 47
  • 47
0
votes
1 answer

How to fix "IndexError('Slicing stop %d exceeds limit of %d' % (stop, length))" error in python

I had a problem, when i apply arcface implementation from this repo, i got error. From this line code: face_imgs_resized = np.array(face_imgs_resized) face_imgs_resized = np.rollaxis(face_imgs_resized, 3, 1) data =…
0
votes
1 answer

Create a model to classificy a sentence logical or not

As the title mention, how could I train a model to classify following sentences are logical or illogical? “He has two legs”–logical “He has six legs”–illogical Solution I tried: 1 : Train the classifier by cnn I have done it before, it works very…
StereoMatching
  • 4,971
  • 6
  • 38
  • 70
0
votes
1 answer

Why is the output of this code not a two-dimensional form but a one-dimensional form?

from mxnet import nd n_train, n_test, true_w, true_b = 100, 100, [1.2, -3.4, 5.6], 5 features = nd.random.normal(shape=(n_train + n_test, 1)) poly_features = nd.concat(features, nd.power(features, 2), nd.power(features,…
0
votes
1 answer

OpenCV Error: Assertion failed (ny > 0 && nx > 0) in repeat, file opencv/modules/core/src/copy.cpp,

I am compiling my source codes with : g++ -o bc main.cpp comm_lib.cpp mxnet_mtcnn.cpp utils.cpp -std=c++11 -o3 $(pkg-config --cflags --libs opencv) -I/Users/xxx/Downloads/apache-mxnet-src-1.3.0-incubating/include/ …
Rahibe Meryem
  • 269
  • 3
  • 14
0
votes
1 answer

why this code about using mxnet to train a regression net doesn't converge?

this is the code: import mxnet from mxnet import io, gluon, autograd from mxnet.gluon import nn from mxnet.gluon.data import ArrayDataset ctx = mxnet.gpu() if mxnet.test_utils.list_gpus() else mxnet.cpu() iter =…
Gao
  • 912
  • 6
  • 16
0
votes
2 answers

Deploy trained Sagemaker Mxnet object detection model locally?

I have trained an object detection model on AWS Sagemaker. I want to use this model locally in my machine. I downloaded this model which consist of 3 files hyperparams.json, model-symbol.json, and model-0000.params. I have seen plenty of tutorials…