Skip to content

Commit

Permalink
add multi queries and shifted query
Browse files Browse the repository at this point in the history
  • Loading branch information
Reza-Zhu committed Mar 27, 2023
1 parent 1d13b1e commit 58e7387
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,16 @@ name: MBF_1652_2022-11-15-18:56:39
python U1652_test_and_evaluate.py --cfg "settings.yaml" --name "your_weight_dirname_1652_2022-11-16-15:14:14" --seq 1
```

### Multiply Queries
```shell
python multi_test_and_evaluate.py --cfg "settings.yaml" --multi 1 --weight "your_weight_path.pth" --csv_save_path "./result"

```

### Shifted Query
```shell
python Shifted_test_and_evaluate.py --cfg "settings.yaml" --query "drone" --weight "your_weight_path.pth" --csv_save_path "./result" --gap 10
```

### Best Weights
Please check the Release page
Expand Down
5 changes: 2 additions & 3 deletions Shifited_test_and_evaluate.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,8 @@ def eval_and_test(query_name, config_file, net_path, save_path, gap):

parser.add_argument('--query', type=str, default="drone", help='query set: drone or satellite')
parser.add_argument('--cfg', type=str, default='settings.yaml', help='config file XXX.yaml path')
parser.add_argument('--multi', type=int, default=1, help='multi number for example: if multi == 1 fusion image '
'number = 50/1 = 50')
parser.add_argument('--weight', type=str, default="/home/sues/save_model_weight/Release_1652_2022-11-19-01:26:05/net_137.pth", help='evaluate which weight, path')

parser.add_argument('--weight', type=str, default=None, help='evaluate which weight, path')
parser.add_argument('--csv_save_path', type=str, default="./result", help="evaluation result table store path")
parser.add_argument('--gap', type=int, default=10, help='shifted gap')
opt = parser.parse_known_args()[0]
Expand Down
1 change: 0 additions & 1 deletion multi_test_and_evaluate.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,6 @@ def eval_and_test(multi_coff, config_file, weight_path, save_path):
parser.add_argument('--multi', type=int, default=1, help='multi number for example: if multi == 1 fusion image '
'number = 50/1 = 50')
parser.add_argument('--weight', type=str, default=None, help='evaluate which weight, path')

parser.add_argument('--csv_save_path', type=str, default="./result", help="evaluation result table store path")
opt = parser.parse_known_args()[0]

Expand Down

0 comments on commit 58e7387

Please sign in to comment.