-
Notifications
You must be signed in to change notification settings - Fork 248
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #185 from OFA-Sys/features/ofa_cn
add cn ofa
- Loading branch information
Showing
9 changed files
with
42,354 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/usr/bin/env bash | ||
|
||
# The port for communication. Note that if you want to run multiple tasks on the same machine, | ||
# you need to specify different port numbers. | ||
export MASTER_PORT=6081 | ||
export CUDA_VISIBLE_DEVICES=7 | ||
export GPUS_PER_NODE=1 | ||
|
||
user_dir=../../ofa_module | ||
bpe_dir=../../utils/BERT_CN_dict | ||
selected_cols=0,3,1,2 | ||
|
||
data=../../dataset/refcoco_cn_data/refcoco+_test_sample.tsv | ||
path=../../checkpoints/refcocoplus_cn_large.pt | ||
result_path=../../results/refcoco | ||
split='refcoco_val' | ||
python3 ../../evaluate.py \ | ||
${data} \ | ||
--path=${path} \ | ||
--user-dir=${user_dir} \ | ||
--task=refcoco \ | ||
--batch-size=16 \ | ||
--log-format=simple --log-interval=10 \ | ||
--seed=7 \ | ||
--gen-subset=${split} \ | ||
--results-path=${result_path} \ | ||
--beam=5 \ | ||
--min-len=4 \ | ||
--max-len-a=0 \ | ||
--max-len-b=4 \ | ||
--no-repeat-ngram-size=3 \ | ||
--fp16 \ | ||
--num-workers=0 \ | ||
--model-overrides="{\"data\":\"${data}\",\"bpe_dir\":\"${bpe_dir}\",\"selected_cols\":\"${selected_cols}\"}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.