Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/last pr #659

Merged
merged 4 commits into from
Jan 22, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions bitbots_vision/bitbots_vision/vision_modules/yoeo/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import cv2
import numpy as np
import rclpy
from jaxtyping import UInt8
from jaxtyping import Float64, UInt8

logger = rclpy.logging.get_logger("yoeo_handler_utils")

Expand Down Expand Up @@ -158,10 +158,10 @@ def get_info(self) -> ImagePreProcessorData:
padding_bottom=self._padding_bottom,
padding_left=self._padding_left,
padding_right=self._padding_right,
max_dim=np.max(self._image_dimensions_HW),
max_dim=int(np.max(self._image_dimensions_HW)),
)

def process(self, image: UInt8[np.ndarray, "h w 3"]) -> UInt8[np.ndarray, "3 network_input_h network_input_w"]:
def process(self, image: UInt8[np.ndarray, "h w 3"]) -> Float64[np.ndarray, "3 network_input_h network_input_w"]:
self._image_dimensions_HW = image.shape[:2] # type: ignore[assignment]
self._calculate_paddings()

Expand Down
2 changes: 1 addition & 1 deletion sync_includes_wolfgang_nuc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ include:
- bitbots_parameter_blackboard
- bitbots_robot_description
- bitbots_teleop
- bitbots_tf_buffer
- bitbots_tts
- bitbots_utils
- system_monitor
Expand Down Expand Up @@ -51,6 +50,7 @@ include:
- bio_ik
- bio_ik_msgs
- biped_interfaces
- bitbots_tf_buffer
- dynamic_stack_decider
- dynamixel-workbench
- DynamixelSDK
Expand Down
Loading