Open Niharika10soni opened 1 year ago
can someone help me in solving this issue ?
I also encountered this problem.'PackDetInputs is not in the mmengine::transform registry. It has been a long time since you point this issue. Have you solved the problem yet? If you solve it, How do you solve the problem?
Prerequisite
Environment
detect_env) ironman@ironman:/mnt/2tb/General/Niharika/device-183$ python -c "from mmcv.utils import collect_env; print(collect_env())" 2023-11-03 14:03:42.284436: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations. To enable the following instructions: AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags. 2023-11-03 14:03:42.811798: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT OrderedDict([('sys.platform', 'linux'), ('Python', '3.8.18 (default, Sep 11 2023, 13:40:15) [GCC 11.2.0]'), ('CUDA available', True), ('numpy_random_seed', 2147483648), ('GPU 0', 'NVIDIA GeForce RTX 2060 SUPER'), ('CUDA_HOME', '/usr/local/cuda'), ('NVCC', 'Cuda compilation tools, release 11.7, V11.7.64'), ('GCC', 'gcc (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0'), ('PyTorch', '1.12.1+cu116'), ('PyTorch compiling details', 'PyTorch built with:\n - GCC 9.3\n - C++ Version: 201402\n - Intel(R) Math Kernel Library Version 2020.0.0 Product Build 20191122 for Intel(R) 64 architecture applications\n - Intel(R) MKL-DNN v2.6.0 (Git Hash 52b5f107dd9cf10910aaa19cb47f3abf9b349815)\n - OpenMP 201511 (a.k.a. OpenMP 4.5)\n - LAPACK is enabled (usually provided by MKL)\n - NNPACK is enabled\n - CPU capability usage: AVX2\n - CUDA Runtime 11.6\n - 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\n - CuDNN 8.8 (built against CUDA 11.8)\n - Built with CuDNN 8.3.2\n - Magma 2.6.1\n - 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 -Wno-missing-field-initializers -Wno-type-limits -Wno-array-bounds -Wno-unknown-pragmas -Wno-unused-parameter -Wno-unused-function -Wno-unused-result -Wno-unused-local-typedefs -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.12.1, USE_CUDA=ON, USE_CUDNN=ON, USE_EXCEPTION_PTR=1, USE_GFLAGS=OFF, USE_GLOG=OFF, USE_MKL=ON, USE_MKLDNN=OFF, USE_MPI=OFF, USE_NCCL=ON, USE_NNPACK=ON, USE_OPENMP=ON, USE_ROCM=OFF, \n'), ('TorchVision', '0.13.1+cu116'), ('OpenCV', '4.8.1'), ('MMEngine', '0.9.0'), ('MMCV', '2.0.1'), ('MMCV Compiler', 'GCC 9.3'), ('MMCV CUDA Compiler', '11.6')])
Reproduces the problem - code sample
its my internal pipeline where i have added mmdet inference script as per my pipeline
Reproduces the problem - command or script
running it using uvicorn
Reproduces the problem - error message
INFO: Uvicorn running on http://0.0.0.0:6005 (Press CTRL+C to quit) Process Detect_Pipeline: Traceback (most recent call last): File "/home/ironman/miniconda3/envs/detect_env/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap self.run() File "/mnt/2tb/General/Snehal/working_directory/try/eaglai-detect-3.0/src/core/pipeline.py", line 67, in run pipeline_object.dummy_detection() File "/mnt/2tb/General/Snehal/working_directory/try/eaglai-detect-3.0/src/core/inference/detect/detect.py", line 134, in dummydetection = self.model.infer_one(image=img) File "/mnt/2tb/General/Snehal/working_directory/try/eaglai-detect-3.0/src/core/inference/detect/models/mmdetector.py", line 111, in infer_one boxes = inference_detector(self._model, np.array(image)) File "/home/ironman/miniconda3/envs/detect_env/lib/python3.8/site-packages/mmdet/apis/inference.py", line 152, in inference_detector test_pipeline = Compose(test_pipeline) File "/home/ironman/miniconda3/envs/detect_env/lib/python3.8/site-packages/mmcv/transforms/wrappers.py", line 66, in init transform = TRANSFORMS.build(transform) File "/home/ironman/miniconda3/envs/detect_env/lib/python3.8/site-packages/mmengine/registry/registry.py", line 570, in build return self.build_func(cfg, *args, **kwargs, registry=self) File "/home/ironman/miniconda3/envs/detect_env/lib/python3.8/site-packages/mmengine/registry/build_functions.py", line 100, in build_from_cfg raise KeyError( KeyError: 'PackDetInputs is not in the mmengine::transform registry. Please check whether the value of
PackDetInputs
is correct or it was registered as expected. More details can be found at https://mmengine.readthedocs.io/en/latest/advanced_tutorials/config.html#import-the-custom-module'Additional information
No response