You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
运行roslaunch ros_yolo service_demo.launch 时报错,提示
File "/home/eisa/catkin_ws/src/ros-yolov5/src/yolo_bridge/yolo_bridge.py", line 47, in load_model
self.stride = int(self.model.stride.max())
AttributeError: 'int' object has no attribute 'max'
将该行注释或改为self.stride = self.model.stride直接继续可开启服务,但是运行客户端时会报错:
File "/home/eisa/catkin_ws/src/ros-yolov5/src/yolo_bridge/yolo_bridge_utils.py", line 132, in non_max_suppression\n nc = prediction.shape[2] - 5 # number of classes\n', 'IndexError: tuple index out of range\n'] ,元祖索引错误,推测是没有正常产生prediction
请问老哥遇到过类似的情况吗
The text was updated successfully, but these errors were encountered:
运行roslaunch ros_yolo service_demo.launch 时报错,提示
File "/home/eisa/catkin_ws/src/ros-yolov5/src/yolo_bridge/yolo_bridge.py", line 47, in load_model
self.stride = int(self.model.stride.max())
AttributeError: 'int' object has no attribute 'max'
将该行注释或改为self.stride = self.model.stride直接继续可开启服务,但是运行客户端时会报错:
File "/home/eisa/catkin_ws/src/ros-yolov5/src/yolo_bridge/yolo_bridge_utils.py", line 132, in non_max_suppression\n nc = prediction.shape[2] - 5 # number of classes\n', 'IndexError: tuple index out of range\n'] ,元祖索引错误,推测是没有正常产生prediction
请问老哥遇到过类似的情况吗
The text was updated successfully, but these errors were encountered: