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

Class ImageMask

demo.py:66–77  ·  view source on GitHub ↗

Sets: source="canvas", tool="sketch"

Source from the content-addressed store, hash-verified

64
65
66class ImageMask(gr.components.Image):
67 """
68 Sets: source="canvas", tool="sketch"
69 """
70
71 is_template = True
72
73 def __init__(self, **kwargs):
74 super().__init__(source="upload", tool="sketch", interactive=True, **kwargs)
75
76 def preprocess(self, x):
77 return super().preprocess(x)
78
79
80

Callers 1

demo.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected