Skip to content

Commit

Permalink
Missing video docs (#7251)
Browse files Browse the repository at this point in the history
* missing video docs

* mention experimental
  • Loading branch information
lhoestq authored Oct 24, 2024
1 parent 8235fdb commit 8413aac
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions docs/source/package_reference/loading_methods.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,12 @@ load_dataset("csv", data_dir="path/to/data/dir", sep="\t")

[[autodoc]] datasets.packaged_modules.audiofolder.AudioFolder

### Videos

[[autodoc]] datasets.packaged_modules.videofolder.VideoFolderConfig

[[autodoc]] datasets.packaged_modules.videofolder.VideoFolder

### WebDataset

[[autodoc]] datasets.packaged_modules.webdataset.WebDataset
4 changes: 2 additions & 2 deletions src/datasets/features/video.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@

@dataclass
class Video:
"""Video [`Feature`] to read video data from a video file.
"""
**Experimental.** Video [`Feature`] to read video data from a video file.
Input: The Video feature accepts as input:
- A `str`: Absolute path to the video file (i.e. random access is allowed).
Expand All @@ -32,7 +33,6 @@ class Video:
This is useful for archived files with sequential access.
- An `np.ndarray`: NumPy array representing a video.
- A `decord.VideoReader`: decord video reader object.
Args:
Expand Down

0 comments on commit 8413aac

Please sign in to comment.