(self, inputs)
| 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 " |
nothing calls this directly
no test coverage detected