- 可独立运行
- python server.py 启动服务器
- port: 8080
- 接收请求格式(json):
{
"text": str,
"image": str (base64)
}
- 返回结果格式(json):
{
"result_text": list of embedding,
"result_image": list of embedding
}
- 模拟客户端
- python client.py 启动客户端
- 两个可选参数:
--text: str
--image_path: str
- start_model:用于启动模型
- my_clip: 用于处理文本和图片的embedding
- pre-trained clip models:
- for Network Address Translator (NAT):
- Use [花生壳] https://hsk.oray.com/
- 花生壳本地客户端:https://hsk.oray.com/download
- linux
- windows
- linux 教程 https://service.oray.com/question/11630.html