meyerls / FruitNeRF

[IROS24] Offical Code for "FruitNeRF: A Unified Neural Radiance Field based Fruit Counting Framework" - Inegrated into Nerfstudio
https://meyerls.github.io/fruit_nerf
GNU General Public License v3.0
278 stars 36 forks source link

Why not directly use instance segmentation on the 2D image? #22

Closed Lizhinwafu closed 2 weeks ago

Lizhinwafu commented 1 month ago

Why not directly use instance segmentation on the 2D image?

meyerls commented 1 month ago

This does only work if the instance segmentations are view consistent. It is not the case for real-world data as Grounded-SAM predicts view-inconsistent instance masks for every image. We are currently working on FruitNeRF++ to tackle this problem.

meyerls commented 1 month ago

With Nerfstudio do you mean the implementation of FruitNeRF with Nerfstudio or yout own implementation?

With Nerfstudio you can directly export a point cloud from your implicit representation. This can be done by casting rays from arbitrary views (so basically from all known images) and extract the point where the ray terminates or as in our case we volumetrically sample the entire space (inside a unit cube) to obtain the point cloud. Therefore you can use the ns-export function.

Does it answer your question?

Lizhinwafu commented 1 month ago

This does only work if the instance segmentations are view consistent. It is not the case for real-world data as Grounded-SAM predicts view-inconsistent instance masks for every image. We are currently working on FruitNeRF++ to tackle this problem.

If I have obtained consistent masks across different views, what code changes are needed?