MCPcopy Create free account
hub / github.com/InternRobotics/EmbodiedScan / save

Method save

embodiedscan/visualization/color_selector.py:893–901  ·  view source on GitHub ↗

Save the colormap to the output path. Args: out_file (str): Output path for saving the colormap.

(self, out_file)

Source from the content-addressed store, hash-verified

891 self.visible_label = set()
892
893 def save(self, out_file):
894 """Save the colormap to the output path.
895
896 Args:
897 out_file (str): Output path for saving the colormap.
898 """
899 with open(out_file, 'w') as f:
900 for key, value in self.color_map.items():
901 print(key, value, file=f)
902
903 def get_color(self, label):
904 """Get the color of a given category label.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected