MCPcopy Create free account
hub / github.com/aigc3d/LHM / __init__

Method __init__

engine/SegmentAPI/base.py:147–155  ·  view source on GitHub ↗

Only support 3 Channel Image

(self, input, order="RGB", type_mode="uint8")

Source from the content-addressed store, hash-verified

145 MODE = ["numpy"]
146
147 def __init__(self, input, order="RGB", type_mode="uint8"):
148 """Only support 3 Channel Image"""
149 if isinstance(input, str):
150 self.data = self.read_image(input, type_mode, order)
151 else:
152 self.data = self.get_image(input, type_mode, order)
153
154 self.order = order
155 self.type_mode = type_mode
156
157 def get_image(self, input, type_mode, order):
158 if isinstance(input, Image):

Callers

nothing calls this directly

Calls 2

read_imageMethod · 0.95
get_imageMethod · 0.95

Tested by

no test coverage detected