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: resolve runtime error with unexpected keyword #43

Merged
merged 1 commit into from
Nov 21, 2024

Conversation

ktro2828
Copy link
Collaborator

What

This PR fixes runtime error during rendering segmentation image as follows:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/ktro2828/workspace/t4-devkit/t4_devkit/tier4.py", line 750, in render_scene
    self._render_annotation_2ds(viewer, scene.first_sample_token, max_timestamp_us)
  File "/home/ktro2828/workspace/t4-devkit/t4_devkit/tier4.py", line 1171, in _render_annotation_2ds
    viewer.render_segmentation2d(
  File "/home/ktro2828/workspace/t4-devkit/t4_devkit/viewer/viewer.py", line 247, in render_segmentation2d
    segmentation_data.as_segmentation_image(),
  File "/home/ktro2828/workspace/t4-devkit/t4_devkit/viewer/rendering_data/segmentation.py", line 65, in as_segmentation_image
    return rr.SegmentationImage(data=image)
TypeError: SegmentationImageExt.__init__() got an unexpected keyword argument 'data'

Signed-off-by: ktro2828 <kotaro.uetake@tier4.jp>
@github-actions github-actions bot added the bug Something isn't working label Nov 21, 2024
Copy link

☂️ Python Coverage

current status: ❌

Overall Coverage

Lines Covered Coverage Threshold Status
1992 1307 66% 50% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
t4_devkit/viewer/rendering_data/segmentation.py 36% 🔴
TOTAL 36% 🔴

updated for commit: 9d16bc3 by action🐍

@ktro2828 ktro2828 merged commit 711b231 into main Nov 21, 2024
4 of 5 checks passed
@ktro2828 ktro2828 deleted the fix/segmentation-image branch November 21, 2024 08:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant