microsoft / SoM

Set-of-Mark Prompting for GPT-4V and LMMs
MIT License
1.2k stars 96 forks source link

How can we use SoM for video segmentation #6

Closed QinghongLin closed 1 year ago

QinghongLin commented 1 year ago

Hi, thanks for the awesome works! wondering have you provided any codes or instructions about how to use SoM for video segmentation or tracking?

jwyang commented 1 year ago

thanks for your interest! We are going to release all evaluation scripts for the tasks in our paper very soon!

QinghongLin commented 1 year ago

Thanks for response, btw, I meet such error regarding MPI, have you meet it in previously :D

*** on a NULL communicator
*** MPI_ERRORS_ARE_FATAL (processes in this communicator will now abort,
***    and potentially your MPI job)
[cr1-p4de24xlarge-2:367084] Local abort before MPI_INIT completed completed successfully, but am not able to aggregate error messages, and not able to guarantee that all other processes were killed
jwyang commented 1 year ago

I think you can skip this MPI installation, we intended to remove the dependencies on MPI but please let me know if it does not work without MPI.

QinghongLin commented 1 year ago

It happen when I run demo_som.py, I think it caused by seem. If want to skip this, can you point out which rows I should comment.

jwyang commented 1 year ago

got it, let me try to figure it out.

jwyang commented 1 year ago

Hi, @QinghongLin, had just remove the dependencies on MPI for SEEM, can you install seem again and see whether it works?

QinghongLin commented 1 year ago

Hi @jwyang , Thanks for the update! I removed the: opt_seem = init_distributed_seem(opt_seem) in line 49 of demo_som.py and replace the state_dict = torch.load(load_dir, map_location=self.opt['device']) as state_dict = torch.load(load_dir, map_location='cpu')

it can work. Thanks a lot!

jwyang commented 1 year ago

awesome!

abrichr commented 9 months ago

See https://github.com/microsoft/SoM/issues/12#issuecomment-1930432657 for an explanation and fix for the MPI issue.