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

CLI throws AttributeError when using verify and generate commands #62

Open
stwerner97 opened this issue Dec 5, 2024 · 1 comment
Open

Comments

@stwerner97
Copy link

Hi, thanks for providing this awesome dataset and devkit.

I have downloaded the dataset using the CLI tool. I want to verify it and generate an export to MS-COCO format using the CLI as well. When I do, however, I get an AttributeError: 'function' object has no attribute 'base_type' error. I've tried this with fresh python3.9 and python3.10 installations for both the verify as well as the generate command.

zod verify --dataset-root=full --subset=frames --version=full

/root/.pyenv/versions/3.9.20/lib/python3.9/site-packages/zod/cli/verify.py:98 in verify
> zod = subset.dataset_cls(str(dataset_root.expanduser()), version.value)
/root/.pyenv/versions/3.9.20/lib/python3.9/site-packages/zod/_zod_dataset.py:31 in __init__ 
> self._infos, self._train_ids, self._val_ids = self._load_infos()
 /root/.pyenv/versions/3.9.20/lib/python3.9/site-packages/zod/_zod_dataset.py:97 in _load_infos 
> infos = process_map(func, chain.from_iterable(all_ids.values()), ...)
.......
/root/.pyenv/versions/3.9.20/lib/python3.9/concurrent/futures/_base.py:391 in __get_result 
>>> AttributeError: 'function' object has no attribute 'base_type'
@stwerner97
Copy link
Author

Limiting the dataclass-wizard version to >=0.22.2,<=0.31.0 fixes this issue for me.

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