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
1
vote
3 answers

MXNetError - dataset does not start with a valid magic number

I am trying to use amazon sagemaker linear-learner algorithm, it support content type of ‘application/x-recordio-protobuf’. In preprocessing phase, i used scikit-learn preprocessing to one-hot-encode my features. Then i use linear learner estimator…
1
vote
0 answers

mxnet: how to debug models with mismatched shapes

I am trying to modify a model I found online (https://github.com/apache/incubator-mxnet/tree/master/example/multivariate_time_series) as I work to get to know mxnet. I am trying to build a model that takes both a CNN and RNN network in parallel and…
trgovitz
  • 11
  • 4
1
vote
2 answers

gluon Sequential model: params return empty collection

I am using the code below to create a Sequential Gluon model. For some reason the property params returns an empty collection. def build_net(): net = gluon.nn.Sequential() with net.name_scope(): net.add(gluon.nn.Dense(32,…
ikamen
  • 3,175
  • 1
  • 25
  • 47
1
vote
1 answer

How to run inference on an image classification model simultaneously for multiple images in MXNet and Python 2.7

I am running inference using Python 2.7, MXNet V1.3.0 ML framework on an image classification model of ONNX format (V1.2.1 with opset 7) where I feed an image to the inferrer at a time. What do I need to do to asynchronously run inference for…
SevenMonks
  • 13
  • 6
1
vote
0 answers

Mxnet c++ inference with MXPredSetInput segmentation fault

Mxnet c++ inference with MXPredSetInput segmentation fault 1. background I have tried https://github.com/apache/incubator-mxnet/tree/master/example/image-classification/predict-cpp successed. But when I try to deploy mxnet in c++ with my own model,…
Simon
  • 161
  • 1
  • 14
1
vote
4 answers

How to convert a CNN from keras to mxnet?

I have the following problem: I have a script in Keras which works like a charm. I would like to convert this script to MXNet now. The CNN in Keras looks like this: model=Sequential() model.add(Convolution2D(128, (3, 3), padding='same',…
1
vote
1 answer

MxNet: Good ways to infer on large image datasets

I have millions of images to infer on. I know how to write my own code to create batches and forward the batches to a trained network using MxNet Module API in order to get the predictions. However, creating the batches leads to a lot of data…
Pierre-Antoine
  • 7,939
  • 6
  • 28
  • 36
1
vote
1 answer

Can anyone tell me what's wrong here in cnn own model in mxnet?

def acc(output, label): correct_preds = output.argmax(axis=1) == label.astype('float32') return correct_preds.mean().asscalar() for epoch in range(10): train_loss, train_acc, valid_acc = 0., 0., 0. tic = time() for data, label…
1
vote
1 answer

Use FastText trained embeddings in mxnet symbol embedding layer

How do you run fasttext on a corpus and use those embeddings in mxnet symbol embedding layer?
Curious
  • 43
  • 9
1
vote
1 answer

Understanding mxnet.image.ImageDetIter

I learn MXNet framework and try to run example of object detection with SSD: https://gluon.mxnet.io/chapter08_computer-vision/object-detection.html I use GPU is NVidia GTX 1050, 4GB for training. I work in Jupyter notebook. Versions: Python 3.6,…
stansf
  • 13
  • 3
1
vote
1 answer

Read with MXRecordIO from bytes object

Is there a way that I can use mx.recordio.MXRecordIO to read from a bytes object rather than a file object? For example I'm currently doing: import mxnet as mx results_file = 'results.rec' with open(results_file, 'wb') as f: …
Austin
  • 6,921
  • 12
  • 73
  • 138
1
vote
1 answer

mxnet cpu memory leak when running inference on model

I'm running into a memory leak when performing inference on an mxnet model (i.e. converting an image buffer to tensor and running one forward pass through the model). A minimal reproducable example is below: import mxnet from gluoncv import…
1
vote
0 answers

Installing MXnet on MAC for R

I see that this question has been asked before, however none of the solutions seem to work for me. I am trying to install mxnet on MacOS Mojave ver 10.14.3 for R. But I just can't get it to work. I followed the installation instructions on the mxnet…
Electrino
  • 2,636
  • 3
  • 18
  • 40
1
vote
1 answer

Illegal instruction (core dumped) while importing mxnet

I am getting "Illegal instruction (core dumped)" exception while calling import mxnet. I am using CUDA 9.0, and did mxnet installation using anaconda. My python version is 2.7. As a side note, CUDA 10.0 is also installed on my machine. Any help will…
Pervaiz Niazi
  • 199
  • 2
  • 14
1
vote
0 answers

IndexError: index 1 is out of bounds for axis 0 with size 1 ( python, mxnet)

I am working in Mxnet for image classification. I loaded dataset with RecordFileDetection class. I want to print the shape of data and label. But it shows the error. My code segment is: from gluoncv.data import RecordFileDetection …