cuteyyt / or-nerf

OR-NeRF: Object Removing from 3D Scenes Guided by Multiview Segmentation with Neural Radiance Fields
https://ornerf.github.io
42 stars 3 forks source link

How to use box prompt when using SAM #6

Closed Starryskyswt closed 10 months ago

Starryskyswt commented 10 months ago

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?

cuteyyt commented 10 months ago

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