Skip to content
New issue

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

[Bug] Parameters Codebase config #2748

Open
3 tasks done
Daanfb opened this issue Apr 24, 2024 · 0 comments
Open
3 tasks done

[Bug] Parameters Codebase config #2748

Daanfb opened this issue Apr 24, 2024 · 0 comments

Comments

@Daanfb
Copy link

Daanfb commented Apr 24, 2024

Checklist

  • I have searched related issues but cannot get the expected help.
  • 2. I have read the FAQ documentation but cannot get the expected help.
  • 3. The bug has not been fixed in the latest version.

Describe the bug

I want to change some parameters of RTMO model. I'm using RTMO engine model.
When I change the codebase_config dict I get the same result as before doing that.

Reproduction

This is what i did to change the codebase_config dict:

deploy_cfg_path = 'mmdeploy/configs/mmpose/pose-detection_rtmo_tensorrt-fp16_dynamic-640x640.py'
model_cfg_path = 'mmpose/configs/body_2d_keypoint/rtmo/body7/rtmo-m_16xb16-600e_body7-640x640.py'
cfg_options={'codebase_config':{'post_processing': {'score_threshold': 0.3}}}

deploy_cfg, model_cfg = load_config(deploy_cfg_path, model_cfg_path)

if cfg_options is not None:
    deploy_cfg.merge_from_dict(cfg_options)
    deploy_cfg, model_cfg = load_config(deploy_cfg, model_cfg)

self.task_processor = build_task_processor(model_cfg, deploy_cfg, device)

I have debugged the code and deploy_cfg.merge_from_dict(cfg_options) is working but the final result is the same as if I hadn't changed it

Environment

04/24 10:11:49 - mmengine - INFO - **********Environmental information**********
04/24 10:11:51 - mmengine - INFO - sys.platform: linux
04/24 10:11:51 - mmengine - INFO - Python: 3.8.19 (default, Mar 20 2024, 19:58:24) [GCC 11.2.0]
04/24 10:11:51 - mmengine - INFO - CUDA available: True
04/24 10:11:51 - mmengine - INFO - MUSA available: False
04/24 10:11:51 - mmengine - INFO - numpy_random_seed: 2147483648
04/24 10:11:51 - mmengine - INFO - GPU 0: NVIDIA GeForce RTX 2060
04/24 10:11:51 - mmengine - INFO - CUDA_HOME: /usr/local/cuda-11.8
04/24 10:11:51 - mmengine - INFO - NVCC: Cuda compilation tools, release 11.8, V11.8.89
04/24 10:11:51 - mmengine - INFO - GCC: gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
04/24 10:11:51 - mmengine - INFO - PyTorch: 2.2.2
04/24 10:11:51 - mmengine - INFO - PyTorch compiling details: PyTorch built with:
  - GCC 9.3
  - C++ Version: 201703
  - Intel(R) oneAPI Math Kernel Library Version 2023.1-Product Build 20230303 for Intel(R) 64 architecture applications
  - Intel(R) MKL-DNN v3.3.2 (Git Hash 2dc95a2ad0841e29db8b22fbccaf3e5da7992b01)
  - 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.8
  - NVCC architecture flags: -gencode;arch=compute_50,code=sm_50;-gencode;arch=compute_60,code=sm_60;-gencode;arch=compute_61,code=sm_61;-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;-gencode;arch=compute_37,code=sm_37;-gencode;arch=compute_90,code=sm_90;-gencode;arch=compute_37,code=compute_37
  - CuDNN 8.7
  - Magma 2.6.1
  - Build settings: BLAS_INFO=mkl, BUILD_TYPE=Release, CUDA_VERSION=11.8, CUDNN_VERSION=8.7.0, CXX_COMPILER=/opt/rh/devtoolset-9/root/usr/bin/c++, CXX_FLAGS= -D_GLIBCXX_USE_CXX11_ABI=0 -fabi-version=11 -fvisibility-inlines-hidden -DUSE_PTHREADPOOL -DNDEBUG -DUSE_KINETO -DLIBKINETO_NOROCTRACER -DUSE_FBGEMM -DUSE_QNNPACK -DUSE_PYTORCH_QNNPACK -DUSE_XNNPACK -DSYMBOLICATE_MOBILE_DEBUG_HANDLE -O2 -fPIC -Wall -Wextra -Werror=return-type -Werror=non-virtual-dtor -Werror=bool-operation -Wnarrowing -Wno-missing-field-initializers -Wno-type-limits -Wno-array-bounds -Wno-unknown-pragmas -Wno-unused-parameter -Wno-unused-function -Wno-unused-result -Wno-strict-overflow -Wno-strict-aliasing -Wno-stringop-overflow -Wsuggest-override -Wno-psabi -Wno-error=pedantic -Wno-error=old-style-cast -Wno-missing-braces -fdiagnostics-color=always -faligned-new -Wno-unused-but-set-variable -Wno-maybe-uninitialized -fno-math-errno -fno-trapping-math -Werror=format -Wno-stringop-overflow, LAPACK_INFO=mkl, PERF_WITH_AVX=1, PERF_WITH_AVX2=1, PERF_WITH_AVX512=1, TORCH_VERSION=2.2.2, 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, USE_ROCM_KERNEL_ASSERT=OFF, 

