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

target_types parameter of OxfordIIITPet() accepts the multiple same values #8813

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

Comments

@hyperkai
Copy link

🐛 Describe the bug

target_types parameter of OxfordIIITPet() accepts the multiple same values as shown below. *It's not useful to have the multiple same elements:

from torchvision.datasets import OxfordIIITPet

my_data = OxfordIIITPet(
    root="data",
    target_types=["category", "binary-category", "segmentation", "category", "binary-category", "segmentation"]
)

trainval_cate_data[0]
# (<PIL.Image.Image image mode=RGB size=394x500>,
#  (0, 0, <PIL.PngImagePlugin.PngImageFile image mode=L size=394x500>,
#   0, 0, <PIL.PngImagePlugin.PngImageFile image mode=L size=394x500>))

Versions

import torchvision

torchvision.__version__ # '0.20.1'
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