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

Code compatibility with python < 3.9 #155

Open
brendonlutnick opened this issue Dec 23, 2022 · 0 comments
Open

Code compatibility with python < 3.9 #155

brendonlutnick opened this issue Dec 23, 2022 · 0 comments

Comments

@brendonlutnick
Copy link

It seems that the files "deeplab2/model/layers/moat_blocks.py" and "deeplab2/model/pixel_encoder/moat.py" are using list[int] and List[int] interchangeably in function definitions. From what I can gather - this works in python 3.9 but not in previous versions. I was able to make the code run in python 3.8 by editing the files to use List[int], and Dict[int] and importing List and Dict from typing.

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