kadirnar / segment-anything-video

MetaSeg: Packaged version of the Segment Anything repository
Apache License 2.0
946 stars 67 forks source link

I have this issue after updating the code. #61

Closed threeneedone closed 1 year ago

threeneedone commented 1 year ago

I have this issue after updating the code.

Traceback (most recent call last): File "e:/AIGC/segment-anything-video/test", line 1, in from metaseg import sahi_sliced_predict, SahiAutoSegmentation File "e:\AIGC\segment-anything-video\metaseg__init.py", line 7, in from metaseg.falai_demo import falai_automask_image, falai_manuelmask_image File "e:\AIGC\segment-anything-video\metaseg\falai_demo.py", line 5, in from metaseg import SegAutoMaskPredictor, SegManualMaskPredictor ImportError: cannot import name 'SegAutoMaskPredictor' from partially initialized module 'metaseg' (most likely due to a circular import) (e:\AIGC\segment-anything-video\metaseg\init__.py)

Ericxgao commented 1 year ago

Also having this issue.

kadirnar commented 1 year ago

@Ericxgao @threeneedone ,

Package Upgrade:

pip install metaseg --upgrade

Can you write the code you are running?

threeneedone commented 1 year ago

This problem occurs when I use meta==0.7.0, so I revert to 0.6.1.

kadirnar commented 1 year ago

Thank you for the feedback. I fixed it.

pip install metaseg==0.7.3