Skip to content

Commit

Permalink
Merge pull request #79 from WATonomous/stgong/upgrade_yolo
Browse files Browse the repository at this point in the history
Upgrade to medium size model
  • Loading branch information
Gongsta authored Feb 23, 2024
2 parents 21adfd7 + d6133d7 commit 7a88671
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion modules/docker-compose.perception.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ services:
capabilities: [ gpu ]
command: /bin/bash -c "ros2 launch camera_object_detection eve_launch.py"
volumes:
- /mnt/wato-drive2/perception_models/yolov8s.pt:/perception_models/yolov8s.pt
- /mnt/wato-drive2/perception_models/yolov8m.pt:/perception_models/yolov8m.pt

lidar_object_detection:
build:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ def __init__(self):
self.declare_parameter("camera_topic", "/camera/right/image_color")
self.declare_parameter("publish_vis_topic", "/annotated_img")
self.declare_parameter("publish_detection_topic", "/detections")
self.declare_parameter("model_path", "/perception_models/yolov8s.pt")
self.declare_parameter("image_size", 480)
self.declare_parameter("model_path", "/perception_models/yolov8m.pt")
self.declare_parameter("image_size", 1024)
self.declare_parameter("compressed", False)

self.camera_topic = self.get_parameter("camera_topic").value
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ camera_object_detection_node:
camera_topic: /camera_pkg/display_mjpeg
publish_vis_topic: /annotated_img
publish_obstacle_topic: /obstacles
model_path: /perception_models/yolov8s.pt
image_size: 480
model_path: /perception_models/yolov8m.pt
image_size: 1024
12 changes: 6 additions & 6 deletions src/perception/camera_object_detection/config/eve_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,21 @@ left_camera_object_detection_node:
camera_topic: /camera/left/image_color
publish_vis_topic: /camera/left/annotated_img
publish_detection_topic: /camera/left/detections
model_path: /perception_models/yolov8s.pt
image_size: 480
model_path: /perception_models/yolov8m.pt
image_size: 1024

center_camera_object_detection_node:
ros__parameters:
camera_topic: /camera/center/image_color
publish_vis_topic: /camera/center/annotated_img
publish_detection_topic: /camera/center/detections
model_path: /perception_models/yolov8s.pt
image_size: 480
model_path: /perception_models/yolov8m.pt
image_size: 1024

right_camera_object_detection_node:
ros__parameters:
camera_topic: /camera/right/image_color
publish_vis_topic: /camera/right/annotated_img
publish_detection_topic: /camera/right/detections
model_path: /perception_models/yolov8s.pt
image_size: 480
model_path: /perception_models/yolov8m.pt
image_size: 1024
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ camera_object_detection_node:
camera_topic: /CAM_FRONT/image_rect_compressed
publish_vis_topic: /annotated_img
publish_obstacle_topic: /obstacles
model_path: /perception_models/yolov8s.pt
model_path: /perception_models/yolov8m.pt
image_size: 640
compressed: true

0 comments on commit 7a88671

Please sign in to comment.