Joke09 commented on issue #13545: For inference, I have the same problem. The 
client send jpg to server, then the server use cv2 to do resize. When put the 
image data into the mx.nd.array, it's very slow. And the Utilization of GPU is 
low too. How to solve it? Thank you!
URL: 
https://github.com/apache/incubator-mxnet/issues/13545#issuecomment-445162278
 
 
   I have this code:
   ```
   data = [mx.nd.array(im_arrays), mx.nd.array(im_infos)]
   data_shapes = [('data', im_arrays.shape), ('im_info', im_infos.shape)]
   data_batch = mx.io.DataBatch(data=data, label=None, 
provide_data=data_shapes, provide_label=None)
   self.module.forward(data_batch)
   ```
   im_arrays is a numpy array and read from cv2. im_arrays.shape is 
[8,3,896,1024]
   Can someone help me speed up this code with image api. I'm not familiar with 
Mxnet.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to