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

traffic_light detection with int8 #15525

Open
leizi111 opened this issue Sep 9, 2024 · 2 comments
Open

traffic_light detection with int8 #15525

leizi111 opened this issue Sep 9, 2024 · 2 comments
Labels
Module: Perception Indicates perception related issues

Comments

@leizi111
Copy link

leizi111 commented Sep 9, 2024

System information

  • OS Platform and Distribution (e.g., Linux Ubuntu 18.04): Ubuntu 20.04
  • Apollo installed from (source or binary): source
  • Apollo version (3.5, 5.0, 5.5, 6.0): 9.0
  • Output of apollo.sh config if on master branch: master

Steps to reproduce the issue:

Hello! When i use NVIDIA AGX orin run traffic_light perception with cyber_launch start modules/perception/launch/perception_trafficlight.launch, then terminal report an error: E0909 09:33:15.069639 61219 rt_net.cc:51] [mainboard]4: [standardEngineBuilder.cpp::initCalibrationParams::1460] Error Code 4: Internal Error (Calibration failure occurred with no scaling factors detected. This could be due to no int8 calibrator or insufficient custom scales for network layers. Please see int8 sample to setup calibration correctly.) traffic_light detection model download from https://apollo.baidu.com/community/article/1236. how can I fix this issue?

@daohu527 daohu527 added the Module: Perception Indicates perception related issues label Sep 12, 2024
@chenjian88888
Copy link

我也遇见了这个问题

E1022 17:38:31.408428 32422 rt_net.cc:51] 4: [standardEngineBuilder.cpp::initCalibrationParams::1460] Error Code 4: Internal Error (Calibration failure occurred with no scaling factors detected. This could be due to no int8 calibrator or insufficient custom scales for network layers. Please see int8 sample to setup calibration correctly.)

@chenjian88888
Copy link

image

将detection.cc和classify.cc中的

  rt_net_.reset(inference::CreateInferenceByName(model_type, proto_file,
                                                 weight_file, net_outputs_,
                                                 net_inputs_, model_path));

改为如下,可强制使用FP32推理,临时解决问题

  rt_net_.reset(inference::CreateInferenceByName(model_type, proto_file,
                                                 weight_file, net_outputs_,
                                                 net_inputs_));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Module: Perception Indicates perception related issues
Projects
None yet
Development

No branches or pull requests

3 participants