Try to build 3d perception model SMOKE, bug got error: no such package '@caffe//
I use the apollo 7.0, and mv BUILD_ to BUILD, and use the command: bazel test --config=unit_test //modules/perception/camera/test:camera_app_obstacle_camera_perception_test
but I got error below: (07:16:40) ERROR: /apollo/modules/perception/camera/test/BUILD:6:8: no such package '@caffe//': The repository '@caffe' could not be resolved and referenced by '//modules/perception/camera/test:camera_app_obstacle_camera_perception_test' How to solve this problem? Thx!
the code in BUILD_ is as below:
load("@rules_cc//cc:defs.bzl", "cc_library", "cc_test")
load("//tools:cpplint.bzl", "cpplint")
package(default_visibility = ["//visibility:public"])
cc_test(
name = "camera_app_obstacle_camera_perception_test",
size = "medium",
srcs = ["camera_app_obstacle_camera_perception_test.cc"],
deps = [
"//modules/perception/camera/app:obstacle_camera_perception",
"//modules/perception/common:perception_gflags",
"//modules/perception/inference:inference_factory",
"//modules/perception/inference/operators:perception_inference_operators",
"@caffe",
"@com_github_jbeder_yaml_cpp//:yaml-cpp",
"@com_google_googletest//:gtest_main",
"@com_google_protobuf//:protobuf",
"@local_config_tensorrt//:tensorrt",
"@opencv",
],
)
@clw5180 caffe is remove from apollo long time ago, These test cases are broken, we will fix these soon. So please wait some time!
@daohu527 If I want to use caffe in apollo7.0, What should I do?
If it supports tensorrt, it probably doesn't need to be modified, but I'm not sure if your network has a special layer.