Skip to content

Commit

Permalink
abcnet: update the evaluation description
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuliang-Liu authored Jun 9, 2020
1 parent 338f30a commit e2ad40f
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions configs/BAText/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,17 +73,34 @@ OMP_NUM_THREADS=1 python tools/train_net.py \
MODEL.WEIGHTS text_pretraining/attn_R_50/model_final.pth
```

### Evaluate on Trained Model
Produce both e2e and detection results:
### Evaluate on Trained Model
Download test GT [here](../../datasets/README.md) so that the directory has the following structure:

```
datasets
|_ evaluation
| |_ gt_totaltext.zip
| |_ gt_ctw1500.zip
```

Producing both e2e and detection results on CTW1500:
```
wget -O ctw1500_attn_R_50.pth https://universityofadelaide.box.com/shared/static/1bqpg9hijtn2rcooqjpffateguh9eeme.pth
python tools/train_net.py \
--config-file configs/BAText/CTW1500/attn_R_50.yaml \
--eval-only \
MODEL.WEIGHTS ctw1500_attn_R_50.pth
```
or Totaltex:
```
wget -O tt_attn_R_50.pth https://cloudstor.aarnet.edu.au/plus/s/t2EFYGxNpKPUqhc/download
python tools/train_net.py \
--config-file configs/BAText/TotalText/attn_R_50.yaml \
--eval-only \
MODEL.WEIGHTS tt_attn_R_50.pth
```

You can also evalute the json result file offline following the [evaluation_example_scripts](https://universityofadelaide.box.com/shared/static/izfgz7z0vb7b72rzj9w0flo3jc9soydf.zip). We provide examples for evaluating on both totaltext and ctw1500.
You can also evalute the json result file offline following the [evaluation_example_scripts](https://universityofadelaide.box.com/shared/static/izfgz7z0vb7b72rzj9w0flo3jc9soydf.zip). If you want to measure the ***inference time***, please change --num-gpus to 1.

# Cite

Expand Down

0 comments on commit e2ad40f

Please sign in to comment.