04/24 10:11:51 - mmengine - INFO - TorchVision: 0.17.2
04/24 10:11:51 - mmengine - INFO - OpenCV: 4.9.0
04/24 10:11:51 - mmengine - INFO - MMEngine: 0.10.3
04/24 10:11:51 - mmengine - INFO - MMCV: 2.1.0
04/24 10:11:51 - mmengine - INFO - MMCV Compiler: GCC 11.4
04/24 10:11:51 - mmengine - INFO - MMCV CUDA Compiler: not available
04/24 10:11:51 - mmengine - INFO - MMDeploy: 1.3.1+bc75c9d
04/24 10:11:51 - mmengine - INFO - 

04/24 10:11:51 - mmengine - INFO - **********Backend information**********
04/24 10:11:51 - mmengine - INFO - tensorrt:	8.6.1
04/24 10:11:51 - mmengine - INFO - tensorrt custom ops:	Available
04/24 10:11:51 - mmengine - INFO - ONNXRuntime:	None
04/24 10:11:51 - mmengine - INFO - ONNXRuntime-gpu:	1.8.1
04/24 10:11:51 - mmengine - INFO - ONNXRuntime custom ops:	Available
04/24 10:11:51 - mmengine - INFO - pplnn:	None
04/24 10:11:51 - mmengine - INFO - ncnn:	None
04/24 10:11:51 - mmengine - INFO - snpe:	None
04/24 10:11:51 - mmengine - INFO - openvino:	None
04/24 10:11:51 - mmengine - INFO - torchscript:	2.2.2
04/24 10:11:51 - mmengine - INFO - torchscript custom ops:	NotAvailable
04/24 10:11:51 - mmengine - INFO - rknn-toolkit:	None
04/24 10:11:51 - mmengine - INFO - rknn-toolkit2:	None
04/24 10:11:51 - mmengine - INFO - ascend:	None
04/24 10:11:51 - mmengine - INFO - coreml:	None
04/24 10:11:51 - mmengine - INFO - tvm:	None
04/24 10:11:51 - mmengine - INFO - vacc:	None
04/24 10:11:51 - mmengine - INFO - 

04/24 10:11:51 - mmengine - INFO - **********Codebase information**********
04/24 10:11:51 - mmengine - INFO - mmdet:	3.3.0
04/24 10:11:51 - mmengine - INFO - mmseg:	None
04/24 10:11:51 - mmengine - INFO - mmpretrain:	None
04/24 10:11:51 - mmengine - INFO - mmocr:	None
04/24 10:11:51 - mmengine - INFO - mmagic:	None
04/24 10:11:51 - mmengine - INFO - mmdet3d:	None
04/24 10:11:51 - mmengine - INFO - mmpose:	1.3.1
04/24 10:11:51 - mmengine - INFO - mmrotate:	None
04/24 10:11:51 - mmengine - INFO - mmaction:	None
04/24 10:11:51 - mmengine - INFO - mmrazor:	None
04/24 10:11:51 - mmengine - INFO - mmyolo:	None

Error traceback

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant