MCPcopy Index your code
hub / github.com/chenfei-wu/TaskMatrix / inference_remove

Method inference_remove

visual_chatgpt.py:1382–1384  ·  view source on GitHub ↗
(self, inputs)

Source from the content-addressed store, hash-verified

1380 "The input to this tool should be a comma separated string of two, "
1381 "representing the image_path and the object need to be removed. ")
1382 def inference_remove(self, inputs):
1383 image_path, to_be_removed_txt = inputs.split(",")[0], ','.join(inputs.split(',')[1:])
1384 return self.inference_replace_sam(f"{image_path},{to_be_removed_txt},background")
1385
1386 @prompts(name="Replace Something From The Photo",
1387 description="useful when you want to replace an object from the object description or "

Callers

nothing calls this directly

Calls 1

inference_replace_samMethod · 0.95

Tested by

no test coverage detected