-
Notifications
You must be signed in to change notification settings - Fork 101
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
AttributeError: 'GeneralizedSEEM' object has no attribute 'evaluate_demo' #12
Comments
I added a fix for the import statement being missing UX-Decoder/Segment-Everything-Everywhere-All-At-Once#100. I am not sure how to fix the other error, and would love advice. Thank you so much! @jwyang |
for this 'GeneralizedSEEM' object has no attribute 'evaluate_demo', which line do you report this error? Should try model.model.evaluate_demo() |
The error occurs on line 62 of SoM/task_adapter/seem/tasks/inference_seem_interactive.py This is reproduced by using the install directions for this repo, including installing the package branch of Seem with 'pip install git+https://github.com/UX-Decoder/Segment-Everything-Everywhere-All-At-Once.git@package'. Then fixing distributed.py with adding the line 'from mpi4py import MPI' as shown in this PR UX-Decoder/Segment-Everything-Everywhere-All-At-Once#100. Then run python demo_som.py, and click the 'Run' button with the interactive segmentation mode with seem and a mask on the image |
@jordanhart This got it to work for me. Convoluted to do in Google Colab but it works nonetheless. In my clone of the repo it doesn't pull the distributed.py file with the MPI import even though it looked as if they updated it in the repo, but when going through it looks like they haven't made a change since you did the PR. |
In #19 we use https://github.com/UX-Decoder/Segment-Everything-Everywhere-All-At-Once.git@33f2c8, which is the commit behind https://github.com/UX-Decoder/Segment-Everything-Everywhere-All-At-Once/tree/package as of time of writing. For some reason, the latest commit on that branch removes MPI. Using the previous commit (and installing |
Hi! First, really awesome work. I absolutely love this.
Second, when running the demo demo_som.py with a Seem inference, I noticed 2 errors. First, MPI is not defined in seem/utils/distributed.py. The from mpi4py import MPI statement is missing. Second, I get this error when running the seem model in the demo 'AttributeError: 'GeneralizedSEEM' object has no attribute 'evaluate_demo'. I installed the package by pip install git+https://github.com/UX-Decoder/Segment-Everything-Everywhere-All-At-Once.git@package
Please advise on how to fix. Thank you for all the awesome research.
The text was updated successfully, but these errors were encountered: