from ultralytics import YOLO
# Load a model
model = YOLO("yolov8s-seg.pt") # load an official model
# Export the model
model.export(format="onnx",opset=12)
ORB-SLAM3 Copyright (C) 2017-2020 Carlos Campos, Richard Elvira, Juan J. Gómez, José M.M. Montiel and Juan D. Tardós, University of Zaragoza.
ORB-SLAM2 Copyright (C) 2014-2016 Raúl Mur-Artal, José M.M. Montiel and Juan D. Tardós, University of Zaragoza.
This program comes with ABSOLUTELY NO WARRANTY;
This is free software, and you are welcome to redistribute it
under certain conditions. See LICENSE.txt.
Input sensor was set to: RGB-D
配置文件版本号:
Loading ORB Vocabulary. This could take a while...
Vocabulary loaded!
Initialization of Atlas from scratch
Creation of new map with id: 0
Creation of new map with last KF id: 0
Seq. Name:
Camera Parameters:
Camera: Pinhole
Image scale: 1
fx: 535.4
fy: 539.2
cx: 320.1
cy: 247.6
k1: 0
k2: 0
p1: 0
p2: 0
fps: 30
color order: RGB (ignored if grayscale)
Depth Threshold (Close/Far Points): 2.98842
ORB Extractor Parameters:
Number of Features: 1000
Scale Levels: 8
Scale Factor: 1.2
Initial Fast Threshold: 20
Minimum Fast Threshold: 7
There are 1 cameras in the atlas
Camera 0 is pinhole
Start processing sequence ...
Images in the sequence: 680
Inference device: CPU
read net ok!
Inference device: CPU
First KF:0; Map init KF:0
New Map created with 807 points
Inference device: CPU
Inference device: CPU
Inference device: CPU
Inference device: CPU
Inference device: CPU
Inference device: CPU
Inference device: CPU
Starting the Viewer
Inference device: CPU
Inference device: CPU
Inference device: CPU
Inference device: CPU
Inference device: CPU
Inference device: CPU
Inference device: CPU
Inference device: CPU
Inference device: CPU
Inference device: CPU
Inference device: CPU
Inference device: CPU
Inference device: CPU
Inference device: CPU
Inference device: CPU
Inference device: CPU
Inference device: CPU
Inference device: CPU
Inference device: CPU
Inference device: CPU
Inference device: CPU
并没有出现yolo进行识别,没有识别到人啊,很奇怪,求博主解答
我将官网的yolov8n-seg.pt和yolov8s-seg.pt模型下载下来,使用如下代码生成yolov8n-seg.onnx和yolov8s-seg.onnx文件
分别替换掉 rgbd_tum.cc文件第77行
string model_path_seg = "/home/fast-drone/yolov8s-seg.onnx";
Frame.cc文件第226行string model_path_seg = "/home/fast-drone/yolov8n-seg.onnx";
编译后重新运行,使用TUM数据集./Examples_old/RGB-D/rgbd_tum_old Vocabulary/ORBvoc.txt Examples_old/RGB-D/TUM3.yaml ~/rgbd_dataset_freiburg3_sitting_static/ ~/rgbd_dataset_freiburg3_sitting_static/associations.txt
运行结果:./Examples_old/RGB-D/rgbd_tum_old Vocabulary/ORBvoc.txt Examples_old/RGB-D/TUM3.yaml ~/rgbd_dataset_freiburg3_sitting_static/ ~/rgbd_dataset_freiburg3_sitting_static/associations.txt
ORB-SLAM3 Copyright (C) 2017-2020 Carlos Campos, Richard Elvira, Juan J. Gómez, José M.M. Montiel and Juan D. Tardós, University of Zaragoza. ORB-SLAM2 Copyright (C) 2014-2016 Raúl Mur-Artal, José M.M. Montiel and Juan D. Tardós, University of Zaragoza. This program comes with ABSOLUTELY NO WARRANTY; This is free software, and you are welcome to redistribute it under certain conditions. See LICENSE.txt.
Input sensor was set to: RGB-D 配置文件版本号:
Loading ORB Vocabulary. This could take a while... Vocabulary loaded!
Initialization of Atlas from scratch Creation of new map with id: 0 Creation of new map with last KF id: 0 Seq. Name:
Camera Parameters:
Depth Threshold (Close/Far Points): 2.98842
ORB Extractor Parameters:
Start processing sequence ... Images in the sequence: 680
Inference device: CPU read net ok! Inference device: CPU First KF:0; Map init KF:0 New Map created with 807 points Inference device: CPU Inference device: CPU Inference device: CPU Inference device: CPU Inference device: CPU Inference device: CPU Inference device: CPU Starting the Viewer Inference device: CPU Inference device: CPU Inference device: CPU Inference device: CPU Inference device: CPU Inference device: CPU Inference device: CPU Inference device: CPU Inference device: CPU Inference device: CPU Inference device: CPU Inference device: CPU Inference device: CPU Inference device: CPU Inference device: CPU Inference device: CPU Inference device: CPU Inference device: CPU Inference device: CPU Inference device: CPU Inference device: CPU 并没有出现yolo进行识别,没有识别到人啊,很奇怪,求博主解答