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

Method inference

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

Source from the content-addressed store, hash-verified

448 "or perform hed boundary detection on this image, or detect soft hed boundary image of this image. "
449 "The input to this tool should be a string, representing the image_path")
450 def inference(self, inputs):
451 image = Image.open(inputs)
452 hed = self.detector(image)
453 updated_image_path = get_new_image_name(inputs, func_name="hed-boundary")
454 hed.save(updated_image_path)
455 print(f"\nProcessed Image2Hed, Input Image: {inputs}, Output Hed: {updated_image_path}")
456 return updated_image_path
457
458
459class HedText2Image:

Callers

nothing calls this directly

Calls 1

get_new_image_nameFunction · 0.85

Tested by

no test coverage detected