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

Sdf preprocessing #80

Merged
merged 8 commits into from
Dec 13, 2024
Merged

Sdf preprocessing #80

merged 8 commits into from
Dec 13, 2024

Conversation

ritvikvasan
Copy link
Collaborator

This PR cleans up SDF generation scripts.

To generate scaled segs, meshes, and SDFs for the NPM1 dataset, run

python image_sdfs.py --save_path "./test_img/" --manifest ""../../../../../morphology_appropriate_representation_learning/preprocessed_data/npm1/manifest.csv" --vox_resolution 32 --debug True --global_path "../../../../../"

To get the max bounding box of the scaled segs, run

python get_max_bounding_box.py --save_path './test_img/' --manifest ""../../../../../morphology_appropriate_representation_learning/preprocessed_data/npm1/manifest.csv" --global_path "../../../../../"

To generate SDF point clouds, run

python pc_sdfs.py --save_path "./test_pcs/" --scaled_mesh_path "./test_img/outputs_mesh/" --vox_resolution 32

Copy link
Collaborator

@fatwir fatwir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All the three commands worked - the one for computing the bounds is taking quite some time to process and this should be fine I believe!

@ritvikvasan ritvikvasan merged commit e43de1d into main Dec 13, 2024
1 check passed
@ritvikvasan ritvikvasan deleted the SDF_preprocessing branch December 13, 2024 19:57
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

Successfully merging this pull request may close these issues.

2 participants