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

Method inference

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

Source from the content-addressed store, hash-verified

390 "or perform straight line detection on this image, or detect the straight line image of this image. "
391 "The input to this tool should be a string, representing the image_path")
392 def inference(self, inputs):
393 image = Image.open(inputs)
394 mlsd = self.detector(image)
395 updated_image_path = get_new_image_name(inputs, func_name="line-of")
396 mlsd.save(updated_image_path)
397 print(f"\nProcessed Image2Line, Input Image: {inputs}, Output Line: {updated_image_path}")
398 return updated_image_path
399
400
401class LineText2Image:

Callers

nothing calls this directly

Calls 1

get_new_image_nameFunction · 0.85

Tested by

no test coverage detected