Skip to content

transforms parameter of OxfordIIITPet() isn't explained #8812

@hyperkai

Description

@hyperkai

📚 The doc issue

The doc of OxfordIIITPet() says there is transforms parameter as shown below:

class classtorchvision.datasets.OxfordIIITPet(..., target_types: Union[Sequence[str], str] = 'category', transforms: Optional[Callable] = None, transform: Optional[Callable] = None, ...)

But transforms parameter isn't explained as shown below:

Parameters:

  • root (str or pathlib.Path) ...
  • split (string, optional) ...
  • target_types (string, sequence of strings, optional) ...
  • transform (callable, optional) ...
  • target_transform (callable, optional) ...
  • download (bool, optional) ...

Suggest a potential alternative/fix

So, transforms parameter should be explained as shown below:

Parameters:

  • root (str or pathlib.Path) ...
  • split (string, optional) ...
  • target_types (string, sequence of strings, optional) ...
  • transforms <- Here
  • transform (callable, optional) ...
  • target_transform (callable, optional) ...
  • download (bool, optional) ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions