SamsungLabs / fbrs_interactive_segmentation

[CVPR2020] f-BRS: Rethinking Backpropagating Refinement for Interactive Segmentation https://arxiv.org/abs/2001.10331
Mozilla Public License 2.0
583 stars 94 forks source link

ImportError #1

Closed pkraison closed 4 years ago

pkraison commented 4 years ago

I'm getting an error while running the demo.py ImportError: cannot import name 'Optional'. any help would be appreciated, thanks!

ksofiyuk commented 4 years ago

You probably have a version of Python less than 3.6. Upgrade the interpreter to version 3.6+.

pkraison commented 4 years ago

I have python 3.6.10. but I solved it by downgrading torchvision from 0.5.0 to 0.4.0. and it's working now. Thanks for your response. can't we change version of torchvision >=0.5.0 to >=0.4.0. thanks a lot for your response. :+1: