Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
hyperkai opened this issue Dec 14, 2024 · 0 comments
Open

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

hyperkai opened this issue Dec 14, 2024 · 0 comments

Comments

@hyperkai
Copy link

📚 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) ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant