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

Caught an unknown color #45

Closed
p-akanksha opened this issue Oct 27, 2020 · 5 comments
Closed

Caught an unknown color #45

p-akanksha opened this issue Oct 27, 2020 · 5 comments

Comments

@p-akanksha
Copy link

Hi,

I am trying to run Kimera Semantic on the data collected from the Tesse simulator (the one used in the goseek-challenge). I keep getting the following error:

E1027 12:28:32.195211 24858 color.cpp:73] Caught an unknown color: 
RGB: 143 171 0 255

Also, the reconstructed point cloud does not have associated semantic labels. Here is an image of the point cloud.
Kiemra_color_problem

I am unable to figure out what might be causing this error. Any help is highly appreciated.

@ToniRV
Copy link
Collaborator

ToniRV commented Oct 27, 2020

Hi @p-akanksha,

There is a .csv file inside the cfg folder (configuration) that specifies the mapping between colors and object ids.

Depending on the colors in the semantic image, you might need to specify one csv vs another.
I think the one for go-seek should be already the default one:

<param name="semantic_label_2_color_csv_filepath"
value="$(find kimera_semantics_ros)/cfg/tesse_multiscene_office1_segmentation_mapping.csv"/>

But maybe you can try replacing office1 in the line above by office2?

Ping @ZacRavichandran

@ZacRavichandran
Copy link

Hi @p-akanksha

Like @ToniRV mentioned, the error indicates that there was an object not specified in the configuration .csv. There's a configuration for the goseek-challenge scenes, goseek_segmentation_mapping_dense.csv, that should contain all the necessary information. Perhaps you could try replacing tesse_multiscene_office1_segmentation_mapping.csv with that?

@p-akanksha
Copy link
Author

Thanks! Replacing tesse_multiscene_office1_segmentation_mapping.csv with goseek_segmentation_mapping_dense.csv worked perfectly.

This has also increased the speed of 3d reconstruction. Earlier it felt like it was processing frames in batches, now it reconstructs immediately. Do you think the delay was because it was trying to look for the objects in the configuration file and unable to find them?

@ToniRV
Copy link
Collaborator

ToniRV commented Oct 28, 2020

Hi @p-akanksha,

Glad it worked!

The lookup of the semantic id for a given color should have a constant time complexity as we are using std::unordered_map.
Nevertheless, if the getSemanticLabelFromColor function doesn't find a color, it will start printing errors with the missing colors, this is not particularly fast.

@p-akanksha
Copy link
Author

That makes sense. Thanks for the prompt response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants