MCPcopy Create free account
hub / github.com/SAMMiCA/ChangeSim / split_SemAndChange

Method split_SemAndChange

script/utils/Object_Labeling.py:60–63  ·  view source on GitHub ↗
(self,seg_map_class)

Source from the content-addressed store, hash-verified

58 return seg_map_color_flattened
59
60 def split_SemAndChange(self,seg_map_class):
61 seg_map_change_class = seg_map_class//50
62 seg_map_semantic_class = torch.fmod(seg_map_class,50)
63 return seg_map_semantic_class, seg_map_change_class
64
65def ObjectLabeling(client,map_id,name2idx):
66 found = client.simSetSegmentationObjectID("[\w]*", name2idx['background']['index'], True)

Callers 1

callbackMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected