MCPcopy Create free account
hub / github.com/chenfei-wu/TaskMatrix / __init__

Method __init__

visual_chatgpt.py:1359–1363  ·  view source on GitHub ↗
(self, Text2Box:Text2Box, Segmenting:Segmenting, Inpainting:Inpainting)

Source from the content-addressed store, hash-verified

1357class ImageEditing:
1358 template_model = True
1359 def __init__(self, Text2Box:Text2Box, Segmenting:Segmenting, Inpainting:Inpainting):
1360 print(f"Initializing ImageEditing")
1361 self.sam = Segmenting
1362 self.grounding = Text2Box
1363 self.inpaint = Inpainting
1364
1365 def pad_edge(self,mask,padding):
1366 #mask Tensor [H,W]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected