Closed moseswmwong closed 4 years ago
Welcome to Apache MXNet (incubating)! We are on a mission to democratize AI, and we are glad that you are contributing to it by opening this issue. Please make sure to include all the relevant context, and one of the @apache/mxnet-committers will be here shortly. If you are interested in contributing to our project, let us know! Also, be sure to check out our guide on contributing to MXNet and our development guides wiki.
cc @zhreshold
@moseswmwong it's very likely the matplotlib plot is the bottleneck in the video loop, try disable the vis part of the code and see if it speed up?
net.parameters and rgb_nd are on GPU ?
net = gcv.model_zoo.get_model('ssd_512_mobilenet1.0_voc', pretrained=True)
net.collect_params().reset_ctx(mx.gpu())
class_IDs, scores, bounding_boxes = net(rgb_nd.as_in_context(mx.gpu()))
Fixed, thanks!
After using mx.gpu() context method the program runs really fast on GPU.
Description
Installation stem from this link
Mxnet runs very slow on my Windows 10 machine. It is 64 bits system:
Installations inside Windows, as I strictly followed all instruction possible with careful check every milestone.
Installation inside anaconda environment, as a new conda environment is created here are the modules
Checks all passed:
Error Message
No error message
Problem is that the following code runs about 0.5 frame per second on a 480p youtube MP4 video.
SSD (512x512) should be able to do about 10 fps with GPU.
Look at Windows task manager report
Obviously GPU is not working for MXnet, but as check5 shown CUDA, cuDNN features are all availagble to Mxnet, and the check 4 "a = mx.nd.ones((2,3), mx.gpu())" proved it is using gpu.
To Reproduce
please see above
Steps to reproduce
please see above
What have you tried to solve it?
please see check 1-5
Environment
please see above
paste outputs here
Nice object detection video shown up for the whole length of video and can see clearly bounding boxes on each person, car, bicycle etc. but run at about 0.5 fps