|
a |
|
b/docs/merge_docs.sh |
|
|
1 |
#!/usr/bin/env bash |
|
|
2 |
|
|
|
3 |
sed -i '$a\\n' ../demo/README.md |
|
|
4 |
|
|
|
5 |
# gather models |
|
|
6 |
cat ../configs/localization/*/README.md | sed "s/md#t/html#t/g" | sed "s/#/#&/" | sed '1i\# Action Localization Models' | sed 's/](\/docs\//](/g' | sed 's=](/=](https://github.com/open-mmlab/mmaction2/tree/master/=g' | sed "s/getting_started.html##t/getting_started.html#t/g" > localization_models.md |
|
|
7 |
cat ../configs/recognition/*/README.md | sed "s/md#t/html#t/g" | sed "s/#/#&/" | sed '1i\# Action Recognition Models' | sed 's/](\/docs\//](/g' | sed 's=](/=](https://github.com/open-mmlab/mmaction2/tree/master/=g' | sed "s/getting_started.html##t/getting_started.html#t/g" > recognition_models.md |
|
|
8 |
cat ../configs/recognition_audio/*/README.md | sed "s/md#t/html#t/g" | sed "s/#/#&/" | sed 's/](\/docs\//](/g' | sed 's=](/=](https://github.com/open-mmlab/mmaction2/tree/master/=g' | sed "s/getting_started.html##t/getting_started.html#t/g" >> recognition_models.md |
|
|
9 |
cat ../configs/detection/*/README.md | sed "s/md#t/html#t/g" | sed "s/#/#&/" | sed '1i\# Spatio Temporal Action Detection Models' | sed 's/](\/docs\//](/g' | sed 's=](/=](https://github.com/open-mmlab/mmaction2/tree/master/=g' | sed "s/getting_started.html##t/getting_started.html#t/g" > detection_models.md |
|
|
10 |
cat ../configs/skeleton/*/README.md | sed "s/md#t/html#t/g" | sed "s/#/#&/" | sed '1i\# Skeleton-based Action Recognition Models' | sed 's/](\/docs\//](/g' | sed 's=](/=](https://github.com/open-mmlab/mmaction2/tree/master/=g' | sed "s/getting_started.html##t/getting_started.html#t/g" > skeleton_models.md |
|
|
11 |
|
|
|
12 |
|
|
|
13 |
# demo |
|
|
14 |
cat ../demo/README.md | sed "s/md#t/html#t/g" | sed 's=](/=](https://github.com/open-mmlab/mmaction2/tree/master/=g' | sed "s/getting_started.html##t/getting_started.html#t/g" > demo.md |
|
|
15 |
|
|
|
16 |
# gather datasets |
|
|
17 |
cat ../tools/data/*/README.md | sed 's/# Preparing/# /g' | sed 's/#/#&/' > prepare_data.md |
|
|
18 |
|
|
|
19 |
sed -i 's/(\/tools\/data\/activitynet\/README.md/(#activitynet/g' supported_datasets.md |
|
|
20 |
sed -i 's/(\/tools\/data\/kinetics\/README.md/(#kinetics-400-600-700/g' supported_datasets.md |
|
|
21 |
sed -i 's/(\/tools\/data\/mit\/README.md/(#moments-in-time/g' supported_datasets.md |
|
|
22 |
sed -i 's/(\/tools\/data\/mmit\/README.md/(#multi-moments-in-time/g' supported_datasets.md |
|
|
23 |
sed -i 's/(\/tools\/data\/sthv1\/README.md/(#something-something-v1/g' supported_datasets.md |
|
|
24 |
sed -i 's/(\/tools\/data\/sthv2\/README.md/(#something-something-v2/g' supported_datasets.md |
|
|
25 |
sed -i 's/(\/tools\/data\/thumos14\/README.md/(#thumos-14/g' supported_datasets.md |
|
|
26 |
sed -i 's/(\/tools\/data\/ucf101\/README.md/(#ucf-101/g' supported_datasets.md |
|
|
27 |
sed -i 's/(\/tools\/data\/ucf101_24\/README.md/(#ucf101-24/g' supported_datasets.md |
|
|
28 |
sed -i 's/(\/tools\/data\/jhmdb\/README.md/(#jhmdb/g' supported_datasets.md |
|
|
29 |
sed -i 's/(\/tools\/data\/hvu\/README.md/(#hvu/g' supported_datasets.md |
|
|
30 |
sed -i 's/(\/tools\/data\/hmdb51\/README.md/(#hmdb51/g' supported_datasets.md |
|
|
31 |
sed -i 's/(\/tools\/data\/jester\/README.md/(#jester/g' supported_datasets.md |
|
|
32 |
sed -i 's/(\/tools\/data\/ava\/README.md/(#ava/g' supported_datasets.md |
|
|
33 |
sed -i 's/(\/tools\/data\/gym\/README.md/(#gym/g' supported_datasets.md |
|
|
34 |
sed -i 's/(\/tools\/data\/omnisource\/README.md/(#omnisource/g' supported_datasets.md |
|
|
35 |
sed -i 's/(\/tools\/data\/diving48\/README.md/(#diving48/g' supported_datasets.md |
|
|
36 |
sed -i 's/(\/tools\/data\/skeleton\/README.md/(#skeleton/g' supported_datasets.md |
|
|
37 |
|
|
|
38 |
|
|
|
39 |
cat prepare_data.md >> supported_datasets.md |
|
|
40 |
sed -i 's/](\/docs\//](/g' supported_datasets.md |
|
|
41 |
sed -i 's=](/=](https://github.com/open-mmlab/mmaction2/tree/master/=g' supported_datasets.md |
|
|
42 |
|
|
|
43 |
sed -i 's=](/=](https://github.com/open-mmlab/mmaction2/tree/master/=g' benchmark.md |
|
|
44 |
sed -i 's=](/=](https://github.com/open-mmlab/mmaction2/tree/master/=g' getting_started.md |
|
|
45 |
sed -i 's=](/=](https://github.com/open-mmlab/mmaction2/tree/master/=g' install.md |
|
|
46 |
sed -i 's=](/=](https://github.com/open-mmlab/mmaction2/tree/master/=g' changelog.md |
|
|
47 |
sed -i 's/](\/docs\//](/g' ./tutorials/*.md |
|
|
48 |
sed -i 's=](/=](https://github.com/open-mmlab/mmaction2/tree/master/=g' ./tutorials/*.md |