We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ncnn_ext.register_mmdeploy_custom_layers(net)
TypeError: register_mmdeploy_custom_layers(): incompatible function arguments. The following argument types are supported: 1. (arg0: ncnn::Net) -> int
python ./tools/deploy.py configs/mmpretrain/classification_ncnn-int8_static.py /mmpretrain/configs/shufflenet_v1/shufflenet-v1-pd-gray.py /mpretrain/work_dirs/shufflenet-v1-fotric-pd-gray/epoch_99.pth /images/DI19.jpg --work-dir work_dir --device cpu --quant
05/09 17:14:12 - mmengine - INFO - **********Environmental information********** 05/09 17:14:13 - mmengine - INFO - sys.platform: linux 05/09 17:14:13 - mmengine - INFO - Python: 3.10.13 (main, Sep 11 2023, 13:44:35) [GCC 11.2.0] 05/09 17:14:13 - mmengine - INFO - CUDA available: True 05/09 17:14:13 - mmengine - INFO - MUSA available: False 05/09 17:14:13 - mmengine - INFO - numpy_random_seed: 2147483648 05/09 17:14:13 - mmengine - INFO - GPU 0,1: NVIDIA GeForce RTX 3090 05/09 17:14:13 - mmengine - INFO - CUDA_HOME: /usr/local/cuda-11.6 05/09 17:14:13 - mmengine - INFO - NVCC: Cuda compilation tools, release 11.6, V11.6.124 05/09 17:14:13 - mmengine - INFO - GCC: gcc (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0 05/09 17:14:13 - mmengine - INFO - PyTorch: 1.13.1+cu116 05/09 17:14:13 - mmengine - INFO - PyTorch compiling details: PyTorch built with: - GCC 9.3 - C++ Version: 201402 - Intel(R) Math Kernel Library Version 2020.0.0 Product Build 20191122 for Intel(R) 64 architecture applications - Intel(R) MKL-DNN v2.6.0 (Git Hash 52b5f107dd9cf10910aaa19cb47f3abf9b349815) - OpenMP 201511 (a.k.a. OpenMP 4.5) - LAPACK is enabled (usually provided by MKL) - NNPACK is enabled - CPU capability usage: AVX2 - CUDA Runtime 11.6 - NVCC architecture flags: -gencode;arch=compute_37,code=sm_37;-gencode;arch=compute_50,code=sm_50;-gencode;arch=compute_60,code=sm_60;-gencode;arch=compute_70,code=sm_70;-gencode;arch=compute_75,code=sm_75;-gencode;arch=compute_80,code=sm_80;-gencode;arch=compute_86,code=sm_86 - CuDNN 8.5 (built against CUDA 11.7) - Built with CuDNN 8.3.2 - Magma 2.6.1 - Build settings: BLAS_INFO=mkl, BUILD_TYPE=Release, CUDA_VERSION=11.6, CUDNN_VERSION=8.3.2, CXX_COMPILER=/opt/rh/devtoolset-9/root/usr/bin/c++, CXX_FLAGS= -fabi-version=11 -Wno-deprecated -fvisibility-inlines-hidden -DUSE_PTHREADPOOL -fopenmp -DNDEBUG -DUSE_KINETO -DUSE_FBGEMM -DUSE_QNNPACK -DUSE_PYTORCH_QNNPACK -DUSE_XNNPACK -DSYMBOLICATE_MOBILE_DEBUG_HANDLE -DEDGE_PROFILER_USE_KINETO -O2 -fPIC -Wno-narrowing -Wall -Wextra -Werror=return-type -Werror=non-virtual-dtor -Wno-missing-field-initializers -Wno-type-limits -Wno-array-bounds -Wno-unknown-pragmas -Wunused-local-typedefs -Wno-unused-parameter -Wno-unused-function -Wno-unused-result -Wno-strict-overflow -Wno-strict-aliasing -Wno-error=deprecated-declarations -Wno-stringop-overflow -Wno-psabi -Wno-error=pedantic -Wno-error=redundant-decls -Wno-error=old-style-cast -fdiagnostics-color=always -faligned-new -Wno-unused-but-set-variable -Wno-maybe-uninitialized -fno-math-errno -fno-trapping-math -Werror=format -Werror=cast-function-type -Wno-stringop-overflow, LAPACK_INFO=mkl, PERF_WITH_AVX=1, PERF_WITH_AVX2=1, PERF_WITH_AVX512=1, TORCH_VERSION=1.13.1, USE_CUDA=ON, USE_CUDNN=ON, USE_EXCEPTION_PTR=1, USE_GFLAGS=OFF, USE_GLOG=OFF, USE_MKL=ON, USE_MKLDNN=ON, USE_MPI=OFF, USE_NCCL=ON, USE_NNPACK=ON, USE_OPENMP=ON, USE_ROCM=OFF, 05/09 17:14:13 - mmengine - INFO - TorchVision: 0.14.1+cu116 05/09 17:14:13 - mmengine - INFO - OpenCV: 4.9.0 05/09 17:14:13 - mmengine - INFO - MMEngine: 0.10.3 05/09 17:14:13 - mmengine - INFO - MMCV: 2.1.0 05/09 17:14:13 - mmengine - INFO - MMCV Compiler: GCC 9.3 05/09 17:14:13 - mmengine - INFO - MMCV CUDA Compiler: 11.6 05/09 17:14:13 - mmengine - INFO - MMDeploy: 1.3.1+bc75c9d 05/09 17:14:13 - mmengine - INFO - 05/09 17:14:13 - mmengine - INFO - **********Backend information********** 05/09 17:14:13 - mmengine - INFO - tensorrt: None 05/09 17:14:13 - mmengine - INFO - ONNXRuntime: 1.15.1 05/09 17:14:13 - mmengine - INFO - ONNXRuntime-gpu: None 05/09 17:14:13 - mmengine - INFO - ONNXRuntime custom ops: Available 05/09 17:14:13 - mmengine - INFO - pplnn: None 05/09 17:14:13 - mmengine - INFO - ncnn: 1.0.20240301 05/09 17:14:13 - mmengine - INFO - ncnn custom ops: Available 05/09 17:14:13 - mmengine - INFO - snpe: None 05/09 17:14:13 - mmengine - INFO - openvino: 2023.3.0 05/09 17:14:13 - mmengine - INFO - torchscript: 1.13.1+cu116 05/09 17:14:13 - mmengine - INFO - torchscript custom ops: NotAvailable 05/09 17:14:13 - mmengine - INFO - rknn-toolkit: None 05/09 17:14:13 - mmengine - INFO - rknn-toolkit2: None 05/09 17:14:13 - mmengine - INFO - ascend: None 05/09 17:14:13 - mmengine - INFO - coreml: None 05/09 17:14:13 - mmengine - INFO - tvm: None 05/09 17:14:13 - mmengine - INFO - vacc: None 05/09 17:14:13 - mmengine - INFO - 05/09 17:14:13 - mmengine - INFO - **********Codebase information********** 05/09 17:14:13 - mmengine - INFO - mmdet: None 05/09 17:14:13 - mmengine - INFO - mmseg: None 05/09 17:14:13 - mmengine - INFO - mmpretrain: 1.2.0 05/09 17:14:13 - mmengine - INFO - mmocr: None 05/09 17:14:13 - mmengine - INFO - mmagic: None 05/09 17:14:13 - mmengine - INFO - mmdet3d: None 05/09 17:14:13 - mmengine - INFO - mmpose: None 05/09 17:14:13 - mmengine - INFO - mmrotate: None 05/09 17:14:13 - mmengine - INFO - mmaction: None 05/09 17:14:13 - mmengine - INFO - mmrazor: None 05/09 17:14:13 - mmengine - INFO - mmyolo: None
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Checklist
Describe the bug
TypeError: register_mmdeploy_custom_layers(): incompatible function arguments. The following argument types are supported:
1. (arg0: ncnn::Net) -> int
Reproduction
python ./tools/deploy.py configs/mmpretrain/classification_ncnn-int8_static.py /mmpretrain/configs/shufflenet_v1/shufflenet-v1-pd-gray.py /mpretrain/work_dirs/shufflenet-v1-fotric-pd-gray/epoch_99.pth /images/DI19.jpg --work-dir work_dir --device cpu --quant
Environment
Error traceback
No response
The text was updated successfully, but these errors were encountered: