Skip to content

Commit f6301f3

Browse files
committed
fix links
1 parent 5cafbc4 commit f6301f3

File tree

1 file changed

+2
-2
lines changed
  • torchvision/prototype/datasets/_builtin

1 file changed

+2
-2
lines changed

torchvision/prototype/datasets/_builtin/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@ class MyDataset(Dataset):
3939

4040
The `DatasetInfo` carries static information about the dataset. There are two required fields:
4141
- `name`: Name of the dataset. This will be used to load the dataset with `datasets.load(name)`. Should only contain lower characters.
42-
- `type`: Field of the `datasets.utils.DatasetType` enum. This is used to select the default decoder in case the user doesn't pass one. There are currently only two options: `IMAGE` and `RAW` ([see below](### What is the `DatasetType.RAW` and when do I use it?) for details).
42+
- `type`: Field of the `datasets.utils.DatasetType` enum. This is used to select the default decoder in case the user doesn't pass one. There are currently only two options: `IMAGE` and `RAW` ([see below](what-is-the-datasettyperaw-and-when-do-i-use-it) for details).
4343

4444
There are more optional parameters that can be passed:
4545

4646
- `dependencies`: Collection of third-party dependencies that are needed to load the dataset, e.g. `("scipy",)`. Their availability will be automatically checked if a user tries to load the dataset. Within the implementation, import these packages lazily to avoid missing dependencies at import time.
47-
- `categories`: Sequence of human-readable category names for each label. The index of each category has to match the corresponding label returned in the dataset samples. [See below](### How do I handle a dataset that defines many categories?) how to handle cases with many categories.
47+
- `categories`: Sequence of human-readable category names for each label. The index of each category has to match the corresponding label returned in the dataset samples. [See below](#how-do-i-handle-a-dataset-that-defines-many-categories) how to handle cases with many categories.
4848
- `valid_options`: Configures valid options that can be passed to the dataset. It should be `Dict[str, Sequence[str]]`. The options are accessible through the `config` namespace in the other two functions. First value of the sequence is taken as default if the user passes no option to `torchvision.prototype.datasets.load()`.
4949

5050
## `resources(self, config)`

0 commit comments

Comments
 (0)