MCPcopy Index your code
hub / github.com/ml-explore/mlx-examples / to_numpy

Method to_numpy

segment_anything/segment_anything/utils/amg.py:66–69  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

64 raise TypeError(f"MaskData key {k} has an unsupported type {type(v)}.")
65
66 def to_numpy(self) -> None:
67 for k, v in self._stats.items():
68 if isinstance(v, mx.array):
69 self._stats[k] = np.array(v)
70
71
72def is_box_near_crop_edge(

Callers 1

_generate_masksMethod · 0.95

Calls 1

itemsMethod · 0.80

Tested by

no test coverage detected