Skip to content

Commit c43ced9

Browse files
authored
[Doc] Fix faq doc (#2482)
1 parent 464e543 commit c43ced9

File tree

1 file changed

+23
-2
lines changed

1 file changed

+23
-2
lines changed

docs/en/get_started/faq.md

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,29 @@ If the contents here do not cover your issue, please create an issue using the [
9595

9696
In MMAction2 1.x version, most of the configs take `VideoDataset` as the default dataset type, which is much more friendly to file storage. If you want to use `RawFrameDataset` instead, there are two steps to modify:
9797

98-
- Dataset: modify `dataset_type = 'VideoDataset'` to `dataset_type = 'RawFrameDataset'`, and please make sure that the variable has been passed to `dataset` in `train_dataloader`/`val_dataloader`/`test_dataloader`.
99-
- Transforms: delete `dict(type='DecordInit', **file_client_args)`, modify `dict(type='DecordDecode')` to `dict(type='RawFrameDecode', **file_client_args)` in `train_pipeline`/`val_pipeline`/`test_pipeline`.
98+
- Dataset:
99+
modify dataset in `train_dataloader`/`val_dataloader`/`test_dataloader` from
100+
101+
```
102+
dataset=dict(
103+
type=VideoDataset,
104+
data_prefix=dict(video=xxx),
105+
...)
106+
```
107+
108+
to
109+
110+
```
111+
dataset=dict(
112+
type=RawFrameDataset,
113+
data_prefix=dict(img=xxx),
114+
filename_tmpl='{:05}.jpg',
115+
...)
116+
```
117+
118+
remaining fields of `dataset` don't need to be modified. Please make sure that `filename_tmpl` is matching with your frame data, and you can refer to [config document](../user_guides/config.md) for more details about config file.
119+
120+
- Transforms: delete `dict(type='DecordInit', **file_client_args)`, modify `dict(type='DecordDecode')` to `dict(type='RawFrameDecode', **file_client_args)` in `train_pipeline`/`val_pipeline`/`test_pipeline`, and please make sure that `file_client_args = dict(io_backend='disk')` has been defined in your config.
100121
101122
For more modifications about customizing datasets, please refer to [prepare dataset](../user_guides/prepare_dataset.md) and [customize dataset](../advanced_guides/customize_dataset.md).
102123

0 commit comments

Comments
 (0)