This repository uses YOLOv11 and SegFormer for detection and semantic segmentation of pallets and cement floors. The code has been tested in the ROS2 Humble distribution.
cd
git clone https://github.com/kishoreparanthaman/pallet_detection_and_segmentation.git
cd pallet_detection_and_segmentation/
source /opt/ros/humble/setup.bash
colcon build
source install/setup.bash
Download the YOLO Custom Trained Model - https://drive.google.com/file/d/1UqhHRqGX2yC2eVbasTV7Wdp12em_XPsx/view?usp=drive_link Download the SegFormer Checkpoint - https://drive.google.com/file/d/1hCST1jd683jxoHfHpGDp5roXRUVrC1BX/view?usp=drive_link
After downloading the models, update the paths in the corresponding Python files:
Open src/segment/segment/segment.py. Locate the following line: checkpoint_path = "/home/kishore/peer_ros2/src/segformer/lightning_logs/version_7/checkpoints/epoch=9-step=1150.ckpt" Replace the path with the location of your downloaded SegFormer checkpoint file.
Open src/yolo/yolo/yolo.py. Locate the following line: self.model = YOLO('/home/kishore/peer_ros2/src/yolo/runs/detect/train19/weights/best.pt') Replace the path with the location of your downloaded YOLOv11 model.
ros2 run yolo yolo
Sample ouput video - https://drive.google.com/file/d/1pwIeYkG5y7tFN2r0qgqt-1Ae_rIF-Oc6/view?usp=sharing
ros2 run segment segment
Sample ouput video - https://drive.google.com/file/d/1jU90dJTOsXlCAEP9cJXOuRT3d40lYWQP/view?usp=sharing
while true; do ros2 bag play <path_to_bag_file>; done
ros2 run webcam webcam
https://drive.google.com/drive/folders/1nVtg5VzKbZHPrP5fA8Dd57YqjTuXNdeC?usp=drive_link
https://drive.google.com/drive/folders/1tBDcsmeDQOOjjswKBLDSOwEXeBldhlfi?usp=drive_link
YOLOv11: Ultralytics SegFormer: NVIDIA SegFormer ROS2: ROS2 Humble
17 commits
Jupyter Notebook
99.5%
This repository uses YOLOv11 and SegFormer for detection and semantic segmentation of pallets and cement floors. The code has been tested in the ROS2 Humble distribution.
cd
git clone https://github.com/kishoreparanthaman/pallet_detection_and_segmentation.git
cd pallet_detection_and_segmentation/
source /opt/ros/humble/setup.bash
colcon build
source install/setup.bash
Download the YOLO Custom Trained Model - https://drive.google.com/file/d/1UqhHRqGX2yC2eVbasTV7Wdp12em_XPsx/view?usp=drive_link Download the SegFormer Checkpoint - https://drive.google.com/file/d/1hCST1jd683jxoHfHpGDp5roXRUVrC1BX/view?usp=drive_link
After downloading the models, update the paths in the corresponding Python files:
Open src/segment/segment/segment.py. Locate the following line: checkpoint_path = "/home/kishore/peer_ros2/src/segformer/lightning_logs/version_7/checkpoints/epoch=9-step=1150.ckpt" Replace the path with the location of your downloaded SegFormer checkpoint file.
Open src/yolo/yolo/yolo.py. Locate the following line: self.model = YOLO('/home/kishore/peer_ros2/src/yolo/runs/detect/train19/weights/best.pt') Replace the path with the location of your downloaded YOLOv11 model.
ros2 run yolo yolo
Sample ouput video - https://drive.google.com/file/d/1pwIeYkG5y7tFN2r0qgqt-1Ae_rIF-Oc6/view?usp=sharing
ros2 run segment segment
Sample ouput video - https://drive.google.com/file/d/1jU90dJTOsXlCAEP9cJXOuRT3d40lYWQP/view?usp=sharing
while true; do ros2 bag play <path_to_bag_file>; done
ros2 run webcam webcam
https://drive.google.com/drive/folders/1nVtg5VzKbZHPrP5fA8Dd57YqjTuXNdeC?usp=drive_link
https://drive.google.com/drive/folders/1tBDcsmeDQOOjjswKBLDSOwEXeBldhlfi?usp=drive_link
YOLOv11: Ultralytics SegFormer: NVIDIA SegFormer ROS2: ROS2 Humble
17 commits
Jupyter Notebook
99.5%