Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testing without evaluation - Inference on own data #4

Open
borgarpa opened this issue Jul 10, 2024 · 6 comments
Open

Testing without evaluation - Inference on own data #4

borgarpa opened this issue Jul 10, 2024 · 6 comments

Comments

@borgarpa
Copy link

borgarpa commented Jul 10, 2024

Hi,

I was wondering if there is a way to run inference on my own data to get a merged prediction as described in the paper, but without having to run evaluation. We are planning to use the model to select trees to cut for thinning operations over large areas, so I need the code to run as fast as possible.

I guess it would also be enough to know which parts of the code I need to modify.

Cheers!

@borgarpa borgarpa changed the title Testing without evaluation - Inference on own Testing without evaluation - Inference on own data Jul 10, 2024
@bxiang233
Copy link
Collaborator

Hi,

I was wondering if there is a way to run inference on my own data to get a merged prediction as described in the paper, but without having to run evaluation. We are planning to use the model to select trees to cut for thinning operations over large areas, so I need the code to run as fast as possible.

I guess it would also be enough to know which parts of the code I need to modify.

Cheers!

Hi, you could have a look at this function, hope it helps!
https://github.com/bxiang233/ForAINet/blob/7481014855a41559c231ecdd97674b951ccc755d/PointCloudSegmentation/torch_points3d/metrics/panoptic_tracker_pointgroup_treeins_partseg.py#L509

@reesecritchlow
Copy link

Hi, following up on this, is there any simple way to run an inference on a simple, unlabelled ply file?

@bxiang233
Copy link
Collaborator

Hi, following up on this, is there any simple way to run an inference on a simple, unlabelled ply file?

Hi, please set all the values of semantic_labels and instance_labels to 0.
https://github.com/bxiang233/ForAINet/blob/main/PointCloudSegmentation/torch_points3d/datasets/segmentation/treeins_set1.py#L73
https://github.com/bxiang233/ForAINet/blob/7481014855a41559c231ecdd97674b951ccc755d/PointCloudSegmentation/torch_points3d/datasets/segmentation/treeins_set1.py#L76

@reesecritchlow
Copy link

Thanks for the reply. Another question, for the block_merging method, what would be the approach for utilizing the method?

@bxiang233
Copy link
Collaborator

Thanks for the reply. Another question, for the block_merging method, what would be the approach for utilizing the method?

Hi, we use the block_merging method during inference, here is the implementation:
https://github.com/bxiang233/ForAINet/blob/7481014855a41559c231ecdd97674b951ccc755d/PointCloudSegmentation/torch_points3d/metrics/panoptic_tracker_pointgroup_treeins_partseg.py#L509

@reesecritchlow
Copy link

Hi, thanks for your response! Would you be able to clarify at all where in the code to actually go about doing the implementation and what parameters to feed to it? I haven't been able to find any code relating to inference, so any clarification would be greatly appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants