Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Plugin to integrate Gimp with Meta Segment Anything
#8
(10-08-2023, 06:42 AM)khemadeva Wrote:
(10-07-2023, 05:11 PM)denzjos Wrote: @khemadeva, thank you for your answer. I read the installing readme.md files and looked a few times at the video but I can't install the other files mentioned in the video properly on my windows OS computer.  I could be wrong, but if I look to the installing details, I think this plugin is something only for linux operating systems. Maybe someone with a windows OS find way use this plugin. Thank's

Hello @denzjos
This plugin is supposed to work with all the OS's which GIMP can be installed on. However, I have tested it with Linux only because that's the only OS I have access to currently. But the code is written in a generic way, there are no Linux specific calls. 
I can help you with the installation. You need to first install Meta Segment Anything, which is a tool from meta. 

As mentioned in the video, the Segment Anything github page is: https://github.com/facebookresearch/segment-anything. Check for the Installation section on the page. 

As prerequisites, you just need to install pytorch and torchvision for Windows (https://pytorch.org/get-started/locally/) and then:
pip install git+https://github.com/facebookresearch/segment-anything.git

Download the checkpoint files from https://github.com/facebookresearch/segm...heckpoints

Once you are done with this you can follow instructions from the video to test the Segment Anything installation and plugin installation.
Do let me know if you face any issues or stuck at any step.

(10-07-2023, 11:25 PM)Krikor Wrote: Ninjas

I was just going to share this information on this forum, but I arrived too late. :-)

Anyway, I'll post it anyway.  Rolleyes

===============================================================================


I found it interesting but the installation part was too complicated for me.
Still, I share it here for those who might find this plugin for selection/cutting using Gimp interesting.

https://youtu.be/xyuSe0SaMHk?si=hK5_Z0CRatgG5EQI - Free Plugin: GIMP Integration With Meta Segment Anything

Thanks @Krikor

Please check my response denzjos. The installation is not as complicated as it seems. You might want to give it a try. I can help you if you are stuck at any step.

There are no "shebang" in your python files, how does the OS know how to run the files? Especially since one is for V2 and the other for v3?

In addition be wary of print instructions. When the process runs on Windows, there is nothing to read stdout, so this output accumulates in a buffer and when it reach some threshold (4K?), the print instruction waits for some space in the buffer, which never happens, so your code hangs.
Reply


Messages In This Thread
RE: Plugin to integrate Gimp with Meta Segment Anything - by Ofnuts - 10-08-2023, 09:42 AM

Forum Jump: