mirror of
https://github.com/huggingface/lerobot.git
synced 2026-05-21 19:49:49 +00:00
fix(typos): fixing typos and small mistakes
This commit is contained in:
@@ -948,6 +948,9 @@ def get_video_info(
|
|||||||
# Add additional encoder configuration if provided
|
# Add additional encoder configuration if provided
|
||||||
if camera_encoder_config is not None:
|
if camera_encoder_config is not None:
|
||||||
for field_name, field_value in asdict(camera_encoder_config).items():
|
for field_name, field_value in asdict(camera_encoder_config).items():
|
||||||
|
# vcodec is already populated from the video stream
|
||||||
|
if field_name == "vcodec":
|
||||||
|
continue
|
||||||
video_info.setdefault(f"video.{field_name}", field_value)
|
video_info.setdefault(f"video.{field_name}", field_value)
|
||||||
|
|
||||||
return video_info
|
return video_info
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ class TestCameraEncoderThread:
|
|||||||
fps=fps,
|
fps=fps,
|
||||||
vcodec=enc_cfg.vcodec,
|
vcodec=enc_cfg.vcodec,
|
||||||
pix_fmt=enc_cfg.pix_fmt,
|
pix_fmt=enc_cfg.pix_fmt,
|
||||||
codec_options=enc_cfg.get_codec_options(),
|
codec_options=enc_cfg.get_codec_options(as_strings=True),
|
||||||
frame_queue=frame_queue,
|
frame_queue=frame_queue,
|
||||||
result_queue=result_queue,
|
result_queue=result_queue,
|
||||||
stop_event=stop_event,
|
stop_event=stop_event,
|
||||||
@@ -114,7 +114,7 @@ class TestCameraEncoderThread:
|
|||||||
fps=fps,
|
fps=fps,
|
||||||
vcodec=enc_cfg.vcodec,
|
vcodec=enc_cfg.vcodec,
|
||||||
pix_fmt=enc_cfg.pix_fmt,
|
pix_fmt=enc_cfg.pix_fmt,
|
||||||
codec_options=enc_cfg.get_codec_options(),
|
codec_options=enc_cfg.get_codec_options(as_strings=True),
|
||||||
frame_queue=frame_queue,
|
frame_queue=frame_queue,
|
||||||
result_queue=result_queue,
|
result_queue=result_queue,
|
||||||
stop_event=stop_event,
|
stop_event=stop_event,
|
||||||
@@ -148,7 +148,7 @@ class TestCameraEncoderThread:
|
|||||||
fps=fps,
|
fps=fps,
|
||||||
vcodec=enc_cfg.vcodec,
|
vcodec=enc_cfg.vcodec,
|
||||||
pix_fmt=enc_cfg.pix_fmt,
|
pix_fmt=enc_cfg.pix_fmt,
|
||||||
codec_options=enc_cfg.get_codec_options(),
|
codec_options=enc_cfg.get_codec_options(as_strings=True),
|
||||||
frame_queue=frame_queue,
|
frame_queue=frame_queue,
|
||||||
result_queue=result_queue,
|
result_queue=result_queue,
|
||||||
stop_event=stop_event,
|
stop_event=stop_event,
|
||||||
|
|||||||
Reference in New Issue
Block a user