pangkaicheng commited on
Commit
c4abf56
·
1 Parent(s): f8a73ec
Files changed (1) hide show
  1. mcp_servers/virtual_try_on.py +0 -27
mcp_servers/virtual_try_on.py CHANGED
@@ -64,31 +64,4 @@ def main():
64
 
65
 
66
  if __name__ == "__main__":
67
- # image_path = "/mnt/d/PostDoc/fifth paper/code/FashionVLM/datasets/FashionRec/data/basic_recommendation/train/temp/0000000_target.jpg"
68
- # print(image_path)
69
- #
70
- # def save_image(response, path):
71
- # for part in response.candidates[0].content.parts:
72
- # if part.inline_data is not None:
73
- # data = part.inline_data.data
74
- # pathlib.Path(path).write_bytes(data)
75
- #
76
- #
77
- # client = genai.Client(api_key="AIzaSyCd3sP-FksEgLB2GCFom8UDvasWJ-glSL4")
78
- #
79
- # response = client.models.generate_content(
80
- # model="models/gemini-2.0-flash-exp",
81
- # contents=[
82
- # "你是虚拟穿衣工具,把这一套衣服都穿到模特身上,输出一张图片,全身图",
83
- # PIL.Image.open(image_path)
84
- # ],
85
- # config=types.GenerateContentConfig(response_modalities=['Text', 'Image'])
86
- # )
87
- #
88
- # for part in response.candidates[0].content.parts:
89
- # if part.text is not None:
90
- # print(part.text)
91
- #
92
- # save_image(response, 'edited_image3.png')
93
-
94
  main()
 
64
 
65
 
66
  if __name__ == "__main__":
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
67
  main()