zero123 icon indicating copy to clipboard operation
zero123 copied to clipboard

Please provide steps for custom dataset, also how to generate the transform.json file

Open jsinghh09 opened this issue 1 year ago • 3 comments

jsinghh09 avatar Mar 22 '23 17:03 jsinghh09

same waiting this

zz7379 avatar Mar 26 '23 11:03 zz7379

Hey @ruoshiliu , Is the transform.json just the blender rotation matrix or is it some camera pose?

lirus7 avatar Apr 22 '23 13:04 lirus7

Based on my understanding of the format of this json file, the transform_matrix should be the camera extrinsic matrix in the world coordinate system, representing the transformation from the world coordinate system to the camera local coordinate system, rather than the rotation matrix in Blender. Specifically:

  1. The matrix is 4x4, which conforms to the size of the camera extrinsic matrix.

  2. The first 3 row vectors represent the directions of the three axes in the camera local coordinate system under the world coordinate system.

  3. The 4th row represents the position of the origin of the camera local coordinate system under the world coordinate system.

  4. Different transform_matrices reflect different camera perspectives.

These are all typical structures and semantics of the camera extrinsic matrix representing camera pose.

  1. While in Blender, the rotation matrix is usually 3x3, representing only three-dimensional rotation transformations.

So I think it can be determined that the transform_matrix in this json represents the camera extrinsic matrix in the NeRF data format, rather than the rotation matrix in Blender.

If it is as I guess, what puzzles me is that the link "file_path": "./train/r_0" is the same for different camera angles given so far, so how to ensure the 3D reconstruction effect? If they're all the same, what does the change in the value of the transform_matrix in different json files determine? Is it just the size of the object? Or is it something else? It is also very likely that there is something wrong with my understanding. I look forward to getting correction and reply

LiPeterzette avatar Jul 26 '23 06:07 LiPeterzette