#580 zhoupzh-patch-3

Merged
zhoupzh merged 2 commits from zhoupzh-patch-3 into master 4 weeks ago
  1. +1
    -5
      tips/modelDown/sdkcode.md
  2. +8
    -13
      tips/modelDown/sdkcode_en.md

+ 1
- 5
tips/modelDown/sdkcode.md View File

@@ -1,5 +1,5 @@
## 下载启智平台模型到本地文件夹:
*模型文件大于500MB时使用SDK下载*
### **model.download_model(repo_id, model_name)**

+ repo_id str, **必填**:仓库 ID 拥有者/仓库名 , 如 https://openi.pcl.ac.cn/OpenI/aiforge 的 ID 为 OpenI/aiforge
@@ -9,17 +9,13 @@
#### 代码使用

```python
# 导入包
import openi
#模型下载
openi.model.download_model("user1/repo1", "online_model_1","save_local_model/")

```

#### 命令行使用
```bash
openi model download -r user1/repo1 -m online_model_1 -p save_local_model/

```



+ 8
- 13
tips/modelDown/sdkcode_en.md View File

@@ -1,26 +1,21 @@
## 下载启智平台模型到本地文件夹:
## Download the OpenI model to the local folder:
*Use SDK to download model files larger than 500MB*
### **model.download_model(repo_id, model_name)**

+ repo_id str, **必填**:仓库 ID 拥有者/仓库名 , 如 https://openi.pcl.ac.cn/OpenI/aiforge 的 ID 为 OpenI/aiforge
+ model_name str, **必填**:网页端模型名称
+ save_path str, **选填**,默认当前路径下 model 文件夹:本地保存路径,若不存在将自动创建

#### 代码使用
+ repo_id str, **Required** repository ID owner/warehouse name, such as https://openi.pcl.ac.cn/OpenI/aiforge The ID of is OpenI/aiforge
+ model_name str, **Required**:The model name displayed on the webpage
+ save_path str, **Required**,defaults to the model folder under the current path: local save path. If it does not exist, it will be automatically created

#### Code usage
```python
# 导入包
import openi
#模型下载
openi.model.download_model("user1/repo1", "online_model_1","save_local_model/")

```

#### 命令行使用
#### shell usage
```bash
openi model download -r user1/repo1 -m online_model_1 -p save_local_model/

```


关于使用方式的更多内容请参考 <a target="_blank" href="https://openi.pcl.ac.cn/docs/index.html#/api/models/download_model">使用帮助</a>。
For more information on usage, please refer to the<a target="_blank" href="https://openi.pcl.ac.cn/docs/index.html#/api/models/download_model"> Use Help.</a>

Loading…
Cancel
Save