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 · 1 comment · May be fixed by #8860
Open

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

hyperkai opened this issue Dec 14, 2024 · 1 comment · May be fixed by #8860

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) ...
@NicolasHug
Copy link
Member

Thanks for the report @hyperkai , please feel free to submit a PR for this

GdoongMathew added a commit to GdoongMathew/vision that referenced this issue Jan 16, 2025
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

Successfully merging a pull request may close this issue.

2 participants