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

Cityscapes #5353

Open
pmeier opened this issue Feb 3, 2022 · 3 comments · May be fixed by #5441
Open

Cityscapes #5353

pmeier opened this issue Feb 3, 2022 · 3 comments · May be fixed by #5441

Comments

@pmeier
Copy link
Collaborator

pmeier commented Feb 3, 2022

cc @pmeier @bjuncek

@vfdev-5
Copy link
Collaborator

vfdev-5 commented Feb 3, 2022

In cityscapes we have splits and modes and split names depends on mode value.

verify_str_arg(mode, "mode", ("fine", "coarse"))
if mode == "fine":
valid_modes = ("train", "test", "val")
else:
valid_modes = ("train", "train_extra", "val")

How can we do that in the prototype ?

@NicolasHug
Copy link
Member

You can take inspiration from VOC:

def make_config(self, **options: Any) -> DatasetConfig:
config = super().make_config(**options)
if config.split == "test" and config.year != "2007":
raise ValueError("`split='test'` is only available for `year='2007'`")
return config

But the exact way we handle this might slightly change with #5369

@pmeier
Copy link
Collaborator Author

pmeier commented Feb 3, 2022

I would say let's wait for #5369 to land before we go ahead with this. Or at least ignore the test and train_extra modes for now.

@vfdev-5 vfdev-5 linked a pull request Feb 18, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants