Reconstruct the directory structure
This commit is contained in:
@@ -18,7 +18,7 @@ Download URL: http://www.cbsr.ia.ac.cn/GaitDatasetB-silh.zip
|
||||
......
|
||||
......
|
||||
```
|
||||
- Run `python misc/pretreatment.py --input_path CASIA-B --output_path CASIA-B-pkl`
|
||||
- Run `python datasets/pretreatment.py --input_path CASIA-B --output_path CASIA-B-pkl`
|
||||
- Processed
|
||||
```
|
||||
CASIA-B-pkl
|
||||
@@ -36,7 +36,7 @@ Step1: Download URL: http://www.am.sanken.osaka-u.ac.jp/BiometricDB/GaitMVLP.htm
|
||||
|
||||
Step2: Unzip the dataset, you will get a structure directory like:
|
||||
```
|
||||
python misc/extractor.py --input_path Path_of_OUMVLP-base --output_path Path_of_OUMVLP-raw --password Given_Password
|
||||
python datasets/OUMVLP/extractor.py --input_path Path_of_OUMVLP-base --output_path Path_of_OUMVLP-raw --password Given_Password
|
||||
```
|
||||
|
||||
- Original
|
||||
@@ -70,12 +70,12 @@ python misc/extractor.py --input_path Path_of_OUMVLP-base --output_path Path_of_
|
||||
```
|
||||
Step3 : To rearrange directory of OUMVLP dataset, turning to id-type-view structure, Run
|
||||
```
|
||||
python misc/rearrange_OUMVLP.py --input_path Path_of_OUMVLP-raw --output_path Path_of_OUMVLP-rearranged
|
||||
python datasets/OUMVLP/rearrange_OUMVLP.py --input_path Path_of_OUMVLP-raw --output_path Path_of_OUMVLP-rearranged
|
||||
```
|
||||
|
||||
Step4: Transforming images to pickle file, run
|
||||
```
|
||||
python misc/pretreatment.py --input_path Path_of_OUMVLP-rearranged --output_path Path_of_OUMVLP-pkl
|
||||
python datasets/pretreatment.py --input_path Path_of_OUMVLP-rearranged --output_path Path_of_OUMVLP-pkl
|
||||
```
|
||||
|
||||
- Processed
|
||||
@@ -135,12 +135,12 @@ Step2: [Unzip](https://github.com/GREW-Benchmark/GREW-Benchmark) the dataset, yo
|
||||
|
||||
Step3 : To rearrange directory of GREW dataset, turning to id-type-view structure, Run
|
||||
```
|
||||
python misc/rearrange_GREW.py --input_path Path_of_GREW-raw --output_path Path_of_GREW-rearranged
|
||||
python datasets/GREW/rearrange_GREW.py --input_path Path_of_GREW-raw --output_path Path_of_GREW-rearranged
|
||||
```
|
||||
|
||||
Step4: Transforming images to pickle file, run
|
||||
```
|
||||
python misc/pretreatment.py --input_path Path_of_GREW-rearranged --output_path Path_of_GREW-pkl
|
||||
python datasets/pretreatment.py --input_path Path_of_GREW-rearranged --output_path Path_of_GREW-pkl
|
||||
```
|
||||
|
||||
- Processed
|
||||
@@ -170,4 +170,4 @@ python misc/pretreatment.py --input_path Path_of_GREW-rearranged --output_path P
|
||||
```
|
||||
|
||||
## Split dataset
|
||||
You can use the partition file in [misc/partitions](misc/partitions/) directly, or you can create yours. Remember to set your path to the partition file in [config/*.yaml](config/).
|
||||
You can use the partition file in dataset folder directly, or you can create yours. Remember to set your path to the partition file in [config/*.yaml](config/).
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
# Advanced Usages
|
||||
### Cross-Dataset Evalution
|
||||
> You can conduct cross-dataset evalution by just modifying several arguments in your [data_cfg](../config/baseline.yaml#L1).
|
||||
> You can conduct cross-dataset evalution by just modifying several arguments in your [data_cfg](../config/baseline/baseline.yaml#L1).
|
||||
>
|
||||
> Take [baseline.yaml](../config/baseline.yaml) as an example:
|
||||
> Take [baseline.yaml](../config/baseline/baseline.yaml) as an example:
|
||||
> ```yaml
|
||||
> data_cfg:
|
||||
> dataset_name: CASIA-B
|
||||
> dataset_root: your_path
|
||||
> dataset_partition: ./misc/partitions/CASIA-B_include_005.json
|
||||
> dataset_partition: ./datasets/CASIA-B/CASIA-B_include_005.json
|
||||
> num_workers: 1
|
||||
> remove_no_gallery: false # Remove probe if no gallery for it
|
||||
> test_dataset_name: CASIA-B
|
||||
@@ -19,7 +19,7 @@
|
||||
> data_cfg:
|
||||
> dataset_name: CASIA-B
|
||||
> dataset_root: your_OUMVLP_path
|
||||
> dataset_partition: ./misc/partitions/OUMVLP.json
|
||||
> dataset_partition: ./datasets/OUMVLP/OUMVLP.json
|
||||
> num_workers: 1
|
||||
> remove_no_gallery: false # Remove probe if no gallery for it
|
||||
> test_dataset_name: OUMVLP
|
||||
|
||||
Reference in New Issue
Block a user