MxNet has trouble saving all parameters of a network

In my experiment, the MxNet may forget saving some parameters of my network. I am studying mxnet’s gluoncv package (https://gluon-cv.mxnet.io/index.html). To learn the programming skills from...

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...

Why am I getting UserWarning: Matplotlib is currently using ps, which is a non-GUI backend, so cannot show the figure

This is not in a jupyter notebook so this is not a duplicate of this question, but my code is: from gluoncv import model_zoo, data, utils from matplotlib import pyplot as plt ... plt.show() The...

How can I feed the output of a video capture to a window with Python using OpenCV?

My code is: import cv2 import numpy as np import argparse import gluoncv as gcv import mxnet as mx import camera def parse_cli_args(): parser = argparse.ArgumentParser() ...

How can I use the gluon-cv model_zoo and output to an OpenCV window with Python?

My code is: import gluoncv as gcv net = gcv.model_zoo.get_model('ssd_512_mobilenet1.0_voc', pretrained=True) windowName = "ssdObject" cv2.namedWindow(windowName,...

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...

Reduce the size of fasterRCNN array output, using Gluon, python

I'm using a faster rcnn model to run some object detection. The wrapper I'm using is gluon and the code is below: net = model_zoo.get_model('faster_rcnn_resnet50_v1b_coco',...

Is there a way to modify the layers of a GluonCV pretrained object detection model

Good day, StackOverflow. I am looking to replace the convolutional layers of a GluonCV pretrained model for object detection, with deformable convolutional layers. Specifically, I am looking to...

How to train GluonCV's Faster RCNN on a custom dataset?

I am trying to train GluonCV's FasterRCNN on a custom dataset. However, I am running into several errors during loading of the data into the model that is preventing me from training the model. I...

mxnet import nd or np to use arrays

I'm starting to study mxnet and gluon, but I'm getting somewhat confused about the usage of np/nd arrays. As suggested on the gluon website, I installed mxnet and gluon by running: pip install...

GluonCV - Use GPU for inference in object detection

I'm using GluonCV for object detection, on Ubuntu 18.04 and with Python. I re-trained the ssd_512_resnet50_v1_custom model on a custom dataset, and I wanted to test the inference FPS on a server...

Rotating image and load to MXNet model

Is there a way to load a image, rotate it and load it to MXNet model (e.g: yolov3). I use the below method but I don't think it's efficient: 1/ Load the image and rotate it with pillow image =...

GluonCV - Export object detection models to Android

I’ve been using GluonCV for object detection, and I was trying to figure out how to export these models to Android (I re-trained a few models on my own dataset, so I’d like to export...

Python virtualenv setuptools package issue

Using virtualenv with -p python2 While installing pip install gluoncv it errors out with following error Requirement already satisfied: setuptools in ./mxv16_p2/lib/python2.7/site-packages...

Reidentify Person Using Color Histogram with OpenCV

I'm attempting to reidentify people who leave and reenter the camera view for a video feed. Using GluonCV I've ran object detection on the initial frame from a video file (using OpenCV), extracted...

Problem with gluoncv Object Detection "Train Faster-RCNN end-to-end on PASCAL VOC" example

I'm new on gluon and I decided to run the examples to get familiar with the coding style (I used keras a couple years ago and this hybrid style is a little bit confusing to me). My problem is that...

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...

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...

Assertion 'GDK_IS_DISPLAY (display)' failed - Cannot decide type for the following arguments: data

I'm doing a vehicle tracking and counting program. I encounter an error when I try to run this block of code: import mxnet import gluoncv as gcv import cv2.cv2 as cv2 import matplotlib.pyplot as...

GluonCV ImportError: cannot import name 'is_np_array'

I'm trying to set up a GluonCV in a jupyter notebook in a virtual environment. For some reason whenever I try to import GluonCV I get this error: ImportError ...

Predicting locally with a model trained on Sagemaker

I have trained a model on AWS SageMaker by using the built-in algorithm Semantic Segmentation. This trained model named as model.tar.gz is stored on S3. So I want to download this file from S3 and...