size error
blackjacket996 opened this issue · 1 comments
[INFO] [launch]: All log files can be found below /home/turtlebot/.ros/log/2023-10-12-13-43-33-963493-ubuntu-24081
[INFO] [launch]: Default logging verbosity is set to INFO
[INFO] [yolov8_node-1]: process started with pid [24083]
[INFO] [tracking_node-2]: process started with pid [24085]
[INFO] [debug_node-3]: process started with pid [24087]
[yolov8_node-1] YOLOv8m summary (fused): 218 layers, 25886080 parameters, 0 gradients, 78.9 GFLOPs
[yolov8_node-1] Traceback (most recent call last):
[yolov8_node-1] File "/home/turtlebot/yolo_deepsort/install/yolov8_ros/lib/yolov8_ros/yolov8_node", line 33, in
[yolov8_node-1] sys.exit(load_entry_point('yolov8-ros==0.0.0', 'console_scripts', 'yolov8_node')())
[yolov8_node-1] File "/home/turtlebot/yolo_deepsort/install/yolov8_ros/lib/python3.8/site-packages/yolov8_ros/yolov8_node.py", line 231, in main
[yolov8_node-1] rclpy.spin(node)
[yolov8_node-1] File "/opt/ros/galactic/lib/python3.8/site-packages/rclpy/init.py", line 196, in spin
[yolov8_node-1] executor.spin_once()
[yolov8_node-1] File "/opt/ros/galactic/lib/python3.8/site-packages/rclpy/executors.py", line 713, in spin_once
[yolov8_node-1] raise handler.exception()
[yolov8_node-1] File "/opt/ros/galactic/lib/python3.8/site-packages/rclpy/task.py", line 239, in call
[yolov8_node-1] self._handler.send(None)
[yolov8_node-1] File "/opt/ros/galactic/lib/python3.8/site-packages/rclpy/executors.py", line 418, in handler
[yolov8_node-1] await call_coroutine(entity, arg)
[yolov8_node-1] File "/opt/ros/galactic/lib/python3.8/site-packages/rclpy/executors.py", line 343, in _execute_subscription
[yolov8_node-1] await await_or_execute(sub.callback, msg)
[yolov8_node-1] File "/opt/ros/galactic/lib/python3.8/site-packages/rclpy/executors.py", line 107, in await_or_execute
[yolov8_node-1] return callback(*args)
[yolov8_node-1] File "/home/turtlebot/yolo_deepsort/install/yolov8_ros/lib/python3.8/site-packages/yolov8_ros/yolov8_node.py", line 182, in image_cb
[yolov8_node-1] results = self.yolo.predict(
[yolov8_node-1] File "/home/turtlebot/.local/lib/python3.8/site-packages/ultralytics/engine/model.py", line 248, in predict
[yolov8_node-1] return self.predictor.predict_cli(source=source) if is_cli else self.predictor(source=source, stream=stream)
[yolov8_node-1] File "/home/turtlebot/.local/lib/python3.8/site-packages/ultralytics/engine/predictor.py", line 194, in call
[yolov8_node-1] return list(self.stream_inference(source, model, *args, **kwargs)) # merge list of Result into one
[yolov8_node-1] File "/home/turtlebot/.local/lib/python3.8/site-packages/torch/autograd/grad_mode.py", line 43, in generator_context
[yolov8_node-1] response = gen.send(None)
[yolov8_node-1] File "/home/turtlebot/.local/lib/python3.8/site-packages/ultralytics/engine/predictor.py", line 253, in stream_inference
[yolov8_node-1] preds = self.inference(im, *args, **kwargs)
[yolov8_node-1] File "/home/turtlebot/.local/lib/python3.8/site-packages/ultralytics/engine/predictor.py", line 133, in inference
[yolov8_node-1] return self.model(im, augment=self.args.augment, visualize=visualize)
[yolov8_node-1] File "/home/turtlebot/.local/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1111, in _call_impl
[yolov8_node-1] return forward_call(*input, **kwargs)
[yolov8_node-1] File "/home/turtlebot/.local/lib/python3.8/site-packages/ultralytics/nn/autobackend.py", line 334, in forward
[yolov8_node-1] y = self.model(im, augment=augment, visualize=visualize) if augment or visualize else self.model(im)
[yolov8_node-1] File "/home/turtlebot/.local/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1111, in _call_impl
[yolov8_node-1] return forward_call(*input, **kwargs)
[yolov8_node-1] File "/home/turtlebot/.local/lib/python3.8/site-packages/ultralytics/nn/tasks.py", line 45, in forward
[yolov8_node-1] return self.predict(x, *args, **kwargs)
[yolov8_node-1] File "/home/turtlebot/.local/lib/python3.8/site-packages/ultralytics/nn/tasks.py", line 62, in predict
[yolov8_node-1] return self._predict_once(x, profile, visualize)
[yolov8_node-1] File "/home/turtlebot/.local/lib/python3.8/site-packages/ultralytics/nn/tasks.py", line 82, in _predict_once
[yolov8_node-1] x = m(x) # run
[yolov8_node-1] File "/home/turtlebot/.local/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1111, in _call_impl
[yolov8_node-1] return forward_call(*input, **kwargs)
[yolov8_node-1] File "/home/turtlebot/.local/lib/python3.8/site-packages/ultralytics/nn/modules/conv.py", line 42, in forward_fuse
[yolov8_node-1] return self.act(self.conv(x))
[yolov8_node-1] File "/home/turtlebot/.local/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1111, in _call_impl
[yolov8_node-1] return forward_call(*input, **kwargs)
[yolov8_node-1] File "/home/turtlebot/.local/lib/python3.8/site-packages/torch/nn/modules/conv.py", line 447, in forward
[yolov8_node-1] return self._conv_forward(input, self.weight, self.bias)
[yolov8_node-1] File "/home/turtlebot/.local/lib/python3.8/site-packages/torch/nn/modules/conv.py", line 443, in _conv_forward
[yolov8_node-1] return F.conv2d(input, weight, bias, self.stride,
[yolov8_node-1] RuntimeError: Given groups=1, weight of size [48, 3, 3, 3], expected input[1, 4, 384, 640] to have 3 channels, but got 4 channels instead