Replies: 11 comments
-
Hi @Joke09 , When you put your image data into the NDArray, can you also try to copy it to GPU using http://mxnet.incubator.apache.org/test/api/python/ndarray.html#mxnet.ndarray.NDArray.as_in_context |
Beta Was this translation helpful? Give feedback.
-
Hi @Joke09 thanks for your question. I think you might miss this: https://mxnet.incubator.apache.org/api/python/image/image.html please take a look |
Beta Was this translation helpful? Give feedback.
-
Thank you! It works, But not much. |
Beta Was this translation helpful? Give feedback.
-
I think it works, when the image is in the disk. But image data is numpy array in this problem. |
Beta Was this translation helpful? Give feedback.
-
convert numpy.array to raw binary and then |
Beta Was this translation helpful? Give feedback.
-
@shuokay Thank you very much!
But it's fail. File "test.py", line 12, in |
Beta Was this translation helpful? Give feedback.
-
I have this code:
im_arrays is a numpy array and read from cv2. im_arrays.shape is [8,3,896,1024] |
Beta Was this translation helpful? Give feedback.
-
Hi @Joke09 instead of trying to use cv2 to read, you should use this: |
Beta Was this translation helpful? Give feedback.
-
Hi @lanking520 , the client use cv2 to read and send the image data to the server. I can't control it. Another question: I have try this:
I also try this:
the fisrt print time is almost half of the second. Maybe the |
Beta Was this translation helpful? Give feedback.
-
The first dim is the batch size which seemed you should set 8 images as a batch to feed them in. You can use |
Beta Was this translation helpful? Give feedback.
-
@Joke09 - Are you still facing the performance issue? |
Beta Was this translation helpful? Give feedback.
-
Originally posted by @Joke09 in #7899 (comment)
Beta Was this translation helpful? Give feedback.
All reactions