For basic dataset information, please refer to the official [website](http://activity-net.org/).
Here, we use the ActivityNet rescaled feature provided in this [repo](https://github.com/wzmsltw/BSN-boundary-sensitive-network#code-and-data-preparation).
Before we start, please make sure that current working directory is `$MMACTION/tools/data/activitynet/`.
Before we start, please make sure that current working directory is `$MMACTION2/tools/data/activitynet/`.
## Step 1. Download Annotations
First of all, you can run the following script to download annotation files.
If you didn't install dense_flow in the installation or only want to play with RGB frames (since extracting optical flow can be time-consuming), consider running the following script to extract **RGB-only** frames.
If you only want to play with RGB frames (since extracting optical flow can be time-consuming), consider running the following script to extract **RGB-only** frames using denseflow.
```shell
bash extract_rgb_frames.sh
```
If you didn't install denseflow, you can still extract RGB frames using OpenCV by the following script, but it will keep the original size of the images.
```shell
bash extract_rgb_frames_opencv.sh
```
If both are required, run the following script to extract frames.
```shell
bash extract_frames.sh
```
These two commands above can generate images with size 340x256, if you want to generate images with short edge 320 (320p),
These three commands above can generate images with size 340x256, if you want to generate images with short edge 320 (320p),
you can change the args `--new-width 340 --new-height 256` to `--new-short 320`.
More details can be found in [data_preparation](/docs/data_preparation.md)
For basic dataset information, you can refer to the dataset [website](http://moments.csail.mit.edu/).
Before we start, please make sure that the directory is located at `$MMACTION/tools/data/mit/`.
Before we start, please make sure that the directory is located at `$MMACTION2/tools/data/mit/`.
## Step 1. Prepare Annotations and Videos
...
...
@@ -17,10 +17,7 @@ This part is **optional** if you only want to use the video loader.
Before extracting, please refer to [install.md](/docs/install.md) for installing [dense_flow](https://github.com/open-mmlab/denseflow).
If you didn't install dense_flow in the installation or only want to play with RGB frames (since extracting optical flow can be time-consuming), consider running the following script to extract **RGB-only** frames.
Fist, You can run the following script to soft link the extracted frames.
If you have plenty of SSD space, then we recommend extracting frames there for better I/O performance. And you can run the following script to soft link the extracted frames.
```shell
# execute these two line (Assume the SSD is mounted at "/mnt/SSD/")
If you only want to play with RGB frames (since extracting optical flow can be time-consuming), consider running the following script to extract **RGB-only** frames using denseflow.
```shell
bash extract_rgb_frames.sh
```
If you didn't install denseflow, you can still extract RGB frames using OpenCV by the following script, but it will keep the original size of the images.
```shell
bash extract_rgb_frames_opencv.sh
```
If both are required, run the following script to extract frames.
If you didn't install dense_flow in the installation or only want to play with RGB frames (since extracting optical flow can be time-consuming), consider running the following script to extract **RGB-only** frames.
If you only want to play with RGB frames (since extracting optical flow can be time-consuming), consider running the following script to extract **RGB-only** frames using denseflow.
```shell
bash extract_rgb_frames.sh
```
If you didn't install denseflow, you can still extract RGB frames using OpenCV by the following script, but it will keep the original size of the images.
```shell
bash extract_rgb_frames_opencv.sh
```
If both are required, run the following script to extract frames using "tvl1" algorithm.
For basic dataset information, you can refer to the dataset [website](https://20bn.com/datasets/something-something/v1).
Before we start, please make sure that the directory is located at `$MMACTION/tools/data/sthv1/`.
Before we start, please make sure that the directory is located at `$MMACTION2/tools/data/sthv1/`.
## Step 1. Prepare Annotations
First of all, you have to sign in and download annotations to `$MMACTION/data/sthv1/annotations` on the official [website](https://20bn.com/datasets/something-something/v1).
First of all, you have to sign in and download annotations to `$MMACTION2/data/sthv1/annotations` on the official [website](https://20bn.com/datasets/something-something/v1).
## Step 2. Prepare Videos
Then, you can download all data parts to `$MMACTION/data/sthv1/` and use the following command to extract.
Then, you can download all data parts to `$MMACTION2/data/sthv1/` and use the following command to extract.
If you didn't install dense_flow in the installation or only want to play with RGB frames (since extracting optical flow can be time-consuming), consider running the following script to extract **RGB-only** frames.
If you only want to play with RGB frames (since extracting optical flow can be time-consuming), consider running the following script to extract **RGB-only** frames using denseflow.
```shell
cd$MMACTION/tools/data/sthv1/
cd$MMACTION2/tools/data/sthv1/
bash extract_rgb_frames.sh
```
If you didn't install denseflow, you can still extract RGB frames using OpenCV by the following script, but it will keep the original size of the images.
```shell
cd$MMACTION2/tools/data/sthv1/
bash extract_rgb_frames_opencv.sh
```
If both are required, run the following script to extract frames.
```shell
cd$MMACTION/tools/data/sthv1/
cd$MMACTION2/tools/data/sthv1/
bash extract_frames.sh
```
...
...
@@ -52,7 +59,7 @@ bash extract_frames.sh
you can run the follow script to generate file list in the format of rawframes and videos.
For basic dataset information, you can refer to the dataset [website](https://20bn.com/datasets/something-something/v2).
Before we start, please make sure that the directory is located at `$MMACTION/tools/data/sthv2/`.
Before we start, please make sure that the directory is located at `$MMACTION2/tools/data/sthv2/`.
## Step 1. Prepare Annotations
First of all, you have to sign in and download annotations to `$MMACTION/data/sthv2/annotations` on the official [website](https://20bn.com/datasets/something-something/v2).
First of all, you have to sign in and download annotations to `$MMACTION2/data/sthv2/annotations` on the official [website](https://20bn.com/datasets/something-something/v2).
## Step 2. Prepare Videos
Then, you can download all data parts to `$MMACTION/data/sthv2/` and use the following command to extract.
Then, you can download all data parts to `$MMACTION2/data/sthv2/` and use the following command to extract.
If you didn't install dense_flow in the installation or only want to play with RGB frames (since extracting optical flow can be time-consuming), consider running the following script to extract **RGB-only** frames.
If you only want to play with RGB frames (since extracting optical flow can be time-consuming), consider running the following script to extract **RGB-only** frames using denseflow.
```shell
cd$MMACTION/tools/data/sthv2/
cd$MMACTION2/tools/data/sthv2/
bash extract_rgb_frames.sh
```
If you didn't install denseflow, you can still extract RGB frames using OpenCV by the following script, but it will keep the original size of the images.
```shell
cd$MMACTION2/tools/data/sthv2/
bash extract_rgb_frames_opencv.sh
```
If both are required, run the following script to extract frames.
```shell
cd$MMACTION/tools/data/sthv2/
cd$MMACTION2/tools/data/sthv2/
bash extract_frames.sh
```
...
...
@@ -51,7 +58,7 @@ bash extract_frames.sh
you can run the follow script to generate file list in the format of rawframes and videos.
If you didn't install dense_flow in the installation or only want to play with RGB frames (since extracting optical flow can be time-consuming), consider running the following script to extract **RGB-only** frames.
If you only want to play with RGB frames (since extracting optical flow can be time-consuming), consider running the following script to extract **RGB-only** frames using denseflow.
```shell
cd$MMACTION/tools/data/thumos14/
cd$MMACTION2/tools/data/thumos14/
bash extract_rgb_frames.sh
```
If you didn't install denseflow, you can still extract RGB frames using OpenCV by the following script, but it will keep the original size of the images.
```shell
cd$MMACTION2/tools/data/thumos14/
bash extract_rgb_frames_opencv.sh
```
If both are required, run the following script to extract frames.
```shell
cd$MMACTION/tools/data/thumos14/
cd$MMACTION2/tools/data/thumos14/
bash extract_frames.sh tvl1
```
...
...
@@ -56,7 +63,7 @@ bash extract_frames.sh tvl1
You can run the follow script to fetch pre-computed tag proposals.
If you didn't install dense_flow in the installation or only want to play with RGB frames (since extracting optical flow can be time-consuming), consider running the following script to extract **RGB-only** frames.
If you only want to play with RGB frames (since extracting optical flow can be time-consuming), consider running the following script to extract **RGB-only** frames using denseflow.
```shell
bash extract_rgb_frames.sh
```
If you didn't install denseflow, you can still extract RGB frames using OpenCV by the following script, but it will keep the original size of the images.
```shell
bash extract_rgb_frames_opencv.sh
```
If both are required, run the following script to extract frames using "tvl1" algorithm.