(self, Text2Box:Text2Box, Segmenting:Segmenting, Inpainting:Inpainting)
| 1357 | class 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] |
nothing calls this directly
no outgoing calls
no test coverage detected