Closed munhou closed 1 year ago
I also have this error, how do you think I should solve this?
I also have this error, how do you think I should solve this?
refer to https://github.com/open-mmlab/mmdeploy/pull/1625#discussion_r1069258178
I change the dockerfile
RUN git clone https://github.com/open-mmlab/mmdeploy &&\
cd mmdeploy &&\
if [ -z ${VERSION} ] ; then echo "No MMDeploy version passed in, building on master" ; else git checkout tags/v${VERSION} -b tag_v${VERSION} ; fi &&\
sed -i s/"src, dst, dst.size(), method"/"src, dst, dst.size(), 0, 0, method"/g /root/workspace/mmdeploy/csrc/mmdeploy/utils/opencv/opencv_utils.cpp &&\
git submodule update --init --recursive &&\
mkdir -p build &&\
cd build &&\
cmake -DMMDEPLOY_TARGET_BACKENDS="ort;trt" .. &&\
make -j$(nproc) &&\
cd .. &&\
pip install -e .
I have this issue I use python-API, how should I make it work?
I have this issue I use python-API, how should I make it work?
if you use docker
sed -i s/"src, dst, dst.size(), method"/"src, dst, dst.size(), 0, 0, method"/g /root/workspace/mmdeploy/csrc/mmdeploy/utils/opencv/opencv_utils.cpp
cd /root/workspace/mmdeploy/build &&\
make
I am using mmdeploy-0.12.0-linux-x86_64-cuda11.1-tensorrt8.2.3.0, not docker. What should I do about it?
Go to your mmdeploy directory, modify the file csrc/mmdeploy/utils/opencv/opencv_utils.cpp, and then go to the mmdeploy build directory and run make
Go to your mmdeploy directory, modify the file csrc/mmdeploy/utils/opencv/opencv_utils.cpp, and then go to the mmdeploy build directory and rebuild
To fix your problem, you could change cv::resize(src, dst, dst.size(), method); to cv::resize(src, dst, dst.size(), 0, 0, method); in opencv_utils.cpp
My sdk is downloaded by using wget https://github.com/open-mmlab/mmdeploy/releases/download/v0.12.0/mmdeploy-0.12.0-linux-x86_64-cuda11.1-tensorrt8.2.3.0.tar.gz, and I install using pip and the wheel, which I don't know has anything to do with the main code.
I change the cv::resize(src, dst, dst.size(), method); to cv::resize(src, dst, dst.size(), 0, 0, method); anyway, and built it again, but I still have the problem.
My sdk is downloaded by using wget https://github.com/open-mmlab/mmdeploy/releases/download/v0.12.0/mmdeploy-0.12.0-linux-x86_64-cuda11.1-tensorrt8.2.3.0.tar.gz, and I install using pip and the wheel, which I don't know has anything to do with the main code.
I change the cv::resize(src, dst, dst.size(), method); to cv::resize(src, dst, dst.size(), 0, 0, method); anyway, and built it again, but I still have the problem.
尝试使用容器?,或者你可能需要核对是否程序连接到了你编译的库上
Thanks
Checklist
Describe the bug
Reproduction
python demo/python/image_segmentation.py cuda workdir0.12.0_bisenetv2/ ../mmsegmentation/demo/demo.png
Environment
Error traceback