Implementation of Grabcut: Interactive foreground extraction using iterated graph cuts, ACM SIGGRAPH 2004.
GMM.pyImplementation of Gaussian mixture model.grabcut.pyCode Implementation of GrabCut, please note that, we use mask replace multiple interactions.
python grabcut.py
You have to change the path of input i.e. original images and DINO attentions and save files, respectively.
This is GrabCut algorithm used in LocLoc, code is mainly built upon MoetaYuko's work. We appreciate his unreserved sharing.