Skip to content

Commit c10c5a0

Browse files
apockillCadeneimstevenpmwork
authored
Fix --width --height type parsing on opencv and intelrealsense scripts (#556)
Co-authored-by: Remi <[email protected]> Co-authored-by: Steven Palma <[email protected]>
1 parent a8db91c commit c10c5a0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lerobot/common/robot_devices/cameras/intelrealsense.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -512,13 +512,13 @@ def __del__(self):
512512
)
513513
parser.add_argument(
514514
"--width",
515-
type=str,
515+
type=int,
516516
default=640,
517517
help="Set the width for all cameras. If not provided, use the default width of each camera.",
518518
)
519519
parser.add_argument(
520520
"--height",
521-
type=str,
521+
type=int,
522522
default=480,
523523
help="Set the height for all cameras. If not provided, use the default height of each camera.",
524524
)

lerobot/common/robot_devices/cameras/opencv.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -492,13 +492,13 @@ def __del__(self):
492492
)
493493
parser.add_argument(
494494
"--width",
495-
type=str,
495+
type=int,
496496
default=None,
497497
help="Set the width for all cameras. If not provided, use the default width of each camera.",
498498
)
499499
parser.add_argument(
500500
"--height",
501-
type=str,
501+
type=int,
502502
default=None,
503503
help="Set the height for all cameras. If not provided, use the default height of each camera.",
504504
)

0 commit comments

Comments
 (0)