Skip to content

Commit

Permalink
📝 Update README & Add requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
fuqianya committed Jan 9, 2022
1 parent ce64f1f commit cd2c914
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,17 @@ bash ./download_dataset.sh

### step4: 训练

```bash
export PYTHONPATH=$PWD:$PYTHONPATH
CUDA_VISIBLE_DEVICES='0, 1, 2, 3' python -m paddle.distributed.launch tools/train_retrieval.py --cfg_file configs/retrieval_train.yaml
```

### step5: 测试

```bash
python tools/eval_retrieval.py --cfg_file configs/retrieval_test.yaml
```

### 使用预训练模型进行预测

## 六、代码结构与详细说明
Expand All @@ -115,7 +124,7 @@ bash ./download_dataset.sh
├── tests # 测试文件
├── tools
│ └── train_retrieval.py # 训练脚本
│ └── test_retrieval.py # 测试脚本
│ └── eval_retrieval.py # 测试脚本
└── requirement.txt # 依赖包
```

Expand Down
4 changes: 4 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
paddlenlp>=2.2.1
paddlepaddle-gpu>=2.2.1
yacs==0.1.8
boto3

0 comments on commit cd2c914

Please sign in to comment.