MCPcopy Create free account
hub / github.com/UX-Decoder/Semantic-SAM / __init__

Method __init__

utils/visualizer.py:258–267  ·  view source on GitHub ↗

Args: img (ndarray): an RGB image of shape (H, W, 3) in range [0, 255]. scale (float): scale the input image

(self, img, scale=1.0)

Source from the content-addressed store, hash-verified

256
257class VisImage:
258 def __init__(self, img, scale=1.0):
259 """
260 Args:
261 img (ndarray): an RGB image of shape (H, W, 3) in range [0, 255].
262 scale (float): scale the input image
263 """
264 self.img = img
265 self.scale = scale
266 self.width, self.height = img.shape[1], img.shape[0]
267 self._setup_figure(img)
268
269 def _setup_figure(self, img):
270 """

Callers

nothing calls this directly

Calls 1

_setup_figureMethod · 0.95

Tested by

no test coverage detected