yolov5_caffe icon indicating copy to clipboard operation
yolov5_caffe copied to clipboard

It is can not convert onnx to caffe model

Open lwxGitHub123 opened this issue 2 years ago • 0 comments

hello; i have build the environment successfully fellow the illustration. when i run python convertCaffe.py; it return as bellow : Traceback (most recent call last): File "convertCaffe.py", line 6, in import caffe File "/home/bkuser/work2/data/liudongbo/yolov5_caffe/python/caffe/init.py", line 1, in from .pycaffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, RMSPropSolver, AdaDeltaSolver, AdamSolver, NCCL, Timer File "/home/bkuser/work2/data/liudongbo/yolov5_caffe/python/caffe/pycaffe.py", line 13, in from ._caffe import Net, SGDSolver, NesterovSolver, AdaGradSolver,
ImportError: dynamic module does not define module export function (PyInit__caffe)

then i run python2 convertCaffe.py; it return as bellow : Traceback (most recent call last): File "convertCaffe.py", line 6, in import caffe File "/home/bkuser/work2/data/liudongbo/yolov5_caffe/python/caffe/init.py", line 1, in from .pycaffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, RMSPropSolver, AdaDeltaSolver, AdamSolver, NCCL, Timer File "/home/bkuser/work2/data/liudongbo/yolov5_caffe/python/caffe/pycaffe.py", line 13, in from ._caffe import Net, SGDSolver, NesterovSolver, AdaGradSolver,
ImportError: dynamic module does not define module export function (PyInit__caffe) bkuser@bk-ai3:~/work2/data/liudongbo/yolov5_onnx2caffe$ python2 convertCaffe.py Traceback (most recent call last): File "convertCaffe.py", line 8, in import onnx ImportError: No module named onnx

then , i run pip2 install onnx ,but it failed.

could you give me an advice please ? Yours

lwxGitHub123 avatar Sep 06 '22 08:09 lwxGitHub123