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
1 answer

DJL is unable to find MXNet Engine, troubleshooting doesn't help me

I have now spent way too much time trying to resolve this on my own, but I seem unable to do this on my own. I wanted to try out DJL, looked at some examples and into the tutorial, and was very excited about it because it seems like a very modern,…
Raphael Tarita
  • 770
  • 1
  • 6
  • 31
1
vote
1 answer

How to download pre-trained models from Gluonnlp through a proxy?

I am behind a corporate proxy. I am trying to download BERT's vocabulary. _, vocab_bert = gluonnlp.model.bert_12_768_12(dataset_name='wiki_multilingual_uncased', pretrained=False,…
Mar
  • 61
  • 5
1
vote
1 answer

Use custom modules in Sagemaker MXNet

I’ve been trying to use Sagemaker to run my custom MXNet training job. In all the examples I’ve seen, the code sample looks like this estimator = MXNet(‘train.py’, role=role, other_params) estimator.fit(inputs) 

What if my train.py relies on a…
1
vote
1 answer

Using GluonCV models in TensorFlow (Lite)

I'm working on the deployment of models on embedded devices, making performance comparisons and the like. This is an internship, so I'm really constrained on time and can't go about re-implementing / re-trained models but I have to use what is…
kmf
  • 49
  • 1
  • 17
1
vote
1 answer

MXNet AdamW optimizer

Adam optimizer has flaws when used with weight decay. In 2018, AdamW optimizer has been proposed. Is there any standard way to implement AdamW in MXNet framework (python implementation)? There is mxnet.optimizer.Adam class, but no…
Emil
  • 629
  • 2
  • 7
  • 24
1
vote
0 answers

GluonCV object detector - inference on batches of images

I'm running object detection on a webcam stream or on video files, using Python on Ubuntu18.04. So far, I've been running the inference frame-by-frame, using this code: def main(): ctx = mx.gpu(0) # Load pretrained model net =…
Carlo
  • 1,321
  • 12
  • 37
1
vote
0 answers

mxnet-gluon on colab: cudaMalloc retry failed: out of memory

I'm trying to train a faster RCNN on google-colab using mxnet gluon and VOC dataset. After training the net, when I try to analyze a new image to test it, I get the error below. This problem comes over regardless the number of epochs, the limit of…
1
vote
0 answers

MXNet regression example in Julia fails

Running the code for regression-example.jl fails with the following error: MethodError: no method matching (::MXNet.mx.var"#5784#5785")(::Float64, ::NDArray{Float32,1}) Closest candidates are: #5784(::Any) at…
sophros
  • 14,672
  • 11
  • 46
  • 75
1
vote
1 answer

GluonCV - Object detection, set mx.ctx to GPU, but still using all CPU cores

I’m running an object detection routine on a server. I set the context to the GPU, and I'm loading the model, the parameters and the data on the GPU. The program is reading from a video file or from a rtsp stream, using OpenCV. When using…
Carlo
  • 1,321
  • 12
  • 37
1
vote
0 answers

Custom MCC Loss Function in MXNet (Matthews correlation coefficient)

I'm trying to write a MCC Loss Function. I draft out the layout but it has to be done in a Matrix manipulation form as shown in the Reference 1 (This is not a school HW). So the following code is a pseudo code of what I'm trying to do. class…
Hami
  • 335
  • 1
  • 7
  • 22
1
vote
0 answers

Error running prediction on mxnet: Check failed: i >= 0 && i < ndim(): index = 0 must be in range [0, -1)

I created a trained model and I'm now trying to run prediction. I loaded my model and my prediction data. My prediction file is a CSV with 3 columns. Here is my code mod = mx.module.Module.load("mx-mod", 0) data_iter =…
Ori N
  • 555
  • 10
  • 22
1
vote
0 answers

‘libjemalloc.so’: No such file or directory

I installed Julia and was trying to install MXNet for Julia. While setting the MXNet-Julia environment, I found that there is no file called libjemalloc.so. I was following this link:…
Ashna Eldho
  • 454
  • 1
  • 7
  • 22
1
vote
1 answer

What is the best way to install external library for inference in sagemaker Mxnet 1.4.1 image?

I have read in the official documentation that requirements.txt is to be used to install library for sagemaker. However, it also also says that: For MXNet 1.4.1, requirements.txt is not supported for inference i am creating a model with the…
Antoine
  • 11
  • 1
1
vote
0 answers

Parallel Logistic Regression with GPU in Python (MinPy)

I just managed to set up an Anaconda Environment to run this example from MinPy. Now as I understand it, the parallelization is in the training and predicting part. However, for my specific use case I want to go one level higher: Since I have one…
betaigeuze
  • 61
  • 5
1
vote
1 answer

'from mxnet import nd' results in SyntaxError: 'yield' inside list comprehension

I want to switch from Mathematica to Python and MxNet to continue developing a Munsell color spec application based on a backpropagation/regression neural network. I'm new to Python and MxNet so I'm a bit lost in this universe. However, I'm…
Yves Poissant
  • 147
  • 1
  • 10