Skip to content

Commit

Permalink
Fix data preparation links in doc
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamerlin committed Jul 7, 2020
1 parent e8abc85 commit 4bb0878
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 12 deletions.
16 changes: 8 additions & 8 deletions docs/data_preparation.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ The supported datasets are listed below.
We provide shell scripts for data preparation under the path `$MMACTION/tools/data/`.
To ease usage, we provide tutorials of data deployment for each dataset.

- [UCF101](https://www.crcv.ucf.edu/data/UCF101.php): See [preparing_ucf101.md](/tools/data/ucf101/).
- [Kinetics400](https://deepmind.com/research/open-source/kinetics): See [preparing_kinetics400.md](/tools/data/kinetics400/)
- [THUMOS14](https://www.crcv.ucf.edu/THUMOS14/download.html): See [preparing_thumos14.md](/tools/data/thumos14/)
- [Something-Something V1](https://20bn.com/datasets/something-something/v1): See [preparing_sthv1.md](/tools/data/sthv1/)
- [Something-Something V2](https://20bn.com/datasets/something-something): See [preparing_sthv2.md](/tools/data/sthv2/)
- [Moments in Time](http://moments.csail.mit.edu/): See [preparing_mit.md](/tools/data/mit/)
- [Multi-Moments in Time](http://moments.csail.mit.edu/challenge_iccv_2019.html): See [preparing_mmit.md](/tools/data/mmit/)
- ActivityNet_feature: See [praparing_activitynet.md](/tools/data/activitynet/)
- [UCF101](https://www.crcv.ucf.edu/data/UCF101.php): See [preparing_ucf101.md](/tools/data/ucf101/preparing_ucf101.md).
- [Kinetics400](https://deepmind.com/research/open-source/kinetics): See [preparing_kinetics400.md](/tools/data/kinetics400/preparing_kinetics400.md)
- [THUMOS14](https://www.crcv.ucf.edu/THUMOS14/download.html): See [preparing_thumos14.md](/tools/data/thumos14/preparing_thumos14.md)
- [Something-Something V1](https://20bn.com/datasets/something-something/v1): See [preparing_sthv1.md](/tools/data/sthv1/preparing_sthv1.md)
- [Something-Something V2](https://20bn.com/datasets/something-something): See [preparing_sthv2.md](/tools/data/sthv2/preparing_sthv2.md)
- [Moments in Time](http://moments.csail.mit.edu/): See [preparing_mit.md](/tools/data/mit/preparing_mit.md)
- [Multi-Moments in Time](http://moments.csail.mit.edu/challenge_iccv_2019.html): See [preparing_mmit.md](/tools/data/mmit/preparing_mmit.md)
- ActivityNet_feature: See [praparing_activitynet.md](/tools/data/activitynet/preparing_activitynet.md)

Now, you can switch to [getting_started.md](getting_started.md) to train and test the model.

Expand Down
19 changes: 15 additions & 4 deletions docs/merge_docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,19 @@ cat ../configs/recognition/*/*.md > recognition_models.md

cat ./tutorials/finetune.md ./tutorials/new_dataset.md ./tutorials/data_pipeline.md ./tutorials/new_modules.md > tutorials.md

sed -i 's/](\/docs\//](/g' ../tools/data/*/*.md
sed -i 's=](/=](http://gitlab.sz.sensetime.com/open-mmlab/mmaction-lite/tree/master/=g' ../tools/data/*/*.md
cat ../tools/data/*/*.md > prepare_data.md

sed -i 's/.md](\/tools\/data\/activitynet\/preparing_activitynet.md/](#activitynet/g' data_preparation.md
sed -i 's/.md](\/tools\/data\/kinetics400\/preparing_kinetics400.md/](#kinetics-400/g' data_preparation.md
sed -i 's/.md](\/tools\/data\/mit\/preparing_mit.md/](#moments-in-time/g' data_preparation.md
sed -i 's/.md](\/tools\/data\/mmit\/preparing_mmit.md/](#multi-moments-in-time/g' data_preparation.md
sed -i 's/.md](\/tools\/data\/sthv1\/preparing_sthv1.md/](#something-something-v1/g' data_preparation.md
sed -i 's/.md](\/tools\/data\/sthv2\/preparing_sthv2.md/](#something-something-v2/g' data_preparation.md
sed -i 's/.md](\/tools\/data\/thumos14\/preparing_thumos14.md/](#thumos-14/g' data_preparation.md
sed -i 's/.md](\/tools\/data\/ucf101\/preparing_ucf101.md/](#ucf-101/g' data_preparation.md

sed -i 's/#/##&/' localization_models.md
sed -i 's/#/##&/' recognition_models.md

Expand All @@ -23,18 +34,18 @@ sed -i '1i\## Action Recognition Models' recognition_models.md
sed -i '1i\## Preparing Datasets' prepare_data.md
cat prepare_data.md >> data_preparation.md

sed -i 's/..\/imgs/_images/g' tutorials.md
sed -i 's/](new_dataset.md)/](#tutorial-2-adding-new-dataset)/g' tutorials.md

sed -i 's/](\/docs\//](/g' recognition_models.md # remove /docs/ for link used in doc site
sed -i 's/](\/docs\//](/g' localization_models.md
sed -i 's/](\/docs\//](/g' data_preparation.md
sed -i 's=](/=](http://gitlab.sz.sensetime.com/open-mmlab/mmaction-lite/tree/master/=g' recognition_models.md
sed -i 's=](/=](http://gitlab.sz.sensetime.com/open-mmlab/mmaction-lite/tree/master/=g' localization_models.md
sed -i 's=](/=](http://gitlab.sz.sensetime.com/open-mmlab/mmaction-lite/tree/master/=g' data_preparation.md
sed -i 's=](/=](http://gitlab.sz.sensetime.com/open-mmlab/mmaction-lite/tree/master/=g' benchmark.md
sed -i 's=](/=](http://gitlab.sz.sensetime.com/open-mmlab/mmaction-lite/tree/master/=g' getting_started.md
sed -i 's=](/=](http://gitlab.sz.sensetime.com/open-mmlab/mmaction-lite/tree/master/=g' install.md
sed -i 's=](/=](http://gitlab.sz.sensetime.com/open-mmlab/mmaction-lite/tree/master/=g' tutorials.md
sed -i 's/..\/imgs/_images/g' tutorials.md
sed -i 's/](new_dataset.md)/](#tutorial-2-adding-new-dataset)/g' tutorials.md


cat localization_models.md recognition_models.md > modelzoo.md
sed -i '1i\# Modelzoo' modelzoo.md
Expand Down

0 comments on commit 4bb0878

Please sign in to comment.