-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
add a way to orient based on main direction of the surface #3364
base: main
Are you sure you want to change the base?
add a way to orient based on main direction of the surface #3364
Conversation
@hoanhle Could you share a sample visualization of this new orientation method? |
5dd54b1
to
50863bf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel major refactor of current nerfstudio parser are needed to achieve a clean separation between orientation logics from data parsing.
(1) Currently orientation and centering logics is simply go through helper function: camera_utils.auto_orient_and_center_poses
. This is important, because the same helper function is used in multiple parsers (e.g. colmap parser, etc). The current PR only applies to one specific parser and it makes maintaining these logics much more difficult.
(2) Because the new align
method depends on the point cloud loaded from PLY, we need to first load point cloud (if they exist) and then compute orientation transforms. This require some refactor of existing codes.
As such, I feel the current PR is not ready to merge until (1) and (2) are addressed.
"vertical", | ||
"align", | ||
"none", | ||
] = "vertical" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should you keep the default method be "up"?
@@ -258,6 +270,7 @@ def _generate_dataparser_outputs(self, split="train"): | |||
|
|||
# in x,y,z order | |||
# assumes that the scene is centered at the origin | |||
# _ = self.config.scene_scale |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
delete this comment?
@jb-ye This makes sense to me. I will proceed with the refactoring unless you know of a simpler way to achieve the same result. |
@hoanhle That would be great, I'd love to help review your change once they are ready. |
essentially implement #1887
toy problem visualization
orientation_method == "up"
Screencast from 08-26-2024 01:31:40 PM.webmorientation_method == "align"
Screencast from 08-26-2024 12:53:25 PM.webm