apollo icon indicating copy to clipboard operation
apollo copied to clipboard

Try to build 3d perception model SMOKE, bug got error: no such package '@caffe//

Open clw5180 opened this issue 3 years ago • 1 comments

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!

clw5180 avatar Sep 05 '22 07:09 clw5180

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 avatar Sep 05 '22 07:09 clw5180

@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 avatar Oct 14 '22 04:10 daohu527

@daohu527 If I want to use caffe in apollo7.0, What should I do?

JichenFang avatar Oct 26 '22 09:10 JichenFang

If it supports tensorrt, it probably doesn't need to be modified, but I'm not sure if your network has a special layer.

daohu527 avatar Oct 26 '22 09:10 daohu527