XSensing Unified AI Interface Client, UAIC
Project description
本仓库是Xsensing统一AI接口客户端(Unified Artificial Intelligence Interface Client, UAIC)代码和使用说明。
本仓库提供客户端、API。
1 About UAIC
Xsensing的统一AI接口(Unified Artificial Intelligence Interface, UAII)分为服务端UAIS和客户端UAIC。
- 服务端UAIS运行在GPU服务器上,统一调度不同算法模块、管理模型库,执行AI计算任务;
- 客户端UAIC运行在应用服务器上,通过Socket与UAIS通讯,可远程查看UAIS运行情况;自定义处理流程、管道和模块;管理UAIS;获取UAIS的输出。
2 Getting Started
2.1 安装
源码安装
git clone https://github.com/zhangzhengde0225/xsensing_client.git
cd xsensing_client
python setup.py install
pip安装
pip install xsensing_client
2.2 样例
Client Examples,下面是一个简单的客户端代码。
import xsensing_client
uaic = xsensing_client.UAIC(url='http://127.0.0.1:5000') # 连接到UAIS服务器
uaic.ps() # 查看服务器流、管道和模块的状态
uaic.stop(stream=None, pipeline=None, module=None) # 停止流,无参数时,停止全部;指定流时停止指定的流;指定管道或模块时,停止与之相关的所有流
uaic.get_cfg() # 从服务器读取各流、管道、模块的默认配置文件,保存到本地。
uaic.configure(config_file='config.py') # 上传服务端的流、管道和模块配置文件,更新服务端配置。
uaic.start(stream=None) # 启动流,无参数是启动所有流;指定流时启动指定的流;启动流的同时调起所有相关管道和模块。
uaic.scan(pipeline=None) # 窥视指定管道的输出。
3 详细文档
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
xsensing_client-0.1.0.tar.gz
(6.5 kB
view details)
Built Distribution
File details
Details for the file xsensing_client-0.1.0.tar.gz
.
File metadata
- Download URL: xsensing_client-0.1.0.tar.gz
- Upload date:
- Size: 6.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
925120da91c26d6ba84493c9fd5dcd6bc1071f64d0f9057afeb6338917c441dc
|
|
MD5 |
ce120447b002a5389b4399680fcb1482
|
|
BLAKE2b-256 |
fc0c46e10bffd95ff029f2ec3fe1fbc0c49d36f3c0a9438ddca1837a3ae2dc28
|
File details
Details for the file xsensing_client-0.1.0-py2.py3-none-any.whl
.
File metadata
- Download URL: xsensing_client-0.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
a74980310c400c1640c09c6ef4e9b1c5b5a2733bf26e03b8918e619b2d54140f
|
|
MD5 |
4497fbde234019bcedd5f655a09ce154
|
|
BLAKE2b-256 |
5585d7eb488f2bebf2c1363c17c3f112c44815ed6138b12497956cbddd0bba8a
|