Traceback (most recent call last):
File "predict.py", line 265, in <module>
run_prediction_pickle()
File "predict.py", line 254, in run_prediction_pickle
bboxes = my_predictor.predict(im, resize_scale=1, score_threshold=0.5, top_k=10000, NMS_threshold=0.6)
File "predict.py", line 163, in predict
outputs.append(output.asnumpy())
File "/root/work/mxnet/python/mxnet/ndarray/ndarray.py", line 2566, in asnumpy
ctypes.c_size_t(data.size)))
File "/root/work/mxnet/python/mxnet/base.py", line 246, in check_call
raise get_last_ffi_error()
mxnet.base.MXNetError: Traceback (most recent call last):
File "../include/mshadow/././././cuda/tensor_gpu-inl.cuh", line 110
Name: Check failed: err == cudaSuccess (48 vs. 0) : MapPlanKernel ErrStr:no kernel image is available for execution on the device
When encountering the above problems, it may be the problem of GPU hardware. For example, Tesla T4 will encounter this problem, but use Tesla P4. Also, if you enable the mirror, remember to allocate memory parameters and use NVIDIA to run commands.
[10:16:47] ../src/operator/nn/./cudnn/./cudnn_algoreg-inl.h:97: Running performance tests to find the best convolution algorithm, this can take a while... (set the environment variable MXNET_CUDNN_AUTOTUNE_DEFAULT to 0 to disable)
: cannot connect to X server
[10:16:47] ../src/operator/nn/./cudnn/./cudnn_algoreg-inl.h:97: Running performance tests to find the best convolution algorithm, this can take a while... (set the environment variable MXNET_CUDNN_AUTOTUNE_DEFAULT to 0 to disable)
: cannot connect to X server
Generally, this problem is encountered when using a remote server, because the remote server cannot provide the service of the graphical user interface, and the X Server is a service program that provides graphic user interface on the Linux system.
We want to comment on the CV2.imshow function in the code. This function can directly transfer the window to display the picture under Windows. Using Linux in the command line cannot be displayed. Be careful not to use it like this.
and the CV.Waitkey function must be annotated.