# C2NET-BETA
> PYPI package for c2net-beta
# 使用说明安装
- 虎鲸平台提供使用代码,数据集,模型示例
## 安装
*适配python3.6及以上版本*
> PYPI package for C2NET-BETA。
```bash
pip3 install -U c2net
或
pip3 install c2net==版本号 -i https://pypi.tuna.tsinghua.edu.cn/simple
```
## 云脑资源初始化与上传,获取路径示例:
```
#导入包
from c2net.context import prepare, upload_output
#初始化导入数据集和预训练模型到容器内
c2net_context = prepare()
#获取代码路径, 数据集路径,预训练模型路径,输出路径
code_path = c2net_context.code_path
dataset_path = c2net_context.dataset_path
pretrain_model_path = c2net_context.pretrain_model_path
you_must_save_here = c2net_context.output_path
#回传结果到c2net
upload_output()
```
## 在启智平台上的[使用示例](https://openi.pcl.ac.cn/OpenIOSSG/OpenI_Cloudbrain_Example)
Raw data
{
"_id": null,
"home_page": "https://openi.pcl.ac.cn/OpenIOSSG/c2net-pypi",
"name": "c2net",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": null,
"author": "liuzx",
"author_email": "gsunfeng@163.com",
"download_url": null,
"platform": null,
"description": "# C2NET-BETA\r\n\r\n> PYPI package for c2net-beta\r\n\r\n# \u4f7f\u7528\u8bf4\u660e\u5b89\u88c5\r\n\r\n- \u864e\u9cb8\u5e73\u53f0\u63d0\u4f9b\u4f7f\u7528\u4ee3\u7801\uff0c\u6570\u636e\u96c6\uff0c\u6a21\u578b\u793a\u4f8b\r\n\r\n## \u5b89\u88c5\r\n\r\n*\u9002\u914dpython3.6\u53ca\u4ee5\u4e0a\u7248\u672c*\r\n\r\n> PYPI package for C2NET-BETA\u3002\r\n\r\n```bash\r\npip3 install -U c2net\r\n\u6216\r\npip3 install c2net==\u7248\u672c\u53f7 -i https://pypi.tuna.tsinghua.edu.cn/simple\r\n```\r\n\r\n## \u4e91\u8111\u8d44\u6e90\u521d\u59cb\u5316\u4e0e\u4e0a\u4f20\uff0c\u83b7\u53d6\u8def\u5f84\u793a\u4f8b\uff1a\r\n\r\n```\r\n#\u5bfc\u5165\u5305\r\nfrom c2net.context import prepare, upload_output\r\n\r\n#\u521d\u59cb\u5316\u5bfc\u5165\u6570\u636e\u96c6\u548c\u9884\u8bad\u7ec3\u6a21\u578b\u5230\u5bb9\u5668\u5185\r\nc2net_context = prepare()\r\n\r\n#\u83b7\u53d6\u4ee3\u7801\u8def\u5f84, \u6570\u636e\u96c6\u8def\u5f84\uff0c\u9884\u8bad\u7ec3\u6a21\u578b\u8def\u5f84\uff0c\u8f93\u51fa\u8def\u5f84\r\ncode_path = c2net_context.code_path\r\ndataset_path = c2net_context.dataset_path\r\npretrain_model_path = c2net_context.pretrain_model_path\r\nyou_must_save_here = c2net_context.output_path\r\n\r\n#\u56de\u4f20\u7ed3\u679c\u5230c2net\r\nupload_output()\r\n```\r\n\r\n## \u5728\u542f\u667a\u5e73\u53f0\u4e0a\u7684[\u4f7f\u7528\u793a\u4f8b](https://openi.pcl.ac.cn/OpenIOSSG/OpenI_Cloudbrain_Example)\r\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "A package for c2net pypi",
"version": "0.2.0.post3",
"project_urls": {
"Homepage": "https://openi.pcl.ac.cn/OpenIOSSG/c2net-pypi"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "7006101ff49b6eb35c3ad6f35681c9ed7e3ae6a96882bcf0e0860234861f9bca",
"md5": "50416009537496e56ffca96a8de1b135",
"sha256": "fa0b25b4f82f3d7aae321985e3b0caa13bfdbb47e4a1d3c6917ad02f1e692d6e"
},
"downloads": -1,
"filename": "c2net-0.2.0.post3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "50416009537496e56ffca96a8de1b135",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 10284,
"upload_time": "2024-08-26T02:36:22",
"upload_time_iso_8601": "2024-08-26T02:36:22.861701Z",
"url": "https://files.pythonhosted.org/packages/70/06/101ff49b6eb35c3ad6f35681c9ed7e3ae6a96882bcf0e0860234861f9bca/c2net-0.2.0.post3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-08-26 02:36:22",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "c2net"
}