cuteyyt/or-nerf

How to use box prompt when using SAM

Starryskyswt opened this issue · 1 comments

Now I want to use the box prompt to select unwanted objects from the frame of the image to get a mask, and then give it to LAMA to inpaint. I read https://github.com/facebookresearch/segment-anything but I don't seem to find a way to use Box, I would like to implement it in a new dataset now, is it to give the range of box for each image in the json file, as follows
1699447092205
The process I'm envisioning now is to use colmap to process the dataset first, (if we don't have a spase folder), and then run the gen_mask_sam_box, the rest of the steps are the same as the first two prompts, but I don't understand how to use box prompts right now, could you give me guidance?

If you do not mind, you may contact me on WeChat: cute_yyt