MCPcopy
hub / github.com/chenfei-wu/TaskMatrix / inference

Method inference

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

Source from the content-addressed store, hash-verified

561 "like: generate human poses of this image, or generate a pose image from this image. "
562 "The input to this tool should be a string, representing the image_path")
563 def inference(self, inputs):
564 image = Image.open(inputs)
565 pose = self.detector(image)
566 updated_image_path = get_new_image_name(inputs, func_name="human-pose")
567 pose.save(updated_image_path)
568 print(f"\nProcessed Image2Pose, Input Image: {inputs}, Output Pose: {updated_image_path}")
569 return updated_image_path
570
571
572class PoseText2Image:

Callers

nothing calls this directly

Calls 1

get_new_image_nameFunction · 0.85

Tested by

no test coverage detected