Are you sure you want to delete this task? Once this task is deleted, it cannot be recovered.
|
|
2 years ago | |
|---|---|---|
| gcu_mnist_example | 2 years ago | |
| gpu_mnist_example | 2 years ago | |
| npu_mnist_example | 2 years ago | |
| OpenI云脑使用教程.ipynb | 2 years ago | |
| README.md | 2 years ago | |
| train.py | 2 years ago | |
安装c2net-beta包
pip install -U c2net-beta
使用c2net的SDK方式
#导入包
from c2net.context import prepare, upload_output
#初始化导入数据集和预训练模型到容器内
c2net_context = prepare()
#获取数据集路径,预训练模型路径,输出路径
dataset_path = c2net_context.dataset_path
pretrain_model_path = c2net_context.pretrain_model_path
output_path = c2net_context.output_path
#回传结果到openi,训练任务才能回传,调试任务回传后也是不支持下载
upload_output()