diff --git a/.gitattributes b/.gitattributes index 0f64de57c86153f7832ac0c340f00c3505573901..862923a01632a17d0403ef194d639d4ce8cab121 100644 --- a/.gitattributes +++ b/.gitattributes @@ -172,3 +172,23 @@ codes/reconstruction/Reconstruction/c4floor2/4.csv filter=lfs diff=lfs merge=lfs codes/reconstruction/Reconstruction/c4floor2/3.csv filter=lfs diff=lfs merge=lfs -text codes/reconstruction/Reconstruction/c4floor2/RawDataHistogramMap_frame_0_1772202653675337.txt filter=lfs diff=lfs merge=lfs -text codes/reconstruction/Reconstruction/c4floor2/RawDataHistogramMap_frame_0_1772202631663117.txt filter=lfs diff=lfs merge=lfs -text +codes/reconstruction/Reconstruction/c4floor2/RawDataHistogramMap_frame_0_1772202328518476.txt filter=lfs diff=lfs merge=lfs -text +codes/reconstruction/Reconstruction/c4floor2/RawDataHistogramMap_frame_0_1772202673470921.txt filter=lfs diff=lfs merge=lfs -text +codes/reconstruction/Reconstruction/c4floor2/16.csv filter=lfs diff=lfs merge=lfs -text +codes/reconstruction/Reconstruction/c4floor2/RawDataHistogramMap_frame_0_1772202702449698.txt filter=lfs diff=lfs merge=lfs -text +codes/reconstruction/Reconstruction/c4floor2/2.csv filter=lfs diff=lfs merge=lfs -text +codes/reconstruction/Reconstruction/c4floor2/23.csv filter=lfs diff=lfs merge=lfs -text +codes/reconstruction/Reconstruction/c4floor2/12.csv filter=lfs diff=lfs merge=lfs -text +codes/reconstruction/Reconstruction/c4floor2/RawDataHistogramMap_frame_0_1772202593329100.txt filter=lfs diff=lfs merge=lfs -text +codes/reconstruction/Reconstruction/c4floor2/19.csv filter=lfs diff=lfs merge=lfs -text +codes/reconstruction/Reconstruction/c4floor2/7.csv filter=lfs diff=lfs merge=lfs -text +codes/reconstruction/Reconstruction/c4floor2/17.csv filter=lfs diff=lfs merge=lfs -text +codes/reconstruction/Reconstruction/c4floor2/8.csv filter=lfs diff=lfs merge=lfs -text +codes/reconstruction/Reconstruction/c4floor2/11.csv filter=lfs diff=lfs merge=lfs -text +codes/reconstruction/Reconstruction/c4floor2/RawDataHistogramMap_frame_0_1772202738945758.txt filter=lfs diff=lfs merge=lfs -text +codes/reconstruction/Reconstruction/c4floor2/RawDataHistogramMap_frame_0_1772202350521039.txt filter=lfs diff=lfs merge=lfs -text +codes/reconstruction/Reconstruction/design_floor1/1.csv filter=lfs diff=lfs merge=lfs -text +codes/reconstruction/Reconstruction/c4floor2/RawDataHistogramMap_frame_0_1772202718958758.txt filter=lfs diff=lfs merge=lfs -text +codes/reconstruction/Reconstruction/c4floor2/RawDataHistogramMap_frame_0_1772202613505162.txt filter=lfs diff=lfs merge=lfs -text +codes/reconstruction/Reconstruction/c4floor2/RawDataHistogramMap_frame_0_1772202532994709.txt filter=lfs diff=lfs merge=lfs -text +codes/reconstruction/Reconstruction/design_floor1/22.csv filter=lfs diff=lfs merge=lfs -text diff --git a/codes/reconstruction/Reconstruction/c4floor2/11.csv b/codes/reconstruction/Reconstruction/c4floor2/11.csv new file mode 100644 index 0000000000000000000000000000000000000000..91c423a133cfd74707d31d14d3fe03d856103c65 --- /dev/null +++ b/codes/reconstruction/Reconstruction/c4floor2/11.csv @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:baba90849c3a86d852c723dd42223d96b468022cf2404ab5ff5509c1eb3c8f7e +size 34273781 diff --git a/codes/reconstruction/Reconstruction/c4floor2/12.csv b/codes/reconstruction/Reconstruction/c4floor2/12.csv new file mode 100644 index 0000000000000000000000000000000000000000..ee97e87874501759502b3b72bbc77c850a3be830 --- /dev/null +++ b/codes/reconstruction/Reconstruction/c4floor2/12.csv @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c3e7d3a641759e3a3a44081e0b867617418cee35dabeaae972721a5206545df9 +size 34274526 diff --git a/codes/reconstruction/Reconstruction/c4floor2/16.csv b/codes/reconstruction/Reconstruction/c4floor2/16.csv new file mode 100644 index 0000000000000000000000000000000000000000..3336a985fbd8e34074d55ec4bcc1c60f827cd43d --- /dev/null +++ b/codes/reconstruction/Reconstruction/c4floor2/16.csv @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:35e40417dfb3e50b2ae699d3c0872e8c3f4e762b90d5d659e286c9ec4cad62f8 +size 34264386 diff --git a/codes/reconstruction/Reconstruction/c4floor2/17.csv b/codes/reconstruction/Reconstruction/c4floor2/17.csv new file mode 100644 index 0000000000000000000000000000000000000000..80bd4c906d280784e76d6048eca473f8662cec90 --- /dev/null +++ b/codes/reconstruction/Reconstruction/c4floor2/17.csv @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3abd7ae27621d5b6273fe704b5b14583abd5d44fc5093857c02a93a015b0b3a5 +size 34226730 diff --git a/codes/reconstruction/Reconstruction/c4floor2/19.csv b/codes/reconstruction/Reconstruction/c4floor2/19.csv new file mode 100644 index 0000000000000000000000000000000000000000..04281e9759462df921a66d3fe8886a6d7661de63 --- /dev/null +++ b/codes/reconstruction/Reconstruction/c4floor2/19.csv @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a344605c50bd8906a23ae444d88816ab1520c602069c3c52c509239ec428b241 +size 34153032 diff --git a/codes/reconstruction/Reconstruction/c4floor2/2.csv b/codes/reconstruction/Reconstruction/c4floor2/2.csv new file mode 100644 index 0000000000000000000000000000000000000000..bccab68e0260ddf8002739d50ef7f0eaa96b8b8f --- /dev/null +++ b/codes/reconstruction/Reconstruction/c4floor2/2.csv @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ff48cda5fe991356de44aa45126b1f9bfad25fb38b96dc8f0b53a342fea59885 +size 33746492 diff --git a/codes/reconstruction/Reconstruction/c4floor2/23.csv b/codes/reconstruction/Reconstruction/c4floor2/23.csv new file mode 100644 index 0000000000000000000000000000000000000000..8fe7b431b76a560062b98e094388b380ba0d5d92 --- /dev/null +++ b/codes/reconstruction/Reconstruction/c4floor2/23.csv @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:58d0bfee53409b7f2647f2ff32d6f1dc8099094bae2c9578171cf05bea4778ff +size 33935595 diff --git a/codes/reconstruction/Reconstruction/c4floor2/7.csv b/codes/reconstruction/Reconstruction/c4floor2/7.csv new file mode 100644 index 0000000000000000000000000000000000000000..01f3640040a54e275985307e2e377be8d7fdf433 --- /dev/null +++ b/codes/reconstruction/Reconstruction/c4floor2/7.csv @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d2ef30deb7236f40c012dc31d37221045f3ddda85aef912e61600431f3bc05e7 +size 34273076 diff --git a/codes/reconstruction/Reconstruction/c4floor2/8.csv b/codes/reconstruction/Reconstruction/c4floor2/8.csv new file mode 100644 index 0000000000000000000000000000000000000000..d48e41f164870f85cc3fe08238c0fc5cfef44572 --- /dev/null +++ b/codes/reconstruction/Reconstruction/c4floor2/8.csv @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b1db238246c358aa48bca9ae47def04c8b0b6d93dccd6ceaeb7b477d26de816b +size 34345645 diff --git a/codes/reconstruction/Reconstruction/c4floor2/RawDataHistogramMap_frame_0_1772202328518476.txt b/codes/reconstruction/Reconstruction/c4floor2/RawDataHistogramMap_frame_0_1772202328518476.txt new file mode 100644 index 0000000000000000000000000000000000000000..61bbb327327c85d1b51593d3295587abe006db54 --- /dev/null +++ b/codes/reconstruction/Reconstruction/c4floor2/RawDataHistogramMap_frame_0_1772202328518476.txt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:088dda970f370821605c0ea16e739d83df77075ebde3b40f7df93c6b28c62009 +size 67256559 diff --git a/codes/reconstruction/Reconstruction/c4floor2/RawDataHistogramMap_frame_0_1772202350521039.txt b/codes/reconstruction/Reconstruction/c4floor2/RawDataHistogramMap_frame_0_1772202350521039.txt new file mode 100644 index 0000000000000000000000000000000000000000..cb00ac6c672d54f8f48d6dc91ea8ec3450c33871 --- /dev/null +++ b/codes/reconstruction/Reconstruction/c4floor2/RawDataHistogramMap_frame_0_1772202350521039.txt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1516ae457c832ffede2d172ce32c360f6c26338e0911f6ccfd79f3ad7a4c4b30 +size 67253806 diff --git a/codes/reconstruction/Reconstruction/c4floor2/RawDataHistogramMap_frame_0_1772202532994709.txt b/codes/reconstruction/Reconstruction/c4floor2/RawDataHistogramMap_frame_0_1772202532994709.txt new file mode 100644 index 0000000000000000000000000000000000000000..803d10f27156615ff044ea4e2be4ff1fde320a9d --- /dev/null +++ b/codes/reconstruction/Reconstruction/c4floor2/RawDataHistogramMap_frame_0_1772202532994709.txt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6e9fb534f9319788f19af2bb5bce8e3e49d9fdcfc1211202aa98327e5a3994d4 +size 67264038 diff --git a/codes/reconstruction/Reconstruction/c4floor2/RawDataHistogramMap_frame_0_1772202593329100.txt b/codes/reconstruction/Reconstruction/c4floor2/RawDataHistogramMap_frame_0_1772202593329100.txt new file mode 100644 index 0000000000000000000000000000000000000000..92a16875f5a93f4ce49064314cb470ccff8f18c4 --- /dev/null +++ b/codes/reconstruction/Reconstruction/c4floor2/RawDataHistogramMap_frame_0_1772202593329100.txt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:be062494991b5c0eaefd4cfc6f0b090017a9ee5ff127b2daaa19e4e765b9211f +size 67232263 diff --git a/codes/reconstruction/Reconstruction/c4floor2/RawDataHistogramMap_frame_0_1772202613505162.txt b/codes/reconstruction/Reconstruction/c4floor2/RawDataHistogramMap_frame_0_1772202613505162.txt new file mode 100644 index 0000000000000000000000000000000000000000..2e2b9d1a312ae1304de52d69e707d047781ffdd9 --- /dev/null +++ b/codes/reconstruction/Reconstruction/c4floor2/RawDataHistogramMap_frame_0_1772202613505162.txt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:54f505bd1babe35a16e5658e145c23f801a7cd1db1188c34bb55c8a5b33529cb +size 67231952 diff --git a/codes/reconstruction/Reconstruction/c4floor2/RawDataHistogramMap_frame_0_1772202673470921.txt b/codes/reconstruction/Reconstruction/c4floor2/RawDataHistogramMap_frame_0_1772202673470921.txt new file mode 100644 index 0000000000000000000000000000000000000000..1bfc7122eb038d043536f21f9ed4272d968dc560 --- /dev/null +++ b/codes/reconstruction/Reconstruction/c4floor2/RawDataHistogramMap_frame_0_1772202673470921.txt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:07a0215c86ea4cce56760e550c5fdc22c6f2e3ecddf80d1f63b21578de438c50 +size 67210509 diff --git a/codes/reconstruction/Reconstruction/c4floor2/RawDataHistogramMap_frame_0_1772202702449698.txt b/codes/reconstruction/Reconstruction/c4floor2/RawDataHistogramMap_frame_0_1772202702449698.txt new file mode 100644 index 0000000000000000000000000000000000000000..9ffb2915091bcd8edb01e59023c533d03f8371c1 --- /dev/null +++ b/codes/reconstruction/Reconstruction/c4floor2/RawDataHistogramMap_frame_0_1772202702449698.txt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ed9b029c0606043fa081668e5b44c88a4c2ba1b4180a138495eaaae0083889d2 +size 67217248 diff --git a/codes/reconstruction/Reconstruction/c4floor2/RawDataHistogramMap_frame_0_1772202718958758.txt b/codes/reconstruction/Reconstruction/c4floor2/RawDataHistogramMap_frame_0_1772202718958758.txt new file mode 100644 index 0000000000000000000000000000000000000000..8041b4c14b7b99ec8a8fc81ac7cf6640f2409e70 --- /dev/null +++ b/codes/reconstruction/Reconstruction/c4floor2/RawDataHistogramMap_frame_0_1772202718958758.txt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e9662b2070370fd1a031572187e1e72defb7ea05379359ce794515ce0dbeffc2 +size 67211706 diff --git a/codes/reconstruction/Reconstruction/c4floor2/RawDataHistogramMap_frame_0_1772202738945758.txt b/codes/reconstruction/Reconstruction/c4floor2/RawDataHistogramMap_frame_0_1772202738945758.txt new file mode 100644 index 0000000000000000000000000000000000000000..3cd6d3cf8e3230f8a4c58581f098e563039a845b --- /dev/null +++ b/codes/reconstruction/Reconstruction/c4floor2/RawDataHistogramMap_frame_0_1772202738945758.txt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:04829033666925eb4df6ddf4c3499d56de7314306c19e6be0a81defd2276af2e +size 67217549 diff --git a/codes/reconstruction/Reconstruction/design_floor1/1.csv b/codes/reconstruction/Reconstruction/design_floor1/1.csv new file mode 100644 index 0000000000000000000000000000000000000000..39ab1b572e708c4942a7b6789e73311e613fe54f --- /dev/null +++ b/codes/reconstruction/Reconstruction/design_floor1/1.csv @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4673e832469fb533ea69b8b78cf6710d829f0ce119f4fcbbbded34611afe4bff +size 33458736 diff --git a/codes/reconstruction/Reconstruction/design_floor1/22.csv b/codes/reconstruction/Reconstruction/design_floor1/22.csv new file mode 100644 index 0000000000000000000000000000000000000000..45cbde134c71caa661b9d3ac80521864e508813a --- /dev/null +++ b/codes/reconstruction/Reconstruction/design_floor1/22.csv @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:752488f18fdf22b737022d07f2e2a00b0be9b6c6d069cb7753819fa0b1af626f +size 34463123 diff --git a/codes/reconstruction/experiments/calibration/IRF_global_nonnegative.csv b/codes/reconstruction/experiments/calibration/IRF_global_nonnegative.csv new file mode 100644 index 0000000000000000000000000000000000000000..d9435079151990dcdfe353347e03884e54c58339 --- /dev/null +++ b/codes/reconstruction/experiments/calibration/IRF_global_nonnegative.csv @@ -0,0 +1,502 @@ +t_ps,irf,irf_std +-1.875000000000000000e+05,1.819323145871034e-07,4.214091311919881012e-07 +-1.867500000000000000e+05,0.0,4.235333670144294901e-07 +-1.860000000000000000e+05,1.8346061522883994e-07,4.256733987032263046e-07 +-1.852500000000000000e+05,0.0,4.278294408733125881e-07 +-1.845000000000000000e+05,1.8500808742631585e-07,4.300017120311662354e-07 +-1.837500000000000000e+05,0.0,4.321904347467294168e-07 +-1.830000000000000000e+05,1.8657513944350726e-07,4.343958356823572531e-07 +-1.822500000000000000e+05,0.0,4.366181456724565939e-07 +-1.815000000000000000e+05,1.8816219143815658e-07,4.388575999005052100e-07 +-1.807500000000000000e+05,0.0,4.411144379508588699e-07 +-1.800000000000000000e+05,1.897696755677602e-07,4.433889039237238856e-07 +-1.792500000000000000e+05,0.0,4.456812465165836608e-07 +-1.785000000000000000e+05,1.9139803633112755e-07,4.479917191808730519e-07 +-1.777500000000000000e+05,0.0,4.503205802001291739e-07 +-1.770000000000000000e+05,1.9304773145870193e-07,4.526680928256253047e-07 +-1.762500000000000000e+05,0.0,4.550345253902725170e-07 +-1.755000000000000000e+05,1.9471923205865325e-07,4.574201514259518994e-07 +-1.747500000000000000e+05,0.0,4.598252498114476437e-07 +-1.740000000000000000e+05,1.9641302318782972e-07,4.622501048885871198e-07 +-1.732500000000000000e+05,0.0,4.646950065883567763e-07 +-1.725000000000000000e+05,1.9812960436606774e-07,4.671602505844300913e-07 +-1.717500000000000000e+05,0.0,4.696461384384753334e-07 +-1.710000000000000000e+05,1.9986949028911302e-07,4.721529777625374952e-07 +-1.702500000000000000e+05,0.0,4.746810823034804372e-07 +-1.695000000000000000e+05,2.0163321117865896e-07,4.772307721900880507e-07 +-1.687500000000000000e+05,0.0,4.798023740536956195e-07 +-1.680000000000000000e+05,2.0342131351796772e-07,4.823962211532658289e-07 +-1.672500000000000000e+05,0.0,4.850126536359286880e-07 +-1.665000000000000000e+05,2.0523436064133502e-07,4.876520186391697026e-07 +-1.657500000000000000e+05,0.0,4.903146704827894578e-07 +-1.650000000000000000e+05,2.0707293359616557e-07,4.930009709225801390e-07 +-1.642500000000000000e+05,0.0,4.957112892586791509e-07 +-1.635000000000000000e+05,2.0893763136944618e-07,4.984460025831597073e-07 +-1.627500000000000000e+05,0.0,5.012054959798833841e-07 +-1.620000000000000000e+05,2.1082907215277739e-07,5.039901627032710815e-07 +-1.612500000000000000e+05,0.0,5.068004044805944720e-07 +-1.605000000000000000e+05,2.12747893766169e-07,5.096366316486711297e-07 +-1.597500000000000000e+05,0.0,5.124992634213293716e-07 +-1.590000000000000000e+05,2.1469475461932565e-07,5.153887281734521805e-07 +-1.582500000000000000e+05,0.0,5.183054636130173250e-07 +-1.575000000000000000e+05,2.166703344205304e-07,5.212499171001171790e-07 +-1.567500000000000000e+05,0.0,5.242225458733002188e-07 +-1.560000000000000000e+05,2.1867533531022813e-07,5.272238173492092456e-07 +-1.552500000000000000e+05,0.0,5.302542094189757898e-07 +-1.545000000000000000e+05,2.207104824791838e-07,5.333142107089929683e-07 +-1.537500000000000000e+05,0.0,5.364043208692602163e-07 +-1.530000000000000000e+05,2.2277652540840573e-07,5.395250509878748377e-07 +-1.522500000000000000e+05,0.0,5.426769237810869272e-07 +-1.515000000000000000e+05,2.248742387797955e-07,5.458604739685904478e-07 +-1.507500000000000000e+05,0.0,5.490762487173995168e-07 +-1.500000000000000000e+05,2.2700442358480696e-07,5.523248079320495174e-07 +-1.492500000000000000e+05,0.0,5.556067245328011523e-07 +-1.485000000000000000e+05,2.2916790826571227e-07,5.589225849722458387e-07 +-1.477500000000000000e+05,0.0,5.622729896116927390e-07 +-1.470000000000000000e+05,2.3136554997313012e-07,5.656585530961704693e-07 +-1.462500000000000000e+05,0.0,5.690799047899999229e-07 +-1.455000000000000000e+05,2.3359823570421295e-07,5.725376892036409594e-07 +-1.447500000000000000e+05,0.0,5.760325665018159291e-07 +-1.440000000000000000e+05,2.3586688393042808e-07,5.795652129194353549e-07 +-1.432500000000000000e+05,0.0,5.831363213072272287e-07 +-1.425000000000000000e+05,2.3817244557937686e-07,5.867466015940327704e-07 +-1.417500000000000000e+05,0.0,5.903967813222645529e-07 +-1.410000000000000000e+05,2.4051590595672594e-07,5.940876062227003069e-07 +-1.402500000000000000e+05,0.0,5.978198407659262513e-07 +-1.395000000000000000e+05,2.4289828613219957e-07,6.015942687330595287e-07 +-1.387500000000000000e+05,0.0,6.054116938566760135e-07 +-1.380000000000000000e+05,2.453206445282695e-07,6.092729404078373906e-07 +-1.372500000000000000e+05,0.0,6.131788539314888659e-07 +-1.365000000000000000e+05,2.477840788462147e-07,6.171303018522960935e-07 +-1.357500000000000000e+05,0.0,6.211281742045369608e-07 +-1.350000000000000000e+05,2.5028972796469124e-07,6.251733844085607032e-07 +-1.342500000000000000e+05,0.0,6.292668699547054930e-07 +-1.335000000000000000e+05,2.5283877369685647e-07,6.334095932773469738e-07 +-1.327500000000000000e+05,0.0,6.376025425616161445e-07 +-1.320000000000000000e+05,2.5543244309013206e-07,6.418467325348520168e-07 +-1.312500000000000000e+05,0.0,6.461432054501991432e-07 +-1.305000000000000000e+05,2.5807201067753167e-07,6.504930319653187493e-07 +-1.297500000000000000e+05,0.0,6.548973121153349290e-07 +-1.290000000000000000e+05,2.6075880068734183e-07,6.593571763010312437e-07 +-1.282500000000000000e+05,0.0,6.638737863590198884e-07 +-1.275000000000000000e+05,2.634941896168895e-07,6.684483366669654216e-07 +-1.267500000000000000e+05,0.0,6.730820551719655612e-07 +-1.260000000000000000e+05,2.662796090284094e-07,6.777762047233273514e-07 +-1.252500000000000000e+05,0.0,6.825320841930425678e-07 +-1.245000000000000000e+05,2.6911654826163756e-07,6.873510297403788974e-07 +-1.237500000000000000e+05,0.0,6.922344162578747638e-07 +-1.230000000000000000e+05,2.7200655738640364e-07,6.971836586480419137e-07 +-1.222500000000000000e+05,0.0,7.022002133001670423e-07 +-1.215000000000000000e+05,2.7495125077645694e-07,7.072855796783666442e-07 +-1.207500000000000000e+05,0.0,7.124413017609780528e-07 +-1.200000000000000000e+05,2.7795231002908614e-07,7.176689698242487262e-07 +-1.192500000000000000e+05,0.0,7.229702221035281579e-07 +-1.185000000000000000e+05,2.8101148813628723e-07,7.283467464565705932e-07 +-1.177500000000000000e+05,0.0,7.338002825613886984e-07 +-1.170000000000000000e+05,2.8413061312344657e-07,7.393326235294495135e-07 +-1.162500000000000000e+05,0.0,7.449456181140191543e-07 +-1.155000000000000000e+05,2.8731159227842047e-07,7.506411729114106474e-07 +-1.147500000000000000e+05,0.0,7.564212544181693556e-07 +-1.140000000000000000e+05,2.9055641676123274e-07,7.622878914990189835e-07 +-1.132500000000000000e+05,0.0,7.682431778461508014e-07 +-1.125000000000000000e+05,2.938671662851625e-07,7.742892744371874733e-07 +-1.117500000000000000e+05,0.0,7.804284122972117026e-07 +-1.110000000000000000e+05,2.972460143789229e-07,7.866628952828277927e-07 +-1.102500000000000000e+05,0.0,7.929951030237729237e-07 +-1.095000000000000000e+05,3.006952338817965e-07,7.994274939856972342e-07 +-1.087500000000000000e+05,0.0,8.059626087500858801e-07 +-1.080000000000000000e+05,3.0421720285919843e-07,8.126030733567917583e-07 +-1.072500000000000000e+05,0.0,8.193516028386289271e-07 +-1.065000000000000000e+05,3.0781441116454066e-07,8.262110050378851672e-07 +-1.057500000000000000e+05,0.0,8.331841844280713243e-07 +-1.050000000000000000e+05,3.114894672173955e-07,8.402741462597292572e-07 +-1.042500000000000000e+05,0.0,8.474840008776718433e-07 +-1.035000000000000000e+05,3.152451055253084e-07,8.548169682617392029e-07 +-1.027500000000000000e+05,0.0,8.622763827797197360e-07 +-1.020000000000000000e+05,3.1908419475011813e-07,8.698656982073526116e-07 +-1.012500000000000000e+05,0.0,8.775884930060029736e-07 +-1.005000000000000000e+05,3.230097464141074e-07,8.854484758469175436e-07 +-9.975000000000000000e+04,0.0,8.934494914997589181e-07 +-9.900000000000000000e+04,3.270249242883929e-07,9.015955269478461171e-07 +-9.825000000000000000e+04,0.0,9.098907178711175454e-07 +-9.750000000000000000e+04,3.311330549328431e-07,9.183393554850060819e-07 +-9.675000000000000000e+04,0.0,9.269458937585300776e-07 +-9.600000000000000000e+04,3.3533763841450954e-07,9.357149570024522011e-07 +-9.525000000000000000e+04,0.0,9.446513478516252896e-07 +-9.450000000000000000e+04,3.3964236073498094e-07,9.537600558074012546e-07 +-9.375000000000000000e+04,0.0,9.630462660875368766e-07 +-9.300000000000000000e+04,3.4405110714343297e-07,9.725153691474791947e-07 +-9.225000000000000000e+04,0.0,9.821729706454701152e-07 +-9.150000000000000000e+04,3.4856797629124134e-07,9.920249019716602952e-07 +-9.075000000000000000e+04,0.0,1.002077231455659678e-06 +-9.000000000000000000e+04,3.531972965406622e-07,1.012336276223440213e-06 +-8.925000000000000000e+04,0.0,1.022808614676459239e-06 +-8.850000000000000000e+04,3.5794364276717523e-07,1.033501099757409026e-06 +-8.775000000000000000e+04,0.0,1.044420873106977847e-06 +-8.700000000000000000e+04,3.6281185610666274e-07,1.055575379909468645e-06 +-8.625000000000000000e+04,0.0,1.066972384784550182e-06 +-8.550000000000000000e+04,3.6780706443947177e-07,1.078619988591576932e-06 +-8.475000000000000000e+04,0.0,1.090526646267772388e-06 +-8.400000000000000000e+04,3.7293470618261074e-07,1.102701185886809831e-06 +-8.325000000000000000e+04,0.0,1.115152828799861171e-06 +-8.250000000000000000e+04,3.7820055563395184e-07,1.127891211172305794e-06 +-8.175000000000000000e+04,0.0,1.140926406789228268e-06 +-8.100000000000000000e+04,3.83610751904853e-07,1.154268951514709555e-06 +-8.025000000000000000e+04,0.0,1.167929869247693508e-06 +-7.950000000000000000e+04,3.8917183054904983e-07,1.181920699569273142e-06 +-7.875000000000000000e+04,0.0,1.196253527422228948e-06 +-7.800000000000000000e+04,3.948907592613517e-07,1.210941014546353868e-06 +-7.725000000000000000e+04,0.0,1.225996433349851154e-06 +-7.650000000000000000e+04,4.007749777175142e-07,1.241433702916324638e-06 +-7.575000000000000000e+04,0.0,1.257267427580350465e-06 +-7.500000000000000000e+04,4.0683244250375237e-07,1.273512938282731435e-06 +-7.425000000000000000e+04,0.0,1.290186336835064091e-06 +-7.350000000000000000e+04,4.130716773804821e-07,1.307304543352094261e-06 +-7.275000000000000000e+04,0.0,1.324885347184479444e-06 +-7.200000000000000000e+04,4.195018307828451e-07,1.342947461590510071e-06 +-7.125000000000000000e+04,0.0,1.361510582429721480e-06 +-7.050000000000000000e+04,4.261327406234245e-07,1.380595451361678705e-06 +-6.975000000000000000e+04,0.0,1.400223923778503976e-06 +-6.900000000000000000e+04,4.32975008817388e-07,1.420419041958656139e-06 +-6.825000000000000000e+04,0.0,1.441205114001312885e-06 +-6.750000000000000000e+04,4.4004008602280124e-07,1.462607798873460268e-06 +-6.675000000000000000e+04,0.0,1.484654198227394708e-06 +-6.600000000000000000e+04,4.473403698561315e-07,1.507372955670907272e-06 +-6.525000000000000000e+04,0.0,1.530794364171004636e-06 +-6.450000000000000000e+04,4.5488931835437225e-07,1.554950482094992507e-06 +-6.375000000000000000e+04,0.0,1.579875259167166654e-06 +-6.300000000000000000e+04,4.627015817158468e-07,1.605604672993611507e-06 +-6.225000000000000000e+04,0.0,1.632176877193254268e-06 +-6.150000000000000000e+04,4.707931567611778e-07,1.659632362385534706e-06 +-6.075000000000000000e+04,0.0,1.688014131336791618e-06 +-6.000000000000000000e+04,4.791815685994973e-07,1.717367889765238732e-06 +-5.925000000000000000e+04,0.0,1.747742254011921118e-06 +-5.850000000000000000e+04,4.878860852369405e-07,1.779188977812111242e-06 +-5.775000000000000000e+04,0.0,1.811763200242889536e-06 +-5.700000000000000000e+04,4.969279738926046e-07,1.845523716583782947e-06 +-5.625000000000000000e+04,0.0,1.880533274925122221e-06 +-5.550000000000000000e+04,5.063308078775753e-07,1.916858901485622740e-06 +-5.475000000000000000e+04,0.0,1.954572257698563258e-06 +-5.400000000000000000e+04,5.161208373874732e-07,1.993750032492607131e-06 +-5.325000000000000000e+04,0.0,2.034474374151011327e-06 +-5.250000000000000000e+04,5.263274406587236e-07,2.076833366291224622e-06 +-5.175000000000000000e+04,0.0,2.120921552884184376e-06 +-5.100000000000000000e+04,5.36983677270501e-07,2.166840518742968139e-06 +-5.025000000000000000e+04,0.0,2.214699531847980610e-06 +-4.950000000000000000e+04,5.481269719181246e-07,2.264616255328924578e-06 +-4.875000000000000000e+04,0.0,2.316717538051951996e-06 +-4.800000000000000000e+04,5.597999675213368e-07,2.371140293629977783e-06 +-4.725000000000000000e+04,0.0,2.428032479586592402e-06 +-4.650000000000000000e+04,5.720515969490341e-07,2.487554189882780979e-06 +-4.575000000000000000e+04,0.0,2.549878876288138969e-06 +-4.500000000000000000e+04,5.849384458505826e-07,2.615194715958425785e-06 +-4.425000000000000000e+04,0.0,2.683706145992111036e-06 +-4.350000000000000000e+04,5.985264970221509e-07,2.755635588701935205e-06 +-4.275000000000000000e+04,0.0,2.831225395106645259e-06 +-4.200000000000000000e+04,6.128933897638646e-07,2.910740039131015257e-06 +-4.125000000000000000e+04,0.0,2.994468600170571580e-06 +-4.050000000000000000e+04,6.281313741073043e-07,3.082727578632021282e-06 +-3.975000000000000000e+04,0.0,3.175864096358708864e-06 +-3.900000000000000000e+04,6.443512121801691e-07,3.274259544036825531e-06 +-3.825000000000000000e+04,0.0,3.378333748717928967e-06 +-3.750000000000000000e+04,6.616873842668379e-07,3.488549748461328633e-06 +-3.675000000000000000e+04,0.0,3.605419278477253596e-06 +-3.600000000000000000e+04,6.803050999272418e-07,3.729509093587418501e-06 +-3.525000000000000000e+04,0.0,3.861448277717165533e-06 +-3.450000000000000000e+04,7.004098131488469e-07,4.001936723132557352e-06 +-3.375000000000000000e+04,0.0,4.151755001764650026e-06 +-3.300000000000000000e+04,7.222601903937336e-07,4.311775902025070473e-06 +-3.225000000000000000e+04,0.0,4.482977968576925806e-06 +-3.150000000000000000e+04,7.461857115198169e-07,4.666461466735937696e-06 +-3.075000000000000000e+04,0.0,4.863467303636960918e-06 +-3.000000000000000000e+04,7.726099923199344e-07,5.075399588598352888e-06 +-2.925000000000000000e+04,0.0,5.303852724688838723e-06 +-2.850000000000000000e+04,8.020792494805912e-07,5.550644230954116960e-06 +-2.775000000000000000e+04,0.0,5.817854971086903092e-06 +-2.700000000000000000e+04,8.352869477117736e-07,6.107879261620677417e-06 +-2.625000000000000000e+04,0.0,6.423488803278266133e-06 +-2.550000000000000000e+04,8.730467281458154e-07,6.767917410224010864e-06 +-2.475000000000000000e+04,0.0,7.144980635953761157e-06 +-2.400000000000000000e+04,9.159576348303271e-07,7.559263787739828878e-06 +-2.325000000000000000e+04,0.0,8.016474590951471022e-06 +-2.250000000000000000e+04,9.619125334351669e-07,8.524309992597595820e-06 +-2.175000000000000000e+04,0.0,9.095590095297539766e-06 +-2.100000000000000000e+04,9.679344245818805e-07,9.769118188468480055e-06 +-2.025000000000000000e+04,4.2333045455986096e-07,1.217521344715648266e-05 +-1.950000000000000000e+04,2.5686765424697174e-06,9.590286142081847336e-06 +-1.875000000000000000e+04,2.4232230575182673e-06,1.365441017523624791e-05 +-1.800000000000000000e+04,1.0761647111112168e-05,1.008734912248119948e-05 +-1.725000000000000000e+04,4.2690242457903214e-07,1.575979899727190174e-05 +-1.650000000000000000e+04,3.663766494005608e-06,1.560728555692962900e-05 +-1.575000000000000000e+04,7.745186032432399e-06,1.746064788901268149e-05 +-1.500000000000000000e+04,4.797427769580024e-06,1.670461427419060361e-05 +-1.425000000000000000e+04,7.561019747322958e-06,1.673342124646921554e-05 +-1.350000000000000000e+04,1.1064859884138956e-05,2.583793612241848758e-05 +-1.275000000000000000e+04,3.8414698124443964e-06,2.668506228200225467e-05 +-1.200000000000000000e+04,1.3945626236487244e-05,2.960518750781087184e-05 +-1.125000000000000000e+04,5.880472168641656e-06,3.558093602970944543e-05 +-1.050000000000000000e+04,6.518682631768688e-06,3.827420668048210904e-05 +-9.750000000000000000e+03,6.795181327688136e-06,4.678598047897985314e-05 +-9.000000000000000000e+03,1.0718582016090521e-05,5.286770222864300598e-05 +-8.250000000000000000e+03,3.9588461105685496e-06,6.285667035295102823e-05 +-7.500000000000000000e+03,1.0128939221613103e-05,7.898886399772981628e-05 +-6.750000000000000000e+03,0.0,1.044267835165250496e-04 +-6.000000000000000000e+03,2.0268447675830237e-05,1.286925758450507547e-04 +-5.250000000000000000e+03,0.0,1.934764729439597813e-04 +-4.500000000000000000e+03,7.531118833023254e-05,2.377795247749584613e-04 +-3.750000000000000000e+03,0.0,4.973753853916034915e-04 +-3.000000000000000000e+03,0.00033399361348073793,5.920561768123449144e-04 +-2.250000000000000000e+03,0.0,2.039855169014565938e-03 +-1.500000000000000000e+03,0.003785271452626492,6.641094094924387091e-03 +-7.500000000000000000e+02,0.26066701084168475,9.497090454109749502e-03 +0.000000000000000000e+00,0.4808879930150954,1.834193617780075641e-02 +7.500000000000000000e+02,0.23961207591098455,6.390091513564097152e-03 +1.500000000000000000e+03,0.014964143469970529,1.103063328521809716e-02 +2.250000000000000000e+03,0.0,4.454061992235510380e-04 +3.000000000000000000e+03,0.0,0.000000000000000000e+00 +3.750000000000000000e+03,0.0,0.000000000000000000e+00 +4.500000000000000000e+03,0.0,0.000000000000000000e+00 +5.250000000000000000e+03,0.0,0.000000000000000000e+00 +6.000000000000000000e+03,0.0,0.000000000000000000e+00 +6.750000000000000000e+03,0.0,0.000000000000000000e+00 +7.500000000000000000e+03,0.0,0.000000000000000000e+00 +8.250000000000000000e+03,0.0,0.000000000000000000e+00 +9.000000000000000000e+03,0.0,0.000000000000000000e+00 +9.750000000000000000e+03,0.0,0.000000000000000000e+00 +1.050000000000000000e+04,0.0,0.000000000000000000e+00 +1.125000000000000000e+04,0.0,0.000000000000000000e+00 +1.200000000000000000e+04,0.0,0.000000000000000000e+00 +1.275000000000000000e+04,0.0,0.000000000000000000e+00 +1.350000000000000000e+04,0.0,0.000000000000000000e+00 +1.425000000000000000e+04,0.0,0.000000000000000000e+00 +1.500000000000000000e+04,0.0,0.000000000000000000e+00 +1.575000000000000000e+04,0.0,0.000000000000000000e+00 +1.650000000000000000e+04,0.0,0.000000000000000000e+00 +1.725000000000000000e+04,0.0,0.000000000000000000e+00 +1.800000000000000000e+04,0.0,0.000000000000000000e+00 +1.875000000000000000e+04,0.0,0.000000000000000000e+00 +1.950000000000000000e+04,0.0,0.000000000000000000e+00 +2.025000000000000000e+04,0.0,0.000000000000000000e+00 +2.100000000000000000e+04,0.0,0.000000000000000000e+00 +2.175000000000000000e+04,0.0,0.000000000000000000e+00 +2.250000000000000000e+04,0.0,0.000000000000000000e+00 +2.325000000000000000e+04,0.0,0.000000000000000000e+00 +2.400000000000000000e+04,0.0,0.000000000000000000e+00 +2.475000000000000000e+04,0.0,0.000000000000000000e+00 +2.550000000000000000e+04,0.0,0.000000000000000000e+00 +2.625000000000000000e+04,0.0,0.000000000000000000e+00 +2.700000000000000000e+04,0.0,0.000000000000000000e+00 +2.775000000000000000e+04,0.0,0.000000000000000000e+00 +2.850000000000000000e+04,0.0,0.000000000000000000e+00 +2.925000000000000000e+04,0.0,0.000000000000000000e+00 +3.000000000000000000e+04,0.0,0.000000000000000000e+00 +3.075000000000000000e+04,0.0,0.000000000000000000e+00 +3.150000000000000000e+04,0.0,0.000000000000000000e+00 +3.225000000000000000e+04,0.0,0.000000000000000000e+00 +3.300000000000000000e+04,0.0,0.000000000000000000e+00 +3.375000000000000000e+04,0.0,0.000000000000000000e+00 +3.450000000000000000e+04,0.0,0.000000000000000000e+00 +3.525000000000000000e+04,0.0,0.000000000000000000e+00 +3.600000000000000000e+04,0.0,0.000000000000000000e+00 +3.675000000000000000e+04,0.0,0.000000000000000000e+00 +3.750000000000000000e+04,0.0,0.000000000000000000e+00 +3.825000000000000000e+04,0.0,0.000000000000000000e+00 +3.900000000000000000e+04,0.0,0.000000000000000000e+00 +3.975000000000000000e+04,0.0,0.000000000000000000e+00 +4.050000000000000000e+04,0.0,0.000000000000000000e+00 +4.125000000000000000e+04,0.0,0.000000000000000000e+00 +4.200000000000000000e+04,0.0,0.000000000000000000e+00 +4.275000000000000000e+04,0.0,0.000000000000000000e+00 +4.350000000000000000e+04,0.0,0.000000000000000000e+00 +4.425000000000000000e+04,0.0,0.000000000000000000e+00 +4.500000000000000000e+04,0.0,0.000000000000000000e+00 +4.575000000000000000e+04,0.0,0.000000000000000000e+00 +4.650000000000000000e+04,0.0,0.000000000000000000e+00 +4.725000000000000000e+04,0.0,0.000000000000000000e+00 +4.800000000000000000e+04,0.0,0.000000000000000000e+00 +4.875000000000000000e+04,0.0,0.000000000000000000e+00 +4.950000000000000000e+04,0.0,0.000000000000000000e+00 +5.025000000000000000e+04,0.0,0.000000000000000000e+00 +5.100000000000000000e+04,0.0,0.000000000000000000e+00 +5.175000000000000000e+04,0.0,0.000000000000000000e+00 +5.250000000000000000e+04,0.0,0.000000000000000000e+00 +5.325000000000000000e+04,0.0,0.000000000000000000e+00 +5.400000000000000000e+04,0.0,0.000000000000000000e+00 +5.475000000000000000e+04,0.0,0.000000000000000000e+00 +5.550000000000000000e+04,0.0,0.000000000000000000e+00 +5.625000000000000000e+04,0.0,0.000000000000000000e+00 +5.700000000000000000e+04,0.0,0.000000000000000000e+00 +5.775000000000000000e+04,0.0,0.000000000000000000e+00 +5.850000000000000000e+04,0.0,0.000000000000000000e+00 +5.925000000000000000e+04,0.0,0.000000000000000000e+00 +6.000000000000000000e+04,0.0,0.000000000000000000e+00 +6.075000000000000000e+04,0.0,0.000000000000000000e+00 +6.150000000000000000e+04,0.0,0.000000000000000000e+00 +6.225000000000000000e+04,0.0,0.000000000000000000e+00 +6.300000000000000000e+04,0.0,0.000000000000000000e+00 +6.375000000000000000e+04,0.0,0.000000000000000000e+00 +6.450000000000000000e+04,0.0,0.000000000000000000e+00 +6.525000000000000000e+04,0.0,0.000000000000000000e+00 +6.600000000000000000e+04,0.0,0.000000000000000000e+00 +6.675000000000000000e+04,0.0,0.000000000000000000e+00 +6.750000000000000000e+04,0.0,0.000000000000000000e+00 +6.825000000000000000e+04,0.0,0.000000000000000000e+00 +6.900000000000000000e+04,0.0,0.000000000000000000e+00 +6.975000000000000000e+04,0.0,0.000000000000000000e+00 +7.050000000000000000e+04,0.0,0.000000000000000000e+00 +7.125000000000000000e+04,0.0,0.000000000000000000e+00 +7.200000000000000000e+04,0.0,0.000000000000000000e+00 +7.275000000000000000e+04,0.0,0.000000000000000000e+00 +7.350000000000000000e+04,0.0,0.000000000000000000e+00 +7.425000000000000000e+04,0.0,0.000000000000000000e+00 +7.500000000000000000e+04,0.0,0.000000000000000000e+00 +7.575000000000000000e+04,0.0,0.000000000000000000e+00 +7.650000000000000000e+04,0.0,0.000000000000000000e+00 +7.725000000000000000e+04,0.0,0.000000000000000000e+00 +7.800000000000000000e+04,0.0,0.000000000000000000e+00 +7.875000000000000000e+04,0.0,0.000000000000000000e+00 +7.950000000000000000e+04,0.0,0.000000000000000000e+00 +8.025000000000000000e+04,0.0,0.000000000000000000e+00 +8.100000000000000000e+04,0.0,0.000000000000000000e+00 +8.175000000000000000e+04,0.0,0.000000000000000000e+00 +8.250000000000000000e+04,0.0,0.000000000000000000e+00 +8.325000000000000000e+04,0.0,0.000000000000000000e+00 +8.400000000000000000e+04,0.0,0.000000000000000000e+00 +8.475000000000000000e+04,0.0,0.000000000000000000e+00 +8.550000000000000000e+04,0.0,0.000000000000000000e+00 +8.625000000000000000e+04,0.0,0.000000000000000000e+00 +8.700000000000000000e+04,0.0,0.000000000000000000e+00 +8.775000000000000000e+04,0.0,0.000000000000000000e+00 +8.850000000000000000e+04,0.0,0.000000000000000000e+00 +8.925000000000000000e+04,0.0,0.000000000000000000e+00 +9.000000000000000000e+04,0.0,0.000000000000000000e+00 +9.075000000000000000e+04,0.0,0.000000000000000000e+00 +9.150000000000000000e+04,0.0,0.000000000000000000e+00 +9.225000000000000000e+04,0.0,0.000000000000000000e+00 +9.300000000000000000e+04,0.0,0.000000000000000000e+00 +9.375000000000000000e+04,0.0,0.000000000000000000e+00 +9.450000000000000000e+04,0.0,0.000000000000000000e+00 +9.525000000000000000e+04,0.0,0.000000000000000000e+00 +9.600000000000000000e+04,0.0,0.000000000000000000e+00 +9.675000000000000000e+04,0.0,0.000000000000000000e+00 +9.750000000000000000e+04,0.0,0.000000000000000000e+00 +9.825000000000000000e+04,0.0,0.000000000000000000e+00 +9.900000000000000000e+04,0.0,0.000000000000000000e+00 +9.975000000000000000e+04,0.0,0.000000000000000000e+00 +1.005000000000000000e+05,0.0,0.000000000000000000e+00 +1.012500000000000000e+05,0.0,0.000000000000000000e+00 +1.020000000000000000e+05,0.0,0.000000000000000000e+00 +1.027500000000000000e+05,0.0,0.000000000000000000e+00 +1.035000000000000000e+05,0.0,0.000000000000000000e+00 +1.042500000000000000e+05,0.0,0.000000000000000000e+00 +1.050000000000000000e+05,0.0,0.000000000000000000e+00 +1.057500000000000000e+05,0.0,0.000000000000000000e+00 +1.065000000000000000e+05,0.0,0.000000000000000000e+00 +1.072500000000000000e+05,0.0,0.000000000000000000e+00 +1.080000000000000000e+05,0.0,0.000000000000000000e+00 +1.087500000000000000e+05,0.0,0.000000000000000000e+00 +1.095000000000000000e+05,0.0,0.000000000000000000e+00 +1.102500000000000000e+05,0.0,0.000000000000000000e+00 +1.110000000000000000e+05,0.0,0.000000000000000000e+00 +1.117500000000000000e+05,0.0,0.000000000000000000e+00 +1.125000000000000000e+05,0.0,0.000000000000000000e+00 +1.132500000000000000e+05,0.0,0.000000000000000000e+00 +1.140000000000000000e+05,0.0,0.000000000000000000e+00 +1.147500000000000000e+05,0.0,0.000000000000000000e+00 +1.155000000000000000e+05,0.0,0.000000000000000000e+00 +1.162500000000000000e+05,0.0,0.000000000000000000e+00 +1.170000000000000000e+05,0.0,0.000000000000000000e+00 +1.177500000000000000e+05,0.0,0.000000000000000000e+00 +1.185000000000000000e+05,0.0,0.000000000000000000e+00 +1.192500000000000000e+05,0.0,0.000000000000000000e+00 +1.200000000000000000e+05,0.0,0.000000000000000000e+00 +1.207500000000000000e+05,0.0,0.000000000000000000e+00 +1.215000000000000000e+05,0.0,0.000000000000000000e+00 +1.222500000000000000e+05,0.0,0.000000000000000000e+00 +1.230000000000000000e+05,0.0,0.000000000000000000e+00 +1.237500000000000000e+05,0.0,0.000000000000000000e+00 +1.245000000000000000e+05,0.0,0.000000000000000000e+00 +1.252500000000000000e+05,0.0,0.000000000000000000e+00 +1.260000000000000000e+05,0.0,0.000000000000000000e+00 +1.267500000000000000e+05,0.0,0.000000000000000000e+00 +1.275000000000000000e+05,0.0,0.000000000000000000e+00 +1.282500000000000000e+05,0.0,0.000000000000000000e+00 +1.290000000000000000e+05,0.0,0.000000000000000000e+00 +1.297500000000000000e+05,0.0,0.000000000000000000e+00 +1.305000000000000000e+05,0.0,0.000000000000000000e+00 +1.312500000000000000e+05,0.0,0.000000000000000000e+00 +1.320000000000000000e+05,0.0,0.000000000000000000e+00 +1.327500000000000000e+05,0.0,0.000000000000000000e+00 +1.335000000000000000e+05,0.0,0.000000000000000000e+00 +1.342500000000000000e+05,0.0,0.000000000000000000e+00 +1.350000000000000000e+05,0.0,0.000000000000000000e+00 +1.357500000000000000e+05,0.0,0.000000000000000000e+00 +1.365000000000000000e+05,0.0,0.000000000000000000e+00 +1.372500000000000000e+05,0.0,0.000000000000000000e+00 +1.380000000000000000e+05,0.0,0.000000000000000000e+00 +1.387500000000000000e+05,0.0,0.000000000000000000e+00 +1.395000000000000000e+05,0.0,0.000000000000000000e+00 +1.402500000000000000e+05,0.0,0.000000000000000000e+00 +1.410000000000000000e+05,0.0,0.000000000000000000e+00 +1.417500000000000000e+05,0.0,0.000000000000000000e+00 +1.425000000000000000e+05,0.0,0.000000000000000000e+00 +1.432500000000000000e+05,0.0,0.000000000000000000e+00 +1.440000000000000000e+05,0.0,0.000000000000000000e+00 +1.447500000000000000e+05,0.0,0.000000000000000000e+00 +1.455000000000000000e+05,0.0,0.000000000000000000e+00 +1.462500000000000000e+05,0.0,0.000000000000000000e+00 +1.470000000000000000e+05,0.0,0.000000000000000000e+00 +1.477500000000000000e+05,0.0,0.000000000000000000e+00 +1.485000000000000000e+05,0.0,0.000000000000000000e+00 +1.492500000000000000e+05,0.0,0.000000000000000000e+00 +1.500000000000000000e+05,0.0,0.000000000000000000e+00 +1.507500000000000000e+05,0.0,0.000000000000000000e+00 +1.515000000000000000e+05,0.0,0.000000000000000000e+00 +1.522500000000000000e+05,0.0,0.000000000000000000e+00 +1.530000000000000000e+05,0.0,0.000000000000000000e+00 +1.537500000000000000e+05,0.0,0.000000000000000000e+00 +1.545000000000000000e+05,0.0,0.000000000000000000e+00 +1.552500000000000000e+05,0.0,0.000000000000000000e+00 +1.560000000000000000e+05,0.0,0.000000000000000000e+00 +1.567500000000000000e+05,0.0,0.000000000000000000e+00 +1.575000000000000000e+05,0.0,0.000000000000000000e+00 +1.582500000000000000e+05,0.0,0.000000000000000000e+00 +1.590000000000000000e+05,0.0,0.000000000000000000e+00 +1.597500000000000000e+05,0.0,0.000000000000000000e+00 +1.605000000000000000e+05,0.0,0.000000000000000000e+00 +1.612500000000000000e+05,0.0,0.000000000000000000e+00 +1.620000000000000000e+05,0.0,0.000000000000000000e+00 +1.627500000000000000e+05,0.0,0.000000000000000000e+00 +1.635000000000000000e+05,0.0,0.000000000000000000e+00 +1.642500000000000000e+05,0.0,0.000000000000000000e+00 +1.650000000000000000e+05,0.0,0.000000000000000000e+00 +1.657500000000000000e+05,0.0,0.000000000000000000e+00 +1.665000000000000000e+05,0.0,0.000000000000000000e+00 +1.672500000000000000e+05,0.0,0.000000000000000000e+00 +1.680000000000000000e+05,0.0,0.000000000000000000e+00 +1.687500000000000000e+05,0.0,0.000000000000000000e+00 +1.695000000000000000e+05,0.0,0.000000000000000000e+00 +1.702500000000000000e+05,0.0,0.000000000000000000e+00 +1.710000000000000000e+05,0.0,0.000000000000000000e+00 +1.717500000000000000e+05,0.0,0.000000000000000000e+00 +1.725000000000000000e+05,0.0,0.000000000000000000e+00 +1.732500000000000000e+05,0.0,0.000000000000000000e+00 +1.740000000000000000e+05,0.0,0.000000000000000000e+00 +1.747500000000000000e+05,0.0,0.000000000000000000e+00 +1.755000000000000000e+05,0.0,0.000000000000000000e+00 +1.762500000000000000e+05,0.0,0.000000000000000000e+00 +1.770000000000000000e+05,0.0,0.000000000000000000e+00 +1.777500000000000000e+05,0.0,0.000000000000000000e+00 +1.785000000000000000e+05,0.0,0.000000000000000000e+00 +1.792500000000000000e+05,0.0,0.000000000000000000e+00 +1.800000000000000000e+05,0.0,0.000000000000000000e+00 +1.807500000000000000e+05,0.0,0.000000000000000000e+00 +1.815000000000000000e+05,0.0,0.000000000000000000e+00 +1.822500000000000000e+05,0.0,0.000000000000000000e+00 +1.830000000000000000e+05,0.0,0.000000000000000000e+00 +1.837500000000000000e+05,0.0,0.000000000000000000e+00 +1.845000000000000000e+05,0.0,0.000000000000000000e+00 +1.852500000000000000e+05,0.0,0.000000000000000000e+00 +1.860000000000000000e+05,0.0,0.000000000000000000e+00 +1.867500000000000000e+05,0.0,0.000000000000000000e+00 +1.875000000000000000e+05,0.0,0.000000000000000000e+00 diff --git a/codes/reconstruction/experiments/data/AI_floor2/five_views/transforms_test.json b/codes/reconstruction/experiments/data/AI_floor2/five_views/transforms_test.json new file mode 100644 index 0000000000000000000000000000000000000000..78a3e6c18567e1ceca65f68050bc923b8fd7ef64 --- /dev/null +++ b/codes/reconstruction/experiments/data/AI_floor2/five_views/transforms_test.json @@ -0,0 +1,476 @@ +{ + "camera_angle_x": 1.6465637264171746, + "frames": [ + { + "file_path": "RawDataHistogramMap_frame_0_1772200557072206.npz", + "transform_matrix": [ + [ + 0.08750862894513625, + 0.053290946400147726, + 0.99397929330239, + 0.03569120175804685 + ], + [ + 0.9961399488435065, + -0.01158045564612865, + -0.08694475428041314, + -0.10237319602988118 + ], + [ + -0.006887828264288496, + -0.9977508986227972, + 0.0540986304170177, + 0.014895371561434037 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772200577245473.npz", + "transform_matrix": [ + [ + 0.12955369358147042, + 0.05383735542186549, + 0.989355226543443, + 0.029380362585489476 + ], + [ + 0.9915298316995732, + -0.01627994420669728, + -0.12875531436906199, + -0.11101623593133933 + ], + [ + -0.009188761027188403, + -0.9976559478104666, + 0.05549047086387001, + 0.015481931316394443 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772200620711444.npz", + "transform_matrix": [ + [ + 0.24378655887784237, + 0.04764955160450324, + 0.9679198341186069, + 0.012944543505951969 + ], + [ + 0.9696210544072928, + -0.03263696261815214, + -0.24223736998167422, + -0.13406586504996856 + ], + [ + -0.02007796206267393, + -0.9975696649992661, + 0.05415846127769705, + 0.01619185605608311 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772200640699552.npz", + "transform_matrix": [ + [ + 0.31187422585932956, + 0.04727031259932437, + 0.9482239343582239, + 3.290074334212981e-05 + ], + [ + 0.9498524768201475, + -0.039342998380219485, + -0.3099739691253427, + -0.1468943122726316 + ], + [ + -0.022687871722054907, + -0.9973457442878135, + 0.05716989066534629, + 0.016950872234594738 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772200677194909.npz", + "transform_matrix": [ + [ + 0.43478980588736743, + 0.045412203095043145, + 0.8987010740164956, + -0.028212281613305523 + ], + [ + 0.900071478670032, + -0.05382510291527255, + -0.4320714705793748, + -0.16784754548662345 + ], + [ + -0.028795103423463586, + -0.9967554753950494, + 0.06427683483781756, + 0.019315972708718536 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772200730384175.npz", + "transform_matrix": [ + [ + 0.5346435966697793, + 0.04237851058409839, + 0.8433714500867541, + -0.05605299673276543 + ], + [ + 0.8444458244904984, + -0.06537472229146872, + -0.5312264533660657, + -0.1838712383537632 + ], + [ + -0.032672221237086824, + -0.9961983211940197, + 0.0707385329680671, + 0.021428911035112966 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772200748542982.npz", + "transform_matrix": [ + [ + 0.6248695964089392, + 0.03842036182068293, + 0.779189262362325, + -0.08401484466620777 + ], + [ + 0.7800033229659274, + -0.07374665384095075, + -0.620935882903932, + -0.19742126748054498 + ], + [ + -0.033657148510255065, + -0.9957741684079903, + 0.07605005171179025, + 0.023104601752453387 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772200788703288.npz", + "transform_matrix": [ + [ + 0.7304798856370769, + 0.03178923004687436, + 0.6816744595713489, + -0.11495837721932851 + ], + [ + 0.6819565623084417, + -0.08734367949039541, + -0.7255988575123018, + -0.20153718524652836 + ], + [ + -0.03652921849829393, + -0.9949077415167203, + 0.08548167504646371, + 0.025172632794795816 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772200836015693.npz", + "transform_matrix": [ + [ + 0.776569613122584, + 0.0269350943249161, + 0.6289762640630691, + -0.13886641778144085 + ], + [ + 0.6288660850036919, + -0.09383127757595185, + -0.771235886972268, + -0.20794552012949297 + ], + [ + -0.03830252089315667, + -0.9944601951138945, + 0.08980508624326924, + 0.026564640117463234 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772200876184743.npz", + "transform_matrix": [ + [ + 0.8522949949313956, + 0.018853887254745582, + 0.5223238015550328, + -0.1844184744183641 + ], + [ + 0.5216585867591577, + -0.10372516458530945, + -0.8461723756093166, + -0.21705019677697768 + ], + [ + -0.03828263934652662, + -0.9936631767308938, + 0.09823973080472073, + 0.029350557202943956 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772200898000856.npz", + "transform_matrix": [ + [ + 0.8852018471349773, + 0.013286312520441924, + 0.4646637504017173, + -0.21046011112337737 + ], + [ + 0.46356756370022084, + -0.10897758890332679, + -0.8786559827980119, + -0.21941368249480775 + ], + [ + -0.039023117685179146, + -0.9931909416825256, + 0.1026262665192012, + 0.030950449462568006 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772200940011042.npz", + "transform_matrix": [ + [ + 0.9369976407620342, + 0.0023551959670471685, + 0.3490622992241549, + -0.24939482467876192 + ], + [ + 0.34717911027934917, + -0.11713553057024578, + -0.9297364810352586, + -0.21440826598531876 + ], + [ + -0.038756761887785464, + -0.9923480277371336, + 0.11057339063410115, + 0.03332124687610457 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772200979977847.npz", + "transform_matrix": [ + [ + 0.9734078510711999, + -0.009869589286247777, + 0.2286919937031598, + -0.2890569791080379 + ], + [ + 0.22590367153031202, + -0.12428407118654279, + -0.9654425992865574, + -0.20557529485050274 + ], + [ + -0.03800903395348722, + -0.9914317669312472, + 0.11874951419981156, + 0.03539569912993215 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772201003642705.npz", + "transform_matrix": [ + [ + 0.984155710083354, + -0.015425012291671926, + 0.1764988672842055, + -0.30637147158483763 + ], + [ + 0.1733088018543969, + -0.1264989520825293, + -0.9759552192160348, + -0.20114301521418004 + ], + [ + -0.03743791540836956, + -0.9910807089947921, + 0.12182137561272141, + 0.03620929665255834 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772201041972772.npz", + "transform_matrix": [ + [ + 0.9993229304242572, + -0.031742667658775786, + 0.018547975227385872, + -0.35209484350152964 + ], + [ + 0.01421167872429324, + -0.13197237267705683, + -0.9903850339537197, + -0.1818614276630895 + ], + [ + -0.03393683715546318, + -0.9899780722438697, + 0.1314319016040582, + 0.03783946004768057 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772201060128804.npz", + "transform_matrix": [ + [ + 0.9975321588708115, + -0.04029393795094928, + -0.05743258638353987, + -0.366566130803079 + ], + [ + -0.06237587897070696, + -0.1330847670161643, + -0.9883746721874201, + -0.16940943671740322 + ], + [ + -0.032231067949640625, + -0.9895179285775751, + 0.1352697047513331, + 0.037984942682864335 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + } + ], + "w": 256, + "h": 192, + "fl_x": 118.6514575329715, + "fl_y": 118.7964934010577, + "cx": 130.6802784645003, + "cy": 100.360570246814, + "camera_angle_y": 1.3593266161827677 +} \ No newline at end of file diff --git a/codes/reconstruction/experiments/data/AI_floor2/five_views/transforms_train.json b/codes/reconstruction/experiments/data/AI_floor2/five_views/transforms_train.json new file mode 100644 index 0000000000000000000000000000000000000000..754c80bd3dcaf0b88fe089d31984cb57681bf336 --- /dev/null +++ b/codes/reconstruction/experiments/data/AI_floor2/five_views/transforms_train.json @@ -0,0 +1,157 @@ +{ + "camera_angle_x": 1.6465637264171746, + "frames": [ + { + "file_path": "RawDataHistogramMap_frame_0_1772200598885912.npz", + "transform_matrix": [ + [ + 0.18565733770114468, + 0.05317793426994574, + 0.9804267997339801, + 0.02007151885613934 + ], + [ + 0.9825188116131309, + -0.02397451339605054, + -0.18447048539805724, + -0.12341283520746024 + ], + [ + -0.013716332747659267, + -0.9975360733517352, + 0.05669936511273912, + 0.016320479248132326 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772200699210113.npz", + "transform_matrix": [ + [ + 0.4892507986190717, + 0.04367373003732596, + 0.870385416556691, + -0.04211423611919049 + ], + [ + 0.8715652671579556, + -0.060807263074219096, + -0.4861186138646085, + -0.17553272964656402 + ], + [ + -0.03174336362903523, + -0.9964316181684749, + 0.06781450820866805, + 0.02046726701425091 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772200856008549.npz", + "transform_matrix": [ + [ + 0.8190363476347006, + 0.023245650751048404, + 0.5728342171874798, + -0.1608807021011645 + ], + [ + 0.5725025992572255, + -0.09869306489839455, + -0.81331374235614, + -0.21272948449670878 + ], + [ + -0.03768600664617138, + -0.9940825953037886, + 0.09414140288765566, + 0.027847236748209686 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772200959992961.npz", + "transform_matrix": [ + [ + 0.960634902991609, + -0.004524176505668522, + 0.2775659723420375, + -0.2729330984995498 + ], + [ + 0.27519906933837895, + -0.12126072225786773, + -0.9529728465990128, + -0.21063277284421592 + ], + [ + -0.038027034982998864, + -0.9918448753148055, + 0.11524223299899534, + 0.034801172090464086 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772201080115849.npz", + "transform_matrix": [ + [ + 0.9906964366153822, + -0.04800019771227506, + -0.12723370885635474, + -0.3779089582185168 + ], + [ + -0.1327092827671594, + -0.1336430373569729, + -0.9813436842871596, + -0.15839559843132434 + ], + [ + -0.030146587618070726, + -0.9890987853644244, + 0.1387697526990852, + 0.03791115382069107 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + } + ], + "w": 256, + "h": 192, + "fl_x": 118.6514575329715, + "fl_y": 118.7964934010577, + "cx": 130.6802784645003, + "cy": 100.360570246814, + "camera_angle_y": 1.3593266161827677 +} \ No newline at end of file diff --git a/codes/reconstruction/experiments/data/AI_floor2/scene.json b/codes/reconstruction/experiments/data/AI_floor2/scene.json new file mode 100644 index 0000000000000000000000000000000000000000..3363f01d19579910f8034a9dd77062abcd731944 --- /dev/null +++ b/codes/reconstruction/experiments/data/AI_floor2/scene.json @@ -0,0 +1,14 @@ +{ + "scene": "AI_floor2", + "aabb": [ + -33.47059957094457, + -45.77154893804426, + -2.332885058747009, + 34.07583598221082, + 36.15744695126215, + 16.284156604348713 + ], + "aabb_source": "Supplied sp_merged_map.ply extrema, expanded by 5% or 0.5m per axis", + "test_frames": 16, + "train_frames": 10 +} \ No newline at end of file diff --git a/codes/reconstruction/experiments/data/AI_floor2/ten_views/transforms_test.json b/codes/reconstruction/experiments/data/AI_floor2/ten_views/transforms_test.json new file mode 100644 index 0000000000000000000000000000000000000000..78a3e6c18567e1ceca65f68050bc923b8fd7ef64 --- /dev/null +++ b/codes/reconstruction/experiments/data/AI_floor2/ten_views/transforms_test.json @@ -0,0 +1,476 @@ +{ + "camera_angle_x": 1.6465637264171746, + "frames": [ + { + "file_path": "RawDataHistogramMap_frame_0_1772200557072206.npz", + "transform_matrix": [ + [ + 0.08750862894513625, + 0.053290946400147726, + 0.99397929330239, + 0.03569120175804685 + ], + [ + 0.9961399488435065, + -0.01158045564612865, + -0.08694475428041314, + -0.10237319602988118 + ], + [ + -0.006887828264288496, + -0.9977508986227972, + 0.0540986304170177, + 0.014895371561434037 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772200577245473.npz", + "transform_matrix": [ + [ + 0.12955369358147042, + 0.05383735542186549, + 0.989355226543443, + 0.029380362585489476 + ], + [ + 0.9915298316995732, + -0.01627994420669728, + -0.12875531436906199, + -0.11101623593133933 + ], + [ + -0.009188761027188403, + -0.9976559478104666, + 0.05549047086387001, + 0.015481931316394443 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772200620711444.npz", + "transform_matrix": [ + [ + 0.24378655887784237, + 0.04764955160450324, + 0.9679198341186069, + 0.012944543505951969 + ], + [ + 0.9696210544072928, + -0.03263696261815214, + -0.24223736998167422, + -0.13406586504996856 + ], + [ + -0.02007796206267393, + -0.9975696649992661, + 0.05415846127769705, + 0.01619185605608311 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772200640699552.npz", + "transform_matrix": [ + [ + 0.31187422585932956, + 0.04727031259932437, + 0.9482239343582239, + 3.290074334212981e-05 + ], + [ + 0.9498524768201475, + -0.039342998380219485, + -0.3099739691253427, + -0.1468943122726316 + ], + [ + -0.022687871722054907, + -0.9973457442878135, + 0.05716989066534629, + 0.016950872234594738 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772200677194909.npz", + "transform_matrix": [ + [ + 0.43478980588736743, + 0.045412203095043145, + 0.8987010740164956, + -0.028212281613305523 + ], + [ + 0.900071478670032, + -0.05382510291527255, + -0.4320714705793748, + -0.16784754548662345 + ], + [ + -0.028795103423463586, + -0.9967554753950494, + 0.06427683483781756, + 0.019315972708718536 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772200730384175.npz", + "transform_matrix": [ + [ + 0.5346435966697793, + 0.04237851058409839, + 0.8433714500867541, + -0.05605299673276543 + ], + [ + 0.8444458244904984, + -0.06537472229146872, + -0.5312264533660657, + -0.1838712383537632 + ], + [ + -0.032672221237086824, + -0.9961983211940197, + 0.0707385329680671, + 0.021428911035112966 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772200748542982.npz", + "transform_matrix": [ + [ + 0.6248695964089392, + 0.03842036182068293, + 0.779189262362325, + -0.08401484466620777 + ], + [ + 0.7800033229659274, + -0.07374665384095075, + -0.620935882903932, + -0.19742126748054498 + ], + [ + -0.033657148510255065, + -0.9957741684079903, + 0.07605005171179025, + 0.023104601752453387 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772200788703288.npz", + "transform_matrix": [ + [ + 0.7304798856370769, + 0.03178923004687436, + 0.6816744595713489, + -0.11495837721932851 + ], + [ + 0.6819565623084417, + -0.08734367949039541, + -0.7255988575123018, + -0.20153718524652836 + ], + [ + -0.03652921849829393, + -0.9949077415167203, + 0.08548167504646371, + 0.025172632794795816 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772200836015693.npz", + "transform_matrix": [ + [ + 0.776569613122584, + 0.0269350943249161, + 0.6289762640630691, + -0.13886641778144085 + ], + [ + 0.6288660850036919, + -0.09383127757595185, + -0.771235886972268, + -0.20794552012949297 + ], + [ + -0.03830252089315667, + -0.9944601951138945, + 0.08980508624326924, + 0.026564640117463234 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772200876184743.npz", + "transform_matrix": [ + [ + 0.8522949949313956, + 0.018853887254745582, + 0.5223238015550328, + -0.1844184744183641 + ], + [ + 0.5216585867591577, + -0.10372516458530945, + -0.8461723756093166, + -0.21705019677697768 + ], + [ + -0.03828263934652662, + -0.9936631767308938, + 0.09823973080472073, + 0.029350557202943956 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772200898000856.npz", + "transform_matrix": [ + [ + 0.8852018471349773, + 0.013286312520441924, + 0.4646637504017173, + -0.21046011112337737 + ], + [ + 0.46356756370022084, + -0.10897758890332679, + -0.8786559827980119, + -0.21941368249480775 + ], + [ + -0.039023117685179146, + -0.9931909416825256, + 0.1026262665192012, + 0.030950449462568006 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772200940011042.npz", + "transform_matrix": [ + [ + 0.9369976407620342, + 0.0023551959670471685, + 0.3490622992241549, + -0.24939482467876192 + ], + [ + 0.34717911027934917, + -0.11713553057024578, + -0.9297364810352586, + -0.21440826598531876 + ], + [ + -0.038756761887785464, + -0.9923480277371336, + 0.11057339063410115, + 0.03332124687610457 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772200979977847.npz", + "transform_matrix": [ + [ + 0.9734078510711999, + -0.009869589286247777, + 0.2286919937031598, + -0.2890569791080379 + ], + [ + 0.22590367153031202, + -0.12428407118654279, + -0.9654425992865574, + -0.20557529485050274 + ], + [ + -0.03800903395348722, + -0.9914317669312472, + 0.11874951419981156, + 0.03539569912993215 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772201003642705.npz", + "transform_matrix": [ + [ + 0.984155710083354, + -0.015425012291671926, + 0.1764988672842055, + -0.30637147158483763 + ], + [ + 0.1733088018543969, + -0.1264989520825293, + -0.9759552192160348, + -0.20114301521418004 + ], + [ + -0.03743791540836956, + -0.9910807089947921, + 0.12182137561272141, + 0.03620929665255834 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772201041972772.npz", + "transform_matrix": [ + [ + 0.9993229304242572, + -0.031742667658775786, + 0.018547975227385872, + -0.35209484350152964 + ], + [ + 0.01421167872429324, + -0.13197237267705683, + -0.9903850339537197, + -0.1818614276630895 + ], + [ + -0.03393683715546318, + -0.9899780722438697, + 0.1314319016040582, + 0.03783946004768057 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772201060128804.npz", + "transform_matrix": [ + [ + 0.9975321588708115, + -0.04029393795094928, + -0.05743258638353987, + -0.366566130803079 + ], + [ + -0.06237587897070696, + -0.1330847670161643, + -0.9883746721874201, + -0.16940943671740322 + ], + [ + -0.032231067949640625, + -0.9895179285775751, + 0.1352697047513331, + 0.037984942682864335 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + } + ], + "w": 256, + "h": 192, + "fl_x": 118.6514575329715, + "fl_y": 118.7964934010577, + "cx": 130.6802784645003, + "cy": 100.360570246814, + "camera_angle_y": 1.3593266161827677 +} \ No newline at end of file diff --git a/codes/reconstruction/experiments/data/AI_floor2/ten_views/transforms_train.json b/codes/reconstruction/experiments/data/AI_floor2/ten_views/transforms_train.json new file mode 100644 index 0000000000000000000000000000000000000000..058e3dd78127676db0c04426af11ff5d5396cf3d --- /dev/null +++ b/codes/reconstruction/experiments/data/AI_floor2/ten_views/transforms_train.json @@ -0,0 +1,302 @@ +{ + "camera_angle_x": 1.6465637264171746, + "frames": [ + { + "file_path": "RawDataHistogramMap_frame_0_1772200538916257.npz", + "transform_matrix": [ + [ + -1.5107626707668497e-20, + 0.052256455795, + 0.997872812763, + 0.049398541753 + ], + [ + 1.0, + -8.109108886653619e-23, + -1.5484898795032194e-21, + -0.081712147 + ], + [ + 0.0, + -0.997872812763, + 0.052256455795, + 0.013621837804 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772200598885912.npz", + "transform_matrix": [ + [ + 0.18565733770114468, + 0.05317793426994574, + 0.9804267997339801, + 0.02007151885613934 + ], + [ + 0.9825188116131309, + -0.02397451339605054, + -0.18447048539805724, + -0.12341283520746024 + ], + [ + -0.013716332747659267, + -0.9975360733517352, + 0.05669936511273912, + 0.016320479248132326 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772200658855637.npz", + "transform_matrix": [ + [ + 0.3666779200804248, + 0.04665882484638482, + 0.9284693820311922, + -0.011592788913315697 + ], + [ + 0.9300290000408641, + -0.04451316615253234, + -0.36449895333506394, + -0.15714603600439875 + ], + [ + -0.02435902314307062, + -0.9971571690194222, + 0.05971605539596938, + 0.017800760235906828 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772200699210113.npz", + "transform_matrix": [ + [ + 0.4892507986190717, + 0.04367373003732596, + 0.870385416556691, + -0.04211423611919049 + ], + [ + 0.8715652671579556, + -0.060807263074219096, + -0.4861186138646085, + -0.17553272964656402 + ], + [ + -0.03174336362903523, + -0.9964316181684749, + 0.06781450820866805, + 0.02046726701425091 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772200768529991.npz", + "transform_matrix": [ + [ + 0.676389390943139, + 0.03571446679449564, + 0.7351175104561063, + -0.098619180168766 + ], + [ + 0.7356847794815012, + -0.08096025864782001, + -0.671949716687401, + -0.19919812259768044 + ], + [ + -0.035571014306932304, + -0.9953144231874961, + 0.08103524966540551, + 0.024136316514225875 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772200856008549.npz", + "transform_matrix": [ + [ + 0.8190363476347006, + 0.023245650751048404, + 0.5728342171874798, + -0.1608807021011645 + ], + [ + 0.5725025992572255, + -0.09869306489839455, + -0.81331374235614, + -0.21272948449670878 + ], + [ + -0.03768600664617138, + -0.9940825953037886, + 0.09414140288765566, + 0.027847236748209686 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772200919827704.npz", + "transform_matrix": [ + [ + 0.9114109180966825, + 0.007846091084707935, + 0.4111098949429333, + -0.22815317547964048 + ], + [ + 0.4095991259758707, + -0.11315051392930045, + -0.9045226743968854, + -0.21782270818933194 + ], + [ + -0.03948030362055793, + -0.9927820947599846, + 0.10634036583403737, + 0.031910499019342925 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772200959992961.npz", + "transform_matrix": [ + [ + 0.960634902991609, + -0.004524176505668522, + 0.2775659723420375, + -0.2729330984995498 + ], + [ + 0.27519906933837895, + -0.12126072225786773, + -0.9529728465990128, + -0.21063277284421592 + ], + [ + -0.038027034982998864, + -0.9918448753148055, + 0.11524223299899534, + 0.034801172090464086 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772201021799311.npz", + "transform_matrix": [ + [ + 0.9964663309830607, + -0.02450145479188306, + 0.08027336306923397, + -0.33865211610252327 + ], + [ + 0.07650430669349566, + -0.12972028339000885, + -0.9878307132220479, + -0.19087459488109038 + ], + [ + -0.034669039134473306, + -0.9904813044243148, + 0.12738742803188804, + 0.037401629295552116 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772201080115849.npz", + "transform_matrix": [ + [ + 0.9906964366153822, + -0.04800019771227506, + -0.12723370885635474, + -0.3779089582185168 + ], + [ + -0.1327092827671594, + -0.1336430373569729, + -0.9813436842871596, + -0.15839559843132434 + ], + [ + -0.030146587618070726, + -0.9890987853644244, + 0.1387697526990852, + 0.03791115382069107 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + } + ], + "w": 256, + "h": 192, + "fl_x": 118.6514575329715, + "fl_y": 118.7964934010577, + "cx": 130.6802784645003, + "cy": 100.360570246814, + "camera_angle_y": 1.3593266161827677 +} \ No newline at end of file diff --git a/codes/reconstruction/experiments/data/AI_floor2/three_views/transforms_test.json b/codes/reconstruction/experiments/data/AI_floor2/three_views/transforms_test.json new file mode 100644 index 0000000000000000000000000000000000000000..78a3e6c18567e1ceca65f68050bc923b8fd7ef64 --- /dev/null +++ b/codes/reconstruction/experiments/data/AI_floor2/three_views/transforms_test.json @@ -0,0 +1,476 @@ +{ + "camera_angle_x": 1.6465637264171746, + "frames": [ + { + "file_path": "RawDataHistogramMap_frame_0_1772200557072206.npz", + "transform_matrix": [ + [ + 0.08750862894513625, + 0.053290946400147726, + 0.99397929330239, + 0.03569120175804685 + ], + [ + 0.9961399488435065, + -0.01158045564612865, + -0.08694475428041314, + -0.10237319602988118 + ], + [ + -0.006887828264288496, + -0.9977508986227972, + 0.0540986304170177, + 0.014895371561434037 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772200577245473.npz", + "transform_matrix": [ + [ + 0.12955369358147042, + 0.05383735542186549, + 0.989355226543443, + 0.029380362585489476 + ], + [ + 0.9915298316995732, + -0.01627994420669728, + -0.12875531436906199, + -0.11101623593133933 + ], + [ + -0.009188761027188403, + -0.9976559478104666, + 0.05549047086387001, + 0.015481931316394443 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772200620711444.npz", + "transform_matrix": [ + [ + 0.24378655887784237, + 0.04764955160450324, + 0.9679198341186069, + 0.012944543505951969 + ], + [ + 0.9696210544072928, + -0.03263696261815214, + -0.24223736998167422, + -0.13406586504996856 + ], + [ + -0.02007796206267393, + -0.9975696649992661, + 0.05415846127769705, + 0.01619185605608311 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772200640699552.npz", + "transform_matrix": [ + [ + 0.31187422585932956, + 0.04727031259932437, + 0.9482239343582239, + 3.290074334212981e-05 + ], + [ + 0.9498524768201475, + -0.039342998380219485, + -0.3099739691253427, + -0.1468943122726316 + ], + [ + -0.022687871722054907, + -0.9973457442878135, + 0.05716989066534629, + 0.016950872234594738 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772200677194909.npz", + "transform_matrix": [ + [ + 0.43478980588736743, + 0.045412203095043145, + 0.8987010740164956, + -0.028212281613305523 + ], + [ + 0.900071478670032, + -0.05382510291527255, + -0.4320714705793748, + -0.16784754548662345 + ], + [ + -0.028795103423463586, + -0.9967554753950494, + 0.06427683483781756, + 0.019315972708718536 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772200730384175.npz", + "transform_matrix": [ + [ + 0.5346435966697793, + 0.04237851058409839, + 0.8433714500867541, + -0.05605299673276543 + ], + [ + 0.8444458244904984, + -0.06537472229146872, + -0.5312264533660657, + -0.1838712383537632 + ], + [ + -0.032672221237086824, + -0.9961983211940197, + 0.0707385329680671, + 0.021428911035112966 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772200748542982.npz", + "transform_matrix": [ + [ + 0.6248695964089392, + 0.03842036182068293, + 0.779189262362325, + -0.08401484466620777 + ], + [ + 0.7800033229659274, + -0.07374665384095075, + -0.620935882903932, + -0.19742126748054498 + ], + [ + -0.033657148510255065, + -0.9957741684079903, + 0.07605005171179025, + 0.023104601752453387 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772200788703288.npz", + "transform_matrix": [ + [ + 0.7304798856370769, + 0.03178923004687436, + 0.6816744595713489, + -0.11495837721932851 + ], + [ + 0.6819565623084417, + -0.08734367949039541, + -0.7255988575123018, + -0.20153718524652836 + ], + [ + -0.03652921849829393, + -0.9949077415167203, + 0.08548167504646371, + 0.025172632794795816 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772200836015693.npz", + "transform_matrix": [ + [ + 0.776569613122584, + 0.0269350943249161, + 0.6289762640630691, + -0.13886641778144085 + ], + [ + 0.6288660850036919, + -0.09383127757595185, + -0.771235886972268, + -0.20794552012949297 + ], + [ + -0.03830252089315667, + -0.9944601951138945, + 0.08980508624326924, + 0.026564640117463234 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772200876184743.npz", + "transform_matrix": [ + [ + 0.8522949949313956, + 0.018853887254745582, + 0.5223238015550328, + -0.1844184744183641 + ], + [ + 0.5216585867591577, + -0.10372516458530945, + -0.8461723756093166, + -0.21705019677697768 + ], + [ + -0.03828263934652662, + -0.9936631767308938, + 0.09823973080472073, + 0.029350557202943956 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772200898000856.npz", + "transform_matrix": [ + [ + 0.8852018471349773, + 0.013286312520441924, + 0.4646637504017173, + -0.21046011112337737 + ], + [ + 0.46356756370022084, + -0.10897758890332679, + -0.8786559827980119, + -0.21941368249480775 + ], + [ + -0.039023117685179146, + -0.9931909416825256, + 0.1026262665192012, + 0.030950449462568006 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772200940011042.npz", + "transform_matrix": [ + [ + 0.9369976407620342, + 0.0023551959670471685, + 0.3490622992241549, + -0.24939482467876192 + ], + [ + 0.34717911027934917, + -0.11713553057024578, + -0.9297364810352586, + -0.21440826598531876 + ], + [ + -0.038756761887785464, + -0.9923480277371336, + 0.11057339063410115, + 0.03332124687610457 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772200979977847.npz", + "transform_matrix": [ + [ + 0.9734078510711999, + -0.009869589286247777, + 0.2286919937031598, + -0.2890569791080379 + ], + [ + 0.22590367153031202, + -0.12428407118654279, + -0.9654425992865574, + -0.20557529485050274 + ], + [ + -0.03800903395348722, + -0.9914317669312472, + 0.11874951419981156, + 0.03539569912993215 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772201003642705.npz", + "transform_matrix": [ + [ + 0.984155710083354, + -0.015425012291671926, + 0.1764988672842055, + -0.30637147158483763 + ], + [ + 0.1733088018543969, + -0.1264989520825293, + -0.9759552192160348, + -0.20114301521418004 + ], + [ + -0.03743791540836956, + -0.9910807089947921, + 0.12182137561272141, + 0.03620929665255834 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772201041972772.npz", + "transform_matrix": [ + [ + 0.9993229304242572, + -0.031742667658775786, + 0.018547975227385872, + -0.35209484350152964 + ], + [ + 0.01421167872429324, + -0.13197237267705683, + -0.9903850339537197, + -0.1818614276630895 + ], + [ + -0.03393683715546318, + -0.9899780722438697, + 0.1314319016040582, + 0.03783946004768057 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772201060128804.npz", + "transform_matrix": [ + [ + 0.9975321588708115, + -0.04029393795094928, + -0.05743258638353987, + -0.366566130803079 + ], + [ + -0.06237587897070696, + -0.1330847670161643, + -0.9883746721874201, + -0.16940943671740322 + ], + [ + -0.032231067949640625, + -0.9895179285775751, + 0.1352697047513331, + 0.037984942682864335 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + } + ], + "w": 256, + "h": 192, + "fl_x": 118.6514575329715, + "fl_y": 118.7964934010577, + "cx": 130.6802784645003, + "cy": 100.360570246814, + "camera_angle_y": 1.3593266161827677 +} \ No newline at end of file diff --git a/codes/reconstruction/experiments/data/AI_floor2/three_views/transforms_train.json b/codes/reconstruction/experiments/data/AI_floor2/three_views/transforms_train.json new file mode 100644 index 0000000000000000000000000000000000000000..01fc8d472e608701567d2e802207c340082c0ffd --- /dev/null +++ b/codes/reconstruction/experiments/data/AI_floor2/three_views/transforms_train.json @@ -0,0 +1,99 @@ +{ + "camera_angle_x": 1.6465637264171746, + "frames": [ + { + "file_path": "RawDataHistogramMap_frame_0_1772200658855637.npz", + "transform_matrix": [ + [ + 0.3666779200804248, + 0.04665882484638482, + 0.9284693820311922, + -0.011592788913315697 + ], + [ + 0.9300290000408641, + -0.04451316615253234, + -0.36449895333506394, + -0.15714603600439875 + ], + [ + -0.02435902314307062, + -0.9971571690194222, + 0.05971605539596938, + 0.017800760235906828 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772200856008549.npz", + "transform_matrix": [ + [ + 0.8190363476347006, + 0.023245650751048404, + 0.5728342171874798, + -0.1608807021011645 + ], + [ + 0.5725025992572255, + -0.09869306489839455, + -0.81331374235614, + -0.21272948449670878 + ], + [ + -0.03768600664617138, + -0.9940825953037886, + 0.09414140288765566, + 0.027847236748209686 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772201021799311.npz", + "transform_matrix": [ + [ + 0.9964663309830607, + -0.02450145479188306, + 0.08027336306923397, + -0.33865211610252327 + ], + [ + 0.07650430669349566, + -0.12972028339000885, + -0.9878307132220479, + -0.19087459488109038 + ], + [ + -0.034669039134473306, + -0.9904813044243148, + 0.12738742803188804, + 0.037401629295552116 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + } + ], + "w": 256, + "h": 192, + "fl_x": 118.6514575329715, + "fl_y": 118.7964934010577, + "cx": 130.6802784645003, + "cy": 100.360570246814, + "camera_angle_y": 1.3593266161827677 +} \ No newline at end of file diff --git a/codes/reconstruction/experiments/data/artbuilding_floor2/five_views/transforms_test.json b/codes/reconstruction/experiments/data/artbuilding_floor2/five_views/transforms_test.json new file mode 100644 index 0000000000000000000000000000000000000000..0d9c5793f6c689f7bb6c4e9359e2dbc83acb1f8c --- /dev/null +++ b/codes/reconstruction/experiments/data/artbuilding_floor2/five_views/transforms_test.json @@ -0,0 +1,592 @@ +{ + "camera_angle_x": 1.6465637264171746, + "frames": [ + { + "file_path": "RawDataHistogramMap_frame_0_1772198070453985.npz", + "transform_matrix": [ + [ + 0.0765510921255416, + 0.0530871614979489, + 0.9948926943679344, + 0.0396645118098514 + ], + [ + 0.9970364912795119, + 0.0035566752659169465, + -0.07678928736465598, + -0.10670134323042067 + ], + [ + 0.007626621232643376, + -0.9978226250035316, + 0.05265756985596186, + 0.011442711647194861 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772198093918335.npz", + "transform_matrix": [ + [ + 0.14295727436473107, + 0.05380794063371477, + 0.987511952648509, + 0.028116542334233136 + ], + [ + 0.9897246224795352, + -0.0048520879669867205, + -0.1427955545064405, + -0.11998945751200073 + ], + [ + 0.0028964398746002956, + -0.9977785577927162, + 0.05394868500084289, + 0.011761112150820973 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772198153889096.npz", + "transform_matrix": [ + [ + 0.2946736285590876, + 0.053416548842416825, + 0.9533765892671933, + -7.5066603910795e-05 + ], + [ + 0.9555875470492824, + -0.021128149147374292, + -0.2937245352733548, + -0.14140114530139428 + ], + [ + -0.004460107191039793, + -0.9975876709578799, + 0.05727009725415757, + 0.01247696782226467 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772198175721452.npz", + "transform_matrix": [ + [ + 0.3581942089441882, + 0.05281333908168645, + 0.9314416000649832, + -0.013165968519843314 + ], + [ + 0.9336158641182628, + -0.02842183766751226, + -0.35687339770735826, + -0.1495701072556255 + ], + [ + -0.007637207968607453, + -0.9974386387053796, + 0.05948790886377467, + 0.01300133315956328 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772198219178322.npz", + "transform_matrix": [ + [ + 0.4676161256487413, + 0.04991983629322595, + 0.8818481916223838, + -0.04040525542811652 + ], + [ + 0.8838284523477559, + -0.04164945500416389, + -0.4655965379240915, + -0.16635037827132787 + ], + [ + -0.013506511534447718, + -0.9971229715868103, + 0.0635965284369243, + 0.01409840224459 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772198238979859.npz", + "transform_matrix": [ + [ + 0.5292527163686659, + 0.04763630359335833, + 0.8464802115907151, + -0.053896493804889756 + ], + [ + 0.8483222846599654, + -0.04795831340653589, + -0.526899819160299, + -0.17305912043268673 + ], + [ + -0.015519779820694087, + -0.9969511875608351, + 0.06579300553994309, + 0.014050120811018849 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772198278964546.npz", + "transform_matrix": [ + [ + 0.5932446694981659, + 0.04388054579241434, + 0.8032127879265347, + -0.06754317075180054 + ], + [ + 0.804836718866782, + -0.053747125548920166, + -0.5906047862764238, + -0.186755443749673 + ], + [ + -0.017280569312474094, + -0.9968282860252243, + 0.06720187023039655, + 0.013941017387248013 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772198322423861.npz", + "transform_matrix": [ + [ + 0.702627356253017, + 0.03600279090977554, + 0.7101052374228285, + -0.1027345972613511 + ], + [ + 0.7111724573990389, + -0.0683792823624855, + -0.6991474901590903, + -0.20268156865963521 + ], + [ + -0.023420804467450394, + -0.9962474393513364, + 0.07364934767336136, + 0.014975385997845824 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772198351400021.npz", + "transform_matrix": [ + [ + 0.7447221125187385, + 0.031175674121882976, + 0.666138466510032, + -0.11712496333102058 + ], + [ + 0.6668136714501303, + -0.0756783203975248, + -0.7408027172314057, + -0.2070151065681703 + ], + [ + -0.027358777253774037, + -0.9958824010839087, + 0.07714768435946118, + 0.015694987487261537 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772198393216933.npz", + "transform_matrix": [ + [ + 0.8596935015777457, + 0.018017201887865694, + 0.510103995494577, + -0.16813933567572137 + ], + [ + 0.5098566725528871, + -0.09125559149551875, + -0.8547481366888385, + -0.2251790663645159 + ], + [ + -0.0311970639370124, + -0.994901344395881, + 0.0876380295945924, + 0.01690200536198783 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772198436687312.npz", + "transform_matrix": [ + [ + 0.8962797993528071, + 0.011572386150022661, + 0.44300092358666526, + -0.19039777588254406 + ], + [ + 0.4422847324161971, + -0.09688834771755189, + -0.890940465761403, + -0.22667720543946496 + ], + [ + -0.03266093604935928, + -0.9944644868365857, + 0.09195735856369275, + 0.01742927087048206 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772198480338871.npz", + "transform_matrix": [ + [ + 0.9460787342648752, + -8.43243054534286e-05, + 0.323690613643001, + -0.22977012080761375 + ], + [ + 0.3221304527604595, + -0.10513190784466737, + -0.940115831308869, + -0.22490399026313557 + ], + [ + -0.034161381355425485, + -0.9936941996742, + 0.09943589887784063, + 0.01886328694843962 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772198500132232.npz", + "transform_matrix": [ + [ + 0.9697819566593116, + -0.008625343040355903, + 0.24363525593708568, + -0.25160098770739225 + ], + [ + 0.24144470756716557, + -0.10947043351615154, + -0.9634781380415555, + -0.21995971398109734 + ], + [ + -0.035034407742136855, + -0.9931881570311938, + 0.1040799077835917, + 0.019617629796069506 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772198541762762.npz", + "transform_matrix": [ + [ + 0.9973097634545925, + -0.025722295261788434, + 0.0685816061034478, + -0.2985792543120905 + ], + [ + 0.0652040610151215, + -0.11616837082452136, + -0.9903235260675478, + -0.20245880218378487 + ], + [ + -0.033491284616726874, + -0.9921311207548321, + 0.1141786523182107, + 0.02042081291088349 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772198561763286.npz", + "transform_matrix": [ + [ + 0.9990317851737283, + -0.03534696830784702, + -0.02613701998817243, + -0.32060424198842397 + ], + [ + -0.03018275962641663, + -0.11844534449689648, + -0.9917368466089991, + -0.1912969790813251 + ], + [ + -0.03200770585228433, + -0.991565519682009, + 0.11939753300621032, + 0.021194416632141597 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772198589085278.npz", + "transform_matrix": [ + [ + 0.9924860335186986, + -0.04484909473440874, + -0.1137422024645543, + -0.3428527492354664 + ], + [ + -0.11847513090170088, + -0.11991986879745538, + -0.9849289714757675, + -0.17724750064810824 + ], + [ + -0.030579676717458336, + -0.9910038705236746, + 0.12433229729235103, + 0.021945322494921263 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772198639878375.npz", + "transform_matrix": [ + [ + 0.9337474742296039, + -0.070397063128451, + -0.35066406402223027, + -0.3952735775336465 + ], + [ + -0.35718401177531145, + -0.11993953775109942, + -0.9255856446770832, + -0.1407755886311497 + ], + [ + -0.023135170237805404, + -0.9895148550733014, + 0.13713794586077468, + 0.022570947539571704 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772198661715301.npz", + "transform_matrix": [ + [ + 0.909051355512665, + -0.07702381812586961, + -0.409181142813209, + -0.4089549669215209 + ], + [ + -0.41615956327855275, + -0.11856904815450116, + -0.9008310493969743, + -0.1255302576612931 + ], + [ + -0.020900979220964268, + -0.9891863322371806, + 0.13983955246000337, + 0.0231440681717764 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772198701695011.npz", + "transform_matrix": [ + [ + 0.8097447180262384, + -0.09738245925268169, + -0.5781929585978056, + -0.43929837093734836 + ], + [ + -0.5866340060006799, + -0.11219814988329313, + -0.8014211079690982, + -0.08252338693985231 + ], + [ + -0.013192218623398226, + -0.9881341606363289, + 0.1479797214259106, + 0.022530320623038128 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772198719838029.npz", + "transform_matrix": [ + [ + 0.7495071703415452, + -0.10640777852789007, + -0.6528787421752204, + -0.4527738463505441 + ], + [ + -0.6619421353991022, + -0.10785725877681075, + -0.7411787464857297, + -0.05813968540904105 + ], + [ + -0.008462327687683067, + -0.9876867337479569, + 0.15127558096842872, + 0.022186935174191232 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + } + ], + "w": 256, + "h": 192, + "fl_x": 118.6514575329715, + "fl_y": 118.7964934010577, + "cx": 130.6802784645003, + "cy": 100.360570246814, + "camera_angle_y": 1.3593266161827677 +} \ No newline at end of file diff --git a/codes/reconstruction/experiments/data/artbuilding_floor2/five_views/transforms_train.json b/codes/reconstruction/experiments/data/artbuilding_floor2/five_views/transforms_train.json new file mode 100644 index 0000000000000000000000000000000000000000..c64579047a2084b61cad4dd899d161c0e6d8f45b --- /dev/null +++ b/codes/reconstruction/experiments/data/artbuilding_floor2/five_views/transforms_train.json @@ -0,0 +1,157 @@ +{ + "camera_angle_x": 1.6465637264171746, + "frames": [ + { + "file_path": "RawDataHistogramMap_frame_0_1772198119419649.npz", + "transform_matrix": [ + [ + 0.2124614363850213, + 0.05391838797645976, + 0.9749371290672938, + 0.015197499503887657 + ], + [ + 0.977169292450201, + -0.012293484664358072, + -0.2119445001182002, + -0.13126865346006955 + ], + [ + -0.0005585173086075142, + -0.9977086575231372, + 0.055299284438979315, + 0.012198217600847338 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772198300599993.npz", + "transform_matrix": [ + [ + 0.6469372978778303, + 0.04010602760362196, + 0.7609075618308142, + -0.08380151257846295 + ], + [ + 0.7622436164831161, + -0.06198070866185471, + -0.64382185120435, + -0.19436445734679628 + ], + [ + -0.02137292084078571, + -0.9965093004721183, + 0.07066819570561057, + 0.014516611828988949 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772198456673135.npz", + "transform_matrix": [ + [ + 0.9194129512091803, + 0.006820017295468751, + 0.39293553730374436, + -0.2063823587796793 + ], + [ + 0.3918698242832872, + -0.10081980356662738, + -0.9137765446330269, + -0.22610333114146203 + ], + [ + -0.033434502613431144, + -0.9941175696046592, + 0.0953675921167078, + 0.018027738800714423 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772198612552660.npz", + "transform_matrix": [ + [ + 0.9751999994342184, + -0.055965856727232685, + -0.21395880520237698, + -0.3669918873453027 + ], + [ + -0.21949640933841671, + -0.12053190627416659, + -0.9673920933627475, + -0.15984966210453164 + ], + [ + -0.028395200140969645, + -0.9903639583882793, + 0.12982701952754794, + 0.022248165971509394 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772198752298723.npz", + "transform_matrix": [ + [ + 0.6707615758744349, + -0.11661951288892697, + -0.731876468993548, + -0.4645318295062434 + ], + [ + -0.7416677477620264, + -0.10173855774263807, + -0.6624913019495131, + -0.028326274254349262 + ], + [ + -0.002803615532378474, + -0.9871828820972304, + 0.1547352467880781, + 0.021483752323974148 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + } + ], + "w": 256, + "h": 192, + "fl_x": 118.6514575329715, + "fl_y": 118.7964934010577, + "cx": 130.6802784645003, + "cy": 100.360570246814, + "camera_angle_y": 1.3593266161827677 +} \ No newline at end of file diff --git a/codes/reconstruction/experiments/data/artbuilding_floor2/scene.json b/codes/reconstruction/experiments/data/artbuilding_floor2/scene.json new file mode 100644 index 0000000000000000000000000000000000000000..f47809e51fa51258fb4f9e3dce0f676e45fc4590 --- /dev/null +++ b/codes/reconstruction/experiments/data/artbuilding_floor2/scene.json @@ -0,0 +1,14 @@ +{ + "scene": "artbuilding_floor2", + "aabb": [ + -23.04474064899345, + -30.93533659334746, + -2.411157782465602, + 30.46681217057574, + 18.96572915877147, + 20.21861152497268 + ], + "aabb_source": "Supplied sp_merged_map.ply extrema, expanded by 5% or 0.5m per axis", + "test_frames": 20, + "train_frames": 10 +} \ No newline at end of file diff --git a/codes/reconstruction/experiments/data/artbuilding_floor2/ten_views/transforms_test.json b/codes/reconstruction/experiments/data/artbuilding_floor2/ten_views/transforms_test.json new file mode 100644 index 0000000000000000000000000000000000000000..0d9c5793f6c689f7bb6c4e9359e2dbc83acb1f8c --- /dev/null +++ b/codes/reconstruction/experiments/data/artbuilding_floor2/ten_views/transforms_test.json @@ -0,0 +1,592 @@ +{ + "camera_angle_x": 1.6465637264171746, + "frames": [ + { + "file_path": "RawDataHistogramMap_frame_0_1772198070453985.npz", + "transform_matrix": [ + [ + 0.0765510921255416, + 0.0530871614979489, + 0.9948926943679344, + 0.0396645118098514 + ], + [ + 0.9970364912795119, + 0.0035566752659169465, + -0.07678928736465598, + -0.10670134323042067 + ], + [ + 0.007626621232643376, + -0.9978226250035316, + 0.05265756985596186, + 0.011442711647194861 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772198093918335.npz", + "transform_matrix": [ + [ + 0.14295727436473107, + 0.05380794063371477, + 0.987511952648509, + 0.028116542334233136 + ], + [ + 0.9897246224795352, + -0.0048520879669867205, + -0.1427955545064405, + -0.11998945751200073 + ], + [ + 0.0028964398746002956, + -0.9977785577927162, + 0.05394868500084289, + 0.011761112150820973 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772198153889096.npz", + "transform_matrix": [ + [ + 0.2946736285590876, + 0.053416548842416825, + 0.9533765892671933, + -7.5066603910795e-05 + ], + [ + 0.9555875470492824, + -0.021128149147374292, + -0.2937245352733548, + -0.14140114530139428 + ], + [ + -0.004460107191039793, + -0.9975876709578799, + 0.05727009725415757, + 0.01247696782226467 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772198175721452.npz", + "transform_matrix": [ + [ + 0.3581942089441882, + 0.05281333908168645, + 0.9314416000649832, + -0.013165968519843314 + ], + [ + 0.9336158641182628, + -0.02842183766751226, + -0.35687339770735826, + -0.1495701072556255 + ], + [ + -0.007637207968607453, + -0.9974386387053796, + 0.05948790886377467, + 0.01300133315956328 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772198219178322.npz", + "transform_matrix": [ + [ + 0.4676161256487413, + 0.04991983629322595, + 0.8818481916223838, + -0.04040525542811652 + ], + [ + 0.8838284523477559, + -0.04164945500416389, + -0.4655965379240915, + -0.16635037827132787 + ], + [ + -0.013506511534447718, + -0.9971229715868103, + 0.0635965284369243, + 0.01409840224459 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772198238979859.npz", + "transform_matrix": [ + [ + 0.5292527163686659, + 0.04763630359335833, + 0.8464802115907151, + -0.053896493804889756 + ], + [ + 0.8483222846599654, + -0.04795831340653589, + -0.526899819160299, + -0.17305912043268673 + ], + [ + -0.015519779820694087, + -0.9969511875608351, + 0.06579300553994309, + 0.014050120811018849 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772198278964546.npz", + "transform_matrix": [ + [ + 0.5932446694981659, + 0.04388054579241434, + 0.8032127879265347, + -0.06754317075180054 + ], + [ + 0.804836718866782, + -0.053747125548920166, + -0.5906047862764238, + -0.186755443749673 + ], + [ + -0.017280569312474094, + -0.9968282860252243, + 0.06720187023039655, + 0.013941017387248013 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772198322423861.npz", + "transform_matrix": [ + [ + 0.702627356253017, + 0.03600279090977554, + 0.7101052374228285, + -0.1027345972613511 + ], + [ + 0.7111724573990389, + -0.0683792823624855, + -0.6991474901590903, + -0.20268156865963521 + ], + [ + -0.023420804467450394, + -0.9962474393513364, + 0.07364934767336136, + 0.014975385997845824 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772198351400021.npz", + "transform_matrix": [ + [ + 0.7447221125187385, + 0.031175674121882976, + 0.666138466510032, + -0.11712496333102058 + ], + [ + 0.6668136714501303, + -0.0756783203975248, + -0.7408027172314057, + -0.2070151065681703 + ], + [ + -0.027358777253774037, + -0.9958824010839087, + 0.07714768435946118, + 0.015694987487261537 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772198393216933.npz", + "transform_matrix": [ + [ + 0.8596935015777457, + 0.018017201887865694, + 0.510103995494577, + -0.16813933567572137 + ], + [ + 0.5098566725528871, + -0.09125559149551875, + -0.8547481366888385, + -0.2251790663645159 + ], + [ + -0.0311970639370124, + -0.994901344395881, + 0.0876380295945924, + 0.01690200536198783 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772198436687312.npz", + "transform_matrix": [ + [ + 0.8962797993528071, + 0.011572386150022661, + 0.44300092358666526, + -0.19039777588254406 + ], + [ + 0.4422847324161971, + -0.09688834771755189, + -0.890940465761403, + -0.22667720543946496 + ], + [ + -0.03266093604935928, + -0.9944644868365857, + 0.09195735856369275, + 0.01742927087048206 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772198480338871.npz", + "transform_matrix": [ + [ + 0.9460787342648752, + -8.43243054534286e-05, + 0.323690613643001, + -0.22977012080761375 + ], + [ + 0.3221304527604595, + -0.10513190784466737, + -0.940115831308869, + -0.22490399026313557 + ], + [ + -0.034161381355425485, + -0.9936941996742, + 0.09943589887784063, + 0.01886328694843962 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772198500132232.npz", + "transform_matrix": [ + [ + 0.9697819566593116, + -0.008625343040355903, + 0.24363525593708568, + -0.25160098770739225 + ], + [ + 0.24144470756716557, + -0.10947043351615154, + -0.9634781380415555, + -0.21995971398109734 + ], + [ + -0.035034407742136855, + -0.9931881570311938, + 0.1040799077835917, + 0.019617629796069506 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772198541762762.npz", + "transform_matrix": [ + [ + 0.9973097634545925, + -0.025722295261788434, + 0.0685816061034478, + -0.2985792543120905 + ], + [ + 0.0652040610151215, + -0.11616837082452136, + -0.9903235260675478, + -0.20245880218378487 + ], + [ + -0.033491284616726874, + -0.9921311207548321, + 0.1141786523182107, + 0.02042081291088349 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772198561763286.npz", + "transform_matrix": [ + [ + 0.9990317851737283, + -0.03534696830784702, + -0.02613701998817243, + -0.32060424198842397 + ], + [ + -0.03018275962641663, + -0.11844534449689648, + -0.9917368466089991, + -0.1912969790813251 + ], + [ + -0.03200770585228433, + -0.991565519682009, + 0.11939753300621032, + 0.021194416632141597 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772198589085278.npz", + "transform_matrix": [ + [ + 0.9924860335186986, + -0.04484909473440874, + -0.1137422024645543, + -0.3428527492354664 + ], + [ + -0.11847513090170088, + -0.11991986879745538, + -0.9849289714757675, + -0.17724750064810824 + ], + [ + -0.030579676717458336, + -0.9910038705236746, + 0.12433229729235103, + 0.021945322494921263 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772198639878375.npz", + "transform_matrix": [ + [ + 0.9337474742296039, + -0.070397063128451, + -0.35066406402223027, + -0.3952735775336465 + ], + [ + -0.35718401177531145, + -0.11993953775109942, + -0.9255856446770832, + -0.1407755886311497 + ], + [ + -0.023135170237805404, + -0.9895148550733014, + 0.13713794586077468, + 0.022570947539571704 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772198661715301.npz", + "transform_matrix": [ + [ + 0.909051355512665, + -0.07702381812586961, + -0.409181142813209, + -0.4089549669215209 + ], + [ + -0.41615956327855275, + -0.11856904815450116, + -0.9008310493969743, + -0.1255302576612931 + ], + [ + -0.020900979220964268, + -0.9891863322371806, + 0.13983955246000337, + 0.0231440681717764 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772198701695011.npz", + "transform_matrix": [ + [ + 0.8097447180262384, + -0.09738245925268169, + -0.5781929585978056, + -0.43929837093734836 + ], + [ + -0.5866340060006799, + -0.11219814988329313, + -0.8014211079690982, + -0.08252338693985231 + ], + [ + -0.013192218623398226, + -0.9881341606363289, + 0.1479797214259106, + 0.022530320623038128 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772198719838029.npz", + "transform_matrix": [ + [ + 0.7495071703415452, + -0.10640777852789007, + -0.6528787421752204, + -0.4527738463505441 + ], + [ + -0.6619421353991022, + -0.10785725877681075, + -0.7411787464857297, + -0.05813968540904105 + ], + [ + -0.008462327687683067, + -0.9876867337479569, + 0.15127558096842872, + 0.022186935174191232 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + } + ], + "w": 256, + "h": 192, + "fl_x": 118.6514575329715, + "fl_y": 118.7964934010577, + "cx": 130.6802784645003, + "cy": 100.360570246814, + "camera_angle_y": 1.3593266161827677 +} \ No newline at end of file diff --git a/codes/reconstruction/experiments/data/artbuilding_floor2/ten_views/transforms_train.json b/codes/reconstruction/experiments/data/artbuilding_floor2/ten_views/transforms_train.json new file mode 100644 index 0000000000000000000000000000000000000000..f0ad5531003b8bf07a2eec30376f7381be5e8259 --- /dev/null +++ b/codes/reconstruction/experiments/data/artbuilding_floor2/ten_views/transforms_train.json @@ -0,0 +1,302 @@ +{ + "camera_angle_x": 1.6465637264171746, + "frames": [ + { + "file_path": "RawDataHistogramMap_frame_0_1772198043298850.npz", + "transform_matrix": [ + [ + -5.989408020343335e-20, + 0.052256455795, + 0.997872812763, + 0.049398541753 + ], + [ + 0.9999999999999999, + -6.5108201783783435e-21, + -5.959044794243685e-20, + -0.08171214699999998 + ], + [ + 3.3881317890172014e-21, + -0.997872812763, + 0.052256455795, + 0.013621837804 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772198119419649.npz", + "transform_matrix": [ + [ + 0.2124614363850213, + 0.05391838797645976, + 0.9749371290672938, + 0.015197499503887657 + ], + [ + 0.977169292450201, + -0.012293484664358072, + -0.2119445001182002, + -0.13126865346006955 + ], + [ + -0.0005585173086075142, + -0.9977086575231372, + 0.055299284438979315, + 0.012198217600847338 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772198197362390.npz", + "transform_matrix": [ + [ + 0.42575476440610766, + 0.051330438275310336, + 0.9026928156578303, + -0.02877393466471059 + ], + [ + 0.9047764254058259, + -0.03584523804280706, + -0.4240509437720101, + -0.16056935950056 + ], + [ + -0.01060663072591605, + -0.9972768886522518, + 0.06170385133524624, + 0.013615997876131788 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772198300599993.npz", + "transform_matrix": [ + [ + 0.6469372978778303, + 0.04010602760362196, + 0.7609075618308142, + -0.08380151257846295 + ], + [ + 0.7622436164831161, + -0.06198070866185471, + -0.64382185120435, + -0.19436445734679628 + ], + [ + -0.02137292084078571, + -0.9965093004721183, + 0.07066819570561057, + 0.014516611828988949 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772198371392903.npz", + "transform_matrix": [ + [ + 0.820342594841069, + 0.02328662244247806, + 0.5709631798900882, + -0.15018065118221005 + ], + [ + 0.5710774633658319, + -0.08598216588942785, + -0.8157535859076896, + -0.22299108099198492 + ], + [ + -0.030142294621741422, + -0.9952616178613449, + 0.08383329835059777, + 0.016523458123816524 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772198456673135.npz", + "transform_matrix": [ + [ + 0.9194129512091803, + 0.006820017295468751, + 0.39293553730374436, + -0.2063823587796793 + ], + [ + 0.3918698242832872, + -0.10081980356662738, + -0.9137765446330269, + -0.22610333114146203 + ], + [ + -0.033434502613431144, + -0.9941175696046592, + 0.0953675921167078, + 0.018027738800714423 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772198521969111.npz", + "transform_matrix": [ + [ + 0.9871252119389546, + -0.017513243509671827, + 0.15886547002038046, + -0.2773565567809238 + ], + [ + 0.15602775707927974, + -0.11315563415681384, + -0.9804942689169369, + -0.21298166517687434 + ], + [ + -0.035201633133712086, + -0.9926580359741906, + 0.10896622724513479, + 0.020421854023026043 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772198612552660.npz", + "transform_matrix": [ + [ + 0.9751999994342184, + -0.055965856727232685, + -0.21395880520237698, + -0.3669918873453027 + ], + [ + -0.21949640933841671, + -0.12053190627416659, + -0.9673920933627475, + -0.15984966210453164 + ], + [ + -0.028395200140969645, + -0.9903639583882793, + 0.12982701952754794, + 0.022248165971509394 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772198681508765.npz", + "transform_matrix": [ + [ + 0.8677294692378115, + -0.08644799551623582, + -0.48907772624331464, + -0.4226587022247634 + ], + [ + -0.4967306568128945, + -0.11629840713145746, + -0.8594120376956886, + -0.10790066929637507 + ], + [ + -0.017441983789182634, + -0.988677051515664, + 0.14385692468631933, + 0.02296865439286139 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772198752298723.npz", + "transform_matrix": [ + [ + 0.6707615758744349, + -0.11661951288892697, + -0.731876468993548, + -0.4645318295062434 + ], + [ + -0.7416677477620264, + -0.10173855774263807, + -0.6624913019495131, + -0.028326274254349262 + ], + [ + -0.002803615532378474, + -0.9871828820972304, + 0.1547352467880781, + 0.021483752323974148 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + } + ], + "w": 256, + "h": 192, + "fl_x": 118.6514575329715, + "fl_y": 118.7964934010577, + "cx": 130.6802784645003, + "cy": 100.360570246814, + "camera_angle_y": 1.3593266161827677 +} \ No newline at end of file diff --git a/codes/reconstruction/experiments/data/artbuilding_floor2/three_views/transforms_test.json b/codes/reconstruction/experiments/data/artbuilding_floor2/three_views/transforms_test.json new file mode 100644 index 0000000000000000000000000000000000000000..0d9c5793f6c689f7bb6c4e9359e2dbc83acb1f8c --- /dev/null +++ b/codes/reconstruction/experiments/data/artbuilding_floor2/three_views/transforms_test.json @@ -0,0 +1,592 @@ +{ + "camera_angle_x": 1.6465637264171746, + "frames": [ + { + "file_path": "RawDataHistogramMap_frame_0_1772198070453985.npz", + "transform_matrix": [ + [ + 0.0765510921255416, + 0.0530871614979489, + 0.9948926943679344, + 0.0396645118098514 + ], + [ + 0.9970364912795119, + 0.0035566752659169465, + -0.07678928736465598, + -0.10670134323042067 + ], + [ + 0.007626621232643376, + -0.9978226250035316, + 0.05265756985596186, + 0.011442711647194861 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772198093918335.npz", + "transform_matrix": [ + [ + 0.14295727436473107, + 0.05380794063371477, + 0.987511952648509, + 0.028116542334233136 + ], + [ + 0.9897246224795352, + -0.0048520879669867205, + -0.1427955545064405, + -0.11998945751200073 + ], + [ + 0.0028964398746002956, + -0.9977785577927162, + 0.05394868500084289, + 0.011761112150820973 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772198153889096.npz", + "transform_matrix": [ + [ + 0.2946736285590876, + 0.053416548842416825, + 0.9533765892671933, + -7.5066603910795e-05 + ], + [ + 0.9555875470492824, + -0.021128149147374292, + -0.2937245352733548, + -0.14140114530139428 + ], + [ + -0.004460107191039793, + -0.9975876709578799, + 0.05727009725415757, + 0.01247696782226467 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772198175721452.npz", + "transform_matrix": [ + [ + 0.3581942089441882, + 0.05281333908168645, + 0.9314416000649832, + -0.013165968519843314 + ], + [ + 0.9336158641182628, + -0.02842183766751226, + -0.35687339770735826, + -0.1495701072556255 + ], + [ + -0.007637207968607453, + -0.9974386387053796, + 0.05948790886377467, + 0.01300133315956328 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772198219178322.npz", + "transform_matrix": [ + [ + 0.4676161256487413, + 0.04991983629322595, + 0.8818481916223838, + -0.04040525542811652 + ], + [ + 0.8838284523477559, + -0.04164945500416389, + -0.4655965379240915, + -0.16635037827132787 + ], + [ + -0.013506511534447718, + -0.9971229715868103, + 0.0635965284369243, + 0.01409840224459 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772198238979859.npz", + "transform_matrix": [ + [ + 0.5292527163686659, + 0.04763630359335833, + 0.8464802115907151, + -0.053896493804889756 + ], + [ + 0.8483222846599654, + -0.04795831340653589, + -0.526899819160299, + -0.17305912043268673 + ], + [ + -0.015519779820694087, + -0.9969511875608351, + 0.06579300553994309, + 0.014050120811018849 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772198278964546.npz", + "transform_matrix": [ + [ + 0.5932446694981659, + 0.04388054579241434, + 0.8032127879265347, + -0.06754317075180054 + ], + [ + 0.804836718866782, + -0.053747125548920166, + -0.5906047862764238, + -0.186755443749673 + ], + [ + -0.017280569312474094, + -0.9968282860252243, + 0.06720187023039655, + 0.013941017387248013 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772198322423861.npz", + "transform_matrix": [ + [ + 0.702627356253017, + 0.03600279090977554, + 0.7101052374228285, + -0.1027345972613511 + ], + [ + 0.7111724573990389, + -0.0683792823624855, + -0.6991474901590903, + -0.20268156865963521 + ], + [ + -0.023420804467450394, + -0.9962474393513364, + 0.07364934767336136, + 0.014975385997845824 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772198351400021.npz", + "transform_matrix": [ + [ + 0.7447221125187385, + 0.031175674121882976, + 0.666138466510032, + -0.11712496333102058 + ], + [ + 0.6668136714501303, + -0.0756783203975248, + -0.7408027172314057, + -0.2070151065681703 + ], + [ + -0.027358777253774037, + -0.9958824010839087, + 0.07714768435946118, + 0.015694987487261537 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772198393216933.npz", + "transform_matrix": [ + [ + 0.8596935015777457, + 0.018017201887865694, + 0.510103995494577, + -0.16813933567572137 + ], + [ + 0.5098566725528871, + -0.09125559149551875, + -0.8547481366888385, + -0.2251790663645159 + ], + [ + -0.0311970639370124, + -0.994901344395881, + 0.0876380295945924, + 0.01690200536198783 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772198436687312.npz", + "transform_matrix": [ + [ + 0.8962797993528071, + 0.011572386150022661, + 0.44300092358666526, + -0.19039777588254406 + ], + [ + 0.4422847324161971, + -0.09688834771755189, + -0.890940465761403, + -0.22667720543946496 + ], + [ + -0.03266093604935928, + -0.9944644868365857, + 0.09195735856369275, + 0.01742927087048206 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772198480338871.npz", + "transform_matrix": [ + [ + 0.9460787342648752, + -8.43243054534286e-05, + 0.323690613643001, + -0.22977012080761375 + ], + [ + 0.3221304527604595, + -0.10513190784466737, + -0.940115831308869, + -0.22490399026313557 + ], + [ + -0.034161381355425485, + -0.9936941996742, + 0.09943589887784063, + 0.01886328694843962 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772198500132232.npz", + "transform_matrix": [ + [ + 0.9697819566593116, + -0.008625343040355903, + 0.24363525593708568, + -0.25160098770739225 + ], + [ + 0.24144470756716557, + -0.10947043351615154, + -0.9634781380415555, + -0.21995971398109734 + ], + [ + -0.035034407742136855, + -0.9931881570311938, + 0.1040799077835917, + 0.019617629796069506 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772198541762762.npz", + "transform_matrix": [ + [ + 0.9973097634545925, + -0.025722295261788434, + 0.0685816061034478, + -0.2985792543120905 + ], + [ + 0.0652040610151215, + -0.11616837082452136, + -0.9903235260675478, + -0.20245880218378487 + ], + [ + -0.033491284616726874, + -0.9921311207548321, + 0.1141786523182107, + 0.02042081291088349 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772198561763286.npz", + "transform_matrix": [ + [ + 0.9990317851737283, + -0.03534696830784702, + -0.02613701998817243, + -0.32060424198842397 + ], + [ + -0.03018275962641663, + -0.11844534449689648, + -0.9917368466089991, + -0.1912969790813251 + ], + [ + -0.03200770585228433, + -0.991565519682009, + 0.11939753300621032, + 0.021194416632141597 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772198589085278.npz", + "transform_matrix": [ + [ + 0.9924860335186986, + -0.04484909473440874, + -0.1137422024645543, + -0.3428527492354664 + ], + [ + -0.11847513090170088, + -0.11991986879745538, + -0.9849289714757675, + -0.17724750064810824 + ], + [ + -0.030579676717458336, + -0.9910038705236746, + 0.12433229729235103, + 0.021945322494921263 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772198639878375.npz", + "transform_matrix": [ + [ + 0.9337474742296039, + -0.070397063128451, + -0.35066406402223027, + -0.3952735775336465 + ], + [ + -0.35718401177531145, + -0.11993953775109942, + -0.9255856446770832, + -0.1407755886311497 + ], + [ + -0.023135170237805404, + -0.9895148550733014, + 0.13713794586077468, + 0.022570947539571704 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772198661715301.npz", + "transform_matrix": [ + [ + 0.909051355512665, + -0.07702381812586961, + -0.409181142813209, + -0.4089549669215209 + ], + [ + -0.41615956327855275, + -0.11856904815450116, + -0.9008310493969743, + -0.1255302576612931 + ], + [ + -0.020900979220964268, + -0.9891863322371806, + 0.13983955246000337, + 0.0231440681717764 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772198701695011.npz", + "transform_matrix": [ + [ + 0.8097447180262384, + -0.09738245925268169, + -0.5781929585978056, + -0.43929837093734836 + ], + [ + -0.5866340060006799, + -0.11219814988329313, + -0.8014211079690982, + -0.08252338693985231 + ], + [ + -0.013192218623398226, + -0.9881341606363289, + 0.1479797214259106, + 0.022530320623038128 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772198719838029.npz", + "transform_matrix": [ + [ + 0.7495071703415452, + -0.10640777852789007, + -0.6528787421752204, + -0.4527738463505441 + ], + [ + -0.6619421353991022, + -0.10785725877681075, + -0.7411787464857297, + -0.05813968540904105 + ], + [ + -0.008462327687683067, + -0.9876867337479569, + 0.15127558096842872, + 0.022186935174191232 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + } + ], + "w": 256, + "h": 192, + "fl_x": 118.6514575329715, + "fl_y": 118.7964934010577, + "cx": 130.6802784645003, + "cy": 100.360570246814, + "camera_angle_y": 1.3593266161827677 +} \ No newline at end of file diff --git a/codes/reconstruction/experiments/data/artbuilding_floor2/three_views/transforms_train.json b/codes/reconstruction/experiments/data/artbuilding_floor2/three_views/transforms_train.json new file mode 100644 index 0000000000000000000000000000000000000000..8858815451c9a848226d5f85a6b12db1d5098eb7 --- /dev/null +++ b/codes/reconstruction/experiments/data/artbuilding_floor2/three_views/transforms_train.json @@ -0,0 +1,99 @@ +{ + "camera_angle_x": 1.6465637264171746, + "frames": [ + { + "file_path": "RawDataHistogramMap_frame_0_1772198197362390.npz", + "transform_matrix": [ + [ + 0.42575476440610766, + 0.051330438275310336, + 0.9026928156578303, + -0.02877393466471059 + ], + [ + 0.9047764254058259, + -0.03584523804280706, + -0.4240509437720101, + -0.16056935950056 + ], + [ + -0.01060663072591605, + -0.9972768886522518, + 0.06170385133524624, + 0.013615997876131788 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772198456673135.npz", + "transform_matrix": [ + [ + 0.9194129512091803, + 0.006820017295468751, + 0.39293553730374436, + -0.2063823587796793 + ], + [ + 0.3918698242832872, + -0.10081980356662738, + -0.9137765446330269, + -0.22610333114146203 + ], + [ + -0.033434502613431144, + -0.9941175696046592, + 0.0953675921167078, + 0.018027738800714423 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772198681508765.npz", + "transform_matrix": [ + [ + 0.8677294692378115, + -0.08644799551623582, + -0.48907772624331464, + -0.4226587022247634 + ], + [ + -0.4967306568128945, + -0.11629840713145746, + -0.8594120376956886, + -0.10790066929637507 + ], + [ + -0.017441983789182634, + -0.988677051515664, + 0.14385692468631933, + 0.02296865439286139 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + } + ], + "w": 256, + "h": 192, + "fl_x": 118.6514575329715, + "fl_y": 118.7964934010577, + "cx": 130.6802784645003, + "cy": 100.360570246814, + "camera_angle_y": 1.3593266161827677 +} \ No newline at end of file diff --git a/codes/reconstruction/experiments/data/c4floor2/five_views/transforms_test.json b/codes/reconstruction/experiments/data/c4floor2/five_views/transforms_test.json new file mode 100644 index 0000000000000000000000000000000000000000..b36bd7baad6204145e9e7a6c589458368688ab92 --- /dev/null +++ b/codes/reconstruction/experiments/data/c4floor2/five_views/transforms_test.json @@ -0,0 +1,418 @@ +{ + "camera_angle_x": 1.6465637264171746, + "frames": [ + { + "file_path": "RawDataHistogramMap_frame_0_1772202328518476.npz", + "transform_matrix": [ + [ + 0.07824617697737339, + 0.053623937415061475, + 0.9947322239977378, + 0.03715281983673012 + ], + [ + 0.9969117875515218, + -0.010879514868318318, + -0.07771200551664918, + -0.09748323014756444 + ], + [ + -0.006665105344773075, + -0.9977409468976055, + 0.05430961574981424, + 0.01446735498378553 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772202350521039.npz", + "transform_matrix": [ + [ + 0.12863874627559624, + 0.053722421723588445, + 0.9894806719412795, + 0.030136650278306518 + ], + [ + 0.9916442671784077, + -0.016708622567306868, + -0.12781701284109706, + -0.10772398554193438 + ], + [ + -0.009680926032362291, + -0.997655056098977, + 0.055422907780187644, + 0.014729101167825599 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772202390676359.npz", + "transform_matrix": [ + [ + 0.21299443674548896, + 0.05270681879865599, + 0.9748872579948029, + 0.015193416076176042 + ], + [ + 0.9769543176312855, + -0.025699119461077145, + -0.21173239091782234, + -0.12382783730370257 + ], + [ + -0.01391514200681805, + -0.9975181372460586, + 0.056965923668423825, + 0.015210224267207023 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772202428826669.npz", + "transform_matrix": [ + [ + 0.323318032569104, + 0.051643862640209696, + 0.9441599698250132, + -0.004202626910236932 + ], + [ + 0.946103274419385, + -0.03748086964748458, + -0.32144119366055596, + -0.14259629592768402 + ], + [ + -0.018816055606016423, + -0.9972005733481429, + 0.06097866858097112, + 0.015885654458580103 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772202448998406.npz", + "transform_matrix": [ + [ + 0.38248158894311457, + 0.050678535074629105, + 0.9218691024574865, + -0.017762754245577342 + ], + [ + 0.9236970506074911, + -0.044914854244222084, + -0.3801886815027329, + -0.1506719376726239 + ], + [ + -0.022171892534970934, + -0.9969429419855019, + 0.06399071819602155, + 0.016807321939636286 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772202496499412.npz", + "transform_matrix": [ + [ + 0.5304810802827247, + 0.04556665441357529, + 0.8458261551722077, + -0.04880805214789867 + ], + [ + 0.8471946495999402, + -0.06283650275202124, + -0.5271470507267135, + -0.16847861129394542 + ], + [ + -0.02917274672220437, + -0.9962209300909364, + 0.07193740168043126, + 0.018398736313551396 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772202532994709.npz", + "transform_matrix": [ + [ + 0.6642356497080995, + 0.037496625935688456, + 0.7460134974475842, + -0.0897310472594602 + ], + [ + 0.7466797386667915, + -0.08067772243235763, + -0.659763830680959, + -0.19060265406490073 + ], + [ + -0.035501683359495564, + -0.9952718200423272, + 0.08158699023137324, + 0.02085468316708463 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772202553170863.npz", + "transform_matrix": [ + [ + 0.7205678203626813, + 0.03214478588087025, + 0.6921115279254497, + -0.11117752619665511 + ], + [ + 0.6923033703889269, + -0.0890705041719521, + -0.7155357869797703, + -0.20126103891609162 + ], + [ + -0.03870477497565948, + -0.994743205883321, + 0.08643528265554593, + 0.022412112673748603 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772202593329100.npz", + "transform_matrix": [ + [ + 0.8212539592440011, + 0.021406003262711103, + 0.5697272879797993, + -0.15964843289422156 + ], + [ + 0.5690785515043854, + -0.10270928429119687, + -0.8152136271611115, + -0.22167043301122147 + ], + [ + -0.04112829492859107, + -0.9937169987317855, + 0.09653210370550541, + 0.02499802071184346 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772202631663117.npz", + "transform_matrix": [ + [ + 0.8846111919273215, + 0.010692160428217565, + 0.4658523006578577, + -0.1944423501259289 + ], + [ + 0.4643475596640053, + -0.11219658540415973, + -0.8778392259694591, + -0.23187371647090027 + ], + [ + -0.04294627982743395, + -0.9928637829797308, + 0.10421523374692859, + 0.02604375591964727 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772202653675337.npz", + "transform_matrix": [ + [ + 0.9062377293836895, + 0.006071307883192705, + 0.422403599984179, + -0.21012325893435585 + ], + [ + 0.4205240647140517, + -0.1157615563060542, + -0.8991708965915427, + -0.23310453463830144 + ], + [ + -0.0435050438211314, + -0.9924934704702012, + 0.1074606210058919, + 0.026752176590523397 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772202702449698.npz", + "transform_matrix": [ + [ + 0.9555917551012674, + -0.0077203660391656215, + 0.2943685905995059, + -0.2538030591928687 + ], + [ + 0.2913581614397757, + -0.12511478538917356, + -0.9476637360752875, + -0.23639046203359418 + ], + [ + -0.04421333899317354, + -0.9913463441446889, + 0.11730926570434612, + 0.027605408656705535 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772202738945758.npz", + "transform_matrix": [ + [ + 0.987486329594695, + -0.02414437650353098, + 0.1557241679523815, + -0.3102052462117518 + ], + [ + 0.1513731990246885, + -0.1318689010944601, + -0.9788832636586884, + -0.22964370608843998 + ], + [ + -0.04423690179751615, + -0.9902063066003951, + 0.1265639256196588, + 0.02899070728343926 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772202755449299.npz", + "transform_matrix": [ + [ + 0.9950724196194974, + -0.031324583924575426, + 0.09399316966418941, + -0.3356633453959703 + ], + [ + 0.08908101213915114, + -0.13381165375643334, + -0.9862311884259126, + -0.2234817581839813 + ], + [ + -0.04353680039776057, + -0.989744461659029, + 0.1303618604358624, + 0.029828126450891036 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + } + ], + "w": 256, + "h": 192, + "fl_x": 118.6514575329715, + "fl_y": 118.7964934010577, + "cx": 130.6802784645003, + "cy": 100.360570246814, + "camera_angle_y": 1.3593266161827677 +} \ No newline at end of file diff --git a/codes/reconstruction/experiments/data/c4floor2/five_views/transforms_train.json b/codes/reconstruction/experiments/data/c4floor2/five_views/transforms_train.json new file mode 100644 index 0000000000000000000000000000000000000000..0320244863e7c0a15e429289934567a9f8c4145b --- /dev/null +++ b/codes/reconstruction/experiments/data/c4floor2/five_views/transforms_train.json @@ -0,0 +1,157 @@ +{ + "camera_angle_x": 1.6465637264171746, + "frames": [ + { + "file_path": "RawDataHistogramMap_frame_0_1772202372344011.npz", + "transform_matrix": [ + [ + 0.1629375084720456, + 0.052511266025820465, + 0.9844872539814941, + 0.02444104666530087 + ], + [ + 0.986571518517454, + -0.020113664637189766, + -0.16196158350917927, + -0.11486524877531379 + ], + [ + -0.01131402594539684, + -0.9976567020067691, + 0.05508338986459352, + 0.014697816906267891 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772202471010294.npz", + "transform_matrix": [ + [ + 0.45711612930002327, + 0.04808537715013759, + 0.8874294083615551, + -0.03481586755720752 + ], + [ + 0.8889923583967251, + -0.055166704596565246, + -0.45423636447616184, + -0.15854432892699752 + ], + [ + -0.02715568165232586, + -0.9965567313666006, + 0.06796512330851653, + 0.017680792121421016 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772202573153142.npz", + "transform_matrix": [ + [ + 0.7847316659590298, + 0.0259387242680525, + 0.6188212648279867, + -0.14131651446245933 + ], + [ + 0.6185273048244366, + -0.09760269965949112, + -0.7790762156597867, + -0.21504386269564346 + ], + [ + -0.040251529508753714, + -0.9941236257258573, + 0.09263573831799446, + 0.023861306644709465 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772202673470921.npz", + "transform_matrix": [ + [ + 0.9371525899285654, + -0.0019300261461861776, + 0.3486493278608138, + -0.23805095289664102 + ], + [ + 0.34611890227969494, + -0.12121220410414996, + -0.9296086175141479, + -0.23293063018755747 + ], + [ + -0.04412174832089641, + -0.9918592461630263, + 0.11292631247606551, + 0.027467117466364 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772202775632540.npz", + "transform_matrix": [ + [ + 0.998954739073294, + -0.039553363406605105, + 0.022842649766631095, + -0.3648230613186132 + ], + [ + 0.01727219659559939, + -0.1360531512615547, + -0.9897840936665447, + -0.21392939529776844 + ], + [ + -0.04232139539029983, + -0.989144053765085, + 0.13522776674981077, + 0.030691650422104262 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + } + ], + "w": 256, + "h": 192, + "fl_x": 118.6514575329715, + "fl_y": 118.7964934010577, + "cx": 130.6802784645003, + "cy": 100.360570246814, + "camera_angle_y": 1.3593266161827677 +} \ No newline at end of file diff --git a/codes/reconstruction/experiments/data/c4floor2/scene.json b/codes/reconstruction/experiments/data/c4floor2/scene.json new file mode 100644 index 0000000000000000000000000000000000000000..ae0ec6797784f9947a9abd62b5dfade6e2e863fd --- /dev/null +++ b/codes/reconstruction/experiments/data/c4floor2/scene.json @@ -0,0 +1,14 @@ +{ + "scene": "c4floor2", + "aabb": [ + -16.095039152568862, + -30.710547363791328, + -2.1372235853622223, + 30.33579848575094, + 24.48301334358288, + 10.601559643906944 + ], + "aabb_source": "Supplied sp_merged_map.ply extrema, expanded by 5% or 0.5m per axis", + "test_frames": 14, + "train_frames": 10 +} \ No newline at end of file diff --git a/codes/reconstruction/experiments/data/c4floor2/ten_views/transforms_test.json b/codes/reconstruction/experiments/data/c4floor2/ten_views/transforms_test.json new file mode 100644 index 0000000000000000000000000000000000000000..b36bd7baad6204145e9e7a6c589458368688ab92 --- /dev/null +++ b/codes/reconstruction/experiments/data/c4floor2/ten_views/transforms_test.json @@ -0,0 +1,418 @@ +{ + "camera_angle_x": 1.6465637264171746, + "frames": [ + { + "file_path": "RawDataHistogramMap_frame_0_1772202328518476.npz", + "transform_matrix": [ + [ + 0.07824617697737339, + 0.053623937415061475, + 0.9947322239977378, + 0.03715281983673012 + ], + [ + 0.9969117875515218, + -0.010879514868318318, + -0.07771200551664918, + -0.09748323014756444 + ], + [ + -0.006665105344773075, + -0.9977409468976055, + 0.05430961574981424, + 0.01446735498378553 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772202350521039.npz", + "transform_matrix": [ + [ + 0.12863874627559624, + 0.053722421723588445, + 0.9894806719412795, + 0.030136650278306518 + ], + [ + 0.9916442671784077, + -0.016708622567306868, + -0.12781701284109706, + -0.10772398554193438 + ], + [ + -0.009680926032362291, + -0.997655056098977, + 0.055422907780187644, + 0.014729101167825599 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772202390676359.npz", + "transform_matrix": [ + [ + 0.21299443674548896, + 0.05270681879865599, + 0.9748872579948029, + 0.015193416076176042 + ], + [ + 0.9769543176312855, + -0.025699119461077145, + -0.21173239091782234, + -0.12382783730370257 + ], + [ + -0.01391514200681805, + -0.9975181372460586, + 0.056965923668423825, + 0.015210224267207023 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772202428826669.npz", + "transform_matrix": [ + [ + 0.323318032569104, + 0.051643862640209696, + 0.9441599698250132, + -0.004202626910236932 + ], + [ + 0.946103274419385, + -0.03748086964748458, + -0.32144119366055596, + -0.14259629592768402 + ], + [ + -0.018816055606016423, + -0.9972005733481429, + 0.06097866858097112, + 0.015885654458580103 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772202448998406.npz", + "transform_matrix": [ + [ + 0.38248158894311457, + 0.050678535074629105, + 0.9218691024574865, + -0.017762754245577342 + ], + [ + 0.9236970506074911, + -0.044914854244222084, + -0.3801886815027329, + -0.1506719376726239 + ], + [ + -0.022171892534970934, + -0.9969429419855019, + 0.06399071819602155, + 0.016807321939636286 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772202496499412.npz", + "transform_matrix": [ + [ + 0.5304810802827247, + 0.04556665441357529, + 0.8458261551722077, + -0.04880805214789867 + ], + [ + 0.8471946495999402, + -0.06283650275202124, + -0.5271470507267135, + -0.16847861129394542 + ], + [ + -0.02917274672220437, + -0.9962209300909364, + 0.07193740168043126, + 0.018398736313551396 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772202532994709.npz", + "transform_matrix": [ + [ + 0.6642356497080995, + 0.037496625935688456, + 0.7460134974475842, + -0.0897310472594602 + ], + [ + 0.7466797386667915, + -0.08067772243235763, + -0.659763830680959, + -0.19060265406490073 + ], + [ + -0.035501683359495564, + -0.9952718200423272, + 0.08158699023137324, + 0.02085468316708463 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772202553170863.npz", + "transform_matrix": [ + [ + 0.7205678203626813, + 0.03214478588087025, + 0.6921115279254497, + -0.11117752619665511 + ], + [ + 0.6923033703889269, + -0.0890705041719521, + -0.7155357869797703, + -0.20126103891609162 + ], + [ + -0.03870477497565948, + -0.994743205883321, + 0.08643528265554593, + 0.022412112673748603 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772202593329100.npz", + "transform_matrix": [ + [ + 0.8212539592440011, + 0.021406003262711103, + 0.5697272879797993, + -0.15964843289422156 + ], + [ + 0.5690785515043854, + -0.10270928429119687, + -0.8152136271611115, + -0.22167043301122147 + ], + [ + -0.04112829492859107, + -0.9937169987317855, + 0.09653210370550541, + 0.02499802071184346 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772202631663117.npz", + "transform_matrix": [ + [ + 0.8846111919273215, + 0.010692160428217565, + 0.4658523006578577, + -0.1944423501259289 + ], + [ + 0.4643475596640053, + -0.11219658540415973, + -0.8778392259694591, + -0.23187371647090027 + ], + [ + -0.04294627982743395, + -0.9928637829797308, + 0.10421523374692859, + 0.02604375591964727 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772202653675337.npz", + "transform_matrix": [ + [ + 0.9062377293836895, + 0.006071307883192705, + 0.422403599984179, + -0.21012325893435585 + ], + [ + 0.4205240647140517, + -0.1157615563060542, + -0.8991708965915427, + -0.23310453463830144 + ], + [ + -0.0435050438211314, + -0.9924934704702012, + 0.1074606210058919, + 0.026752176590523397 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772202702449698.npz", + "transform_matrix": [ + [ + 0.9555917551012674, + -0.0077203660391656215, + 0.2943685905995059, + -0.2538030591928687 + ], + [ + 0.2913581614397757, + -0.12511478538917356, + -0.9476637360752875, + -0.23639046203359418 + ], + [ + -0.04421333899317354, + -0.9913463441446889, + 0.11730926570434612, + 0.027605408656705535 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772202738945758.npz", + "transform_matrix": [ + [ + 0.987486329594695, + -0.02414437650353098, + 0.1557241679523815, + -0.3102052462117518 + ], + [ + 0.1513731990246885, + -0.1318689010944601, + -0.9788832636586884, + -0.22964370608843998 + ], + [ + -0.04423690179751615, + -0.9902063066003951, + 0.1265639256196588, + 0.02899070728343926 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772202755449299.npz", + "transform_matrix": [ + [ + 0.9950724196194974, + -0.031324583924575426, + 0.09399316966418941, + -0.3356633453959703 + ], + [ + 0.08908101213915114, + -0.13381165375643334, + -0.9862311884259126, + -0.2234817581839813 + ], + [ + -0.04353680039776057, + -0.989744461659029, + 0.1303618604358624, + 0.029828126450891036 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + } + ], + "w": 256, + "h": 192, + "fl_x": 118.6514575329715, + "fl_y": 118.7964934010577, + "cx": 130.6802784645003, + "cy": 100.360570246814, + "camera_angle_y": 1.3593266161827677 +} \ No newline at end of file diff --git a/codes/reconstruction/experiments/data/c4floor2/ten_views/transforms_train.json b/codes/reconstruction/experiments/data/c4floor2/ten_views/transforms_train.json new file mode 100644 index 0000000000000000000000000000000000000000..d491c2ee666926baad3693e7baabfaccb5fa1947 --- /dev/null +++ b/codes/reconstruction/experiments/data/c4floor2/ten_views/transforms_train.json @@ -0,0 +1,302 @@ +{ + "camera_angle_x": 1.6465637264171746, + "frames": [ + { + "file_path": "RawDataHistogramMap_frame_0_1772202308332704.npz", + "transform_matrix": [ + [ + -1.7324470749310612e-20, + 0.052256455795, + 0.997872812763, + 0.049398541753 + ], + [ + 0.9999999999999999, + -9.049696356662056e-22, + -1.7281014987888808e-20, + -0.08171214699999998 + ], + [ + 2.710505431213761e-20, + -0.997872812763, + 0.052256455795, + 0.013621837804 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772202372344011.npz", + "transform_matrix": [ + [ + 0.1629375084720456, + 0.052511266025820465, + 0.9844872539814941, + 0.02444104666530087 + ], + [ + 0.986571518517454, + -0.020113664637189766, + -0.16196158350917927, + -0.11486524877531379 + ], + [ + -0.01131402594539684, + -0.9976567020067691, + 0.05508338986459352, + 0.014697816906267891 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772202408837312.npz", + "transform_matrix": [ + [ + 0.27538953245637127, + 0.05241404897585853, + 0.9591712407438721, + 0.005252659844195644 + ], + [ + 0.9611741890944039, + -0.033131817630663085, + -0.27373488874402413, + -0.1336640657985248 + ], + [ + -0.01745805350501676, + -0.9973143625528731, + 0.05950318678826337, + 0.01553836970949633 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772202471010294.npz", + "transform_matrix": [ + [ + 0.45711612930002327, + 0.04808537715013759, + 0.8874294083615551, + -0.03481586755720752 + ], + [ + 0.8889923583967251, + -0.055166704596565246, + -0.45423636447616184, + -0.15854432892699752 + ], + [ + -0.02715568165232586, + -0.9965567313666006, + 0.06796512330851653, + 0.017680792121421016 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772202514846642.npz", + "transform_matrix": [ + [ + 0.6085296254023297, + 0.041099703395061776, + 0.7918623219610006, + -0.06995658431706822 + ], + [ + 0.7927993699740333, + -0.07433479585718737, + -0.6044660401518752, + -0.1783761635264297 + ], + [ + -0.034071307231829426, + -0.9956234429388993, + 0.0778187444350576, + 0.019759006226566952 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772202573153142.npz", + "transform_matrix": [ + [ + 0.7847316659590298, + 0.0259387242680525, + 0.6188212648279867, + -0.14131651446245933 + ], + [ + 0.6185273048244366, + -0.09760269965949112, + -0.7790762156597867, + -0.21504386269564346 + ], + [ + -0.040251529508753714, + -0.9941236257258573, + 0.09263573831799446, + 0.023861306644709465 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772202613505162.npz", + "transform_matrix": [ + [ + 0.8614317919560556, + 0.015252574706774307, + 0.5072581138972699, + -0.1801568439486616 + ], + [ + 0.5061319112835856, + -0.10842075809991149, + -0.8549534873271056, + -0.22914446872414862 + ], + [ + -0.042020901796778455, + -0.9932236333281912, + 0.10111690272357655, + 0.025498352330684718 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772202673470921.npz", + "transform_matrix": [ + [ + 0.9371525899285654, + -0.0019300261461861776, + 0.3486493278608138, + -0.23805095289664102 + ], + [ + 0.34611890227969494, + -0.12121220410414996, + -0.9296086175141479, + -0.23293063018755747 + ], + [ + -0.04412174832089641, + -0.9918592461630263, + 0.11292631247606551, + 0.027467117466364 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772202718958758.npz", + "transform_matrix": [ + [ + 0.9714843173810216, + -0.014374708630182687, + 0.23648718155351067, + -0.27673191606542896 + ], + [ + 0.2329426392993316, + -0.12817743406236246, + -0.9632609149695839, + -0.23575428855342756 + ], + [ + -0.04422609952283697, + -0.9908808206705707, + 0.12117388446625219, + 0.028099732695346526 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772202775632540.npz", + "transform_matrix": [ + [ + 0.998954739073294, + -0.039553363406605105, + 0.022842649766631095, + -0.3648230613186132 + ], + [ + 0.01727219659559939, + -0.1360531512615547, + -0.9897840936665447, + -0.21392939529776844 + ], + [ + -0.04232139539029983, + -0.989144053765085, + 0.13522776674981077, + 0.030691650422104262 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + } + ], + "w": 256, + "h": 192, + "fl_x": 118.6514575329715, + "fl_y": 118.7964934010577, + "cx": 130.6802784645003, + "cy": 100.360570246814, + "camera_angle_y": 1.3593266161827677 +} \ No newline at end of file diff --git a/codes/reconstruction/experiments/data/c4floor2/three_views/transforms_test.json b/codes/reconstruction/experiments/data/c4floor2/three_views/transforms_test.json new file mode 100644 index 0000000000000000000000000000000000000000..b36bd7baad6204145e9e7a6c589458368688ab92 --- /dev/null +++ b/codes/reconstruction/experiments/data/c4floor2/three_views/transforms_test.json @@ -0,0 +1,418 @@ +{ + "camera_angle_x": 1.6465637264171746, + "frames": [ + { + "file_path": "RawDataHistogramMap_frame_0_1772202328518476.npz", + "transform_matrix": [ + [ + 0.07824617697737339, + 0.053623937415061475, + 0.9947322239977378, + 0.03715281983673012 + ], + [ + 0.9969117875515218, + -0.010879514868318318, + -0.07771200551664918, + -0.09748323014756444 + ], + [ + -0.006665105344773075, + -0.9977409468976055, + 0.05430961574981424, + 0.01446735498378553 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772202350521039.npz", + "transform_matrix": [ + [ + 0.12863874627559624, + 0.053722421723588445, + 0.9894806719412795, + 0.030136650278306518 + ], + [ + 0.9916442671784077, + -0.016708622567306868, + -0.12781701284109706, + -0.10772398554193438 + ], + [ + -0.009680926032362291, + -0.997655056098977, + 0.055422907780187644, + 0.014729101167825599 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772202390676359.npz", + "transform_matrix": [ + [ + 0.21299443674548896, + 0.05270681879865599, + 0.9748872579948029, + 0.015193416076176042 + ], + [ + 0.9769543176312855, + -0.025699119461077145, + -0.21173239091782234, + -0.12382783730370257 + ], + [ + -0.01391514200681805, + -0.9975181372460586, + 0.056965923668423825, + 0.015210224267207023 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772202428826669.npz", + "transform_matrix": [ + [ + 0.323318032569104, + 0.051643862640209696, + 0.9441599698250132, + -0.004202626910236932 + ], + [ + 0.946103274419385, + -0.03748086964748458, + -0.32144119366055596, + -0.14259629592768402 + ], + [ + -0.018816055606016423, + -0.9972005733481429, + 0.06097866858097112, + 0.015885654458580103 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772202448998406.npz", + "transform_matrix": [ + [ + 0.38248158894311457, + 0.050678535074629105, + 0.9218691024574865, + -0.017762754245577342 + ], + [ + 0.9236970506074911, + -0.044914854244222084, + -0.3801886815027329, + -0.1506719376726239 + ], + [ + -0.022171892534970934, + -0.9969429419855019, + 0.06399071819602155, + 0.016807321939636286 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772202496499412.npz", + "transform_matrix": [ + [ + 0.5304810802827247, + 0.04556665441357529, + 0.8458261551722077, + -0.04880805214789867 + ], + [ + 0.8471946495999402, + -0.06283650275202124, + -0.5271470507267135, + -0.16847861129394542 + ], + [ + -0.02917274672220437, + -0.9962209300909364, + 0.07193740168043126, + 0.018398736313551396 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772202532994709.npz", + "transform_matrix": [ + [ + 0.6642356497080995, + 0.037496625935688456, + 0.7460134974475842, + -0.0897310472594602 + ], + [ + 0.7466797386667915, + -0.08067772243235763, + -0.659763830680959, + -0.19060265406490073 + ], + [ + -0.035501683359495564, + -0.9952718200423272, + 0.08158699023137324, + 0.02085468316708463 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772202553170863.npz", + "transform_matrix": [ + [ + 0.7205678203626813, + 0.03214478588087025, + 0.6921115279254497, + -0.11117752619665511 + ], + [ + 0.6923033703889269, + -0.0890705041719521, + -0.7155357869797703, + -0.20126103891609162 + ], + [ + -0.03870477497565948, + -0.994743205883321, + 0.08643528265554593, + 0.022412112673748603 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772202593329100.npz", + "transform_matrix": [ + [ + 0.8212539592440011, + 0.021406003262711103, + 0.5697272879797993, + -0.15964843289422156 + ], + [ + 0.5690785515043854, + -0.10270928429119687, + -0.8152136271611115, + -0.22167043301122147 + ], + [ + -0.04112829492859107, + -0.9937169987317855, + 0.09653210370550541, + 0.02499802071184346 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772202631663117.npz", + "transform_matrix": [ + [ + 0.8846111919273215, + 0.010692160428217565, + 0.4658523006578577, + -0.1944423501259289 + ], + [ + 0.4643475596640053, + -0.11219658540415973, + -0.8778392259694591, + -0.23187371647090027 + ], + [ + -0.04294627982743395, + -0.9928637829797308, + 0.10421523374692859, + 0.02604375591964727 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772202653675337.npz", + "transform_matrix": [ + [ + 0.9062377293836895, + 0.006071307883192705, + 0.422403599984179, + -0.21012325893435585 + ], + [ + 0.4205240647140517, + -0.1157615563060542, + -0.8991708965915427, + -0.23310453463830144 + ], + [ + -0.0435050438211314, + -0.9924934704702012, + 0.1074606210058919, + 0.026752176590523397 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772202702449698.npz", + "transform_matrix": [ + [ + 0.9555917551012674, + -0.0077203660391656215, + 0.2943685905995059, + -0.2538030591928687 + ], + [ + 0.2913581614397757, + -0.12511478538917356, + -0.9476637360752875, + -0.23639046203359418 + ], + [ + -0.04421333899317354, + -0.9913463441446889, + 0.11730926570434612, + 0.027605408656705535 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772202738945758.npz", + "transform_matrix": [ + [ + 0.987486329594695, + -0.02414437650353098, + 0.1557241679523815, + -0.3102052462117518 + ], + [ + 0.1513731990246885, + -0.1318689010944601, + -0.9788832636586884, + -0.22964370608843998 + ], + [ + -0.04423690179751615, + -0.9902063066003951, + 0.1265639256196588, + 0.02899070728343926 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772202755449299.npz", + "transform_matrix": [ + [ + 0.9950724196194974, + -0.031324583924575426, + 0.09399316966418941, + -0.3356633453959703 + ], + [ + 0.08908101213915114, + -0.13381165375643334, + -0.9862311884259126, + -0.2234817581839813 + ], + [ + -0.04353680039776057, + -0.989744461659029, + 0.1303618604358624, + 0.029828126450891036 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + } + ], + "w": 256, + "h": 192, + "fl_x": 118.6514575329715, + "fl_y": 118.7964934010577, + "cx": 130.6802784645003, + "cy": 100.360570246814, + "camera_angle_y": 1.3593266161827677 +} \ No newline at end of file diff --git a/codes/reconstruction/experiments/data/c4floor2/three_views/transforms_train.json b/codes/reconstruction/experiments/data/c4floor2/three_views/transforms_train.json new file mode 100644 index 0000000000000000000000000000000000000000..4de54e7e7d7858bf6fdf0cb8738c46ef97b8362c --- /dev/null +++ b/codes/reconstruction/experiments/data/c4floor2/three_views/transforms_train.json @@ -0,0 +1,99 @@ +{ + "camera_angle_x": 1.6465637264171746, + "frames": [ + { + "file_path": "RawDataHistogramMap_frame_0_1772202408837312.npz", + "transform_matrix": [ + [ + 0.27538953245637127, + 0.05241404897585853, + 0.9591712407438721, + 0.005252659844195644 + ], + [ + 0.9611741890944039, + -0.033131817630663085, + -0.27373488874402413, + -0.1336640657985248 + ], + [ + -0.01745805350501676, + -0.9973143625528731, + 0.05950318678826337, + 0.01553836970949633 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772202573153142.npz", + "transform_matrix": [ + [ + 0.7847316659590298, + 0.0259387242680525, + 0.6188212648279867, + -0.14131651446245933 + ], + [ + 0.6185273048244366, + -0.09760269965949112, + -0.7790762156597867, + -0.21504386269564346 + ], + [ + -0.040251529508753714, + -0.9941236257258573, + 0.09263573831799446, + 0.023861306644709465 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772202718958758.npz", + "transform_matrix": [ + [ + 0.9714843173810216, + -0.014374708630182687, + 0.23648718155351067, + -0.27673191606542896 + ], + [ + 0.2329426392993316, + -0.12817743406236246, + -0.9632609149695839, + -0.23575428855342756 + ], + [ + -0.04422609952283697, + -0.9908808206705707, + 0.12117388446625219, + 0.028099732695346526 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + } + ], + "w": 256, + "h": 192, + "fl_x": 118.6514575329715, + "fl_y": 118.7964934010577, + "cx": 130.6802784645003, + "cy": 100.360570246814, + "camera_angle_y": 1.3593266161827677 +} \ No newline at end of file diff --git a/codes/reconstruction/experiments/data/design_floor1/five_views/transforms_test.json b/codes/reconstruction/experiments/data/design_floor1/five_views/transforms_test.json new file mode 100644 index 0000000000000000000000000000000000000000..abac9399256576ce7d5d18e9de5c18bd64376e9b --- /dev/null +++ b/codes/reconstruction/experiments/data/design_floor1/five_views/transforms_test.json @@ -0,0 +1,592 @@ +{ + "camera_angle_x": 1.6465637264171746, + "frames": [ + { + "file_path": "RawDataHistogramMap_frame_0_1772195683421466.npz", + "transform_matrix": [ + [ + 0.05952934156170293, + 0.054673978798180124, + 0.9959685158189008, + 0.04041923568818094 + ], + [ + 0.9982188570198786, + -0.00717912861334852, + -0.05917910872031087, + -0.09755549469905742 + ], + [ + -0.003920584542941435, + -0.9977174468648544, + 0.0550039654239877, + 0.014058813326669148 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772195708926196.npz", + "transform_matrix": [ + [ + 0.14611095339582167, + 0.05717959110194544, + 0.9868613894148891, + 0.024887442930526638 + ], + [ + 0.9892278411124873, + -0.017456693604031702, + -0.14522737432548138, + -0.11965797044337106 + ], + [ + -0.008936871135470826, + -0.9974500718500275, + 0.05911425760709587, + 0.015298356291131137 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772195786677057.npz", + "transform_matrix": [ + [ + 0.2871074303234434, + 0.057110429913988583, + 0.9554652433934121, + -0.0020618093318914565 + ], + [ + 0.9577616771989089, + -0.03396654106921851, + -0.285330027285764, + -0.1511363929333374 + ], + [ + -0.016183112871320317, + -0.9970283649458686, + 0.06445022746333079, + 0.016462465087975022 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772195804830922.npz", + "transform_matrix": [ + [ + 0.3623204477966613, + 0.05530898866514927, + 0.9297016293756548, + -0.017160501545969375 + ], + [ + 0.9318506256817919, + -0.04231107057900046, + -0.36008913740510523, + -0.16567000856878852 + ], + [ + -0.01945005205353409, + -0.9968107025424113, + 0.06686988173238516, + 0.01703668596917768 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772195844807697.npz", + "transform_matrix": [ + [ + 0.5008071209394004, + 0.04795708476123409, + 0.8635706331577494, + -0.048744428853460905 + ], + [ + 0.8651656616027725, + -0.05780638187612441, + -0.49775974233596876, + -0.19235433638589872 + ], + [ + -0.026088418883387813, + -0.9964132816554556, + 0.0704406706452977, + 0.017950195170815152 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772195866448285.npz", + "transform_matrix": [ + [ + 0.5898277314716865, + 0.041240317939372134, + 0.8058609465967868, + -0.07439769990673617 + ], + [ + 0.8069255566937308, + -0.06867528495656708, + -0.5861952547702293, + -0.20757655771445718 + ], + [ + -0.031215270966078, + -0.9960240102709347, + 0.07378445404555688, + 0.01894868839250832 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772195884607109.npz", + "transform_matrix": [ + [ + 0.6601538333378768, + 0.0413406609996904, + 0.749420301005527, + -0.10036549677566538 + ], + [ + 0.7506843442493093, + -0.07069224594932119, + -0.6563631388966117, + -0.22233203177006405 + ], + [ + -0.0258830374628225, + -0.9958787294317274, + 0.07770154414409286, + 0.019275147559676933 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772195929915524.npz", + "transform_matrix": [ + [ + 0.7719628669472366, + 0.03496268896956454, + 0.6342216565484131, + -0.13997802473911158 + ], + [ + 0.6351157371478379, + -0.08398871418421808, + -0.7672467343282794, + -0.23537742042946658 + ], + [ + -0.02648268267706175, + -0.9950901436018248, + 0.0870415225704353, + 0.021280089367266556 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772195949897250.npz", + "transform_matrix": [ + [ + 0.8132268877261241, + 0.03186312212698906, + 0.580630954090365, + -0.16027318444290733 + ], + [ + 0.5813518037299009, + -0.08958542041889962, + -0.8080834329819928, + -0.23704362281423325 + ], + [ + -0.02630797178203703, + -0.9947060276888294, + 0.09137695615388795, + 0.022011946656855387 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772196037012271.npz", + "transform_matrix": [ + [ + 0.8948323894114544, + 0.024296013735720604, + 0.4454009176750651, + -0.213344190045993 + ], + [ + 0.4457463595697376, + -0.10269907225613777, + -0.8885638993747103, + -0.23527521544852686 + ], + [ + -0.024190448332435787, + -0.9936515948249073, + 0.10272831589205172, + 0.024830345405855513 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772196065982375.npz", + "transform_matrix": [ + [ + 0.9282916072022016, + 0.019872588650741214, + 0.3710387007070186, + -0.23882260025173063 + ], + [ + 0.3711972402475508, + -0.10875686035890968, + -0.9214525252624157, + -0.23314051429553379 + ], + [ + -0.02207489140555535, + -0.9931051873638521, + 0.10833473076056614, + 0.025877588082447604 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772196111467395.npz", + "transform_matrix": [ + [ + 0.9736179859036981, + 0.0025560576438236646, + 0.2279964625259145, + -0.2853719984937336 + ], + [ + 0.22680233124855376, + -0.12063596011438794, + -0.9656949297602733, + -0.22335107635320217 + ], + [ + -0.02507429091834164, + -0.9919280817279047, + 0.11803306034655284, + 0.027617884535878406 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772196140438461.npz", + "transform_matrix": [ + [ + 0.9896630350882573, + -0.006807665217071326, + 0.1431414998280345, + -0.3041895257601137 + ], + [ + 0.14129447014468602, + -0.12461186875406559, + -0.9813352996039661, + -0.21379387710771258 + ], + [ + -0.024555033831021086, + -0.9914163734192162, + 0.12236187478939824, + 0.027956449654252043 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772196185933036.npz", + "transform_matrix": [ + [ + 0.9992301303744404, + -0.026533055835313422, + -0.028858367302277484, + -0.3346155030722252 + ], + [ + -0.0321029135788806, + -0.13016719002749794, + -0.9902062203382911, + -0.19428949214974464 + ], + [ + -0.022551041919068253, + -0.9903703283177384, + 0.13091876666011468, + 0.02844224509423926 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772196216559505.npz", + "transform_matrix": [ + [ + 0.992362319994533, + -0.03629194706795451, + -0.11779984745657922, + -0.3477467671832681 + ], + [ + -0.1217298003785673, + -0.13349315655505295, + -0.9827842239794874, + -0.19194651149240205 + ], + [ + -0.019972019298897813, + -0.9896177844778171, + 0.13689139001429582, + 0.029047309663462403 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772196241855245.npz", + "transform_matrix": [ + [ + 0.9740996888973295, + -0.05267302830942507, + -0.21972181565065485, + -0.36172954888317893 + ], + [ + -0.22494919102112226, + -0.12702345349237656, + -0.9653085836563012, + -0.18094519518739696 + ], + [ + -0.02297079774584637, + -0.989733035709822, + 0.13558226163642478, + 0.028276281212936648 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772196280001075.npz", + "transform_matrix": [ + [ + 0.9174467925532044, + -0.07255817231591423, + -0.39087879459663166, + -0.39456008129568976 + ], + [ + -0.3974542542774043, + -0.1228698161134221, + -0.9086550421777622, + -0.14858603606600862 + ], + [ + -0.017930381776202636, + -0.9889990938025293, + 0.1415650729644126, + 0.028685938452087573 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772196299998913.npz", + "transform_matrix": [ + [ + 0.8800657229954864, + -0.08145120775179268, + -0.46744784515301163, + -0.40846745288603903 + ], + [ + -0.47462643319501957, + -0.1205540342233508, + -0.8712172933288629, + -0.1310728742750863 + ], + [ + -0.014631203676262054, + -0.9885915805892971, + 0.14475436950345436, + 0.028450321529243462 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772196366934821.npz", + "transform_matrix": [ + [ + 0.8014745568914703, + -0.09415677535200856, + -0.5901099416098193, + -0.432892475061012 + ], + [ + -0.5979805888020999, + -0.1136390754528174, + -0.7927985046436958, + -0.0951426055441195 + ], + [ + -0.007599346782840904, + -0.9882821205553277, + 0.1473827516088035, + 0.027576962775641034 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772196386919610.npz", + "transform_matrix": [ + [ + 0.7465343334659513, + -0.10180119380950022, + -0.6570011532496508, + -0.44375842945188565 + ], + [ + -0.6653326972788847, + -0.10777027581523921, + -0.7381539941183582, + -0.07354395895532102 + ], + [ + -0.00434636493662422, + -0.9881816494012946, + 0.1481858738866557, + 0.027347477378918423 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + } + ], + "w": 256, + "h": 192, + "fl_x": 118.6514575329715, + "fl_y": 118.7964934010577, + "cx": 130.6802784645003, + "cy": 100.360570246814, + "camera_angle_y": 1.3593266161827677 +} \ No newline at end of file diff --git a/codes/reconstruction/experiments/data/design_floor1/five_views/transforms_train.json b/codes/reconstruction/experiments/data/design_floor1/five_views/transforms_train.json new file mode 100644 index 0000000000000000000000000000000000000000..33441274983d5c632f828455137f1879c47eee06 --- /dev/null +++ b/codes/reconstruction/experiments/data/design_floor1/five_views/transforms_train.json @@ -0,0 +1,157 @@ +{ + "camera_angle_x": 1.6465637264171746, + "frames": [ + { + "file_path": "RawDataHistogramMap_frame_0_1772195728722633.npz", + "transform_matrix": [ + [ + 0.21221932990400108, + 0.05716485404100423, + 0.9748048211987232, + 0.01397887389408994 + ], + [ + 0.9771305618039331, + -0.02606334728423891, + -0.21087408360598225, + -0.1329926654653416 + ], + [ + -0.013372404564158778, + -0.9972631393040711, + 0.06138867204024217, + 0.015885495118871183 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772195911942879.npz", + "transform_matrix": [ + [ + 0.7249892051750605, + 0.039383626897398535, + 0.6871091104045031, + -0.11839670918337945 + ], + [ + 0.6883034860144199, + -0.0777524490762262, + -0.7206895674780969, + -0.22933427589597538 + ], + [ + -0.0250791451218711, + -0.9954317526675833, + 0.083477573941557, + 0.020298023824463732 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772196087812148.npz", + "transform_matrix": [ + [ + 0.9550725779278529, + 0.013900577027050682, + 0.2958204041821164, + -0.26611957696891814 + ], + [ + 0.2956537268806325, + -0.11413683823936038, + -0.9477211250604112, + -0.23078332445452432 + ], + [ + -0.020621461438258226, + -0.9926028630519039, + 0.11311872173763746, + 0.026456972179970818 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772196260016301.npz", + "transform_matrix": [ + [ + 0.9515356247263171, + -0.06319585669755508, + -0.30073669711722734, + -0.37715667185222007 + ], + [ + -0.3067457187436336, + -0.12485483284827126, + -0.9428372924923087, + -0.16685915362523646 + ], + [ + -0.02206850491448359, + -0.9893929664367388, + 0.1381888798586892, + 0.028346580468416118 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772196406917537.npz", + "transform_matrix": [ + [ + 0.693457804802343, + -0.10977451015092522, + -0.7115316113321397, + -0.450298126304269 + ], + [ + -0.7204880182132735, + -0.1006569142953442, + -0.6855907413373988, + -0.0529235944610994 + ], + [ + -0.0036453490689240843, + -0.9880782510254232, + 0.1488925420943991, + 0.027068714404347438 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + } + ], + "w": 256, + "h": 192, + "fl_x": 118.6514575329715, + "fl_y": 118.7964934010577, + "cx": 130.6802784645003, + "cy": 100.360570246814, + "camera_angle_y": 1.3593266161827677 +} \ No newline at end of file diff --git a/codes/reconstruction/experiments/data/design_floor1/scene.json b/codes/reconstruction/experiments/data/design_floor1/scene.json new file mode 100644 index 0000000000000000000000000000000000000000..ddcc17a4222c929413d8a21d5358f1c471d3887a --- /dev/null +++ b/codes/reconstruction/experiments/data/design_floor1/scene.json @@ -0,0 +1,14 @@ +{ + "scene": "design_floor1", + "aabb": [ + -32.97903368485406, + -31.80313330072445, + -2.285502236111863, + 32.84135510520197, + 25.272967183539148, + 15.918132996760834 + ], + "aabb_source": "Supplied sp_merged_map.ply extrema, expanded by 5% or 0.5m per axis", + "test_frames": 20, + "train_frames": 10 +} \ No newline at end of file diff --git a/codes/reconstruction/experiments/data/design_floor1/ten_views/transforms_test.json b/codes/reconstruction/experiments/data/design_floor1/ten_views/transforms_test.json new file mode 100644 index 0000000000000000000000000000000000000000..abac9399256576ce7d5d18e9de5c18bd64376e9b --- /dev/null +++ b/codes/reconstruction/experiments/data/design_floor1/ten_views/transforms_test.json @@ -0,0 +1,592 @@ +{ + "camera_angle_x": 1.6465637264171746, + "frames": [ + { + "file_path": "RawDataHistogramMap_frame_0_1772195683421466.npz", + "transform_matrix": [ + [ + 0.05952934156170293, + 0.054673978798180124, + 0.9959685158189008, + 0.04041923568818094 + ], + [ + 0.9982188570198786, + -0.00717912861334852, + -0.05917910872031087, + -0.09755549469905742 + ], + [ + -0.003920584542941435, + -0.9977174468648544, + 0.0550039654239877, + 0.014058813326669148 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772195708926196.npz", + "transform_matrix": [ + [ + 0.14611095339582167, + 0.05717959110194544, + 0.9868613894148891, + 0.024887442930526638 + ], + [ + 0.9892278411124873, + -0.017456693604031702, + -0.14522737432548138, + -0.11965797044337106 + ], + [ + -0.008936871135470826, + -0.9974500718500275, + 0.05911425760709587, + 0.015298356291131137 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772195786677057.npz", + "transform_matrix": [ + [ + 0.2871074303234434, + 0.057110429913988583, + 0.9554652433934121, + -0.0020618093318914565 + ], + [ + 0.9577616771989089, + -0.03396654106921851, + -0.285330027285764, + -0.1511363929333374 + ], + [ + -0.016183112871320317, + -0.9970283649458686, + 0.06445022746333079, + 0.016462465087975022 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772195804830922.npz", + "transform_matrix": [ + [ + 0.3623204477966613, + 0.05530898866514927, + 0.9297016293756548, + -0.017160501545969375 + ], + [ + 0.9318506256817919, + -0.04231107057900046, + -0.36008913740510523, + -0.16567000856878852 + ], + [ + -0.01945005205353409, + -0.9968107025424113, + 0.06686988173238516, + 0.01703668596917768 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772195844807697.npz", + "transform_matrix": [ + [ + 0.5008071209394004, + 0.04795708476123409, + 0.8635706331577494, + -0.048744428853460905 + ], + [ + 0.8651656616027725, + -0.05780638187612441, + -0.49775974233596876, + -0.19235433638589872 + ], + [ + -0.026088418883387813, + -0.9964132816554556, + 0.0704406706452977, + 0.017950195170815152 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772195866448285.npz", + "transform_matrix": [ + [ + 0.5898277314716865, + 0.041240317939372134, + 0.8058609465967868, + -0.07439769990673617 + ], + [ + 0.8069255566937308, + -0.06867528495656708, + -0.5861952547702293, + -0.20757655771445718 + ], + [ + -0.031215270966078, + -0.9960240102709347, + 0.07378445404555688, + 0.01894868839250832 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772195884607109.npz", + "transform_matrix": [ + [ + 0.6601538333378768, + 0.0413406609996904, + 0.749420301005527, + -0.10036549677566538 + ], + [ + 0.7506843442493093, + -0.07069224594932119, + -0.6563631388966117, + -0.22233203177006405 + ], + [ + -0.0258830374628225, + -0.9958787294317274, + 0.07770154414409286, + 0.019275147559676933 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772195929915524.npz", + "transform_matrix": [ + [ + 0.7719628669472366, + 0.03496268896956454, + 0.6342216565484131, + -0.13997802473911158 + ], + [ + 0.6351157371478379, + -0.08398871418421808, + -0.7672467343282794, + -0.23537742042946658 + ], + [ + -0.02648268267706175, + -0.9950901436018248, + 0.0870415225704353, + 0.021280089367266556 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772195949897250.npz", + "transform_matrix": [ + [ + 0.8132268877261241, + 0.03186312212698906, + 0.580630954090365, + -0.16027318444290733 + ], + [ + 0.5813518037299009, + -0.08958542041889962, + -0.8080834329819928, + -0.23704362281423325 + ], + [ + -0.02630797178203703, + -0.9947060276888294, + 0.09137695615388795, + 0.022011946656855387 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772196037012271.npz", + "transform_matrix": [ + [ + 0.8948323894114544, + 0.024296013735720604, + 0.4454009176750651, + -0.213344190045993 + ], + [ + 0.4457463595697376, + -0.10269907225613777, + -0.8885638993747103, + -0.23527521544852686 + ], + [ + -0.024190448332435787, + -0.9936515948249073, + 0.10272831589205172, + 0.024830345405855513 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772196065982375.npz", + "transform_matrix": [ + [ + 0.9282916072022016, + 0.019872588650741214, + 0.3710387007070186, + -0.23882260025173063 + ], + [ + 0.3711972402475508, + -0.10875686035890968, + -0.9214525252624157, + -0.23314051429553379 + ], + [ + -0.02207489140555535, + -0.9931051873638521, + 0.10833473076056614, + 0.025877588082447604 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772196111467395.npz", + "transform_matrix": [ + [ + 0.9736179859036981, + 0.0025560576438236646, + 0.2279964625259145, + -0.2853719984937336 + ], + [ + 0.22680233124855376, + -0.12063596011438794, + -0.9656949297602733, + -0.22335107635320217 + ], + [ + -0.02507429091834164, + -0.9919280817279047, + 0.11803306034655284, + 0.027617884535878406 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772196140438461.npz", + "transform_matrix": [ + [ + 0.9896630350882573, + -0.006807665217071326, + 0.1431414998280345, + -0.3041895257601137 + ], + [ + 0.14129447014468602, + -0.12461186875406559, + -0.9813352996039661, + -0.21379387710771258 + ], + [ + -0.024555033831021086, + -0.9914163734192162, + 0.12236187478939824, + 0.027956449654252043 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772196185933036.npz", + "transform_matrix": [ + [ + 0.9992301303744404, + -0.026533055835313422, + -0.028858367302277484, + -0.3346155030722252 + ], + [ + -0.0321029135788806, + -0.13016719002749794, + -0.9902062203382911, + -0.19428949214974464 + ], + [ + -0.022551041919068253, + -0.9903703283177384, + 0.13091876666011468, + 0.02844224509423926 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772196216559505.npz", + "transform_matrix": [ + [ + 0.992362319994533, + -0.03629194706795451, + -0.11779984745657922, + -0.3477467671832681 + ], + [ + -0.1217298003785673, + -0.13349315655505295, + -0.9827842239794874, + -0.19194651149240205 + ], + [ + -0.019972019298897813, + -0.9896177844778171, + 0.13689139001429582, + 0.029047309663462403 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772196241855245.npz", + "transform_matrix": [ + [ + 0.9740996888973295, + -0.05267302830942507, + -0.21972181565065485, + -0.36172954888317893 + ], + [ + -0.22494919102112226, + -0.12702345349237656, + -0.9653085836563012, + -0.18094519518739696 + ], + [ + -0.02297079774584637, + -0.989733035709822, + 0.13558226163642478, + 0.028276281212936648 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772196280001075.npz", + "transform_matrix": [ + [ + 0.9174467925532044, + -0.07255817231591423, + -0.39087879459663166, + -0.39456008129568976 + ], + [ + -0.3974542542774043, + -0.1228698161134221, + -0.9086550421777622, + -0.14858603606600862 + ], + [ + -0.017930381776202636, + -0.9889990938025293, + 0.1415650729644126, + 0.028685938452087573 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772196299998913.npz", + "transform_matrix": [ + [ + 0.8800657229954864, + -0.08145120775179268, + -0.46744784515301163, + -0.40846745288603903 + ], + [ + -0.47462643319501957, + -0.1205540342233508, + -0.8712172933288629, + -0.1310728742750863 + ], + [ + -0.014631203676262054, + -0.9885915805892971, + 0.14475436950345436, + 0.028450321529243462 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772196366934821.npz", + "transform_matrix": [ + [ + 0.8014745568914703, + -0.09415677535200856, + -0.5901099416098193, + -0.432892475061012 + ], + [ + -0.5979805888020999, + -0.1136390754528174, + -0.7927985046436958, + -0.0951426055441195 + ], + [ + -0.007599346782840904, + -0.9882821205553277, + 0.1473827516088035, + 0.027576962775641034 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772196386919610.npz", + "transform_matrix": [ + [ + 0.7465343334659513, + -0.10180119380950022, + -0.6570011532496508, + -0.44375842945188565 + ], + [ + -0.6653326972788847, + -0.10777027581523921, + -0.7381539941183582, + -0.07354395895532102 + ], + [ + -0.00434636493662422, + -0.9881816494012946, + 0.1481858738866557, + 0.027347477378918423 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + } + ], + "w": 256, + "h": 192, + "fl_x": 118.6514575329715, + "fl_y": 118.7964934010577, + "cx": 130.6802784645003, + "cy": 100.360570246814, + "camera_angle_y": 1.3593266161827677 +} \ No newline at end of file diff --git a/codes/reconstruction/experiments/data/design_floor1/ten_views/transforms_train.json b/codes/reconstruction/experiments/data/design_floor1/ten_views/transforms_train.json new file mode 100644 index 0000000000000000000000000000000000000000..2f86619fbb8100d5ff1b3a3d59e9263e90a8a3cf --- /dev/null +++ b/codes/reconstruction/experiments/data/design_floor1/ten_views/transforms_train.json @@ -0,0 +1,302 @@ +{ + "camera_angle_x": 1.6465637264171746, + "frames": [ + { + "file_path": "RawDataHistogramMap_frame_0_1772195661597657.npz", + "transform_matrix": [ + [ + -1.8098711802660246e-20, + 0.05225645579500001, + 0.9978728127630002, + 0.049398541753000014 + ], + [ + 1.0, + 1.8870536117044263e-21, + 3.6034581119185794e-20, + -0.081712147 + ], + [ + -6.776263578034403e-21, + -0.997872812763, + 0.052256455795, + 0.013621837804 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772195728722633.npz", + "transform_matrix": [ + [ + 0.21221932990400108, + 0.05716485404100423, + 0.9748048211987232, + 0.01397887389408994 + ], + [ + 0.9771305618039331, + -0.02606334728423891, + -0.21087408360598225, + -0.1329926654653416 + ], + [ + -0.013372404564158778, + -0.9972631393040711, + 0.06138867204024217, + 0.015885495118871183 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772195824817889.npz", + "transform_matrix": [ + [ + 0.4352426866180689, + 0.05216064908846062, + 0.8981156567648689, + -0.03410700572092885 + ], + [ + 0.9000181928868519, + -0.050741801039342026, + -0.4325551300073444, + -0.18083904169904963 + ], + [ + -0.023044657041871103, + -0.9965868872997249, + 0.06903053094060327, + 0.017672736708587888 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772195911942879.npz", + "transform_matrix": [ + [ + 0.7249892051750605, + 0.039383626897398535, + 0.6871091104045031, + -0.11839670918337945 + ], + [ + 0.6883034860144199, + -0.0777524490762262, + -0.7206895674780969, + -0.22933427589597538 + ], + [ + -0.0250791451218711, + -0.9954317526675833, + 0.083477573941557, + 0.020298023824463732 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772195969894966.npz", + "transform_matrix": [ + [ + 0.8540179673756865, + 0.028563421568277375, + 0.5190628955654765, + -0.18317780238327275 + ], + [ + 0.519616577961243, + -0.09579960885698277, + -0.84835847194729, + -0.23773740391466786 + ], + [ + -0.025532788867663348, + -0.9942270633587498, + 0.09665661460159752, + 0.022890653407984882 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772196087812148.npz", + "transform_matrix": [ + [ + 0.9550725779278529, + 0.013900577027050682, + 0.2958204041821164, + -0.26611957696891814 + ], + [ + 0.2956537268806325, + -0.11413683823936038, + -0.9477211250604112, + -0.23078332445452432 + ], + [ + -0.020621461438258226, + -0.9926028630519039, + 0.11311872173763746, + 0.026456972179970818 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772196164104209.npz", + "transform_matrix": [ + [ + 0.9989353822942584, + -0.017249904085500114, + 0.042747046489641304, + -0.32193964657626406 + ], + [ + 0.04022717510840191, + -0.12784681702937162, + -0.9902122558566026, + -0.20345626460516875 + ], + [ + -0.022580442498581134, + -0.9908776512810745, + 0.12701679413208772, + 0.02825102020275152 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772196260016301.npz", + "transform_matrix": [ + [ + 0.9515356247263171, + -0.06319585669755508, + -0.30073669711722734, + -0.37715667185222007 + ], + [ + -0.3067457187436336, + -0.12485483284827126, + -0.9428372924923087, + -0.16685915362523646 + ], + [ + -0.02206850491448359, + -0.9893929664367388, + 0.1381888798586892, + 0.028346580468416118 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772196319805493.npz", + "transform_matrix": [ + [ + 0.8374153259858017, + -0.08862803432836681, + -0.5389126371044369, + -0.4242684600112441 + ], + [ + -0.5464692278699428, + -0.1171093690700808, + -0.8286080597719457, + -0.10971151513695715 + ], + [ + -0.010341895151957096, + -0.9883882611761904, + 0.14650167396286554, + 0.02796491198671353 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772196406917537.npz", + "transform_matrix": [ + [ + 0.693457804802343, + -0.10977451015092522, + -0.7115316113321397, + -0.450298126304269 + ], + [ + -0.7204880182132735, + -0.1006569142953442, + -0.6855907413373988, + -0.0529235944610994 + ], + [ + -0.0036453490689240843, + -0.9880782510254232, + 0.1488925420943991, + 0.027068714404347438 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + } + ], + "w": 256, + "h": 192, + "fl_x": 118.6514575329715, + "fl_y": 118.7964934010577, + "cx": 130.6802784645003, + "cy": 100.360570246814, + "camera_angle_y": 1.3593266161827677 +} \ No newline at end of file diff --git a/codes/reconstruction/experiments/data/design_floor1/three_views/transforms_test.json b/codes/reconstruction/experiments/data/design_floor1/three_views/transforms_test.json new file mode 100644 index 0000000000000000000000000000000000000000..abac9399256576ce7d5d18e9de5c18bd64376e9b --- /dev/null +++ b/codes/reconstruction/experiments/data/design_floor1/three_views/transforms_test.json @@ -0,0 +1,592 @@ +{ + "camera_angle_x": 1.6465637264171746, + "frames": [ + { + "file_path": "RawDataHistogramMap_frame_0_1772195683421466.npz", + "transform_matrix": [ + [ + 0.05952934156170293, + 0.054673978798180124, + 0.9959685158189008, + 0.04041923568818094 + ], + [ + 0.9982188570198786, + -0.00717912861334852, + -0.05917910872031087, + -0.09755549469905742 + ], + [ + -0.003920584542941435, + -0.9977174468648544, + 0.0550039654239877, + 0.014058813326669148 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772195708926196.npz", + "transform_matrix": [ + [ + 0.14611095339582167, + 0.05717959110194544, + 0.9868613894148891, + 0.024887442930526638 + ], + [ + 0.9892278411124873, + -0.017456693604031702, + -0.14522737432548138, + -0.11965797044337106 + ], + [ + -0.008936871135470826, + -0.9974500718500275, + 0.05911425760709587, + 0.015298356291131137 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772195786677057.npz", + "transform_matrix": [ + [ + 0.2871074303234434, + 0.057110429913988583, + 0.9554652433934121, + -0.0020618093318914565 + ], + [ + 0.9577616771989089, + -0.03396654106921851, + -0.285330027285764, + -0.1511363929333374 + ], + [ + -0.016183112871320317, + -0.9970283649458686, + 0.06445022746333079, + 0.016462465087975022 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772195804830922.npz", + "transform_matrix": [ + [ + 0.3623204477966613, + 0.05530898866514927, + 0.9297016293756548, + -0.017160501545969375 + ], + [ + 0.9318506256817919, + -0.04231107057900046, + -0.36008913740510523, + -0.16567000856878852 + ], + [ + -0.01945005205353409, + -0.9968107025424113, + 0.06686988173238516, + 0.01703668596917768 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772195844807697.npz", + "transform_matrix": [ + [ + 0.5008071209394004, + 0.04795708476123409, + 0.8635706331577494, + -0.048744428853460905 + ], + [ + 0.8651656616027725, + -0.05780638187612441, + -0.49775974233596876, + -0.19235433638589872 + ], + [ + -0.026088418883387813, + -0.9964132816554556, + 0.0704406706452977, + 0.017950195170815152 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772195866448285.npz", + "transform_matrix": [ + [ + 0.5898277314716865, + 0.041240317939372134, + 0.8058609465967868, + -0.07439769990673617 + ], + [ + 0.8069255566937308, + -0.06867528495656708, + -0.5861952547702293, + -0.20757655771445718 + ], + [ + -0.031215270966078, + -0.9960240102709347, + 0.07378445404555688, + 0.01894868839250832 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772195884607109.npz", + "transform_matrix": [ + [ + 0.6601538333378768, + 0.0413406609996904, + 0.749420301005527, + -0.10036549677566538 + ], + [ + 0.7506843442493093, + -0.07069224594932119, + -0.6563631388966117, + -0.22233203177006405 + ], + [ + -0.0258830374628225, + -0.9958787294317274, + 0.07770154414409286, + 0.019275147559676933 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772195929915524.npz", + "transform_matrix": [ + [ + 0.7719628669472366, + 0.03496268896956454, + 0.6342216565484131, + -0.13997802473911158 + ], + [ + 0.6351157371478379, + -0.08398871418421808, + -0.7672467343282794, + -0.23537742042946658 + ], + [ + -0.02648268267706175, + -0.9950901436018248, + 0.0870415225704353, + 0.021280089367266556 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772195949897250.npz", + "transform_matrix": [ + [ + 0.8132268877261241, + 0.03186312212698906, + 0.580630954090365, + -0.16027318444290733 + ], + [ + 0.5813518037299009, + -0.08958542041889962, + -0.8080834329819928, + -0.23704362281423325 + ], + [ + -0.02630797178203703, + -0.9947060276888294, + 0.09137695615388795, + 0.022011946656855387 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772196037012271.npz", + "transform_matrix": [ + [ + 0.8948323894114544, + 0.024296013735720604, + 0.4454009176750651, + -0.213344190045993 + ], + [ + 0.4457463595697376, + -0.10269907225613777, + -0.8885638993747103, + -0.23527521544852686 + ], + [ + -0.024190448332435787, + -0.9936515948249073, + 0.10272831589205172, + 0.024830345405855513 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772196065982375.npz", + "transform_matrix": [ + [ + 0.9282916072022016, + 0.019872588650741214, + 0.3710387007070186, + -0.23882260025173063 + ], + [ + 0.3711972402475508, + -0.10875686035890968, + -0.9214525252624157, + -0.23314051429553379 + ], + [ + -0.02207489140555535, + -0.9931051873638521, + 0.10833473076056614, + 0.025877588082447604 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772196111467395.npz", + "transform_matrix": [ + [ + 0.9736179859036981, + 0.0025560576438236646, + 0.2279964625259145, + -0.2853719984937336 + ], + [ + 0.22680233124855376, + -0.12063596011438794, + -0.9656949297602733, + -0.22335107635320217 + ], + [ + -0.02507429091834164, + -0.9919280817279047, + 0.11803306034655284, + 0.027617884535878406 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772196140438461.npz", + "transform_matrix": [ + [ + 0.9896630350882573, + -0.006807665217071326, + 0.1431414998280345, + -0.3041895257601137 + ], + [ + 0.14129447014468602, + -0.12461186875406559, + -0.9813352996039661, + -0.21379387710771258 + ], + [ + -0.024555033831021086, + -0.9914163734192162, + 0.12236187478939824, + 0.027956449654252043 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772196185933036.npz", + "transform_matrix": [ + [ + 0.9992301303744404, + -0.026533055835313422, + -0.028858367302277484, + -0.3346155030722252 + ], + [ + -0.0321029135788806, + -0.13016719002749794, + -0.9902062203382911, + -0.19428949214974464 + ], + [ + -0.022551041919068253, + -0.9903703283177384, + 0.13091876666011468, + 0.02844224509423926 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772196216559505.npz", + "transform_matrix": [ + [ + 0.992362319994533, + -0.03629194706795451, + -0.11779984745657922, + -0.3477467671832681 + ], + [ + -0.1217298003785673, + -0.13349315655505295, + -0.9827842239794874, + -0.19194651149240205 + ], + [ + -0.019972019298897813, + -0.9896177844778171, + 0.13689139001429582, + 0.029047309663462403 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772196241855245.npz", + "transform_matrix": [ + [ + 0.9740996888973295, + -0.05267302830942507, + -0.21972181565065485, + -0.36172954888317893 + ], + [ + -0.22494919102112226, + -0.12702345349237656, + -0.9653085836563012, + -0.18094519518739696 + ], + [ + -0.02297079774584637, + -0.989733035709822, + 0.13558226163642478, + 0.028276281212936648 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772196280001075.npz", + "transform_matrix": [ + [ + 0.9174467925532044, + -0.07255817231591423, + -0.39087879459663166, + -0.39456008129568976 + ], + [ + -0.3974542542774043, + -0.1228698161134221, + -0.9086550421777622, + -0.14858603606600862 + ], + [ + -0.017930381776202636, + -0.9889990938025293, + 0.1415650729644126, + 0.028685938452087573 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772196299998913.npz", + "transform_matrix": [ + [ + 0.8800657229954864, + -0.08145120775179268, + -0.46744784515301163, + -0.40846745288603903 + ], + [ + -0.47462643319501957, + -0.1205540342233508, + -0.8712172933288629, + -0.1310728742750863 + ], + [ + -0.014631203676262054, + -0.9885915805892971, + 0.14475436950345436, + 0.028450321529243462 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772196366934821.npz", + "transform_matrix": [ + [ + 0.8014745568914703, + -0.09415677535200856, + -0.5901099416098193, + -0.432892475061012 + ], + [ + -0.5979805888020999, + -0.1136390754528174, + -0.7927985046436958, + -0.0951426055441195 + ], + [ + -0.007599346782840904, + -0.9882821205553277, + 0.1473827516088035, + 0.027576962775641034 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772196386919610.npz", + "transform_matrix": [ + [ + 0.7465343334659513, + -0.10180119380950022, + -0.6570011532496508, + -0.44375842945188565 + ], + [ + -0.6653326972788847, + -0.10777027581523921, + -0.7381539941183582, + -0.07354395895532102 + ], + [ + -0.00434636493662422, + -0.9881816494012946, + 0.1481858738866557, + 0.027347477378918423 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + } + ], + "w": 256, + "h": 192, + "fl_x": 118.6514575329715, + "fl_y": 118.7964934010577, + "cx": 130.6802784645003, + "cy": 100.360570246814, + "camera_angle_y": 1.3593266161827677 +} \ No newline at end of file diff --git a/codes/reconstruction/experiments/data/design_floor1/three_views/transforms_train.json b/codes/reconstruction/experiments/data/design_floor1/three_views/transforms_train.json new file mode 100644 index 0000000000000000000000000000000000000000..7928dc0ca927e12f528aa48d6600fc73da879edc --- /dev/null +++ b/codes/reconstruction/experiments/data/design_floor1/three_views/transforms_train.json @@ -0,0 +1,99 @@ +{ + "camera_angle_x": 1.6465637264171746, + "frames": [ + { + "file_path": "RawDataHistogramMap_frame_0_1772195824817889.npz", + "transform_matrix": [ + [ + 0.4352426866180689, + 0.05216064908846062, + 0.8981156567648689, + -0.03410700572092885 + ], + [ + 0.9000181928868519, + -0.050741801039342026, + -0.4325551300073444, + -0.18083904169904963 + ], + [ + -0.023044657041871103, + -0.9965868872997249, + 0.06903053094060327, + 0.017672736708587888 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772196087812148.npz", + "transform_matrix": [ + [ + 0.9550725779278529, + 0.013900577027050682, + 0.2958204041821164, + -0.26611957696891814 + ], + [ + 0.2956537268806325, + -0.11413683823936038, + -0.9477211250604112, + -0.23078332445452432 + ], + [ + -0.020621461438258226, + -0.9926028630519039, + 0.11311872173763746, + 0.026456972179970818 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772196319805493.npz", + "transform_matrix": [ + [ + 0.8374153259858017, + -0.08862803432836681, + -0.5389126371044369, + -0.4242684600112441 + ], + [ + -0.5464692278699428, + -0.1171093690700808, + -0.8286080597719457, + -0.10971151513695715 + ], + [ + -0.010341895151957096, + -0.9883882611761904, + 0.14650167396286554, + 0.02796491198671353 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + } + ], + "w": 256, + "h": 192, + "fl_x": 118.6514575329715, + "fl_y": 118.7964934010577, + "cx": 130.6802784645003, + "cy": 100.360570246814, + "camera_angle_y": 1.3593266161827677 +} \ No newline at end of file diff --git a/codes/reconstruction/experiments/data/library_floor2/five_views/transforms_test.json b/codes/reconstruction/experiments/data/library_floor2/five_views/transforms_test.json new file mode 100644 index 0000000000000000000000000000000000000000..b252818f86b00147f3e0be13dce99e602038609e --- /dev/null +++ b/codes/reconstruction/experiments/data/library_floor2/five_views/transforms_test.json @@ -0,0 +1,302 @@ +{ + "camera_angle_x": 1.6465637264171746, + "frames": [ + { + "file_path": "RawDataHistogramMap_frame_0_1772199392175914.npz", + "transform_matrix": [ + [ + -0.03178634873209384, + 0.049931486866079004, + 0.9974862892020013, + 0.052419011119498905 + ], + [ + 0.9994921049904234, + 0.003856104037090967, + 0.0316088566092803, + -0.07140761092102735 + ], + [ + 0.0022715844902093294, + -0.9979844010327983, + 0.05002869838074924, + 0.012733398758568515 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772199434360597.npz", + "transform_matrix": [ + [ + -0.17544218876375062, + 0.04587832679807021, + 0.9826712895858892, + 0.06607260273404801 + ], + [ + 0.9844282079044276, + 0.019334491553205834, + 0.1745861926663092, + -0.04063411829515111 + ], + [ + 0.01100644737692899, + -0.9979991203354758, + 0.04855600454820706, + 0.011753323827159469 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772199487168857.npz", + "transform_matrix": [ + [ + -0.31288686446388425, + 0.037922681672340204, + 0.9483107540445286, + 0.07192586675522694 + ], + [ + 0.9495752313160696, + 0.033741562710764124, + 0.3114788079768613, + -0.0019171438870984603 + ], + [ + 0.020216085600132667, + -0.997950031206177, + 0.04656773097982117, + 0.011001844517711695 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772199723201375.npz", + "transform_matrix": [ + [ + -0.4684084620124152, + 0.028018912307575392, + 0.8823959678071502, + 0.07264060233113454 + ], + [ + 0.8829832539210248, + 0.049394521464610576, + 0.46643974150199685, + 0.041044238077290886 + ], + [ + 0.03056282071742625, + -0.9976251848395669, + 0.04787704219174877, + 0.011299478441876816 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772199785366866.npz", + "transform_matrix": [ + [ + -0.6692818756456348, + 0.008045557938958047, + 0.7424004283815193, + 0.06866385331999571 + ], + [ + 0.7416225490834012, + 0.06823632059593518, + 0.6668254679882826, + 0.0977791927176307 + ], + [ + 0.045362601593224694, + -0.9968750980803843, + 0.051636099823092516, + 0.012201684837718158 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772199805545220.npz", + "transform_matrix": [ + [ + -0.7301626568112715, + 7.675273352834466e-05, + 0.6827541813228235, + 0.06922451324675682 + ], + [ + 0.6814183225369783, + 0.07366350513401873, + 0.72761872997396, + 0.11316369161616238 + ], + [ + 0.050314653026771135, + -0.9965212339655323, + 0.05383864133761623, + 0.012778815151356556 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772199852852742.npz", + "transform_matrix": [ + [ + -0.8395263619812304, + -0.01788756281850372, + 0.542611359553467, + 0.056122122729285365 + ], + [ + 0.540026299199359, + 0.08231115576479311, + 0.8369709515574708, + 0.15268307172625162 + ], + [ + 0.059725067698708945, + -0.9956835824481971, + 0.05944263079911412, + 0.014150897420377178 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772199904032740.npz", + "transform_matrix": [ + [ + -0.9187486110742421, + -0.036377815129889135, + 0.3928623335122538, + 0.0178158895397591 + ], + [ + 0.3890250117189879, + 0.08677712362370817, + 0.9164278814297702, + 0.19742647123217422 + ], + [ + 0.06753169556734134, + -0.9948001171118602, + 0.06557448184508305, + 0.016562841125611794 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772199944374221.npz", + "transform_matrix": [ + [ + -0.9820226896614617, + -0.06237165661950643, + 0.17800866631628462, + -0.021692779880301674 + ], + [ + 0.17232329647059255, + 0.08868644175751791, + 0.9802884242362377, + 0.24593313001580921 + ], + [ + 0.07704621005336293, + -0.9933405151924135, + 0.07634400859621673, + 0.01863450257657484 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772199984529489.npz", + "transform_matrix": [ + [ + -0.9963854110954347, + -0.08261429517154179, + -0.01949432490770452, + -0.02715034220833344 + ], + [ + -0.026512495604841913, + 0.08441058382514137, + 0.9953159781405464, + 0.2736589305444172 + ], + [ + 0.08070439971273508, + -0.9922351632528513, + 0.08629578540305101, + 0.02039749672541153 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + } + ], + "w": 256, + "h": 192, + "fl_x": 118.6514575329715, + "fl_y": 118.7964934010577, + "cx": 130.6802784645003, + "cy": 100.360570246814, + "camera_angle_y": 1.3593266161827677 +} \ No newline at end of file diff --git a/codes/reconstruction/experiments/data/library_floor2/five_views/transforms_train.json b/codes/reconstruction/experiments/data/library_floor2/five_views/transforms_train.json new file mode 100644 index 0000000000000000000000000000000000000000..35f4236f59dfcbeb35df03c0c1c673a6e197f9c4 --- /dev/null +++ b/codes/reconstruction/experiments/data/library_floor2/five_views/transforms_train.json @@ -0,0 +1,157 @@ +{ + "camera_angle_x": 1.6465637264171746, + "frames": [ + { + "file_path": "RawDataHistogramMap_frame_0_1772199414180196.npz", + "transform_matrix": [ + [ + -0.1297298599714963, + 0.04791010326156881, + 0.9896369230551468, + 0.0614324253746381 + ], + [ + 0.9915144206221619, + 0.014648574264965866, + 0.1290693660663581, + -0.051983024904005234 + ], + [ + 0.008325690966769488, + -0.997983431175721, + 0.04940391576551891, + 0.012252166496863899 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772199523849733.npz", + "transform_matrix": [ + [ + -0.39527989598391394, + 0.03283766782505879, + 0.9172751683965351, + 0.07160434769855123 + ], + [ + 0.9181998528409046, + 0.04211425753693024, + 0.39356963437907033, + 0.02042141901052335 + ], + [ + 0.02574556415945921, + -0.9978120887760983, + 0.04679846110324564, + 0.011822346828942173 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772199832864200.npz", + "transform_matrix": [ + [ + -0.7919441293398622, + -0.009453914090168792, + 0.6100563557627082, + 0.06441091331535667 + ], + [ + 0.6080646466126907, + 0.07862823125431777, + 0.7893779544648044, + 0.13332411418798512 + ], + [ + 0.05551469664799834, + -0.9960969392493841, + 0.05652057521188819, + 0.013349803742936716 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772199924198002.npz", + "transform_matrix": [ + [ + -0.9553930393055582, + -0.048491820940731595, + 0.29110166690881417, + -0.005522304471838588 + ], + [ + 0.2864365072804607, + 0.08802017391732658, + 0.9533163697351382, + 0.22401803050038133 + ], + [ + 0.07196018165254385, + -0.9941739686338678, + 0.07020403365714539, + 0.017615946288473155 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772200006353347.npz", + "transform_matrix": [ + [ + -0.9887088508783545, + -0.09284007328791502, + -0.11747943483722886, + -0.04632061054317356 + ], + [ + -0.12520099106225285, + 0.08102592469776743, + 0.9880608339125488, + 0.29263277563612583 + ], + [ + 0.08233784082572862, + -0.9916130333666293, + 0.09173471808522415, + 0.021238060097061223 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + } + ], + "w": 256, + "h": 192, + "fl_x": 118.6514575329715, + "fl_y": 118.7964934010577, + "cx": 130.6802784645003, + "cy": 100.360570246814, + "camera_angle_y": 1.3593266161827677 +} \ No newline at end of file diff --git a/codes/reconstruction/experiments/data/library_floor2/scene.json b/codes/reconstruction/experiments/data/library_floor2/scene.json new file mode 100644 index 0000000000000000000000000000000000000000..ebb719b7182028bd7226a0d763b2b7cafe1d3102 --- /dev/null +++ b/codes/reconstruction/experiments/data/library_floor2/scene.json @@ -0,0 +1,14 @@ +{ + "scene": "library_floor2", + "aabb": [ + -17.63188387158054, + -26.10378096887485, + -2.4316682799260456, + 31.261932064420467, + 28.54275148395392, + 14.143160956846895 + ], + "aabb_source": "Supplied sp_merged_map.ply extrema, expanded by 5% or 0.5m per axis", + "test_frames": 10, + "train_frames": 10 +} \ No newline at end of file diff --git a/codes/reconstruction/experiments/data/library_floor2/ten_views/transforms_test.json b/codes/reconstruction/experiments/data/library_floor2/ten_views/transforms_test.json new file mode 100644 index 0000000000000000000000000000000000000000..b252818f86b00147f3e0be13dce99e602038609e --- /dev/null +++ b/codes/reconstruction/experiments/data/library_floor2/ten_views/transforms_test.json @@ -0,0 +1,302 @@ +{ + "camera_angle_x": 1.6465637264171746, + "frames": [ + { + "file_path": "RawDataHistogramMap_frame_0_1772199392175914.npz", + "transform_matrix": [ + [ + -0.03178634873209384, + 0.049931486866079004, + 0.9974862892020013, + 0.052419011119498905 + ], + [ + 0.9994921049904234, + 0.003856104037090967, + 0.0316088566092803, + -0.07140761092102735 + ], + [ + 0.0022715844902093294, + -0.9979844010327983, + 0.05002869838074924, + 0.012733398758568515 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772199434360597.npz", + "transform_matrix": [ + [ + -0.17544218876375062, + 0.04587832679807021, + 0.9826712895858892, + 0.06607260273404801 + ], + [ + 0.9844282079044276, + 0.019334491553205834, + 0.1745861926663092, + -0.04063411829515111 + ], + [ + 0.01100644737692899, + -0.9979991203354758, + 0.04855600454820706, + 0.011753323827159469 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772199487168857.npz", + "transform_matrix": [ + [ + -0.31288686446388425, + 0.037922681672340204, + 0.9483107540445286, + 0.07192586675522694 + ], + [ + 0.9495752313160696, + 0.033741562710764124, + 0.3114788079768613, + -0.0019171438870984603 + ], + [ + 0.020216085600132667, + -0.997950031206177, + 0.04656773097982117, + 0.011001844517711695 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772199723201375.npz", + "transform_matrix": [ + [ + -0.4684084620124152, + 0.028018912307575392, + 0.8823959678071502, + 0.07264060233113454 + ], + [ + 0.8829832539210248, + 0.049394521464610576, + 0.46643974150199685, + 0.041044238077290886 + ], + [ + 0.03056282071742625, + -0.9976251848395669, + 0.04787704219174877, + 0.011299478441876816 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772199785366866.npz", + "transform_matrix": [ + [ + -0.6692818756456348, + 0.008045557938958047, + 0.7424004283815193, + 0.06866385331999571 + ], + [ + 0.7416225490834012, + 0.06823632059593518, + 0.6668254679882826, + 0.0977791927176307 + ], + [ + 0.045362601593224694, + -0.9968750980803843, + 0.051636099823092516, + 0.012201684837718158 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772199805545220.npz", + "transform_matrix": [ + [ + -0.7301626568112715, + 7.675273352834466e-05, + 0.6827541813228235, + 0.06922451324675682 + ], + [ + 0.6814183225369783, + 0.07366350513401873, + 0.72761872997396, + 0.11316369161616238 + ], + [ + 0.050314653026771135, + -0.9965212339655323, + 0.05383864133761623, + 0.012778815151356556 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772199852852742.npz", + "transform_matrix": [ + [ + -0.8395263619812304, + -0.01788756281850372, + 0.542611359553467, + 0.056122122729285365 + ], + [ + 0.540026299199359, + 0.08231115576479311, + 0.8369709515574708, + 0.15268307172625162 + ], + [ + 0.059725067698708945, + -0.9956835824481971, + 0.05944263079911412, + 0.014150897420377178 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772199904032740.npz", + "transform_matrix": [ + [ + -0.9187486110742421, + -0.036377815129889135, + 0.3928623335122538, + 0.0178158895397591 + ], + [ + 0.3890250117189879, + 0.08677712362370817, + 0.9164278814297702, + 0.19742647123217422 + ], + [ + 0.06753169556734134, + -0.9948001171118602, + 0.06557448184508305, + 0.016562841125611794 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772199944374221.npz", + "transform_matrix": [ + [ + -0.9820226896614617, + -0.06237165661950643, + 0.17800866631628462, + -0.021692779880301674 + ], + [ + 0.17232329647059255, + 0.08868644175751791, + 0.9802884242362377, + 0.24593313001580921 + ], + [ + 0.07704621005336293, + -0.9933405151924135, + 0.07634400859621673, + 0.01863450257657484 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772199984529489.npz", + "transform_matrix": [ + [ + -0.9963854110954347, + -0.08261429517154179, + -0.01949432490770452, + -0.02715034220833344 + ], + [ + -0.026512495604841913, + 0.08441058382514137, + 0.9953159781405464, + 0.2736589305444172 + ], + [ + 0.08070439971273508, + -0.9922351632528513, + 0.08629578540305101, + 0.02039749672541153 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + } + ], + "w": 256, + "h": 192, + "fl_x": 118.6514575329715, + "fl_y": 118.7964934010577, + "cx": 130.6802784645003, + "cy": 100.360570246814, + "camera_angle_y": 1.3593266161827677 +} \ No newline at end of file diff --git a/codes/reconstruction/experiments/data/library_floor2/ten_views/transforms_train.json b/codes/reconstruction/experiments/data/library_floor2/ten_views/transforms_train.json new file mode 100644 index 0000000000000000000000000000000000000000..a961221e406906ff8259786f55c40f51805ffc11 --- /dev/null +++ b/codes/reconstruction/experiments/data/library_floor2/ten_views/transforms_train.json @@ -0,0 +1,302 @@ +{ + "camera_angle_x": 1.6465637264171746, + "frames": [ + { + "file_path": "RawDataHistogramMap_frame_0_1772199370165348.npz", + "transform_matrix": [ + [ + 8.049459976876023e-20, + 0.052256455795, + 0.997872812763, + 0.049398541753 + ], + [ + 0.9999999999999999, + 4.2063624945524355e-21, + 8.03233726834847e-20, + -0.08171214699999998 + ], + [ + 0.0, + -0.997872812763, + 0.052256455795, + 0.013621837804 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772199414180196.npz", + "transform_matrix": [ + [ + -0.1297298599714963, + 0.04791010326156881, + 0.9896369230551468, + 0.0614324253746381 + ], + [ + 0.9915144206221619, + 0.014648574264965866, + 0.1290693660663581, + -0.051983024904005234 + ], + [ + 0.008325690966769488, + -0.997983431175721, + 0.04940391576551891, + 0.012252166496863899 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772199454341439.npz", + "transform_matrix": [ + [ + -0.25783138015539936, + 0.0415082811057221, + 0.9645630698380092, + 0.06854686900938099 + ], + [ + 0.9660406406704765, + 0.028623767378304136, + 0.25660229197379725, + -0.016950948163044252 + ], + [ + 0.01698410963627255, + -0.9979672490440342, + 0.047478791920897816, + 0.011533300692296414 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772199523849733.npz", + "transform_matrix": [ + [ + -0.39527989598391394, + 0.03283766782505879, + 0.9172751683965351, + 0.07160434769855123 + ], + [ + 0.9181998528409046, + 0.04211425753693024, + 0.39356963437907033, + 0.02042141901052335 + ], + [ + 0.02574556415945921, + -0.9978120887760983, + 0.04679846110324564, + 0.011822346828942173 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772199761530745.npz", + "transform_matrix": [ + [ + -0.6080798279673477, + 0.014762114414017518, + 0.7931352968123482, + 0.07264735530521242 + ], + [ + 0.7928235358352496, + 0.062716691219468, + 0.605750123797487, + 0.07939464263159379 + ], + [ + 0.0408627439717296, + -0.9971607614844794, + 0.049840506553541324, + 0.011684969621665976 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772199832864200.npz", + "transform_matrix": [ + [ + -0.7919441293398622, + -0.009453914090168792, + 0.6100563557627082, + 0.06441091331535667 + ], + [ + 0.6080646466126907, + 0.07862823125431777, + 0.7893779544648044, + 0.13332411418798512 + ], + [ + 0.05551469664799834, + -0.9960969392493841, + 0.05652057521188819, + 0.013349803742936716 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772199874872611.npz", + "transform_matrix": [ + [ + -0.879641456713153, + -0.026473694486393126, + 0.47453807113881474, + 0.04117717186645429 + ], + [ + 0.47136836286972383, + 0.08484933069630515, + 0.877172089121158, + 0.17229360074756125 + ], + [ + 0.06358281306366723, + -0.9952791679747092, + 0.062158126825669215, + 0.015385526870418945 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772199924198002.npz", + "transform_matrix": [ + [ + -0.9553930393055582, + -0.048491820940731595, + 0.29110166690881417, + -0.005522304471838588 + ], + [ + 0.2864365072804607, + 0.08802017391732658, + 0.9533163697351382, + 0.22401803050038133 + ], + [ + 0.07196018165254385, + -0.9941739686338678, + 0.07020403365714539, + 0.017615946288473155 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772199964549424.npz", + "transform_matrix": [ + [ + -0.9942767295079669, + -0.07251623139119191, + 0.078344384109364, + -0.0162725249584027 + ], + [ + 0.07201855263132571, + 0.08671028674449137, + 0.9928662654209252, + 0.2570328990370976 + ], + [ + 0.07891206014190824, + -0.9928260723718482, + 0.08099150629193834, + 0.019535409677702245 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772200006353347.npz", + "transform_matrix": [ + [ + -0.9887088508783545, + -0.09284007328791502, + -0.11747943483722886, + -0.04632061054317356 + ], + [ + -0.12520099106225285, + 0.08102592469776743, + 0.9880608339125488, + 0.29263277563612583 + ], + [ + 0.08233784082572862, + -0.9916130333666293, + 0.09173471808522415, + 0.021238060097061223 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + } + ], + "w": 256, + "h": 192, + "fl_x": 118.6514575329715, + "fl_y": 118.7964934010577, + "cx": 130.6802784645003, + "cy": 100.360570246814, + "camera_angle_y": 1.3593266161827677 +} \ No newline at end of file diff --git a/codes/reconstruction/experiments/data/library_floor2/three_views/transforms_test.json b/codes/reconstruction/experiments/data/library_floor2/three_views/transforms_test.json new file mode 100644 index 0000000000000000000000000000000000000000..b252818f86b00147f3e0be13dce99e602038609e --- /dev/null +++ b/codes/reconstruction/experiments/data/library_floor2/three_views/transforms_test.json @@ -0,0 +1,302 @@ +{ + "camera_angle_x": 1.6465637264171746, + "frames": [ + { + "file_path": "RawDataHistogramMap_frame_0_1772199392175914.npz", + "transform_matrix": [ + [ + -0.03178634873209384, + 0.049931486866079004, + 0.9974862892020013, + 0.052419011119498905 + ], + [ + 0.9994921049904234, + 0.003856104037090967, + 0.0316088566092803, + -0.07140761092102735 + ], + [ + 0.0022715844902093294, + -0.9979844010327983, + 0.05002869838074924, + 0.012733398758568515 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772199434360597.npz", + "transform_matrix": [ + [ + -0.17544218876375062, + 0.04587832679807021, + 0.9826712895858892, + 0.06607260273404801 + ], + [ + 0.9844282079044276, + 0.019334491553205834, + 0.1745861926663092, + -0.04063411829515111 + ], + [ + 0.01100644737692899, + -0.9979991203354758, + 0.04855600454820706, + 0.011753323827159469 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772199487168857.npz", + "transform_matrix": [ + [ + -0.31288686446388425, + 0.037922681672340204, + 0.9483107540445286, + 0.07192586675522694 + ], + [ + 0.9495752313160696, + 0.033741562710764124, + 0.3114788079768613, + -0.0019171438870984603 + ], + [ + 0.020216085600132667, + -0.997950031206177, + 0.04656773097982117, + 0.011001844517711695 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772199723201375.npz", + "transform_matrix": [ + [ + -0.4684084620124152, + 0.028018912307575392, + 0.8823959678071502, + 0.07264060233113454 + ], + [ + 0.8829832539210248, + 0.049394521464610576, + 0.46643974150199685, + 0.041044238077290886 + ], + [ + 0.03056282071742625, + -0.9976251848395669, + 0.04787704219174877, + 0.011299478441876816 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772199785366866.npz", + "transform_matrix": [ + [ + -0.6692818756456348, + 0.008045557938958047, + 0.7424004283815193, + 0.06866385331999571 + ], + [ + 0.7416225490834012, + 0.06823632059593518, + 0.6668254679882826, + 0.0977791927176307 + ], + [ + 0.045362601593224694, + -0.9968750980803843, + 0.051636099823092516, + 0.012201684837718158 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772199805545220.npz", + "transform_matrix": [ + [ + -0.7301626568112715, + 7.675273352834466e-05, + 0.6827541813228235, + 0.06922451324675682 + ], + [ + 0.6814183225369783, + 0.07366350513401873, + 0.72761872997396, + 0.11316369161616238 + ], + [ + 0.050314653026771135, + -0.9965212339655323, + 0.05383864133761623, + 0.012778815151356556 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772199852852742.npz", + "transform_matrix": [ + [ + -0.8395263619812304, + -0.01788756281850372, + 0.542611359553467, + 0.056122122729285365 + ], + [ + 0.540026299199359, + 0.08231115576479311, + 0.8369709515574708, + 0.15268307172625162 + ], + [ + 0.059725067698708945, + -0.9956835824481971, + 0.05944263079911412, + 0.014150897420377178 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772199904032740.npz", + "transform_matrix": [ + [ + -0.9187486110742421, + -0.036377815129889135, + 0.3928623335122538, + 0.0178158895397591 + ], + [ + 0.3890250117189879, + 0.08677712362370817, + 0.9164278814297702, + 0.19742647123217422 + ], + [ + 0.06753169556734134, + -0.9948001171118602, + 0.06557448184508305, + 0.016562841125611794 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772199944374221.npz", + "transform_matrix": [ + [ + -0.9820226896614617, + -0.06237165661950643, + 0.17800866631628462, + -0.021692779880301674 + ], + [ + 0.17232329647059255, + 0.08868644175751791, + 0.9802884242362377, + 0.24593313001580921 + ], + [ + 0.07704621005336293, + -0.9933405151924135, + 0.07634400859621673, + 0.01863450257657484 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772199984529489.npz", + "transform_matrix": [ + [ + -0.9963854110954347, + -0.08261429517154179, + -0.01949432490770452, + -0.02715034220833344 + ], + [ + -0.026512495604841913, + 0.08441058382514137, + 0.9953159781405464, + 0.2736589305444172 + ], + [ + 0.08070439971273508, + -0.9922351632528513, + 0.08629578540305101, + 0.02039749672541153 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + } + ], + "w": 256, + "h": 192, + "fl_x": 118.6514575329715, + "fl_y": 118.7964934010577, + "cx": 130.6802784645003, + "cy": 100.360570246814, + "camera_angle_y": 1.3593266161827677 +} \ No newline at end of file diff --git a/codes/reconstruction/experiments/data/library_floor2/three_views/transforms_train.json b/codes/reconstruction/experiments/data/library_floor2/three_views/transforms_train.json new file mode 100644 index 0000000000000000000000000000000000000000..a115b8bb28f239c63b2c2dbb9faca85928485331 --- /dev/null +++ b/codes/reconstruction/experiments/data/library_floor2/three_views/transforms_train.json @@ -0,0 +1,99 @@ +{ + "camera_angle_x": 1.6465637264171746, + "frames": [ + { + "file_path": "RawDataHistogramMap_frame_0_1772199454341439.npz", + "transform_matrix": [ + [ + -0.25783138015539936, + 0.0415082811057221, + 0.9645630698380092, + 0.06854686900938099 + ], + [ + 0.9660406406704765, + 0.028623767378304136, + 0.25660229197379725, + -0.016950948163044252 + ], + [ + 0.01698410963627255, + -0.9979672490440342, + 0.047478791920897816, + 0.011533300692296414 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772199832864200.npz", + "transform_matrix": [ + [ + -0.7919441293398622, + -0.009453914090168792, + 0.6100563557627082, + 0.06441091331535667 + ], + [ + 0.6080646466126907, + 0.07862823125431777, + 0.7893779544648044, + 0.13332411418798512 + ], + [ + 0.05551469664799834, + -0.9960969392493841, + 0.05652057521188819, + 0.013349803742936716 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772199964549424.npz", + "transform_matrix": [ + [ + -0.9942767295079669, + -0.07251623139119191, + 0.078344384109364, + -0.0162725249584027 + ], + [ + 0.07201855263132571, + 0.08671028674449137, + 0.9928662654209252, + 0.2570328990370976 + ], + [ + 0.07891206014190824, + -0.9928260723718482, + 0.08099150629193834, + 0.019535409677702245 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + } + ], + "w": 256, + "h": 192, + "fl_x": 118.6514575329715, + "fl_y": 118.7964934010577, + "cx": 130.6802784645003, + "cy": 100.360570246814, + "camera_angle_y": 1.3593266161827677 +} \ No newline at end of file diff --git a/codes/reconstruction/experiments/data/material_building/five_views/transforms_test.json b/codes/reconstruction/experiments/data/material_building/five_views/transforms_test.json new file mode 100644 index 0000000000000000000000000000000000000000..0349d74500da4f06054c463d702c0d0a11c0ae56 --- /dev/null +++ b/codes/reconstruction/experiments/data/material_building/five_views/transforms_test.json @@ -0,0 +1,302 @@ +{ + "camera_angle_x": 1.6465637264171746, + "frames": [ + { + "file_path": "RawDataHistogramMap_frame_0_1772194680912229.npz", + "transform_matrix": [ + [ + -0.1783453877729263, + 0.048868417814408635, + 0.9820050949710349, + 0.062369449679464214 + ], + [ + 0.9838954005626116, + 0.020975626061114715, + 0.1773734153264743, + -0.024378602957809643 + ], + [ + 0.01194836440111628, + -0.9978240268080628, + 0.05182231768401807, + 0.012204980081161972 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772194722549993.npz", + "transform_matrix": [ + [ + -0.3721884067737317, + 0.0383287146053448, + 0.9266596036116744, + 0.06823076628557904 + ], + [ + 0.9277887508081081, + 0.04349227733389655, + 0.3702769004935528, + 0.023679084158853295 + ], + [ + 0.02615002365500097, + -0.9975571257190261, + 0.05174827165163771, + 0.011948083533535781 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772194798653532.npz", + "transform_matrix": [ + [ + -0.5645647705751811, + 0.023575142683274698, + 0.8244245944409818, + 0.07382744525343937 + ], + [ + 0.8244166701398183, + 0.06456882581186033, + 0.5618553128641353, + 0.05803945651731523 + ], + [ + 0.04004714497891473, + -0.9968730947339953, + 0.05588902495979857, + 0.012137788489840129 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772194878428607.npz", + "transform_matrix": [ + [ + -0.7329710519978563, + 0.0031081985324086167, + 0.6797358321891351, + 0.06333095998928186 + ], + [ + 0.6781139962765897, + 0.08264305405179807, + 0.7297334909339561, + 0.11152940041623935 + ], + [ + 0.053989304375439966, + -0.9958119061061016, + 0.0626826791966946, + 0.012822874391783132 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772194927589349.npz", + "transform_matrix": [ + [ + -0.8341882000073052, + -0.00900908819444051, + 0.5509871827730167, + 0.038316869262830094 + ], + [ + 0.5481495346811616, + 0.09608985018864062, + 0.8302024816077589, + 0.15571439524825134 + ], + [ + 0.0605155731807402, + -0.9945684816262892, + 0.07521869166614965, + 0.01603902022064978 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772194952889827.npz", + "transform_matrix": [ + [ + -0.8731951353068812, + -0.021670014641315054, + 0.4865180685141268, + 0.028237343219689848 + ], + [ + 0.48303643508595945, + 0.09435689360979252, + 0.8698321173122016, + 0.17251728001927535 + ], + [ + 0.06485412905777078, + -0.9945391267906695, + 0.07192457386213877, + 0.016660714148370975 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772194998190979.npz", + "transform_matrix": [ + [ + -0.9371910467706988, + -0.037719434453509684, + 0.3465044750728757, + 0.003666736726558942 + ], + [ + 0.34187094570776305, + 0.0979205475578851, + 0.9339134102576644, + 0.20564937418136445 + ], + [ + 0.06926181006673231, + -0.9937150991377081, + 0.07887508173795131, + 0.01919032925905126 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772195043489186.npz", + "transform_matrix": [ + [ + -0.9891461792762806, + -0.060310904773185105, + 0.13386423496015235, + -0.04971715550724197 + ], + [ + 0.12780081302204027, + 0.09641250294063865, + 0.9863454165891831, + 0.2489614144366978 + ], + [ + 0.07250371172592336, + -0.9927477583283478, + 0.08765827625408902, + 0.022608949516352762 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772195088784603.npz", + "transform_matrix": [ + [ + -0.9955959233416656, + -0.07786968867646253, + -0.05207415770518724, + -0.10839719790662784 + ], + [ + -0.05913987647881223, + 0.09068439883164738, + 0.9933604660826327, + 0.27644653964749993 + ], + [ + 0.07274085808897938, + -0.9920652896950751, + 0.09489022155724838, + 0.02571675439764755 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772195132243787.npz", + "transform_matrix": [ + [ + -0.9695581284642542, + -0.09175219042105479, + -0.22682039063345533, + -0.16145933841942867 + ], + [ + -0.23455001168340858, + 0.08202346725047366, + 0.9678961217341311, + 0.2895491576096141 + ], + [ + 0.07030880135658456, + -0.9916322776094723, + 0.10104699673275569, + 0.027332863348209772 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + } + ], + "w": 256, + "h": 192, + "fl_x": 118.6514575329715, + "fl_y": 118.7964934010577, + "cx": 130.6802784645003, + "cy": 100.360570246814, + "camera_angle_y": 1.3593266161827677 +} \ No newline at end of file diff --git a/codes/reconstruction/experiments/data/material_building/five_views/transforms_train.json b/codes/reconstruction/experiments/data/material_building/five_views/transforms_train.json new file mode 100644 index 0000000000000000000000000000000000000000..9e03b2384c7a24ee9ee7454b6f54032f3339deaf --- /dev/null +++ b/codes/reconstruction/experiments/data/material_building/five_views/transforms_train.json @@ -0,0 +1,157 @@ +{ + "camera_angle_x": 1.6465637264171746, + "frames": [ + { + "file_path": "RawDataHistogramMap_frame_0_1772194699075709.npz", + "transform_matrix": [ + [ + -0.2920841206870808, + 0.04410608072693327, + 0.9546475831144167, + 0.06612988577642441 + ], + [ + 0.9561837524010062, + 0.03432779583190068, + 0.2905237115247662, + 0.003136976461491789 + ], + [ + 0.01998744823094583, + -0.9976758710623538, + 0.052200121833867144, + 0.012446695338442528 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772194818648405.npz", + "transform_matrix": [ + [ + -0.6458913482306221, + 0.014627476445254117, + 0.7627090057851004, + 0.07163542548267135 + ], + [ + 0.7620033735242441, + 0.0733865085368896, + 0.6429060880275989, + 0.08207353220871412 + ], + [ + 0.04663930765455252, + -0.9964343154073926, + 0.058545897338259704, + 0.011959056546274022 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772194974716502.npz", + "transform_matrix": [ + [ + -0.9095894341568251, + -0.03002668602083167, + 0.41410528746851105, + 0.01634230166321189 + ], + [ + 0.409992212065966, + 0.09699452151021501, + 0.9062200006374707, + 0.18930051283393112 + ], + [ + 0.06747923618061659, + -0.9940680804388604, + 0.07591448451409781, + 0.017985929979698112 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772195066955650.npz", + "transform_matrix": [ + [ + -0.9959781580149839, + -0.0680953542978108, + 0.058123461633213476, + -0.07297304135093552 + ], + [ + 0.051589395845985944, + 0.09453303050336338, + 0.9934218495027544, + 0.26095335152731725 + ], + [ + 0.07325327974446706, + -0.99242501806973, + 0.09063983540417289, + 0.024044538899211168 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772195153896821.npz", + "transform_matrix": [ + [ + -0.9486823666361671, + -0.09652602853650198, + -0.3008863225976172, + -0.17824702531849518 + ], + [ + -0.3088172945628015, + 0.07797447419517889, + 0.9471946064406377, + 0.29191747153723946 + ], + [ + 0.06807088814247618, + -0.9915057210186713, + 0.10378191570422798, + 0.028165446806813994 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + } + ], + "w": 256, + "h": 192, + "fl_x": 118.6514575329715, + "fl_y": 118.7964934010577, + "cx": 130.6802784645003, + "cy": 100.360570246814, + "camera_angle_y": 1.3593266161827677 +} \ No newline at end of file diff --git a/codes/reconstruction/experiments/data/material_building/scene.json b/codes/reconstruction/experiments/data/material_building/scene.json new file mode 100644 index 0000000000000000000000000000000000000000..af8e0934539acda7506432db7260e103ef352b57 --- /dev/null +++ b/codes/reconstruction/experiments/data/material_building/scene.json @@ -0,0 +1,14 @@ +{ + "scene": "material_building", + "aabb": [ + -21.936215820825865, + -15.048036471817184, + -3.1634726836544877, + 51.53267220748983, + 44.92686420662045, + 28.44400145778288 + ], + "aabb_source": "Supplied sp_merged_map.ply extrema, expanded by 5% or 0.5m per axis", + "test_frames": 10, + "train_frames": 10 +} \ No newline at end of file diff --git a/codes/reconstruction/experiments/data/material_building/ten_views/transforms_test.json b/codes/reconstruction/experiments/data/material_building/ten_views/transforms_test.json new file mode 100644 index 0000000000000000000000000000000000000000..0349d74500da4f06054c463d702c0d0a11c0ae56 --- /dev/null +++ b/codes/reconstruction/experiments/data/material_building/ten_views/transforms_test.json @@ -0,0 +1,302 @@ +{ + "camera_angle_x": 1.6465637264171746, + "frames": [ + { + "file_path": "RawDataHistogramMap_frame_0_1772194680912229.npz", + "transform_matrix": [ + [ + -0.1783453877729263, + 0.048868417814408635, + 0.9820050949710349, + 0.062369449679464214 + ], + [ + 0.9838954005626116, + 0.020975626061114715, + 0.1773734153264743, + -0.024378602957809643 + ], + [ + 0.01194836440111628, + -0.9978240268080628, + 0.05182231768401807, + 0.012204980081161972 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772194722549993.npz", + "transform_matrix": [ + [ + -0.3721884067737317, + 0.0383287146053448, + 0.9266596036116744, + 0.06823076628557904 + ], + [ + 0.9277887508081081, + 0.04349227733389655, + 0.3702769004935528, + 0.023679084158853295 + ], + [ + 0.02615002365500097, + -0.9975571257190261, + 0.05174827165163771, + 0.011948083533535781 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772194798653532.npz", + "transform_matrix": [ + [ + -0.5645647705751811, + 0.023575142683274698, + 0.8244245944409818, + 0.07382744525343937 + ], + [ + 0.8244166701398183, + 0.06456882581186033, + 0.5618553128641353, + 0.05803945651731523 + ], + [ + 0.04004714497891473, + -0.9968730947339953, + 0.05588902495979857, + 0.012137788489840129 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772194878428607.npz", + "transform_matrix": [ + [ + -0.7329710519978563, + 0.0031081985324086167, + 0.6797358321891351, + 0.06333095998928186 + ], + [ + 0.6781139962765897, + 0.08264305405179807, + 0.7297334909339561, + 0.11152940041623935 + ], + [ + 0.053989304375439966, + -0.9958119061061016, + 0.0626826791966946, + 0.012822874391783132 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772194927589349.npz", + "transform_matrix": [ + [ + -0.8341882000073052, + -0.00900908819444051, + 0.5509871827730167, + 0.038316869262830094 + ], + [ + 0.5481495346811616, + 0.09608985018864062, + 0.8302024816077589, + 0.15571439524825134 + ], + [ + 0.0605155731807402, + -0.9945684816262892, + 0.07521869166614965, + 0.01603902022064978 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772194952889827.npz", + "transform_matrix": [ + [ + -0.8731951353068812, + -0.021670014641315054, + 0.4865180685141268, + 0.028237343219689848 + ], + [ + 0.48303643508595945, + 0.09435689360979252, + 0.8698321173122016, + 0.17251728001927535 + ], + [ + 0.06485412905777078, + -0.9945391267906695, + 0.07192457386213877, + 0.016660714148370975 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772194998190979.npz", + "transform_matrix": [ + [ + -0.9371910467706988, + -0.037719434453509684, + 0.3465044750728757, + 0.003666736726558942 + ], + [ + 0.34187094570776305, + 0.0979205475578851, + 0.9339134102576644, + 0.20564937418136445 + ], + [ + 0.06926181006673231, + -0.9937150991377081, + 0.07887508173795131, + 0.01919032925905126 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772195043489186.npz", + "transform_matrix": [ + [ + -0.9891461792762806, + -0.060310904773185105, + 0.13386423496015235, + -0.04971715550724197 + ], + [ + 0.12780081302204027, + 0.09641250294063865, + 0.9863454165891831, + 0.2489614144366978 + ], + [ + 0.07250371172592336, + -0.9927477583283478, + 0.08765827625408902, + 0.022608949516352762 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772195088784603.npz", + "transform_matrix": [ + [ + -0.9955959233416656, + -0.07786968867646253, + -0.05207415770518724, + -0.10839719790662784 + ], + [ + -0.05913987647881223, + 0.09068439883164738, + 0.9933604660826327, + 0.27644653964749993 + ], + [ + 0.07274085808897938, + -0.9920652896950751, + 0.09489022155724838, + 0.02571675439764755 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772195132243787.npz", + "transform_matrix": [ + [ + -0.9695581284642542, + -0.09175219042105479, + -0.22682039063345533, + -0.16145933841942867 + ], + [ + -0.23455001168340858, + 0.08202346725047366, + 0.9678961217341311, + 0.2895491576096141 + ], + [ + 0.07030880135658456, + -0.9916322776094723, + 0.10104699673275569, + 0.027332863348209772 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + } + ], + "w": 256, + "h": 192, + "fl_x": 118.6514575329715, + "fl_y": 118.7964934010577, + "cx": 130.6802784645003, + "cy": 100.360570246814, + "camera_angle_y": 1.3593266161827677 +} \ No newline at end of file diff --git a/codes/reconstruction/experiments/data/material_building/ten_views/transforms_train.json b/codes/reconstruction/experiments/data/material_building/ten_views/transforms_train.json new file mode 100644 index 0000000000000000000000000000000000000000..93a26f6d181be91eea2b4db1410e11616678e04d --- /dev/null +++ b/codes/reconstruction/experiments/data/material_building/ten_views/transforms_train.json @@ -0,0 +1,302 @@ +{ + "camera_angle_x": 1.6465637264171746, + "frames": [ + { + "file_path": "RawDataHistogramMap_frame_0_1772194630111926.npz", + "transform_matrix": [ + [ + 2.727446090158847e-19, + 0.05225645579499999, + 0.9978728127629999, + 0.04939854175299999 + ], + [ + 0.9999999999999999, + 2.9227372413644517e-21, + 5.581166934567681e-20, + -0.08171214699999998 + ], + [ + -1.0842021724855044e-19, + -0.997872812763, + 0.052256455795, + 0.013621837804 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772194699075709.npz", + "transform_matrix": [ + [ + -0.2920841206870808, + 0.04410608072693327, + 0.9546475831144167, + 0.06612988577642441 + ], + [ + 0.9561837524010062, + 0.03432779583190068, + 0.2905237115247662, + 0.003136976461491789 + ], + [ + 0.01998744823094583, + -0.9976758710623538, + 0.052200121833867144, + 0.012446695338442528 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772194742540049.npz", + "transform_matrix": [ + [ + -0.49514987090349005, + 0.029389264635998343, + 0.8676498199333296, + 0.07156317605482106 + ], + [ + 0.8680940984460462, + 0.05720034468156726, + 0.49271333280730495, + 0.044982301113374874 + ], + [ + 0.03520286334090676, + -0.9971686313338666, + 0.05383539047289269, + 0.012060109122788078 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772194818648405.npz", + "transform_matrix": [ + [ + -0.6458913482306221, + 0.014627476445254117, + 0.7627090057851004, + 0.07163542548267135 + ], + [ + 0.7620033735242441, + 0.0733865085368896, + 0.6429060880275989, + 0.08207353220871412 + ], + [ + 0.04663930765455252, + -0.9964343154073926, + 0.058545897338259704, + 0.011959056546274022 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772194898424505.npz", + "transform_matrix": [ + [ + -0.8000299168859816, + -0.0071796133127157435, + 0.5994612393653066, + 0.04987524731935124 + ], + [ + 0.5970133449491654, + 0.08938117836045267, + 0.7966231279970448, + 0.13974723056408525 + ], + [ + 0.059390218386650435, + -0.9952086945617827, + 0.06722129173561793, + 0.014278465799020607 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772194974716502.npz", + "transform_matrix": [ + [ + -0.9095894341568251, + -0.03002668602083167, + 0.41410528746851105, + 0.01634230166321189 + ], + [ + 0.409992212065966, + 0.09699452151021501, + 0.9062200006374707, + 0.18930051283393112 + ], + [ + 0.06747923618061659, + -0.9940680804388604, + 0.07591448451409781, + 0.017985929979698112 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772195023491325.npz", + "transform_matrix": [ + [ + -0.9658282272685985, + -0.04750612318680369, + 0.25459174383314026, + -0.015002172232951666 + ], + [ + 0.24931649179703538, + 0.09815769679453513, + 0.9626950021539215, + 0.22519068547527482 + ], + [ + 0.0708316477940011, + -0.9932719277436287, + 0.08295941431602324, + 0.020585192116764524 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772195066955650.npz", + "transform_matrix": [ + [ + -0.9959781580149839, + -0.0680953542978108, + 0.058123461633213476, + -0.07297304135093552 + ], + [ + 0.051589395845985944, + 0.09453303050336338, + 0.9934218495027544, + 0.26095335152731725 + ], + [ + 0.07325327974446706, + -0.99242501806973, + 0.09063983540417289, + 0.024044538899211168 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772195110419948.npz", + "transform_matrix": [ + [ + -0.9854087319476837, + -0.0860441813834632, + -0.14670385723052473, + -0.13946070984464037 + ], + [ + -0.1542070017451025, + 0.0865179174509739, + 0.9834896351177673, + 0.2842701165325932 + ], + [ + 0.07204048593699412, + -0.9917620361930549, + 0.09852412655487482, + 0.026664544596334595 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772195153896821.npz", + "transform_matrix": [ + [ + -0.9486823666361671, + -0.09652602853650198, + -0.3008863225976172, + -0.17824702531849518 + ], + [ + -0.3088172945628015, + 0.07797447419517889, + 0.9471946064406377, + 0.29191747153723946 + ], + [ + 0.06807088814247618, + -0.9915057210186713, + 0.10378191570422798, + 0.028165446806813994 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + } + ], + "w": 256, + "h": 192, + "fl_x": 118.6514575329715, + "fl_y": 118.7964934010577, + "cx": 130.6802784645003, + "cy": 100.360570246814, + "camera_angle_y": 1.3593266161827677 +} \ No newline at end of file diff --git a/codes/reconstruction/experiments/data/material_building/three_views/transforms_test.json b/codes/reconstruction/experiments/data/material_building/three_views/transforms_test.json new file mode 100644 index 0000000000000000000000000000000000000000..0349d74500da4f06054c463d702c0d0a11c0ae56 --- /dev/null +++ b/codes/reconstruction/experiments/data/material_building/three_views/transforms_test.json @@ -0,0 +1,302 @@ +{ + "camera_angle_x": 1.6465637264171746, + "frames": [ + { + "file_path": "RawDataHistogramMap_frame_0_1772194680912229.npz", + "transform_matrix": [ + [ + -0.1783453877729263, + 0.048868417814408635, + 0.9820050949710349, + 0.062369449679464214 + ], + [ + 0.9838954005626116, + 0.020975626061114715, + 0.1773734153264743, + -0.024378602957809643 + ], + [ + 0.01194836440111628, + -0.9978240268080628, + 0.05182231768401807, + 0.012204980081161972 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772194722549993.npz", + "transform_matrix": [ + [ + -0.3721884067737317, + 0.0383287146053448, + 0.9266596036116744, + 0.06823076628557904 + ], + [ + 0.9277887508081081, + 0.04349227733389655, + 0.3702769004935528, + 0.023679084158853295 + ], + [ + 0.02615002365500097, + -0.9975571257190261, + 0.05174827165163771, + 0.011948083533535781 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772194798653532.npz", + "transform_matrix": [ + [ + -0.5645647705751811, + 0.023575142683274698, + 0.8244245944409818, + 0.07382744525343937 + ], + [ + 0.8244166701398183, + 0.06456882581186033, + 0.5618553128641353, + 0.05803945651731523 + ], + [ + 0.04004714497891473, + -0.9968730947339953, + 0.05588902495979857, + 0.012137788489840129 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772194878428607.npz", + "transform_matrix": [ + [ + -0.7329710519978563, + 0.0031081985324086167, + 0.6797358321891351, + 0.06333095998928186 + ], + [ + 0.6781139962765897, + 0.08264305405179807, + 0.7297334909339561, + 0.11152940041623935 + ], + [ + 0.053989304375439966, + -0.9958119061061016, + 0.0626826791966946, + 0.012822874391783132 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772194927589349.npz", + "transform_matrix": [ + [ + -0.8341882000073052, + -0.00900908819444051, + 0.5509871827730167, + 0.038316869262830094 + ], + [ + 0.5481495346811616, + 0.09608985018864062, + 0.8302024816077589, + 0.15571439524825134 + ], + [ + 0.0605155731807402, + -0.9945684816262892, + 0.07521869166614965, + 0.01603902022064978 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772194952889827.npz", + "transform_matrix": [ + [ + -0.8731951353068812, + -0.021670014641315054, + 0.4865180685141268, + 0.028237343219689848 + ], + [ + 0.48303643508595945, + 0.09435689360979252, + 0.8698321173122016, + 0.17251728001927535 + ], + [ + 0.06485412905777078, + -0.9945391267906695, + 0.07192457386213877, + 0.016660714148370975 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772194998190979.npz", + "transform_matrix": [ + [ + -0.9371910467706988, + -0.037719434453509684, + 0.3465044750728757, + 0.003666736726558942 + ], + [ + 0.34187094570776305, + 0.0979205475578851, + 0.9339134102576644, + 0.20564937418136445 + ], + [ + 0.06926181006673231, + -0.9937150991377081, + 0.07887508173795131, + 0.01919032925905126 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772195043489186.npz", + "transform_matrix": [ + [ + -0.9891461792762806, + -0.060310904773185105, + 0.13386423496015235, + -0.04971715550724197 + ], + [ + 0.12780081302204027, + 0.09641250294063865, + 0.9863454165891831, + 0.2489614144366978 + ], + [ + 0.07250371172592336, + -0.9927477583283478, + 0.08765827625408902, + 0.022608949516352762 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772195088784603.npz", + "transform_matrix": [ + [ + -0.9955959233416656, + -0.07786968867646253, + -0.05207415770518724, + -0.10839719790662784 + ], + [ + -0.05913987647881223, + 0.09068439883164738, + 0.9933604660826327, + 0.27644653964749993 + ], + [ + 0.07274085808897938, + -0.9920652896950751, + 0.09489022155724838, + 0.02571675439764755 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772195132243787.npz", + "transform_matrix": [ + [ + -0.9695581284642542, + -0.09175219042105479, + -0.22682039063345533, + -0.16145933841942867 + ], + [ + -0.23455001168340858, + 0.08202346725047366, + 0.9678961217341311, + 0.2895491576096141 + ], + [ + 0.07030880135658456, + -0.9916322776094723, + 0.10104699673275569, + 0.027332863348209772 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + } + ], + "w": 256, + "h": 192, + "fl_x": 118.6514575329715, + "fl_y": 118.7964934010577, + "cx": 130.6802784645003, + "cy": 100.360570246814, + "camera_angle_y": 1.3593266161827677 +} \ No newline at end of file diff --git a/codes/reconstruction/experiments/data/material_building/three_views/transforms_train.json b/codes/reconstruction/experiments/data/material_building/three_views/transforms_train.json new file mode 100644 index 0000000000000000000000000000000000000000..4fc97ac9245ba6c20168267b4d51c8482afcb276 --- /dev/null +++ b/codes/reconstruction/experiments/data/material_building/three_views/transforms_train.json @@ -0,0 +1,99 @@ +{ + "camera_angle_x": 1.6465637264171746, + "frames": [ + { + "file_path": "RawDataHistogramMap_frame_0_1772194742540049.npz", + "transform_matrix": [ + [ + -0.49514987090349005, + 0.029389264635998343, + 0.8676498199333296, + 0.07156317605482106 + ], + [ + 0.8680940984460462, + 0.05720034468156726, + 0.49271333280730495, + 0.044982301113374874 + ], + [ + 0.03520286334090676, + -0.9971686313338666, + 0.05383539047289269, + 0.012060109122788078 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772194974716502.npz", + "transform_matrix": [ + [ + -0.9095894341568251, + -0.03002668602083167, + 0.41410528746851105, + 0.01634230166321189 + ], + [ + 0.409992212065966, + 0.09699452151021501, + 0.9062200006374707, + 0.18930051283393112 + ], + [ + 0.06747923618061659, + -0.9940680804388604, + 0.07591448451409781, + 0.017985929979698112 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772195110419948.npz", + "transform_matrix": [ + [ + -0.9854087319476837, + -0.0860441813834632, + -0.14670385723052473, + -0.13946070984464037 + ], + [ + -0.1542070017451025, + 0.0865179174509739, + 0.9834896351177673, + 0.2842701165325932 + ], + [ + 0.07204048593699412, + -0.9917620361930549, + 0.09852412655487482, + 0.026664544596334595 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + } + ], + "w": 256, + "h": 192, + "fl_x": 118.6514575329715, + "fl_y": 118.7964934010577, + "cx": 130.6802784645003, + "cy": 100.360570246814, + "camera_angle_y": 1.3593266161827677 +} \ No newline at end of file diff --git a/codes/reconstruction/experiments/data/parking/five_views/transforms_test.json b/codes/reconstruction/experiments/data/parking/five_views/transforms_test.json new file mode 100644 index 0000000000000000000000000000000000000000..f8434fe791e9f73e4d7bcaecf94d44d2df391c5b --- /dev/null +++ b/codes/reconstruction/experiments/data/parking/five_views/transforms_test.json @@ -0,0 +1,650 @@ +{ + "camera_angle_x": 1.6465637264171746, + "frames": [ + { + "file_path": "RawDataHistogramMap_frame_0_1772204643902520.npz", + "transform_matrix": [ + [ + 0.09851898018967631, + 0.054806851866020086, + 0.9928674894684724, + 0.033425259262180464 + ], + [ + 0.9951166854732681, + -0.011507283229089012, + -0.09795695148494472, + -0.1066062169316089 + ], + [ + -0.006065709775776786, + -0.9976696241968154, + 0.05567289857862149, + 0.014803090556893474 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772204665731335.npz", + "transform_matrix": [ + [ + 0.2071533849481761, + 0.055724840268519135, + 0.9759755600695242, + 0.01230330070190085 + ], + [ + 0.9782473200659312, + -0.02295341053930119, + -0.20600958960697405, + -0.13412402425429884 + ], + [ + -0.010938733397252102, + -0.9974210599067257, + 0.05926755234310188, + 0.01630287235407802 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772204709381726.npz", + "transform_matrix": [ + [ + 0.33929365744584544, + 0.055704183372220856, + 0.9383137141142759, + -0.016208892946210415 + ], + [ + 0.9405356775252566, + -0.03759171775951879, + -0.33734879230776404, + -0.16215191801549209 + ], + [ + -0.016506160035754353, + -0.996977830412751, + 0.06514640325728194, + 0.01777895952912255 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772204731014416.npz", + "transform_matrix": [ + [ + 0.41256318252740604, + 0.05397985947971317, + 0.9086348267996083, + -0.032228304471477 + ], + [ + 0.9107119681330051, + -0.0462139949273628, + -0.41013267556146193, + -0.17589551833585218 + ], + [ + -0.019882945510296034, + -0.9967102533169793, + 0.06822629689085079, + 0.01869614363851875 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772204749353959.npz", + "transform_matrix": [ + [ + 0.48353513822773175, + 0.05215441703636139, + 0.8731035175991202, + -0.050803864180544764 + ], + [ + 0.8750173621280845, + -0.05524107760096673, + -0.4805590947151764, + -0.19001594604613106 + ], + [ + -0.02320314792215415, + -0.9963479451240297, + 0.07234702251211726, + 0.01990508230117214 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772204803834836.npz", + "transform_matrix": [ + [ + 0.6186974689110923, + 0.04425363732562991, + 0.7837840525093718, + -0.08829683534417254 + ], + [ + 0.785104493158177, + -0.07128787672373144, + -0.6147733121536167, + -0.21736954187256857 + ], + [ + -0.02871196241724576, + -0.9957110734743633, + 0.07884935839596316, + 0.021542860441180745 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772204821799425.npz", + "transform_matrix": [ + [ + 0.6850111659888427, + 0.03921753345861266, + 0.7269218691903662, + -0.11195235961154971 + ], + [ + 0.7278495253820978, + -0.08003694162141756, + -0.6805253973694247, + -0.22946626596154138 + ], + [ + -0.031539988453755476, + -0.995257233417124, + 0.08337066181677596, + 0.022573358326397217 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772204861782054.npz", + "transform_matrix": [ + [ + 0.8012949631014668, + 0.027294486464465386, + 0.5971914791086929, + -0.1612544017931528 + ], + [ + 0.5972394089244353, + -0.09504472679375538, + -0.7957979238567957, + -0.24118951170606315 + ], + [ + -0.0350923144835265, + -0.9943351540306411, + 0.09246020381212487, + 0.024591884919267268 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772204881771954.npz", + "transform_matrix": [ + [ + 0.834163114428888, + 0.023024379840475097, + 0.5506175670678456, + -0.17489375998178575 + ], + [ + 0.5503576265832022, + -0.0994741821331353, + -0.8283431576738004, + -0.24076286428062132 + ], + [ + -0.03575445969389594, + -0.9940098855875134, + 0.09564933661599657, + 0.025326401663071537 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772204901761910.npz", + "transform_matrix": [ + [ + 0.8665844444549414, + 0.01799718866240649, + 0.4983263941898032, + -0.1925336451351085 + ], + [ + 0.4977047996268785, + -0.10390851298142288, + -0.8604360176163679, + -0.24024120532077692 + ], + [ + -0.036350145214156804, + -0.9936599064841217, + 0.09900278817321527, + 0.02634573140281997 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772204950724647.npz", + "transform_matrix": [ + [ + 0.9407583607212338, + 0.0031696589857487167, + 0.33880525676879975, + -0.2375296928153855 + ], + [ + 0.3371961632799654, + -0.11386223459387483, + -0.9338028440769862, + -0.23945157382045806 + ], + [ + -0.03567147603291905, + -0.9927266655122141, + 0.10818564601349112, + 0.0285643107218869 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772204972551993.npz", + "transform_matrix": [ + [ + 0.9690994516751804, + -0.005518872817909033, + 0.24642110808545675, + -0.27095869671972633 + ], + [ + 0.24425467520322486, + -0.11799650969543028, + -0.9617629623433127, + -0.2360568791559032 + ], + [ + -0.03443699179995407, + -0.992233467167033, + 0.11300234235780045, + 0.029864262101688015 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772205014174448.npz", + "transform_matrix": [ + [ + 0.9981650121300355, + -0.024438013205889786, + 0.05535180285727172, + -0.3259575730528292 + ], + [ + 0.051891511281206344, + -0.12588410117335033, + -0.9899219374831487, + -0.21583449543822764 + ], + [ + -0.031207044339304938, + -0.9909777314380597, + 0.12438497993671185, + 0.03185659969961317 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772205035998298.npz", + "transform_matrix": [ + [ + 0.9993871040040914, + -0.03151176854719435, + -0.015184309276272392, + -0.34124025213795206 + ], + [ + -0.019120169658122327, + -0.12803185291146144, + -0.9908197145467755, + -0.20632814254553888 + ], + [ + -0.029322951122929864, + -0.9905027716805652, + 0.12855589306231313, + 0.032221780295620964 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772205057822191.npz", + "transform_matrix": [ + [ + 0.9942186927077892, + -0.04042090851831212, + -0.09938725817791655, + -0.360142767771198 + ], + [ + -0.10393354452536796, + -0.12984525622134727, + -0.9853097609944208, + -0.1961821979370283 + ], + [ + -0.02696311170479721, + -0.989943052511185, + 0.13329566918993946, + 0.032648715912862156 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772205099638905.npz", + "transform_matrix": [ + [ + 0.9560614894423473, + -0.061788404615096625, + -0.2863530324220796, + -0.3899397553406625 + ], + [ + -0.29237107292716996, + -0.12906450519890802, + -0.9468221859702375, + -0.17176119608978638 + ], + [ + -0.021577398376435526, + -0.9889415726809537, + 0.14145874522638122, + 0.0332337204739723 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772205119633839.npz", + "transform_matrix": [ + [ + 0.9317799819616297, + -0.0693705496706111, + -0.3560527969435162, + -0.4001637861990495 + ], + [ + -0.3625545724542031, + -0.12798894466707558, + -0.9224172486615234, + -0.1602717124662178 + ], + [ + -0.018445791068241003, + -0.988578496885908, + 0.14440814652991704, + 0.03358461901961266 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772205161447645.npz", + "transform_matrix": [ + [ + 0.8609412540404654, + -0.08660601501515991, + -0.5008856547307693, + -0.4247698369818209 + ], + [ + -0.5085794953862262, + -0.12472038982516323, + -0.8512728892596412, + -0.12632434656714314 + ], + [ + -0.011271821677176783, + -0.9876361223390172, + 0.15142297223431334, + 0.03368077453578199 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772205179606309.npz", + "transform_matrix": [ + [ + 0.8196334150344035, + -0.0932598533107862, + -0.5648053562244523, + -0.43640921906404667 + ], + [ + -0.5728522088609932, + -0.12234437555255663, + -0.8098466518965691, + -0.10786074986179203 + ], + [ + -0.00643519713169077, + -0.9873273728378564, + 0.15370165131152913, + 0.03345049447821467 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772205197752181.npz", + "transform_matrix": [ + [ + 0.7677547666201356, + -0.10103002918035595, + -0.6322356174499247, + -0.4468477377871367 + ], + [ + -0.6407423941063874, + -0.11898872534521861, + -0.7578887966478886, + -0.0871945364978531 + ], + [ + -0.001342656648918895, + -0.9869728993586064, + 0.15608838383150428, + 0.03338197776816174 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772205243062306.npz", + "transform_matrix": [ + [ + 0.6587190381043833, + -0.11509759290921213, + -0.742954789870674, + -0.46052786474792995 + ], + [ + -0.7523584826692599, + -0.10966001480435435, + -0.6490548248757009, + -0.05355478472131717 + ], + [ + 0.006778081915005405, + -0.9865131083180868, + 0.15882978983049445, + 0.032556280699926596 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772205263047733.npz", + "transform_matrix": [ + [ + 0.5907213038149425, + -0.12255375263709342, + -0.7968939097151438, + -0.469086215894427 + ], + [ + -0.8067962791991103, + -0.1035677826957982, + -0.5812255903419741, + -0.03965561407519564 + ], + [ + 0.011318351896308804, + -0.9862733798120275, + 0.16005560725677842, + 0.03229576772721637 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + } + ], + "w": 256, + "h": 192, + "fl_x": 118.6514575329715, + "fl_y": 118.7964934010577, + "cx": 130.6802784645003, + "cy": 100.360570246814, + "camera_angle_y": 1.3593266161827677 +} \ No newline at end of file diff --git a/codes/reconstruction/experiments/data/parking/five_views/transforms_train.json b/codes/reconstruction/experiments/data/parking/five_views/transforms_train.json new file mode 100644 index 0000000000000000000000000000000000000000..597bbb2032376147415c143f0b097c2711923b4b --- /dev/null +++ b/codes/reconstruction/experiments/data/parking/five_views/transforms_train.json @@ -0,0 +1,157 @@ +{ + "camera_angle_x": 1.6465637264171746, + "frames": [ + { + "file_path": "RawDataHistogramMap_frame_0_1772204685724063.npz", + "transform_matrix": [ + [ + 0.2789323515355935, + 0.05601117990078256, + 0.9579449725881727, + -0.0016643619945319633 + ], + [ + 0.9602129697814134, + -0.0305024643670919, + -0.2773845258080521, + -0.15177472492307378 + ], + [ + -0.013703865527000904, + -0.9972027050792879, + 0.06229078550703479, + 0.017078668876519442 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772204841797329.npz", + "transform_matrix": [ + [ + 0.7534140004846246, + 0.032362288477633526, + 0.6562493516759446, + -0.13921085965943894 + ], + [ + 0.6566623162231474, + -0.08876864543200212, + -0.7483653299829671, + -0.23754975264964592 + ], + [ + -0.034087333808996055, + -0.9947631363779293, + 0.0881306355825309, + 0.02350364184048692 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772204990713086.npz", + "transform_matrix": [ + [ + 0.9909426548538043, + -0.01694646484642593, + 0.13310927274773632, + -0.30230761985539695 + ], + [ + 0.1301537094496267, + -0.12279538886747239, + -0.9831011777832119, + -0.2261046715120434 + ], + [ + -0.0330555094922783, + -0.9915215567126565, + 0.11947754338631808, + 0.031010302854967836 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772205139615820.npz", + "transform_matrix": [ + [ + 0.898187397709132, + -0.0779950407815793, + -0.4322991897583784, + -0.4107721258648257 + ], + [ + -0.43936864772579626, + -0.12649785435626532, + -0.8886662076508707, + -0.14545103143311947 + ], + [ + -0.014648890473368884, + -0.9881274988990726, + 0.1478873542175633, + 0.033653117019485715 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772205286519323.npz", + "transform_matrix": [ + [ + 0.5384539097072798, + -0.12830546542910556, + -0.8321817244486024, + -0.4685315877487767 + ], + [ + -0.8425464052883139, + -0.09782791576490735, + -0.5292490299498058, + -0.025553180767348013 + ], + [ + 0.013525607442503066, + -0.9861279298660552, + 0.1607791323982643, + 0.0320221947010636 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + } + ], + "w": 256, + "h": 192, + "fl_x": 118.6514575329715, + "fl_y": 118.7964934010577, + "cx": 130.6802784645003, + "cy": 100.360570246814, + "camera_angle_y": 1.3593266161827677 +} \ No newline at end of file diff --git a/codes/reconstruction/experiments/data/parking/scene.json b/codes/reconstruction/experiments/data/parking/scene.json new file mode 100644 index 0000000000000000000000000000000000000000..65175e04186ed8b824a323127477b2110c1e46bb --- /dev/null +++ b/codes/reconstruction/experiments/data/parking/scene.json @@ -0,0 +1,14 @@ +{ + "scene": "parking", + "aabb": [ + -46.33451768251152, + -49.11938606704143, + -4.275095302772504, + 31.554913468233828, + 16.090618526235094, + 11.492297885954583 + ], + "aabb_source": "Supplied sp_merged_map.ply extrema, expanded by 5% or 0.5m per axis", + "test_frames": 22, + "train_frames": 10 +} \ No newline at end of file diff --git a/codes/reconstruction/experiments/data/parking/ten_views/transforms_test.json b/codes/reconstruction/experiments/data/parking/ten_views/transforms_test.json new file mode 100644 index 0000000000000000000000000000000000000000..f8434fe791e9f73e4d7bcaecf94d44d2df391c5b --- /dev/null +++ b/codes/reconstruction/experiments/data/parking/ten_views/transforms_test.json @@ -0,0 +1,650 @@ +{ + "camera_angle_x": 1.6465637264171746, + "frames": [ + { + "file_path": "RawDataHistogramMap_frame_0_1772204643902520.npz", + "transform_matrix": [ + [ + 0.09851898018967631, + 0.054806851866020086, + 0.9928674894684724, + 0.033425259262180464 + ], + [ + 0.9951166854732681, + -0.011507283229089012, + -0.09795695148494472, + -0.1066062169316089 + ], + [ + -0.006065709775776786, + -0.9976696241968154, + 0.05567289857862149, + 0.014803090556893474 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772204665731335.npz", + "transform_matrix": [ + [ + 0.2071533849481761, + 0.055724840268519135, + 0.9759755600695242, + 0.01230330070190085 + ], + [ + 0.9782473200659312, + -0.02295341053930119, + -0.20600958960697405, + -0.13412402425429884 + ], + [ + -0.010938733397252102, + -0.9974210599067257, + 0.05926755234310188, + 0.01630287235407802 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772204709381726.npz", + "transform_matrix": [ + [ + 0.33929365744584544, + 0.055704183372220856, + 0.9383137141142759, + -0.016208892946210415 + ], + [ + 0.9405356775252566, + -0.03759171775951879, + -0.33734879230776404, + -0.16215191801549209 + ], + [ + -0.016506160035754353, + -0.996977830412751, + 0.06514640325728194, + 0.01777895952912255 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772204731014416.npz", + "transform_matrix": [ + [ + 0.41256318252740604, + 0.05397985947971317, + 0.9086348267996083, + -0.032228304471477 + ], + [ + 0.9107119681330051, + -0.0462139949273628, + -0.41013267556146193, + -0.17589551833585218 + ], + [ + -0.019882945510296034, + -0.9967102533169793, + 0.06822629689085079, + 0.01869614363851875 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772204749353959.npz", + "transform_matrix": [ + [ + 0.48353513822773175, + 0.05215441703636139, + 0.8731035175991202, + -0.050803864180544764 + ], + [ + 0.8750173621280845, + -0.05524107760096673, + -0.4805590947151764, + -0.19001594604613106 + ], + [ + -0.02320314792215415, + -0.9963479451240297, + 0.07234702251211726, + 0.01990508230117214 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772204803834836.npz", + "transform_matrix": [ + [ + 0.6186974689110923, + 0.04425363732562991, + 0.7837840525093718, + -0.08829683534417254 + ], + [ + 0.785104493158177, + -0.07128787672373144, + -0.6147733121536167, + -0.21736954187256857 + ], + [ + -0.02871196241724576, + -0.9957110734743633, + 0.07884935839596316, + 0.021542860441180745 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772204821799425.npz", + "transform_matrix": [ + [ + 0.6850111659888427, + 0.03921753345861266, + 0.7269218691903662, + -0.11195235961154971 + ], + [ + 0.7278495253820978, + -0.08003694162141756, + -0.6805253973694247, + -0.22946626596154138 + ], + [ + -0.031539988453755476, + -0.995257233417124, + 0.08337066181677596, + 0.022573358326397217 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772204861782054.npz", + "transform_matrix": [ + [ + 0.8012949631014668, + 0.027294486464465386, + 0.5971914791086929, + -0.1612544017931528 + ], + [ + 0.5972394089244353, + -0.09504472679375538, + -0.7957979238567957, + -0.24118951170606315 + ], + [ + -0.0350923144835265, + -0.9943351540306411, + 0.09246020381212487, + 0.024591884919267268 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772204881771954.npz", + "transform_matrix": [ + [ + 0.834163114428888, + 0.023024379840475097, + 0.5506175670678456, + -0.17489375998178575 + ], + [ + 0.5503576265832022, + -0.0994741821331353, + -0.8283431576738004, + -0.24076286428062132 + ], + [ + -0.03575445969389594, + -0.9940098855875134, + 0.09564933661599657, + 0.025326401663071537 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772204901761910.npz", + "transform_matrix": [ + [ + 0.8665844444549414, + 0.01799718866240649, + 0.4983263941898032, + -0.1925336451351085 + ], + [ + 0.4977047996268785, + -0.10390851298142288, + -0.8604360176163679, + -0.24024120532077692 + ], + [ + -0.036350145214156804, + -0.9936599064841217, + 0.09900278817321527, + 0.02634573140281997 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772204950724647.npz", + "transform_matrix": [ + [ + 0.9407583607212338, + 0.0031696589857487167, + 0.33880525676879975, + -0.2375296928153855 + ], + [ + 0.3371961632799654, + -0.11386223459387483, + -0.9338028440769862, + -0.23945157382045806 + ], + [ + -0.03567147603291905, + -0.9927266655122141, + 0.10818564601349112, + 0.0285643107218869 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772204972551993.npz", + "transform_matrix": [ + [ + 0.9690994516751804, + -0.005518872817909033, + 0.24642110808545675, + -0.27095869671972633 + ], + [ + 0.24425467520322486, + -0.11799650969543028, + -0.9617629623433127, + -0.2360568791559032 + ], + [ + -0.03443699179995407, + -0.992233467167033, + 0.11300234235780045, + 0.029864262101688015 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772205014174448.npz", + "transform_matrix": [ + [ + 0.9981650121300355, + -0.024438013205889786, + 0.05535180285727172, + -0.3259575730528292 + ], + [ + 0.051891511281206344, + -0.12588410117335033, + -0.9899219374831487, + -0.21583449543822764 + ], + [ + -0.031207044339304938, + -0.9909777314380597, + 0.12438497993671185, + 0.03185659969961317 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772205035998298.npz", + "transform_matrix": [ + [ + 0.9993871040040914, + -0.03151176854719435, + -0.015184309276272392, + -0.34124025213795206 + ], + [ + -0.019120169658122327, + -0.12803185291146144, + -0.9908197145467755, + -0.20632814254553888 + ], + [ + -0.029322951122929864, + -0.9905027716805652, + 0.12855589306231313, + 0.032221780295620964 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772205057822191.npz", + "transform_matrix": [ + [ + 0.9942186927077892, + -0.04042090851831212, + -0.09938725817791655, + -0.360142767771198 + ], + [ + -0.10393354452536796, + -0.12984525622134727, + -0.9853097609944208, + -0.1961821979370283 + ], + [ + -0.02696311170479721, + -0.989943052511185, + 0.13329566918993946, + 0.032648715912862156 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772205099638905.npz", + "transform_matrix": [ + [ + 0.9560614894423473, + -0.061788404615096625, + -0.2863530324220796, + -0.3899397553406625 + ], + [ + -0.29237107292716996, + -0.12906450519890802, + -0.9468221859702375, + -0.17176119608978638 + ], + [ + -0.021577398376435526, + -0.9889415726809537, + 0.14145874522638122, + 0.0332337204739723 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772205119633839.npz", + "transform_matrix": [ + [ + 0.9317799819616297, + -0.0693705496706111, + -0.3560527969435162, + -0.4001637861990495 + ], + [ + -0.3625545724542031, + -0.12798894466707558, + -0.9224172486615234, + -0.1602717124662178 + ], + [ + -0.018445791068241003, + -0.988578496885908, + 0.14440814652991704, + 0.03358461901961266 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772205161447645.npz", + "transform_matrix": [ + [ + 0.8609412540404654, + -0.08660601501515991, + -0.5008856547307693, + -0.4247698369818209 + ], + [ + -0.5085794953862262, + -0.12472038982516323, + -0.8512728892596412, + -0.12632434656714314 + ], + [ + -0.011271821677176783, + -0.9876361223390172, + 0.15142297223431334, + 0.03368077453578199 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772205179606309.npz", + "transform_matrix": [ + [ + 0.8196334150344035, + -0.0932598533107862, + -0.5648053562244523, + -0.43640921906404667 + ], + [ + -0.5728522088609932, + -0.12234437555255663, + -0.8098466518965691, + -0.10786074986179203 + ], + [ + -0.00643519713169077, + -0.9873273728378564, + 0.15370165131152913, + 0.03345049447821467 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772205197752181.npz", + "transform_matrix": [ + [ + 0.7677547666201356, + -0.10103002918035595, + -0.6322356174499247, + -0.4468477377871367 + ], + [ + -0.6407423941063874, + -0.11898872534521861, + -0.7578887966478886, + -0.0871945364978531 + ], + [ + -0.001342656648918895, + -0.9869728993586064, + 0.15608838383150428, + 0.03338197776816174 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772205243062306.npz", + "transform_matrix": [ + [ + 0.6587190381043833, + -0.11509759290921213, + -0.742954789870674, + -0.46052786474792995 + ], + [ + -0.7523584826692599, + -0.10966001480435435, + -0.6490548248757009, + -0.05355478472131717 + ], + [ + 0.006778081915005405, + -0.9865131083180868, + 0.15882978983049445, + 0.032556280699926596 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772205263047733.npz", + "transform_matrix": [ + [ + 0.5907213038149425, + -0.12255375263709342, + -0.7968939097151438, + -0.469086215894427 + ], + [ + -0.8067962791991103, + -0.1035677826957982, + -0.5812255903419741, + -0.03965561407519564 + ], + [ + 0.011318351896308804, + -0.9862733798120275, + 0.16005560725677842, + 0.03229576772721637 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + } + ], + "w": 256, + "h": 192, + "fl_x": 118.6514575329715, + "fl_y": 118.7964934010577, + "cx": 130.6802784645003, + "cy": 100.360570246814, + "camera_angle_y": 1.3593266161827677 +} \ No newline at end of file diff --git a/codes/reconstruction/experiments/data/parking/ten_views/transforms_train.json b/codes/reconstruction/experiments/data/parking/ten_views/transforms_train.json new file mode 100644 index 0000000000000000000000000000000000000000..b6f8369d9db81c8e1797ea5a1cbdc6d53921d467 --- /dev/null +++ b/codes/reconstruction/experiments/data/parking/ten_views/transforms_train.json @@ -0,0 +1,302 @@ +{ + "camera_angle_x": 1.6465637264171746, + "frames": [ + { + "file_path": "RawDataHistogramMap_frame_0_1772204627583351.npz", + "transform_matrix": [ + [ + -6.88214269644119e-21, + 0.05225645579499999, + 0.9978728127629999, + 0.04939854175299999 + ], + [ + 1.0, + -3.610196024591206e-22, + -6.893916563758469e-21, + -0.081712147 + ], + [ + 0.0, + -0.997872812763, + 0.052256455795, + 0.013621837804 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772204685724063.npz", + "transform_matrix": [ + [ + 0.2789323515355935, + 0.05601117990078256, + 0.9579449725881727, + -0.0016643619945319633 + ], + [ + 0.9602129697814134, + -0.0305024643670919, + -0.2773845258080521, + -0.15177472492307378 + ], + [ + -0.013703865527000904, + -0.9972027050792879, + 0.06229078550703479, + 0.017078668876519442 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772204771190212.npz", + "transform_matrix": [ + [ + 0.5600740381468303, + 0.047924273311342025, + 0.826424674766987, + -0.0695857255302666 + ], + [ + 0.8280017110358067, + -0.06492177201443765, + -0.5565255619536066, + -0.20313839691788654 + ], + [ + -0.02702292204183048, + -0.9959765635645651, + 0.07604237931771285, + 0.020812059684097373 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772204841797329.npz", + "transform_matrix": [ + [ + 0.7534140004846246, + 0.032362288477633526, + 0.6562493516759446, + -0.13921085965943894 + ], + [ + 0.6566623162231474, + -0.08876864543200212, + -0.7483653299829671, + -0.23754975264964592 + ], + [ + -0.034087333808996055, + -0.9947631363779293, + 0.0881306355825309, + 0.02350364184048692 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772204921743964.npz", + "transform_matrix": [ + [ + 0.9041858327294406, + 0.01077057043060657, + 0.4266788203317561, + -0.21298001640285802 + ], + [ + 0.4255773014346519, + -0.10806638224755885, + -0.8977536637477176, + -0.24013118497611796 + ], + [ + -0.036495758588729985, + -0.993320964977745, + 0.10229580212133622, + 0.027392088356577225 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772204990713086.npz", + "transform_matrix": [ + [ + 0.9909426548538043, + -0.01694646484642593, + 0.13310927274773632, + -0.30230761985539695 + ], + [ + 0.1301537094496267, + -0.12279538886747239, + -0.9831011777832119, + -0.2261046715120434 + ], + [ + -0.0330555094922783, + -0.9915215567126565, + 0.11947754338631808, + 0.031010302854967836 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772205079650279.npz", + "transform_matrix": [ + [ + 0.9830795913141425, + -0.048986554247825234, + -0.1763628690010334, + -0.37210389459718063 + ], + [ + -0.18149616993173195, + -0.13028214202743485, + -0.9739695232707792, + -0.18773040104229138 + ], + [ + -0.02477211015900019, + -0.989498746131325, + 0.13696858691399488, + 0.03268475212625365 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772205139615820.npz", + "transform_matrix": [ + [ + 0.898187397709132, + -0.0779950407815793, + -0.4322991897583784, + -0.4107721258648257 + ], + [ + -0.43936864772579626, + -0.12649785435626532, + -0.8886662076508707, + -0.14545103143311947 + ], + [ + -0.014648890473368884, + -0.9881274988990726, + 0.1478873542175633, + 0.033653117019485715 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772205219392090.npz", + "transform_matrix": [ + [ + 0.703242157026333, + -0.11006797032227322, + -0.7018316567580194, + -0.45491774267805374 + ], + [ + -0.7109433574503059, + -0.11326685671827451, + -0.6935264019088805, + -0.06790616543150385 + ], + [ + 0.0031640287986481083, + -0.9866795572535673, + 0.15790612100680848, + 0.03303514026422001 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772205286519323.npz", + "transform_matrix": [ + [ + 0.5384539097072798, + -0.12830546542910556, + -0.8321817244486024, + -0.4685315877487767 + ], + [ + -0.8425464052883139, + -0.09782791576490735, + -0.5292490299498058, + -0.025553180767348013 + ], + [ + 0.013525607442503066, + -0.9861279298660552, + 0.1607791323982643, + 0.0320221947010636 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + } + ], + "w": 256, + "h": 192, + "fl_x": 118.6514575329715, + "fl_y": 118.7964934010577, + "cx": 130.6802784645003, + "cy": 100.360570246814, + "camera_angle_y": 1.3593266161827677 +} \ No newline at end of file diff --git a/codes/reconstruction/experiments/data/parking/three_views/transforms_test.json b/codes/reconstruction/experiments/data/parking/three_views/transforms_test.json new file mode 100644 index 0000000000000000000000000000000000000000..f8434fe791e9f73e4d7bcaecf94d44d2df391c5b --- /dev/null +++ b/codes/reconstruction/experiments/data/parking/three_views/transforms_test.json @@ -0,0 +1,650 @@ +{ + "camera_angle_x": 1.6465637264171746, + "frames": [ + { + "file_path": "RawDataHistogramMap_frame_0_1772204643902520.npz", + "transform_matrix": [ + [ + 0.09851898018967631, + 0.054806851866020086, + 0.9928674894684724, + 0.033425259262180464 + ], + [ + 0.9951166854732681, + -0.011507283229089012, + -0.09795695148494472, + -0.1066062169316089 + ], + [ + -0.006065709775776786, + -0.9976696241968154, + 0.05567289857862149, + 0.014803090556893474 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772204665731335.npz", + "transform_matrix": [ + [ + 0.2071533849481761, + 0.055724840268519135, + 0.9759755600695242, + 0.01230330070190085 + ], + [ + 0.9782473200659312, + -0.02295341053930119, + -0.20600958960697405, + -0.13412402425429884 + ], + [ + -0.010938733397252102, + -0.9974210599067257, + 0.05926755234310188, + 0.01630287235407802 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772204709381726.npz", + "transform_matrix": [ + [ + 0.33929365744584544, + 0.055704183372220856, + 0.9383137141142759, + -0.016208892946210415 + ], + [ + 0.9405356775252566, + -0.03759171775951879, + -0.33734879230776404, + -0.16215191801549209 + ], + [ + -0.016506160035754353, + -0.996977830412751, + 0.06514640325728194, + 0.01777895952912255 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772204731014416.npz", + "transform_matrix": [ + [ + 0.41256318252740604, + 0.05397985947971317, + 0.9086348267996083, + -0.032228304471477 + ], + [ + 0.9107119681330051, + -0.0462139949273628, + -0.41013267556146193, + -0.17589551833585218 + ], + [ + -0.019882945510296034, + -0.9967102533169793, + 0.06822629689085079, + 0.01869614363851875 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772204749353959.npz", + "transform_matrix": [ + [ + 0.48353513822773175, + 0.05215441703636139, + 0.8731035175991202, + -0.050803864180544764 + ], + [ + 0.8750173621280845, + -0.05524107760096673, + -0.4805590947151764, + -0.19001594604613106 + ], + [ + -0.02320314792215415, + -0.9963479451240297, + 0.07234702251211726, + 0.01990508230117214 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772204803834836.npz", + "transform_matrix": [ + [ + 0.6186974689110923, + 0.04425363732562991, + 0.7837840525093718, + -0.08829683534417254 + ], + [ + 0.785104493158177, + -0.07128787672373144, + -0.6147733121536167, + -0.21736954187256857 + ], + [ + -0.02871196241724576, + -0.9957110734743633, + 0.07884935839596316, + 0.021542860441180745 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772204821799425.npz", + "transform_matrix": [ + [ + 0.6850111659888427, + 0.03921753345861266, + 0.7269218691903662, + -0.11195235961154971 + ], + [ + 0.7278495253820978, + -0.08003694162141756, + -0.6805253973694247, + -0.22946626596154138 + ], + [ + -0.031539988453755476, + -0.995257233417124, + 0.08337066181677596, + 0.022573358326397217 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772204861782054.npz", + "transform_matrix": [ + [ + 0.8012949631014668, + 0.027294486464465386, + 0.5971914791086929, + -0.1612544017931528 + ], + [ + 0.5972394089244353, + -0.09504472679375538, + -0.7957979238567957, + -0.24118951170606315 + ], + [ + -0.0350923144835265, + -0.9943351540306411, + 0.09246020381212487, + 0.024591884919267268 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772204881771954.npz", + "transform_matrix": [ + [ + 0.834163114428888, + 0.023024379840475097, + 0.5506175670678456, + -0.17489375998178575 + ], + [ + 0.5503576265832022, + -0.0994741821331353, + -0.8283431576738004, + -0.24076286428062132 + ], + [ + -0.03575445969389594, + -0.9940098855875134, + 0.09564933661599657, + 0.025326401663071537 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772204901761910.npz", + "transform_matrix": [ + [ + 0.8665844444549414, + 0.01799718866240649, + 0.4983263941898032, + -0.1925336451351085 + ], + [ + 0.4977047996268785, + -0.10390851298142288, + -0.8604360176163679, + -0.24024120532077692 + ], + [ + -0.036350145214156804, + -0.9936599064841217, + 0.09900278817321527, + 0.02634573140281997 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772204950724647.npz", + "transform_matrix": [ + [ + 0.9407583607212338, + 0.0031696589857487167, + 0.33880525676879975, + -0.2375296928153855 + ], + [ + 0.3371961632799654, + -0.11386223459387483, + -0.9338028440769862, + -0.23945157382045806 + ], + [ + -0.03567147603291905, + -0.9927266655122141, + 0.10818564601349112, + 0.0285643107218869 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772204972551993.npz", + "transform_matrix": [ + [ + 0.9690994516751804, + -0.005518872817909033, + 0.24642110808545675, + -0.27095869671972633 + ], + [ + 0.24425467520322486, + -0.11799650969543028, + -0.9617629623433127, + -0.2360568791559032 + ], + [ + -0.03443699179995407, + -0.992233467167033, + 0.11300234235780045, + 0.029864262101688015 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772205014174448.npz", + "transform_matrix": [ + [ + 0.9981650121300355, + -0.024438013205889786, + 0.05535180285727172, + -0.3259575730528292 + ], + [ + 0.051891511281206344, + -0.12588410117335033, + -0.9899219374831487, + -0.21583449543822764 + ], + [ + -0.031207044339304938, + -0.9909777314380597, + 0.12438497993671185, + 0.03185659969961317 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772205035998298.npz", + "transform_matrix": [ + [ + 0.9993871040040914, + -0.03151176854719435, + -0.015184309276272392, + -0.34124025213795206 + ], + [ + -0.019120169658122327, + -0.12803185291146144, + -0.9908197145467755, + -0.20632814254553888 + ], + [ + -0.029322951122929864, + -0.9905027716805652, + 0.12855589306231313, + 0.032221780295620964 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772205057822191.npz", + "transform_matrix": [ + [ + 0.9942186927077892, + -0.04042090851831212, + -0.09938725817791655, + -0.360142767771198 + ], + [ + -0.10393354452536796, + -0.12984525622134727, + -0.9853097609944208, + -0.1961821979370283 + ], + [ + -0.02696311170479721, + -0.989943052511185, + 0.13329566918993946, + 0.032648715912862156 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772205099638905.npz", + "transform_matrix": [ + [ + 0.9560614894423473, + -0.061788404615096625, + -0.2863530324220796, + -0.3899397553406625 + ], + [ + -0.29237107292716996, + -0.12906450519890802, + -0.9468221859702375, + -0.17176119608978638 + ], + [ + -0.021577398376435526, + -0.9889415726809537, + 0.14145874522638122, + 0.0332337204739723 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772205119633839.npz", + "transform_matrix": [ + [ + 0.9317799819616297, + -0.0693705496706111, + -0.3560527969435162, + -0.4001637861990495 + ], + [ + -0.3625545724542031, + -0.12798894466707558, + -0.9224172486615234, + -0.1602717124662178 + ], + [ + -0.018445791068241003, + -0.988578496885908, + 0.14440814652991704, + 0.03358461901961266 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772205161447645.npz", + "transform_matrix": [ + [ + 0.8609412540404654, + -0.08660601501515991, + -0.5008856547307693, + -0.4247698369818209 + ], + [ + -0.5085794953862262, + -0.12472038982516323, + -0.8512728892596412, + -0.12632434656714314 + ], + [ + -0.011271821677176783, + -0.9876361223390172, + 0.15142297223431334, + 0.03368077453578199 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772205179606309.npz", + "transform_matrix": [ + [ + 0.8196334150344035, + -0.0932598533107862, + -0.5648053562244523, + -0.43640921906404667 + ], + [ + -0.5728522088609932, + -0.12234437555255663, + -0.8098466518965691, + -0.10786074986179203 + ], + [ + -0.00643519713169077, + -0.9873273728378564, + 0.15370165131152913, + 0.03345049447821467 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772205197752181.npz", + "transform_matrix": [ + [ + 0.7677547666201356, + -0.10103002918035595, + -0.6322356174499247, + -0.4468477377871367 + ], + [ + -0.6407423941063874, + -0.11898872534521861, + -0.7578887966478886, + -0.0871945364978531 + ], + [ + -0.001342656648918895, + -0.9869728993586064, + 0.15608838383150428, + 0.03338197776816174 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772205243062306.npz", + "transform_matrix": [ + [ + 0.6587190381043833, + -0.11509759290921213, + -0.742954789870674, + -0.46052786474792995 + ], + [ + -0.7523584826692599, + -0.10966001480435435, + -0.6490548248757009, + -0.05355478472131717 + ], + [ + 0.006778081915005405, + -0.9865131083180868, + 0.15882978983049445, + 0.032556280699926596 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772205263047733.npz", + "transform_matrix": [ + [ + 0.5907213038149425, + -0.12255375263709342, + -0.7968939097151438, + -0.469086215894427 + ], + [ + -0.8067962791991103, + -0.1035677826957982, + -0.5812255903419741, + -0.03965561407519564 + ], + [ + 0.011318351896308804, + -0.9862733798120275, + 0.16005560725677842, + 0.03229576772721637 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + } + ], + "w": 256, + "h": 192, + "fl_x": 118.6514575329715, + "fl_y": 118.7964934010577, + "cx": 130.6802784645003, + "cy": 100.360570246814, + "camera_angle_y": 1.3593266161827677 +} \ No newline at end of file diff --git a/codes/reconstruction/experiments/data/parking/three_views/transforms_train.json b/codes/reconstruction/experiments/data/parking/three_views/transforms_train.json new file mode 100644 index 0000000000000000000000000000000000000000..04a15665000ace6ea0961390cea05066f34e8aca --- /dev/null +++ b/codes/reconstruction/experiments/data/parking/three_views/transforms_train.json @@ -0,0 +1,99 @@ +{ + "camera_angle_x": 1.6465637264171746, + "frames": [ + { + "file_path": "RawDataHistogramMap_frame_0_1772204771190212.npz", + "transform_matrix": [ + [ + 0.5600740381468303, + 0.047924273311342025, + 0.826424674766987, + -0.0695857255302666 + ], + [ + 0.8280017110358067, + -0.06492177201443765, + -0.5565255619536066, + -0.20313839691788654 + ], + [ + -0.02702292204183048, + -0.9959765635645651, + 0.07604237931771285, + 0.020812059684097373 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772204990713086.npz", + "transform_matrix": [ + [ + 0.9909426548538043, + -0.01694646484642593, + 0.13310927274773632, + -0.30230761985539695 + ], + [ + 0.1301537094496267, + -0.12279538886747239, + -0.9831011777832119, + -0.2261046715120434 + ], + [ + -0.0330555094922783, + -0.9915215567126565, + 0.11947754338631808, + 0.031010302854967836 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772205219392090.npz", + "transform_matrix": [ + [ + 0.703242157026333, + -0.11006797032227322, + -0.7018316567580194, + -0.45491774267805374 + ], + [ + -0.7109433574503059, + -0.11326685671827451, + -0.6935264019088805, + -0.06790616543150385 + ], + [ + 0.0031640287986481083, + -0.9866795572535673, + 0.15790612100680848, + 0.03303514026422001 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + } + ], + "w": 256, + "h": 192, + "fl_x": 118.6514575329715, + "fl_y": 118.7964934010577, + "cx": 130.6802784645003, + "cy": 100.360570246814, + "camera_angle_y": 1.3593266161827677 +} \ No newline at end of file diff --git a/codes/reconstruction/experiments/data/physics_building2/five_views/transforms_test.json b/codes/reconstruction/experiments/data/physics_building2/five_views/transforms_test.json new file mode 100644 index 0000000000000000000000000000000000000000..7e77d9d35b6ae389139839f913e3e8882dbcf8a5 --- /dev/null +++ b/codes/reconstruction/experiments/data/physics_building2/five_views/transforms_test.json @@ -0,0 +1,882 @@ +{ + "camera_angle_x": 1.6465637264171746, + "frames": [ + { + "file_path": "RawDataHistogramMap_frame_0_1772192169568029.npz", + "transform_matrix": [ + [ + 0.103315811330484, + 0.054377091782674684, + 0.9924041907841717, + 0.03746656722396702 + ], + [ + 0.9946334280837001, + -0.01115950656572342, + -0.10277912263989493, + -0.10410592023839083 + ], + [ + -0.005494257692634579, + -0.9976970907676648, + 0.05523822668390917, + 0.014272021033701406 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772192189563255.npz", + "transform_matrix": [ + [ + 0.23545180068404248, + 0.05425773930612523, + 0.9696306775122234, + 0.01700603564559032 + ], + [ + 0.9718001300742811, + -0.02640756431378386, + -0.23414243152317724, + -0.13358748177952293 + ], + [ + -0.012921174182551369, + -0.997416475649062, + 0.05894538668458907, + 0.015218502124512596 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772192231193236.npz", + "transform_matrix": [ + [ + 0.33458004312356243, + 0.053243101486651144, + 0.9401448344437766, + -0.005458176641248303 + ], + [ + 0.9422133387801237, + -0.03693549577622652, + -0.33271503915715567, + -0.1539473367801697 + ], + [ + -0.017035814281974735, + -0.9971368155472145, + 0.06252424018834674, + 0.016245498353925587 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772192269326459.npz", + "transform_matrix": [ + [ + 0.5326291316737375, + 0.04709016972132526, + 0.844393613418668, + -0.05696750575493574 + ], + [ + 0.8459812375585773, + -0.059020699303035704, + -0.5295284649427265, + -0.19159926897766025 + ], + [ + -0.024939001410254156, + -0.9963834405454515, + 0.0712735438782428, + 0.01900140461110974 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772192289512244.npz", + "transform_matrix": [ + [ + 0.612601980608444, + 0.043184196042667496, + 0.7886094854145158, + -0.08058319486620799 + ], + [ + 0.7899031329709677, + -0.06852046218481761, + -0.6089225894616359, + -0.20544181677099504 + ], + [ + -0.027782258318264696, + -0.9959522875609668, + 0.07608710259556074, + 0.019794655572238876 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772192311141906.npz", + "transform_matrix": [ + [ + 0.7088601121272123, + 0.036119695404333116, + 0.7038870110238896, + -0.11080042379626606 + ], + [ + 0.7046359337829626, + -0.08112646692737127, + -0.7043733683413624, + -0.2161082477466749 + ], + [ + -0.03171028629338354, + -0.9952862661523939, + 0.08295855174180969, + 0.02196700573597272 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772192331316667.npz", + "transform_matrix": [ + [ + 0.7731997905272099, + 0.03086367150147913, + 0.632928580734977, + -0.13633505727324155 + ], + [ + 0.6332940233076068, + -0.089794508281066, + -0.7680922933892708, + -0.22353007826121407 + ], + [ + -0.033177763208852094, + -0.9947186877141726, + 0.08897487369263056, + 0.023566512588100077 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772192413119632.npz", + "transform_matrix": [ + [ + 0.8784397195648138, + 0.016600371036726194, + 0.47720143240960716, + -0.19250120768371456 + ], + [ + 0.4765557593912327, + -0.10397306689303254, + -0.8723016082680923, + -0.2367707114167347 + ], + [ + -0.03518902217929182, + -0.9936774711475004, + 0.09924507414939285, + 0.02664942847381442 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772192438420386.npz", + "transform_matrix": [ + [ + 0.9186535130502979, + 0.008175235226147113, + 0.394679353307174, + -0.2180492375329396 + ], + [ + 0.3934289387827207, + -0.10973472796485081, + -0.9120789357615678, + -0.23855529132257408 + ], + [ + -0.0359081200934824, + -0.9931627976476309, + 0.10402456746785135, + 0.027889797365982478 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772192483721235.npz", + "transform_matrix": [ + [ + 0.9729034634314045, + -0.007610003869615804, + 0.2309106508638137, + -0.26926727159987385 + ], + [ + 0.2286043638641554, + -0.11789922913596948, + -0.9656086645012588, + -0.23602523488353747 + ], + [ + -0.03462507278611499, + -0.9922311964628212, + 0.11296488826866036, + 0.02966293492135638 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772192527179631.npz", + "transform_matrix": [ + [ + 0.9991850352802725, + -0.03464640361659324, + -0.020649865649861748, + -0.35689935541040185 + ], + [ + -0.02483540104753599, + -0.12440682970621435, + -0.9911548658939382, + -0.2115090401308341 + ], + [ + -0.031819304309933724, + -0.9908599573414375, + 0.12516589985778445, + 0.032405123509101214 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772192549001740.npz", + "transform_matrix": [ + [ + 0.9822150948864484, + -0.05139074439444979, + -0.1804409729757321, + -0.39864571805452054 + ], + [ + -0.18575785008391502, + -0.1260307089416094, + -0.9737266493319506, + -0.18409574652138178 + ], + [ + -0.027340967601899347, + -0.9899273404740627, + 0.1333354989346152, + 0.03297045375148561 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772192570827327.npz", + "transform_matrix": [ + [ + 0.9456861787914934, + -0.06567876691484918, + -0.3181248412045134, + -0.4237934141925582 + ], + [ + -0.324375484016176, + -0.12621229118479396, + -0.9367452859356713, + -0.15545124551896908 + ], + [ + -0.021405527604235506, + -0.9890589693007298, + 0.1406618011746577, + 0.032391042816485575 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772192610807128.npz", + "transform_matrix": [ + [ + 0.8142318592259358, + -0.09371898382764993, + -0.5724781658681758, + -0.45818834156835264 + ], + [ + -0.5804988067125818, + -0.11971455106221861, + -0.8047871507776216, + -0.09466490917766499 + ], + [ + -0.006900349755311177, + -0.9876062302142865, + 0.15187915976605582, + 0.03186196469317114 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772192636302156.npz", + "transform_matrix": [ + [ + 0.7484824888173589, + -0.1041174880794602, + -0.6544199313425995, + -0.4716157504822538 + ], + [ + -0.6631513503315014, + -0.1144457553149366, + -0.739108519016034, + -0.06687464195640336 + ], + [ + -0.00206167099234677, + -0.9871892449729233, + 0.1547062965857251, + 0.0315993053435434 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772192654274737.npz", + "transform_matrix": [ + [ + 0.6869971068641868, + -0.11444785015785697, + -0.7170317428738077, + -0.47829913592953527 + ], + [ + -0.7266592301163273, + -0.10977184523657174, + -0.6776426309910607, + -0.04414757009154646 + ], + [ + 0.0011569126966076994, + -0.9865762612243392, + 0.15857752677684586, + 0.03173811960256741 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772192677932556.npz", + "transform_matrix": [ + [ + 0.6422287926166674, + -0.11840214989972797, + -0.7567235732017475, + -0.4868942143025241 + ], + [ + -0.7665006732075692, + -0.10480118775976356, + -0.6331404508711503, + -0.026005072363535456 + ], + [ + 0.004346942199422357, + -0.9866501556109225, + 0.15806166788711126, + 0.031295730284066396 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772192728915992.npz", + "transform_matrix": [ + [ + 0.4403918731152336, + -0.13552509685597386, + -0.8868277499564007, + -0.5055122212014469 + ], + [ + -0.8976164822149669, + -0.0867401476880352, + -0.43181669423202074, + 0.014840743014518896 + ], + [ + 0.018429567278987265, + -0.9861997680617388, + 0.15984921680632805, + 0.029791945785591908 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772192752577950.npz", + "transform_matrix": [ + [ + 0.3414776166977553, + -0.14220488168470385, + -0.9283473679735715, + -0.499951854913202 + ], + [ + -0.9395610648636679, + -0.07777288949151911, + -0.3331640813411673, + 0.046440569079158146 + ], + [ + 0.024860464329479255, + -0.9860071180823043, + 0.16016787101175464, + 0.02791235918943408 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772192772566497.npz", + "transform_matrix": [ + [ + 0.2528081480137139, + -0.14655066493470725, + -0.9556091878889844, + -0.49270863103905616 + ], + [ + -0.9670189568999169, + -0.06994255194801932, + -0.24471171818075013, + 0.06646437891860307 + ], + [ + 0.031022206467008297, + -0.9859573163469024, + 0.15939931816348152, + 0.026157895781779003 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772192816030815.npz", + "transform_matrix": [ + [ + 0.0693271775578638, + -0.15329789086416484, + -0.9849780139564468, + -0.4727573994497204 + ], + [ + -0.9967664438017562, + -0.050852588330663515, + -0.06213583816179743, + 0.10789248676151028 + ], + [ + 0.040625102617372746, + -0.9861007344792236, + 0.15632765993946005, + 0.023874073414301165 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772192837663421.npz", + "transform_matrix": [ + [ + -0.04146437316944663, + -0.15576839256647637, + -0.9861543555954541, + -0.45935779941867766 + ], + [ + -0.9980610608857707, + -0.039398793895998485, + 0.048124511024958204, + 0.12503857452290593 + ], + [ + 0.04642008726021446, + -0.9862377150264484, + 0.1538327208448385, + 0.02187130615680795 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772192857661161.npz", + "transform_matrix": [ + [ + -0.12231004832408253, + -0.15669598696915893, + -0.9792804669290288, + -0.45151930091163467 + ], + [ + -0.9912228779177842, + -0.03059511162253585, + 0.12850912651177712, + 0.13700672260172883 + ], + [ + 0.05017427997845386, + -0.9864031601917939, + 0.1515785575807045, + 0.020638117228880638 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772192901125481.npz", + "transform_matrix": [ + [ + -0.3590886896189549, + -0.1552233481694285, + -0.9195856644513886, + -0.411017324789544 + ], + [ + -0.9313849995819198, + -0.0035433511495614914, + 0.36374181974665903, + 0.18563540039131943 + ], + [ + 0.05981049691766734, + -0.9871038671130298, + 0.14330032074873142, + 0.017077060801283624 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772192920932053.npz", + "transform_matrix": [ + [ + -0.46613212624577993, + -0.15281594292417375, + -0.8707347974861773, + -0.38476548409984357 + ], + [ + -0.8823445689024153, + 0.008299350943704159, + 0.4701731038977321, + 0.21193586468904257 + ], + [ + 0.06472173213077519, + -0.9874509081396919, + 0.13870491138269478, + 0.014304683849518173 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772192940921709.npz", + "transform_matrix": [ + [ + -0.5517276218640855, + -0.15005618354114147, + -0.819770140711322, + -0.3629942194889516 + ], + [ + -0.8312475913393658, + 0.01879579969768194, + 0.555161879450194, + 0.22905358428429917 + ], + [ + 0.06800053797369826, + -0.9877300984168633, + 0.1351040030023869, + 0.012748261058277446 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772192964388397.npz", + "transform_matrix": [ + [ + -0.615826554452921, + -0.157348565516931, + -0.7713987834604976, + -0.3427838834695409 + ], + [ + -0.7841700081322909, + 0.02748316174155309, + 0.6194651711959905, + 0.235754442427778 + ], + [ + 0.07638751976897672, + -0.9863908922806652, + 0.14031288670178843, + 0.013719264159362476 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772193017030340.npz", + "transform_matrix": [ + [ + -0.781275715519543, + -0.13118981414889447, + -0.609758665603808, + -0.3181144318488139 + ], + [ + -0.6197798388692365, + 0.04717815998820138, + 0.7827589618323291, + 0.28065164072972026 + ], + [ + 0.07403517860220592, + -0.9894666955019252, + 0.1181679525761638, + 0.008718626082269754 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772193037024623.npz", + "transform_matrix": [ + [ + -0.853069554060402, + -0.12256361078256559, + -0.5067907704091675, + -0.2807609416313793 + ], + [ + -0.5162242509509429, + 0.056665140697229215, + 0.8539246434015908, + 0.2899407374528719 + ], + [ + 0.07605825836381487, + -0.9900748005910951, + 0.11160961447542707, + 0.00686824662818857 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772193058655948.npz", + "transform_matrix": [ + [ + -0.8973927175113439, + -0.11502210625560853, + -0.42562950467077854, + -0.2529320303412646 + ], + [ + -0.4344997142697693, + 0.062490610755408224, + 0.8978154613943792, + 0.29245436409041425 + ], + [ + 0.076787426425855, + -0.990628954888627, + 0.10605569130750699, + 0.005200515598544427 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + } + ], + "w": 256, + "h": 192, + "fl_x": 118.6514575329715, + "fl_y": 118.7964934010577, + "cx": 130.6802784645003, + "cy": 100.360570246814, + "camera_angle_y": 1.3593266161827677 +} \ No newline at end of file diff --git a/codes/reconstruction/experiments/data/physics_building2/five_views/transforms_train.json b/codes/reconstruction/experiments/data/physics_building2/five_views/transforms_train.json new file mode 100644 index 0000000000000000000000000000000000000000..c5b47e86d9f3549c517d384e74f9a2951fe4b917 --- /dev/null +++ b/codes/reconstruction/experiments/data/physics_building2/five_views/transforms_train.json @@ -0,0 +1,157 @@ +{ + "camera_angle_x": 1.6465637264171746, + "frames": [ + { + "file_path": "RawDataHistogramMap_frame_0_1772192251170492.npz", + "transform_matrix": [ + [ + 0.43192347763479866, + 0.05096349204301887, + 0.8997828193352139, + -0.030162246637793197 + ], + [ + 0.9016690609269071, + -0.04747061486773325, + -0.4294826912177948, + -0.17258882349460433 + ], + [ + -0.020856990076528817, + -0.9968099873228872, + 0.06645587707111836, + 0.017493045637956076 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772192507379129.npz", + "transform_matrix": [ + [ + 0.9938343984021715, + -0.020174692572726773, + 0.10893803558590627, + -0.3129858003949916 + ], + [ + 0.10576137817993876, + -0.12243964624245039, + -0.9860633567483709, + -0.22752907388206725 + ], + [ + -0.0332824193542674, + -0.9915051197202217, + 0.11955102887309284, + 0.031446336580559536 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772192708933968.npz", + "transform_matrix": [ + [ + 0.5398447133494395, + -0.12714679219654418, + -0.8314595508877263, + -0.5084074263005505 + ], + [ + -0.8416686861325425, + -0.09644585455081013, + -0.5308945810034896, + -0.014039524001758813 + ], + [ + 0.012708589716600596, + -0.9864141006686208, + 0.15908125823775734, + 0.030939486879926748 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772192881135611.npz", + "transform_matrix": [ + [ + -0.23855767407468723, + -0.15628978576553448, + -0.9577218171034054, + -0.43401875158277003 + ], + [ + -0.9697617540976503, + -0.013961684140303283, + 0.24346812949739144, + 0.1582911224157903 + ], + [ + 0.051501227456578244, + -0.9868431799759905, + 0.14823318989685458, + 0.019755552042774245 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772193078644525.npz", + "transform_matrix": [ + [ + -0.935309165475436, + -0.1088701966463554, + -0.3363834973727127, + -0.2182330623672111 + ], + [ + -0.3450119386405475, + 0.06967265369752233, + 0.9352936415964633, + 0.29396371930573284 + ], + [ + 0.07850813443934304, + -0.9908450379513046, + 0.10272698919142399, + 0.002025165060662761 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + } + ], + "w": 256, + "h": 192, + "fl_x": 118.6514575329715, + "fl_y": 118.7964934010577, + "cx": 130.6802784645003, + "cy": 100.360570246814, + "camera_angle_y": 1.3593266161827677 +} \ No newline at end of file diff --git a/codes/reconstruction/experiments/data/physics_building2/scene.json b/codes/reconstruction/experiments/data/physics_building2/scene.json new file mode 100644 index 0000000000000000000000000000000000000000..beda0ab7a4c9661d0a3f286f3857397a1f35d891 --- /dev/null +++ b/codes/reconstruction/experiments/data/physics_building2/scene.json @@ -0,0 +1,14 @@ +{ + "scene": "physics_building2", + "aabb": [ + -54.26138300104426, + -38.59347787822623, + -2.7285706903757196, + 53.51859483376661, + 53.723017863272695, + 25.20871158088262 + ], + "aabb_source": "Supplied sp_merged_map.ply extrema, expanded by 5% or 0.5m per axis", + "test_frames": 30, + "train_frames": 10 +} \ No newline at end of file diff --git a/codes/reconstruction/experiments/data/physics_building2/ten_views/transforms_test.json b/codes/reconstruction/experiments/data/physics_building2/ten_views/transforms_test.json new file mode 100644 index 0000000000000000000000000000000000000000..7e77d9d35b6ae389139839f913e3e8882dbcf8a5 --- /dev/null +++ b/codes/reconstruction/experiments/data/physics_building2/ten_views/transforms_test.json @@ -0,0 +1,882 @@ +{ + "camera_angle_x": 1.6465637264171746, + "frames": [ + { + "file_path": "RawDataHistogramMap_frame_0_1772192169568029.npz", + "transform_matrix": [ + [ + 0.103315811330484, + 0.054377091782674684, + 0.9924041907841717, + 0.03746656722396702 + ], + [ + 0.9946334280837001, + -0.01115950656572342, + -0.10277912263989493, + -0.10410592023839083 + ], + [ + -0.005494257692634579, + -0.9976970907676648, + 0.05523822668390917, + 0.014272021033701406 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772192189563255.npz", + "transform_matrix": [ + [ + 0.23545180068404248, + 0.05425773930612523, + 0.9696306775122234, + 0.01700603564559032 + ], + [ + 0.9718001300742811, + -0.02640756431378386, + -0.23414243152317724, + -0.13358748177952293 + ], + [ + -0.012921174182551369, + -0.997416475649062, + 0.05894538668458907, + 0.015218502124512596 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772192231193236.npz", + "transform_matrix": [ + [ + 0.33458004312356243, + 0.053243101486651144, + 0.9401448344437766, + -0.005458176641248303 + ], + [ + 0.9422133387801237, + -0.03693549577622652, + -0.33271503915715567, + -0.1539473367801697 + ], + [ + -0.017035814281974735, + -0.9971368155472145, + 0.06252424018834674, + 0.016245498353925587 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772192269326459.npz", + "transform_matrix": [ + [ + 0.5326291316737375, + 0.04709016972132526, + 0.844393613418668, + -0.05696750575493574 + ], + [ + 0.8459812375585773, + -0.059020699303035704, + -0.5295284649427265, + -0.19159926897766025 + ], + [ + -0.024939001410254156, + -0.9963834405454515, + 0.0712735438782428, + 0.01900140461110974 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772192289512244.npz", + "transform_matrix": [ + [ + 0.612601980608444, + 0.043184196042667496, + 0.7886094854145158, + -0.08058319486620799 + ], + [ + 0.7899031329709677, + -0.06852046218481761, + -0.6089225894616359, + -0.20544181677099504 + ], + [ + -0.027782258318264696, + -0.9959522875609668, + 0.07608710259556074, + 0.019794655572238876 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772192311141906.npz", + "transform_matrix": [ + [ + 0.7088601121272123, + 0.036119695404333116, + 0.7038870110238896, + -0.11080042379626606 + ], + [ + 0.7046359337829626, + -0.08112646692737127, + -0.7043733683413624, + -0.2161082477466749 + ], + [ + -0.03171028629338354, + -0.9952862661523939, + 0.08295855174180969, + 0.02196700573597272 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772192331316667.npz", + "transform_matrix": [ + [ + 0.7731997905272099, + 0.03086367150147913, + 0.632928580734977, + -0.13633505727324155 + ], + [ + 0.6332940233076068, + -0.089794508281066, + -0.7680922933892708, + -0.22353007826121407 + ], + [ + -0.033177763208852094, + -0.9947186877141726, + 0.08897487369263056, + 0.023566512588100077 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772192413119632.npz", + "transform_matrix": [ + [ + 0.8784397195648138, + 0.016600371036726194, + 0.47720143240960716, + -0.19250120768371456 + ], + [ + 0.4765557593912327, + -0.10397306689303254, + -0.8723016082680923, + -0.2367707114167347 + ], + [ + -0.03518902217929182, + -0.9936774711475004, + 0.09924507414939285, + 0.02664942847381442 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772192438420386.npz", + "transform_matrix": [ + [ + 0.9186535130502979, + 0.008175235226147113, + 0.394679353307174, + -0.2180492375329396 + ], + [ + 0.3934289387827207, + -0.10973472796485081, + -0.9120789357615678, + -0.23855529132257408 + ], + [ + -0.0359081200934824, + -0.9931627976476309, + 0.10402456746785135, + 0.027889797365982478 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772192483721235.npz", + "transform_matrix": [ + [ + 0.9729034634314045, + -0.007610003869615804, + 0.2309106508638137, + -0.26926727159987385 + ], + [ + 0.2286043638641554, + -0.11789922913596948, + -0.9656086645012588, + -0.23602523488353747 + ], + [ + -0.03462507278611499, + -0.9922311964628212, + 0.11296488826866036, + 0.02966293492135638 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772192527179631.npz", + "transform_matrix": [ + [ + 0.9991850352802725, + -0.03464640361659324, + -0.020649865649861748, + -0.35689935541040185 + ], + [ + -0.02483540104753599, + -0.12440682970621435, + -0.9911548658939382, + -0.2115090401308341 + ], + [ + -0.031819304309933724, + -0.9908599573414375, + 0.12516589985778445, + 0.032405123509101214 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772192549001740.npz", + "transform_matrix": [ + [ + 0.9822150948864484, + -0.05139074439444979, + -0.1804409729757321, + -0.39864571805452054 + ], + [ + -0.18575785008391502, + -0.1260307089416094, + -0.9737266493319506, + -0.18409574652138178 + ], + [ + -0.027340967601899347, + -0.9899273404740627, + 0.1333354989346152, + 0.03297045375148561 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772192570827327.npz", + "transform_matrix": [ + [ + 0.9456861787914934, + -0.06567876691484918, + -0.3181248412045134, + -0.4237934141925582 + ], + [ + -0.324375484016176, + -0.12621229118479396, + -0.9367452859356713, + -0.15545124551896908 + ], + [ + -0.021405527604235506, + -0.9890589693007298, + 0.1406618011746577, + 0.032391042816485575 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772192610807128.npz", + "transform_matrix": [ + [ + 0.8142318592259358, + -0.09371898382764993, + -0.5724781658681758, + -0.45818834156835264 + ], + [ + -0.5804988067125818, + -0.11971455106221861, + -0.8047871507776216, + -0.09466490917766499 + ], + [ + -0.006900349755311177, + -0.9876062302142865, + 0.15187915976605582, + 0.03186196469317114 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772192636302156.npz", + "transform_matrix": [ + [ + 0.7484824888173589, + -0.1041174880794602, + -0.6544199313425995, + -0.4716157504822538 + ], + [ + -0.6631513503315014, + -0.1144457553149366, + -0.739108519016034, + -0.06687464195640336 + ], + [ + -0.00206167099234677, + -0.9871892449729233, + 0.1547062965857251, + 0.0315993053435434 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772192654274737.npz", + "transform_matrix": [ + [ + 0.6869971068641868, + -0.11444785015785697, + -0.7170317428738077, + -0.47829913592953527 + ], + [ + -0.7266592301163273, + -0.10977184523657174, + -0.6776426309910607, + -0.04414757009154646 + ], + [ + 0.0011569126966076994, + -0.9865762612243392, + 0.15857752677684586, + 0.03173811960256741 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772192677932556.npz", + "transform_matrix": [ + [ + 0.6422287926166674, + -0.11840214989972797, + -0.7567235732017475, + -0.4868942143025241 + ], + [ + -0.7665006732075692, + -0.10480118775976356, + -0.6331404508711503, + -0.026005072363535456 + ], + [ + 0.004346942199422357, + -0.9866501556109225, + 0.15806166788711126, + 0.031295730284066396 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772192728915992.npz", + "transform_matrix": [ + [ + 0.4403918731152336, + -0.13552509685597386, + -0.8868277499564007, + -0.5055122212014469 + ], + [ + -0.8976164822149669, + -0.0867401476880352, + -0.43181669423202074, + 0.014840743014518896 + ], + [ + 0.018429567278987265, + -0.9861997680617388, + 0.15984921680632805, + 0.029791945785591908 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772192752577950.npz", + "transform_matrix": [ + [ + 0.3414776166977553, + -0.14220488168470385, + -0.9283473679735715, + -0.499951854913202 + ], + [ + -0.9395610648636679, + -0.07777288949151911, + -0.3331640813411673, + 0.046440569079158146 + ], + [ + 0.024860464329479255, + -0.9860071180823043, + 0.16016787101175464, + 0.02791235918943408 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772192772566497.npz", + "transform_matrix": [ + [ + 0.2528081480137139, + -0.14655066493470725, + -0.9556091878889844, + -0.49270863103905616 + ], + [ + -0.9670189568999169, + -0.06994255194801932, + -0.24471171818075013, + 0.06646437891860307 + ], + [ + 0.031022206467008297, + -0.9859573163469024, + 0.15939931816348152, + 0.026157895781779003 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772192816030815.npz", + "transform_matrix": [ + [ + 0.0693271775578638, + -0.15329789086416484, + -0.9849780139564468, + -0.4727573994497204 + ], + [ + -0.9967664438017562, + -0.050852588330663515, + -0.06213583816179743, + 0.10789248676151028 + ], + [ + 0.040625102617372746, + -0.9861007344792236, + 0.15632765993946005, + 0.023874073414301165 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772192837663421.npz", + "transform_matrix": [ + [ + -0.04146437316944663, + -0.15576839256647637, + -0.9861543555954541, + -0.45935779941867766 + ], + [ + -0.9980610608857707, + -0.039398793895998485, + 0.048124511024958204, + 0.12503857452290593 + ], + [ + 0.04642008726021446, + -0.9862377150264484, + 0.1538327208448385, + 0.02187130615680795 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772192857661161.npz", + "transform_matrix": [ + [ + -0.12231004832408253, + -0.15669598696915893, + -0.9792804669290288, + -0.45151930091163467 + ], + [ + -0.9912228779177842, + -0.03059511162253585, + 0.12850912651177712, + 0.13700672260172883 + ], + [ + 0.05017427997845386, + -0.9864031601917939, + 0.1515785575807045, + 0.020638117228880638 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772192901125481.npz", + "transform_matrix": [ + [ + -0.3590886896189549, + -0.1552233481694285, + -0.9195856644513886, + -0.411017324789544 + ], + [ + -0.9313849995819198, + -0.0035433511495614914, + 0.36374181974665903, + 0.18563540039131943 + ], + [ + 0.05981049691766734, + -0.9871038671130298, + 0.14330032074873142, + 0.017077060801283624 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772192920932053.npz", + "transform_matrix": [ + [ + -0.46613212624577993, + -0.15281594292417375, + -0.8707347974861773, + -0.38476548409984357 + ], + [ + -0.8823445689024153, + 0.008299350943704159, + 0.4701731038977321, + 0.21193586468904257 + ], + [ + 0.06472173213077519, + -0.9874509081396919, + 0.13870491138269478, + 0.014304683849518173 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772192940921709.npz", + "transform_matrix": [ + [ + -0.5517276218640855, + -0.15005618354114147, + -0.819770140711322, + -0.3629942194889516 + ], + [ + -0.8312475913393658, + 0.01879579969768194, + 0.555161879450194, + 0.22905358428429917 + ], + [ + 0.06800053797369826, + -0.9877300984168633, + 0.1351040030023869, + 0.012748261058277446 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772192964388397.npz", + "transform_matrix": [ + [ + -0.615826554452921, + -0.157348565516931, + -0.7713987834604976, + -0.3427838834695409 + ], + [ + -0.7841700081322909, + 0.02748316174155309, + 0.6194651711959905, + 0.235754442427778 + ], + [ + 0.07638751976897672, + -0.9863908922806652, + 0.14031288670178843, + 0.013719264159362476 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772193017030340.npz", + "transform_matrix": [ + [ + -0.781275715519543, + -0.13118981414889447, + -0.609758665603808, + -0.3181144318488139 + ], + [ + -0.6197798388692365, + 0.04717815998820138, + 0.7827589618323291, + 0.28065164072972026 + ], + [ + 0.07403517860220592, + -0.9894666955019252, + 0.1181679525761638, + 0.008718626082269754 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772193037024623.npz", + "transform_matrix": [ + [ + -0.853069554060402, + -0.12256361078256559, + -0.5067907704091675, + -0.2807609416313793 + ], + [ + -0.5162242509509429, + 0.056665140697229215, + 0.8539246434015908, + 0.2899407374528719 + ], + [ + 0.07605825836381487, + -0.9900748005910951, + 0.11160961447542707, + 0.00686824662818857 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772193058655948.npz", + "transform_matrix": [ + [ + -0.8973927175113439, + -0.11502210625560853, + -0.42562950467077854, + -0.2529320303412646 + ], + [ + -0.4344997142697693, + 0.062490610755408224, + 0.8978154613943792, + 0.29245436409041425 + ], + [ + 0.076787426425855, + -0.990628954888627, + 0.10605569130750699, + 0.005200515598544427 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + } + ], + "w": 256, + "h": 192, + "fl_x": 118.6514575329715, + "fl_y": 118.7964934010577, + "cx": 130.6802784645003, + "cy": 100.360570246814, + "camera_angle_y": 1.3593266161827677 +} \ No newline at end of file diff --git a/codes/reconstruction/experiments/data/physics_building2/ten_views/transforms_train.json b/codes/reconstruction/experiments/data/physics_building2/ten_views/transforms_train.json new file mode 100644 index 0000000000000000000000000000000000000000..e0ed310ecc53c32645d9aaf81cd38f30719ba1f2 --- /dev/null +++ b/codes/reconstruction/experiments/data/physics_building2/ten_views/transforms_train.json @@ -0,0 +1,302 @@ +{ + "camera_angle_x": 1.6465637264171746, + "frames": [ + { + "file_path": "RawDataHistogramMap_frame_0_1772192149578339.npz", + "transform_matrix": [ + [ + -1.4305592385737082e-19, + 0.05225645579499999, + 0.9978728127629999, + 0.04939854175299999 + ], + [ + 0.9999999999999998, + 3.856408627034591e-21, + 7.364076390712113e-20, + -0.08171214699999998 + ], + [ + -1.3552527156068805e-20, + -0.9978728127629999, + 0.05225645579499999, + 0.013621837803999998 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772192251170492.npz", + "transform_matrix": [ + [ + 0.43192347763479866, + 0.05096349204301887, + 0.8997828193352139, + -0.030162246637793197 + ], + [ + 0.9016690609269071, + -0.04747061486773325, + -0.4294826912177948, + -0.17258882349460433 + ], + [ + -0.020856990076528817, + -0.9968099873228872, + 0.06645587707111836, + 0.017493045637956076 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772192387623288.npz", + "transform_matrix": [ + [ + 0.8236778973784353, + 0.02522765037846582, + 0.56606519877993, + -0.16344966986693135 + ], + [ + 0.5660493204803964, + -0.09609236660540234, + -0.818121050376394, + -0.2307747585429511 + ], + [ + -0.0338066288458407, + -0.9942890476920421, + 0.09342925283370357, + 0.025019718273770055 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772192507379129.npz", + "transform_matrix": [ + [ + 0.9938343984021715, + -0.020174692572726773, + 0.10893803558590627, + -0.3129858003949916 + ], + [ + 0.10576137817993876, + -0.12243964624245039, + -0.9860633567483709, + -0.22752907388206725 + ], + [ + -0.0332824193542674, + -0.9915051197202217, + 0.11955102887309284, + 0.031446336580559536 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772192590998869.npz", + "transform_matrix": [ + [ + 0.8980613281578492, + -0.07788370341869455, + -0.4325806894193004, + -0.432030110271061 + ], + [ + -0.4395962650954227, + -0.1242063304275481, + -0.8888770215855955, + -0.13359120275902278 + ], + [ + -0.01552335600049572, + -0.9884269339952766, + 0.14578228720403488, + 0.03221909546079682 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772192708933968.npz", + "transform_matrix": [ + [ + 0.5398447133494395, + -0.12714679219654418, + -0.8314595508877263, + -0.5084074263005505 + ], + [ + -0.8416686861325425, + -0.09644585455081013, + -0.5308945810034896, + -0.014039524001758813 + ], + [ + 0.012708589716600596, + -0.9864141006686208, + 0.15908125823775734, + 0.030939486879926748 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772192792370282.npz", + "transform_matrix": [ + [ + 0.15848607342006243, + -0.15092867077909455, + -0.9749983309253774, + -0.4819210260955373 + ], + [ + -0.9867023888572626, + -0.06027769800028842, + -0.15081399946660334, + 0.09214449390628099 + ], + [ + 0.03606328264692821, + -0.9859351008481408, + 0.15847485567564998, + 0.024866072646974036 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772192881135611.npz", + "transform_matrix": [ + [ + -0.23855767407468723, + -0.15628978576553448, + -0.9577218171034054, + -0.43401875158277003 + ], + [ + -0.9697617540976503, + -0.013961684140303283, + 0.24346812949739144, + 0.1582911224157903 + ], + [ + 0.051501227456578244, + -0.9868431799759905, + 0.14823318989685458, + 0.019755552042774245 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772192986218825.npz", + "transform_matrix": [ + [ + -0.6622274368401254, + -0.15829001028726322, + -0.7318102087090619, + -0.3256140338374331 + ], + [ + -0.7449545119476008, + 0.034018025246355374, + 0.6657397983443846, + 0.24158286751999766 + ], + [ + 0.0806076734875806, + -0.9860364771271858, + 0.14044652702498467, + 0.012984624823873213 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772193078644525.npz", + "transform_matrix": [ + [ + -0.935309165475436, + -0.1088701966463554, + -0.3363834973727127, + -0.2182330623672111 + ], + [ + -0.3450119386405475, + 0.06967265369752233, + 0.9352936415964633, + 0.29396371930573284 + ], + [ + 0.07850813443934304, + -0.9908450379513046, + 0.10272698919142399, + 0.002025165060662761 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + } + ], + "w": 256, + "h": 192, + "fl_x": 118.6514575329715, + "fl_y": 118.7964934010577, + "cx": 130.6802784645003, + "cy": 100.360570246814, + "camera_angle_y": 1.3593266161827677 +} \ No newline at end of file diff --git a/codes/reconstruction/experiments/data/physics_building2/three_views/transforms_test.json b/codes/reconstruction/experiments/data/physics_building2/three_views/transforms_test.json new file mode 100644 index 0000000000000000000000000000000000000000..7e77d9d35b6ae389139839f913e3e8882dbcf8a5 --- /dev/null +++ b/codes/reconstruction/experiments/data/physics_building2/three_views/transforms_test.json @@ -0,0 +1,882 @@ +{ + "camera_angle_x": 1.6465637264171746, + "frames": [ + { + "file_path": "RawDataHistogramMap_frame_0_1772192169568029.npz", + "transform_matrix": [ + [ + 0.103315811330484, + 0.054377091782674684, + 0.9924041907841717, + 0.03746656722396702 + ], + [ + 0.9946334280837001, + -0.01115950656572342, + -0.10277912263989493, + -0.10410592023839083 + ], + [ + -0.005494257692634579, + -0.9976970907676648, + 0.05523822668390917, + 0.014272021033701406 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772192189563255.npz", + "transform_matrix": [ + [ + 0.23545180068404248, + 0.05425773930612523, + 0.9696306775122234, + 0.01700603564559032 + ], + [ + 0.9718001300742811, + -0.02640756431378386, + -0.23414243152317724, + -0.13358748177952293 + ], + [ + -0.012921174182551369, + -0.997416475649062, + 0.05894538668458907, + 0.015218502124512596 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772192231193236.npz", + "transform_matrix": [ + [ + 0.33458004312356243, + 0.053243101486651144, + 0.9401448344437766, + -0.005458176641248303 + ], + [ + 0.9422133387801237, + -0.03693549577622652, + -0.33271503915715567, + -0.1539473367801697 + ], + [ + -0.017035814281974735, + -0.9971368155472145, + 0.06252424018834674, + 0.016245498353925587 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772192269326459.npz", + "transform_matrix": [ + [ + 0.5326291316737375, + 0.04709016972132526, + 0.844393613418668, + -0.05696750575493574 + ], + [ + 0.8459812375585773, + -0.059020699303035704, + -0.5295284649427265, + -0.19159926897766025 + ], + [ + -0.024939001410254156, + -0.9963834405454515, + 0.0712735438782428, + 0.01900140461110974 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772192289512244.npz", + "transform_matrix": [ + [ + 0.612601980608444, + 0.043184196042667496, + 0.7886094854145158, + -0.08058319486620799 + ], + [ + 0.7899031329709677, + -0.06852046218481761, + -0.6089225894616359, + -0.20544181677099504 + ], + [ + -0.027782258318264696, + -0.9959522875609668, + 0.07608710259556074, + 0.019794655572238876 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772192311141906.npz", + "transform_matrix": [ + [ + 0.7088601121272123, + 0.036119695404333116, + 0.7038870110238896, + -0.11080042379626606 + ], + [ + 0.7046359337829626, + -0.08112646692737127, + -0.7043733683413624, + -0.2161082477466749 + ], + [ + -0.03171028629338354, + -0.9952862661523939, + 0.08295855174180969, + 0.02196700573597272 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772192331316667.npz", + "transform_matrix": [ + [ + 0.7731997905272099, + 0.03086367150147913, + 0.632928580734977, + -0.13633505727324155 + ], + [ + 0.6332940233076068, + -0.089794508281066, + -0.7680922933892708, + -0.22353007826121407 + ], + [ + -0.033177763208852094, + -0.9947186877141726, + 0.08897487369263056, + 0.023566512588100077 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772192413119632.npz", + "transform_matrix": [ + [ + 0.8784397195648138, + 0.016600371036726194, + 0.47720143240960716, + -0.19250120768371456 + ], + [ + 0.4765557593912327, + -0.10397306689303254, + -0.8723016082680923, + -0.2367707114167347 + ], + [ + -0.03518902217929182, + -0.9936774711475004, + 0.09924507414939285, + 0.02664942847381442 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772192438420386.npz", + "transform_matrix": [ + [ + 0.9186535130502979, + 0.008175235226147113, + 0.394679353307174, + -0.2180492375329396 + ], + [ + 0.3934289387827207, + -0.10973472796485081, + -0.9120789357615678, + -0.23855529132257408 + ], + [ + -0.0359081200934824, + -0.9931627976476309, + 0.10402456746785135, + 0.027889797365982478 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772192483721235.npz", + "transform_matrix": [ + [ + 0.9729034634314045, + -0.007610003869615804, + 0.2309106508638137, + -0.26926727159987385 + ], + [ + 0.2286043638641554, + -0.11789922913596948, + -0.9656086645012588, + -0.23602523488353747 + ], + [ + -0.03462507278611499, + -0.9922311964628212, + 0.11296488826866036, + 0.02966293492135638 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772192527179631.npz", + "transform_matrix": [ + [ + 0.9991850352802725, + -0.03464640361659324, + -0.020649865649861748, + -0.35689935541040185 + ], + [ + -0.02483540104753599, + -0.12440682970621435, + -0.9911548658939382, + -0.2115090401308341 + ], + [ + -0.031819304309933724, + -0.9908599573414375, + 0.12516589985778445, + 0.032405123509101214 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772192549001740.npz", + "transform_matrix": [ + [ + 0.9822150948864484, + -0.05139074439444979, + -0.1804409729757321, + -0.39864571805452054 + ], + [ + -0.18575785008391502, + -0.1260307089416094, + -0.9737266493319506, + -0.18409574652138178 + ], + [ + -0.027340967601899347, + -0.9899273404740627, + 0.1333354989346152, + 0.03297045375148561 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772192570827327.npz", + "transform_matrix": [ + [ + 0.9456861787914934, + -0.06567876691484918, + -0.3181248412045134, + -0.4237934141925582 + ], + [ + -0.324375484016176, + -0.12621229118479396, + -0.9367452859356713, + -0.15545124551896908 + ], + [ + -0.021405527604235506, + -0.9890589693007298, + 0.1406618011746577, + 0.032391042816485575 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772192610807128.npz", + "transform_matrix": [ + [ + 0.8142318592259358, + -0.09371898382764993, + -0.5724781658681758, + -0.45818834156835264 + ], + [ + -0.5804988067125818, + -0.11971455106221861, + -0.8047871507776216, + -0.09466490917766499 + ], + [ + -0.006900349755311177, + -0.9876062302142865, + 0.15187915976605582, + 0.03186196469317114 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772192636302156.npz", + "transform_matrix": [ + [ + 0.7484824888173589, + -0.1041174880794602, + -0.6544199313425995, + -0.4716157504822538 + ], + [ + -0.6631513503315014, + -0.1144457553149366, + -0.739108519016034, + -0.06687464195640336 + ], + [ + -0.00206167099234677, + -0.9871892449729233, + 0.1547062965857251, + 0.0315993053435434 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772192654274737.npz", + "transform_matrix": [ + [ + 0.6869971068641868, + -0.11444785015785697, + -0.7170317428738077, + -0.47829913592953527 + ], + [ + -0.7266592301163273, + -0.10977184523657174, + -0.6776426309910607, + -0.04414757009154646 + ], + [ + 0.0011569126966076994, + -0.9865762612243392, + 0.15857752677684586, + 0.03173811960256741 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772192677932556.npz", + "transform_matrix": [ + [ + 0.6422287926166674, + -0.11840214989972797, + -0.7567235732017475, + -0.4868942143025241 + ], + [ + -0.7665006732075692, + -0.10480118775976356, + -0.6331404508711503, + -0.026005072363535456 + ], + [ + 0.004346942199422357, + -0.9866501556109225, + 0.15806166788711126, + 0.031295730284066396 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772192728915992.npz", + "transform_matrix": [ + [ + 0.4403918731152336, + -0.13552509685597386, + -0.8868277499564007, + -0.5055122212014469 + ], + [ + -0.8976164822149669, + -0.0867401476880352, + -0.43181669423202074, + 0.014840743014518896 + ], + [ + 0.018429567278987265, + -0.9861997680617388, + 0.15984921680632805, + 0.029791945785591908 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772192752577950.npz", + "transform_matrix": [ + [ + 0.3414776166977553, + -0.14220488168470385, + -0.9283473679735715, + -0.499951854913202 + ], + [ + -0.9395610648636679, + -0.07777288949151911, + -0.3331640813411673, + 0.046440569079158146 + ], + [ + 0.024860464329479255, + -0.9860071180823043, + 0.16016787101175464, + 0.02791235918943408 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772192772566497.npz", + "transform_matrix": [ + [ + 0.2528081480137139, + -0.14655066493470725, + -0.9556091878889844, + -0.49270863103905616 + ], + [ + -0.9670189568999169, + -0.06994255194801932, + -0.24471171818075013, + 0.06646437891860307 + ], + [ + 0.031022206467008297, + -0.9859573163469024, + 0.15939931816348152, + 0.026157895781779003 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772192816030815.npz", + "transform_matrix": [ + [ + 0.0693271775578638, + -0.15329789086416484, + -0.9849780139564468, + -0.4727573994497204 + ], + [ + -0.9967664438017562, + -0.050852588330663515, + -0.06213583816179743, + 0.10789248676151028 + ], + [ + 0.040625102617372746, + -0.9861007344792236, + 0.15632765993946005, + 0.023874073414301165 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772192837663421.npz", + "transform_matrix": [ + [ + -0.04146437316944663, + -0.15576839256647637, + -0.9861543555954541, + -0.45935779941867766 + ], + [ + -0.9980610608857707, + -0.039398793895998485, + 0.048124511024958204, + 0.12503857452290593 + ], + [ + 0.04642008726021446, + -0.9862377150264484, + 0.1538327208448385, + 0.02187130615680795 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772192857661161.npz", + "transform_matrix": [ + [ + -0.12231004832408253, + -0.15669598696915893, + -0.9792804669290288, + -0.45151930091163467 + ], + [ + -0.9912228779177842, + -0.03059511162253585, + 0.12850912651177712, + 0.13700672260172883 + ], + [ + 0.05017427997845386, + -0.9864031601917939, + 0.1515785575807045, + 0.020638117228880638 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772192901125481.npz", + "transform_matrix": [ + [ + -0.3590886896189549, + -0.1552233481694285, + -0.9195856644513886, + -0.411017324789544 + ], + [ + -0.9313849995819198, + -0.0035433511495614914, + 0.36374181974665903, + 0.18563540039131943 + ], + [ + 0.05981049691766734, + -0.9871038671130298, + 0.14330032074873142, + 0.017077060801283624 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772192920932053.npz", + "transform_matrix": [ + [ + -0.46613212624577993, + -0.15281594292417375, + -0.8707347974861773, + -0.38476548409984357 + ], + [ + -0.8823445689024153, + 0.008299350943704159, + 0.4701731038977321, + 0.21193586468904257 + ], + [ + 0.06472173213077519, + -0.9874509081396919, + 0.13870491138269478, + 0.014304683849518173 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772192940921709.npz", + "transform_matrix": [ + [ + -0.5517276218640855, + -0.15005618354114147, + -0.819770140711322, + -0.3629942194889516 + ], + [ + -0.8312475913393658, + 0.01879579969768194, + 0.555161879450194, + 0.22905358428429917 + ], + [ + 0.06800053797369826, + -0.9877300984168633, + 0.1351040030023869, + 0.012748261058277446 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772192964388397.npz", + "transform_matrix": [ + [ + -0.615826554452921, + -0.157348565516931, + -0.7713987834604976, + -0.3427838834695409 + ], + [ + -0.7841700081322909, + 0.02748316174155309, + 0.6194651711959905, + 0.235754442427778 + ], + [ + 0.07638751976897672, + -0.9863908922806652, + 0.14031288670178843, + 0.013719264159362476 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772193017030340.npz", + "transform_matrix": [ + [ + -0.781275715519543, + -0.13118981414889447, + -0.609758665603808, + -0.3181144318488139 + ], + [ + -0.6197798388692365, + 0.04717815998820138, + 0.7827589618323291, + 0.28065164072972026 + ], + [ + 0.07403517860220592, + -0.9894666955019252, + 0.1181679525761638, + 0.008718626082269754 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772193037024623.npz", + "transform_matrix": [ + [ + -0.853069554060402, + -0.12256361078256559, + -0.5067907704091675, + -0.2807609416313793 + ], + [ + -0.5162242509509429, + 0.056665140697229215, + 0.8539246434015908, + 0.2899407374528719 + ], + [ + 0.07605825836381487, + -0.9900748005910951, + 0.11160961447542707, + 0.00686824662818857 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772193058655948.npz", + "transform_matrix": [ + [ + -0.8973927175113439, + -0.11502210625560853, + -0.42562950467077854, + -0.2529320303412646 + ], + [ + -0.4344997142697693, + 0.062490610755408224, + 0.8978154613943792, + 0.29245436409041425 + ], + [ + 0.076787426425855, + -0.990628954888627, + 0.10605569130750699, + 0.005200515598544427 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + } + ], + "w": 256, + "h": 192, + "fl_x": 118.6514575329715, + "fl_y": 118.7964934010577, + "cx": 130.6802784645003, + "cy": 100.360570246814, + "camera_angle_y": 1.3593266161827677 +} \ No newline at end of file diff --git a/codes/reconstruction/experiments/data/physics_building2/three_views/transforms_train.json b/codes/reconstruction/experiments/data/physics_building2/three_views/transforms_train.json new file mode 100644 index 0000000000000000000000000000000000000000..ea84782134da271113d98624d5b7ad914a0c7a84 --- /dev/null +++ b/codes/reconstruction/experiments/data/physics_building2/three_views/transforms_train.json @@ -0,0 +1,99 @@ +{ + "camera_angle_x": 1.6465637264171746, + "frames": [ + { + "file_path": "RawDataHistogramMap_frame_0_1772192387623288.npz", + "transform_matrix": [ + [ + 0.8236778973784353, + 0.02522765037846582, + 0.56606519877993, + -0.16344966986693135 + ], + [ + 0.5660493204803964, + -0.09609236660540234, + -0.818121050376394, + -0.2307747585429511 + ], + [ + -0.0338066288458407, + -0.9942890476920421, + 0.09342925283370357, + 0.025019718273770055 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772192708933968.npz", + "transform_matrix": [ + [ + 0.5398447133494395, + -0.12714679219654418, + -0.8314595508877263, + -0.5084074263005505 + ], + [ + -0.8416686861325425, + -0.09644585455081013, + -0.5308945810034896, + -0.014039524001758813 + ], + [ + 0.012708589716600596, + -0.9864141006686208, + 0.15908125823775734, + 0.030939486879926748 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772192986218825.npz", + "transform_matrix": [ + [ + -0.6622274368401254, + -0.15829001028726322, + -0.7318102087090619, + -0.3256140338374331 + ], + [ + -0.7449545119476008, + 0.034018025246355374, + 0.6657397983443846, + 0.24158286751999766 + ], + [ + 0.0806076734875806, + -0.9860364771271858, + 0.14044652702498467, + 0.012984624823873213 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + } + ], + "w": 256, + "h": 192, + "fl_x": 118.6514575329715, + "fl_y": 118.7964934010577, + "cx": 130.6802784645003, + "cy": 100.360570246814, + "camera_angle_y": 1.3593266161827677 +} \ No newline at end of file diff --git a/codes/reconstruction/experiments/data/physics_building3/five_views/transforms_test.json b/codes/reconstruction/experiments/data/physics_building3/five_views/transforms_test.json new file mode 100644 index 0000000000000000000000000000000000000000..4ff0e43e2c7afaad45a3883d82fc685f48e19f65 --- /dev/null +++ b/codes/reconstruction/experiments/data/physics_building3/five_views/transforms_test.json @@ -0,0 +1,476 @@ +{ + "camera_angle_x": 1.6465637264171746, + "frames": [ + { + "file_path": "RawDataHistogramMap_frame_0_1772257724749929.npz", + "transform_matrix": [ + [ + 0.16646640648423, + 0.06879326072027178, + 0.9828933851830096, + 0.010771555154300307 + ], + [ + 0.9859450213221171, + -0.025957174696215852, + -0.16491281914075345, + -0.11128341019270073 + ], + [ + -0.014189800645461827, + -0.9965312839971754, + 0.0721473705018289, + 0.015895453500954823 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772257744737684.npz", + "transform_matrix": [ + [ + 0.2849896145092302, + 0.06903563875004225, + 0.9553110847981592, + -0.010008272034559 + ], + [ + 0.9583309170587228, + -0.040863811402058005, + -0.28250316802055514, + -0.1407371043639072 + ], + [ + -0.01956458615123539, + -0.996014616922798, + 0.0778047488519132, + 0.016853765024442247 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772257790407514.npz", + "transform_matrix": [ + [ + 0.5954862231202493, + 0.058105556546715065, + 0.8006494070946958, + -0.12096241700166113 + ], + [ + 0.8028860333919468, + -0.07747235003925344, + -0.5906201819236709, + -0.1201917839651301 + ], + [ + -0.027752035206911618, + -0.9945364080321996, + 0.09278585693494865, + 0.019084879428238652 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772257814057529.npz", + "transform_matrix": [ + [ + 0.7137548765370182, + 0.05184476370456914, + 0.6979404631338993, + -0.1461297923637544 + ], + [ + 0.6998150796431531, + -0.09335299799276232, + -0.7076502890052151, + -0.08857970911675013 + ], + [ + -0.02851018280661072, + -0.9935181054545384, + 0.10291290499767829, + 0.01864026399334273 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772257861556480.npz", + "transform_matrix": [ + [ + 0.8741918298749956, + 0.03128164437185901, + 0.48420234804991125, + -0.22224850314482533 + ], + [ + 0.48470091556809003, + -0.11621394686057468, + -0.8662546515074777, + -0.09865695131100888 + ], + [ + -0.02921758079069429, + -0.9919660603590619, + 0.11675552453055651, + 0.02094841707832342 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772257905212288.npz", + "transform_matrix": [ + [ + 0.9434103889376919, + 0.016605336514774197, + 0.3309592628525342, + -0.26528602316126193 + ], + [ + 0.3305710716665077, + -0.12668572523649754, + -0.9345161237881788, + -0.09465016253266097 + ], + [ + -0.026450040107503073, + -0.9910377780106715, + 0.12500587320528928, + 0.021722113177121086 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772257967191281.npz", + "transform_matrix": [ + [ + 0.9542643971795504, + 0.013416924400252472, + 0.29843536816352945, + -0.2740720066591609 + ], + [ + 0.29785392201431016, + -0.12860862798415734, + -0.9451764494541237, + -0.09166928748060299 + ], + [ + -0.02573910286394629, + -0.9908383796419404, + 0.12672291840937552, + 0.02180517724108184 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772258016348713.npz", + "transform_matrix": [ + [ + 0.9823224286000084, + 0.0030492393711363266, + 0.18702971606403052, + -0.3044493568540861 + ], + [ + 0.18589170102440833, + -0.1336617853640157, + -0.9726829824131424, + -0.0875417860130023 + ], + [ + -0.02206630371470482, + -0.9902555816032339, + 0.13186579790332378, + 0.02216673182449692 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772258038167800.npz", + "transform_matrix": [ + [ + 0.9962167456714212, + -0.008441243079549325, + 0.08642608648574794, + -0.3305344510434152 + ], + [ + 0.08450856781977487, + -0.13776099241137002, + -0.986089218884658, + -0.07650194868953786 + ], + [ + -0.020260740581003522, + -0.9896623373701278, + 0.13652645017724865, + 0.02293296184543986 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772258080164951.npz", + "transform_matrix": [ + [ + 0.9909355428305029, + -0.03123057106754499, + -0.13055261906527055, + -0.3800585335309066 + ], + [ + -0.1337915825837704, + -0.14185402724598725, + -0.980043533422928, + -0.04927833620101649 + ], + [ + -0.012106295260894347, + -0.9886268123051737, + 0.14474658501981716, + 0.023166962083543872 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772258103824645.npz", + "transform_matrix": [ + [ + 0.9761860562817386, + -0.04029904135653218, + -0.21299126782140082, + -0.3983331783824952 + ], + [ + -0.2167636455242635, + -0.14218516467226497, + -0.9650643327209993, + -0.0375262611178286 + ], + [ + -0.008620063812719608, + -0.988251108694884, + 0.14753454227876295, + 0.023248797689579555 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772258154994293.npz", + "transform_matrix": [ + [ + 0.9352722601948051, + -0.05603025071938878, + -0.34919352440785156, + -0.42768373871493554 + ], + [ + -0.35392017234997325, + -0.14105559611502505, + -0.9238587561263149, + -0.010513186159682893 + ], + [ + -0.002512153233272101, + -0.9876460992849422, + 0.15175562218304342, + 0.023308507748467634 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772258198641923.npz", + "transform_matrix": [ + [ + 0.8690745241991706, + -0.07370081669746047, + -0.4887800321407933, + -0.455531765558888 + ], + [ + -0.4946675834365875, + -0.13680297789168056, + -0.8575788800514437, + 0.02253587965417913 + ], + [ + 0.0036678719983130447, + -0.9870835944751093, + 0.15534938781327773, + 0.022912241665859354 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772258220459762.npz", + "transform_matrix": [ + [ + 0.8281202922326738, + -0.08210750738796686, + -0.5540738292152796, + -0.467983201766619 + ], + [ + -0.5605041590379168, + -0.13398991189344092, + -0.8166026761174816, + 0.04302638225212831 + ], + [ + 0.0072020339956426855, + -0.9868059324736194, + 0.1569813643726184, + 0.022739745920549715 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772258264296799.npz", + "transform_matrix": [ + [ + 0.7623198897742756, + -0.09221978004644087, + -0.6400996716715892, + -0.4824248816637571 + ], + [ + -0.6470612642825289, + -0.12910833727037385, + -0.7508393168206492, + 0.07054152640170619 + ], + [ + 0.013420354676291591, + -0.9865634480555582, + 0.158093700905598, + 0.021858636853784055 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772258287946897.npz", + "transform_matrix": [ + [ + 0.707132357987248, + -0.09996083382497188, + -0.6994370298670266, + -0.4917316762470562 + ], + [ + -0.706859851694034, + -0.12468631364360902, + -0.6957315478449871, + 0.09455614911372034 + ], + [ + 0.01769119415101494, + -0.986378245154865, + 0.15882802714827418, + 0.020949742574903445 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + } + ], + "w": 256, + "h": 192, + "fl_x": 118.6514575329715, + "fl_y": 118.7964934010577, + "cx": 130.6802784645003, + "cy": 100.360570246814, + "camera_angle_y": 1.3593266161827677 +} \ No newline at end of file diff --git a/codes/reconstruction/experiments/data/physics_building3/five_views/transforms_train.json b/codes/reconstruction/experiments/data/physics_building3/five_views/transforms_train.json new file mode 100644 index 0000000000000000000000000000000000000000..6dd2344f94ba27250f7c5e61b0484ee0cd3410e1 --- /dev/null +++ b/codes/reconstruction/experiments/data/physics_building3/five_views/transforms_train.json @@ -0,0 +1,157 @@ +{ + "camera_angle_x": 1.6465637264171746, + "frames": [ + { + "file_path": "RawDataHistogramMap_frame_0_1772257766563586.npz", + "transform_matrix": [ + [ + 0.5237270732046387, + 0.061494579051435135, + 0.8490146845425974, + -0.06397982465682571 + ], + [ + 0.8514355195980912, + -0.07019706875042614, + -0.5193381212352299, + -0.18950462213857816 + ], + [ + -0.027703948441180994, + -0.9948726933180604, + 0.08912277423133008, + 0.01968124440355505 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772257883388278.npz", + "transform_matrix": [ + [ + 0.9111402368496448, + 0.024637646542232588, + 0.4110455865633591, + -0.24243424939689556 + ], + [ + 0.4111673558517715, + -0.12129097487359725, + -0.9027555657668959, + -0.09794469196822389 + ], + [ + -0.02765636048785972, + -0.9915454469719828, + 0.12064328355723367, + 0.0210347414767008 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772258062005808.npz", + "transform_matrix": [ + [ + 0.9998520459354532, + -0.017093976195335703, + -0.0017979799983447256, + -0.35023103129893807 + ], + [ + -0.0041739067041632865, + -0.13969808418627966, + -0.9894179793527712, + -0.06723810037784755 + ], + [ + -0.01668726285264453, + -0.9892790955419591, + 0.13974876394875715, + 0.022971283728039762 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772258174986724.npz", + "transform_matrix": [ + [ + 0.9019219212672884, + -0.06571022459665878, + -0.4265391469568318, + -0.44338885584558707 + ], + [ + -0.4318982783380036, + -0.1391675470439183, + -0.8904271603983419, + 0.006307357305579317 + ], + [ + 0.0008515316757543145, + -0.9873172984694635, + 0.1538983942804068, + 0.023036536055914717 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772258309962073.npz", + "transform_matrix": [ + [ + 0.6373958977809124, + -0.10860380767531472, + -0.7622530716386817, + -0.5010434096244787 + ], + [ + -0.7702112604336876, + -0.1185390511176507, + -0.6261830174241197, + 0.12373366553261844 + ], + [ + 0.022384901009850137, + -0.9862223856424868, + 0.159204180506734, + 0.01980907229772898 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + } + ], + "w": 256, + "h": 192, + "fl_x": 118.6514575329715, + "fl_y": 118.7964934010577, + "cx": 130.6802784645003, + "cy": 100.360570246814, + "camera_angle_y": 1.3593266161827677 +} \ No newline at end of file diff --git a/codes/reconstruction/experiments/data/physics_building3/scene.json b/codes/reconstruction/experiments/data/physics_building3/scene.json new file mode 100644 index 0000000000000000000000000000000000000000..7f85bd40e88aaa1e6172e6fb929b133b06142ee9 --- /dev/null +++ b/codes/reconstruction/experiments/data/physics_building3/scene.json @@ -0,0 +1,14 @@ +{ + "scene": "physics_building3", + "aabb": [ + -54.94031941989966, + -54.137168413943876, + -16.236600941116325, + 54.398517173568706, + 44.55996235389987, + 31.889994494175358 + ], + "aabb_source": "Supplied sp_merged_map.ply extrema, expanded by 5% or 0.5m per axis", + "test_frames": 16, + "train_frames": 10 +} \ No newline at end of file diff --git a/codes/reconstruction/experiments/data/physics_building3/ten_views/transforms_test.json b/codes/reconstruction/experiments/data/physics_building3/ten_views/transforms_test.json new file mode 100644 index 0000000000000000000000000000000000000000..4ff0e43e2c7afaad45a3883d82fc685f48e19f65 --- /dev/null +++ b/codes/reconstruction/experiments/data/physics_building3/ten_views/transforms_test.json @@ -0,0 +1,476 @@ +{ + "camera_angle_x": 1.6465637264171746, + "frames": [ + { + "file_path": "RawDataHistogramMap_frame_0_1772257724749929.npz", + "transform_matrix": [ + [ + 0.16646640648423, + 0.06879326072027178, + 0.9828933851830096, + 0.010771555154300307 + ], + [ + 0.9859450213221171, + -0.025957174696215852, + -0.16491281914075345, + -0.11128341019270073 + ], + [ + -0.014189800645461827, + -0.9965312839971754, + 0.0721473705018289, + 0.015895453500954823 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772257744737684.npz", + "transform_matrix": [ + [ + 0.2849896145092302, + 0.06903563875004225, + 0.9553110847981592, + -0.010008272034559 + ], + [ + 0.9583309170587228, + -0.040863811402058005, + -0.28250316802055514, + -0.1407371043639072 + ], + [ + -0.01956458615123539, + -0.996014616922798, + 0.0778047488519132, + 0.016853765024442247 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772257790407514.npz", + "transform_matrix": [ + [ + 0.5954862231202493, + 0.058105556546715065, + 0.8006494070946958, + -0.12096241700166113 + ], + [ + 0.8028860333919468, + -0.07747235003925344, + -0.5906201819236709, + -0.1201917839651301 + ], + [ + -0.027752035206911618, + -0.9945364080321996, + 0.09278585693494865, + 0.019084879428238652 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772257814057529.npz", + "transform_matrix": [ + [ + 0.7137548765370182, + 0.05184476370456914, + 0.6979404631338993, + -0.1461297923637544 + ], + [ + 0.6998150796431531, + -0.09335299799276232, + -0.7076502890052151, + -0.08857970911675013 + ], + [ + -0.02851018280661072, + -0.9935181054545384, + 0.10291290499767829, + 0.01864026399334273 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772257861556480.npz", + "transform_matrix": [ + [ + 0.8741918298749956, + 0.03128164437185901, + 0.48420234804991125, + -0.22224850314482533 + ], + [ + 0.48470091556809003, + -0.11621394686057468, + -0.8662546515074777, + -0.09865695131100888 + ], + [ + -0.02921758079069429, + -0.9919660603590619, + 0.11675552453055651, + 0.02094841707832342 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772257905212288.npz", + "transform_matrix": [ + [ + 0.9434103889376919, + 0.016605336514774197, + 0.3309592628525342, + -0.26528602316126193 + ], + [ + 0.3305710716665077, + -0.12668572523649754, + -0.9345161237881788, + -0.09465016253266097 + ], + [ + -0.026450040107503073, + -0.9910377780106715, + 0.12500587320528928, + 0.021722113177121086 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772257967191281.npz", + "transform_matrix": [ + [ + 0.9542643971795504, + 0.013416924400252472, + 0.29843536816352945, + -0.2740720066591609 + ], + [ + 0.29785392201431016, + -0.12860862798415734, + -0.9451764494541237, + -0.09166928748060299 + ], + [ + -0.02573910286394629, + -0.9908383796419404, + 0.12672291840937552, + 0.02180517724108184 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772258016348713.npz", + "transform_matrix": [ + [ + 0.9823224286000084, + 0.0030492393711363266, + 0.18702971606403052, + -0.3044493568540861 + ], + [ + 0.18589170102440833, + -0.1336617853640157, + -0.9726829824131424, + -0.0875417860130023 + ], + [ + -0.02206630371470482, + -0.9902555816032339, + 0.13186579790332378, + 0.02216673182449692 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772258038167800.npz", + "transform_matrix": [ + [ + 0.9962167456714212, + -0.008441243079549325, + 0.08642608648574794, + -0.3305344510434152 + ], + [ + 0.08450856781977487, + -0.13776099241137002, + -0.986089218884658, + -0.07650194868953786 + ], + [ + -0.020260740581003522, + -0.9896623373701278, + 0.13652645017724865, + 0.02293296184543986 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772258080164951.npz", + "transform_matrix": [ + [ + 0.9909355428305029, + -0.03123057106754499, + -0.13055261906527055, + -0.3800585335309066 + ], + [ + -0.1337915825837704, + -0.14185402724598725, + -0.980043533422928, + -0.04927833620101649 + ], + [ + -0.012106295260894347, + -0.9886268123051737, + 0.14474658501981716, + 0.023166962083543872 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772258103824645.npz", + "transform_matrix": [ + [ + 0.9761860562817386, + -0.04029904135653218, + -0.21299126782140082, + -0.3983331783824952 + ], + [ + -0.2167636455242635, + -0.14218516467226497, + -0.9650643327209993, + -0.0375262611178286 + ], + [ + -0.008620063812719608, + -0.988251108694884, + 0.14753454227876295, + 0.023248797689579555 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772258154994293.npz", + "transform_matrix": [ + [ + 0.9352722601948051, + -0.05603025071938878, + -0.34919352440785156, + -0.42768373871493554 + ], + [ + -0.35392017234997325, + -0.14105559611502505, + -0.9238587561263149, + -0.010513186159682893 + ], + [ + -0.002512153233272101, + -0.9876460992849422, + 0.15175562218304342, + 0.023308507748467634 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772258198641923.npz", + "transform_matrix": [ + [ + 0.8690745241991706, + -0.07370081669746047, + -0.4887800321407933, + -0.455531765558888 + ], + [ + -0.4946675834365875, + -0.13680297789168056, + -0.8575788800514437, + 0.02253587965417913 + ], + [ + 0.0036678719983130447, + -0.9870835944751093, + 0.15534938781327773, + 0.022912241665859354 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772258220459762.npz", + "transform_matrix": [ + [ + 0.8281202922326738, + -0.08210750738796686, + -0.5540738292152796, + -0.467983201766619 + ], + [ + -0.5605041590379168, + -0.13398991189344092, + -0.8166026761174816, + 0.04302638225212831 + ], + [ + 0.0072020339956426855, + -0.9868059324736194, + 0.1569813643726184, + 0.022739745920549715 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772258264296799.npz", + "transform_matrix": [ + [ + 0.7623198897742756, + -0.09221978004644087, + -0.6400996716715892, + -0.4824248816637571 + ], + [ + -0.6470612642825289, + -0.12910833727037385, + -0.7508393168206492, + 0.07054152640170619 + ], + [ + 0.013420354676291591, + -0.9865634480555582, + 0.158093700905598, + 0.021858636853784055 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772258287946897.npz", + "transform_matrix": [ + [ + 0.707132357987248, + -0.09996083382497188, + -0.6994370298670266, + -0.4917316762470562 + ], + [ + -0.706859851694034, + -0.12468631364360902, + -0.6957315478449871, + 0.09455614911372034 + ], + [ + 0.01769119415101494, + -0.986378245154865, + 0.15882802714827418, + 0.020949742574903445 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + } + ], + "w": 256, + "h": 192, + "fl_x": 118.6514575329715, + "fl_y": 118.7964934010577, + "cx": 130.6802784645003, + "cy": 100.360570246814, + "camera_angle_y": 1.3593266161827677 +} \ No newline at end of file diff --git a/codes/reconstruction/experiments/data/physics_building3/ten_views/transforms_train.json b/codes/reconstruction/experiments/data/physics_building3/ten_views/transforms_train.json new file mode 100644 index 0000000000000000000000000000000000000000..af3b02b4ab1ca47c9cdfdbae3519419546516a6a --- /dev/null +++ b/codes/reconstruction/experiments/data/physics_building3/ten_views/transforms_train.json @@ -0,0 +1,302 @@ +{ + "camera_angle_x": 1.6465637264171746, + "frames": [ + { + "file_path": "RawDataHistogramMap_frame_0_1772257697235752.npz", + "transform_matrix": [ + [ + 2.567568621364598e-20, + 0.05225645579500001, + 0.9978728127630002, + 0.049398541753000014 + ], + [ + 1.0000000000000002, + 1.376957165241643e-20, + 1.3346315621805292e-19, + -0.08171214700000001 + ], + [ + -6.776263578034403e-21, + -0.9978728127630002, + 0.05225645579500001, + 0.013621837804000003 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772257766563586.npz", + "transform_matrix": [ + [ + 0.5237270732046387, + 0.061494579051435135, + 0.8490146845425974, + -0.06397982465682571 + ], + [ + 0.8514355195980912, + -0.07019706875042614, + -0.5193381212352299, + -0.18950462213857816 + ], + [ + -0.027703948441180994, + -0.9948726933180604, + 0.08912277423133008, + 0.01968124440355505 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772257836064752.npz", + "transform_matrix": [ + [ + 0.8049560995370886, + 0.041549421333933835, + 0.5914258418928685, + -0.18525636140375953 + ], + [ + 0.5926066154092271, + -0.10565394040764577, + -0.797915420146945, + -0.09813381282589466 + ], + [ + -0.029378175424239785, + -0.9927697507916678, + 0.10966924572017651, + 0.020119377693647814 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772257883388278.npz", + "transform_matrix": [ + [ + 0.9111402368496448, + 0.024637646542232588, + 0.4110455865633591, + -0.24243424939689556 + ], + [ + 0.4111673558517715, + -0.12129097487359725, + -0.9027555657668959, + -0.09794469196822389 + ], + [ + -0.02765636048785972, + -0.9915454469719828, + 0.12064328355723367, + 0.0210347414767008 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772257987193793.npz", + "transform_matrix": [ + [ + 0.9660805269474079, + 0.009400306477391065, + 0.2578735009532449, + -0.28597531102221635 + ], + [ + 0.25704462752858775, + -0.1310131201444538, + -0.9567365782361915, + -0.08886296684138902 + ], + [ + -0.024828912817656843, + -0.9905695756543015, + 0.1289855224233131, + 0.022077485105620194 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772258062005808.npz", + "transform_matrix": [ + [ + 0.9998520459354532, + -0.017093976195335703, + -0.0017979799983447256, + -0.35023103129893807 + ], + [ + -0.0041739067041632865, + -0.13969808418627966, + -0.9894179793527712, + -0.06723810037784755 + ], + [ + -0.01668726285264453, + -0.9892790955419591, + 0.13974876394875715, + 0.022971283728039762 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772258127673707.npz", + "transform_matrix": [ + [ + 0.9585213608900304, + -0.048485788925741645, + -0.28064661259384, + -0.4134465669409929 + ], + [ + -0.2849552552902043, + -0.1419198294372783, + -0.9472399396564778, + -0.024045695167315053 + ], + [ + -0.006107634568010807, + -0.9879214431869283, + 0.14984946841078264, + 0.02355058324606461 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772258174986724.npz", + "transform_matrix": [ + [ + 0.9019219212672884, + -0.06571022459665878, + -0.4265391469568318, + -0.44338885584558707 + ], + [ + -0.4318982783380036, + -0.1391675470439183, + -0.8904271603983419, + 0.006307357305579317 + ], + [ + 0.0008515316757543145, + -0.9873172984694635, + 0.1538983942804068, + 0.023036536055914717 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772258244115805.npz", + "transform_matrix": [ + [ + 0.8054990597841931, + -0.08558895195356397, + -0.5859286026265669, + -0.47334553119492867 + ], + [ + -0.5925180889320338, + -0.1324633661832773, + -0.7939710227639956, + 0.05153021612971289 + ], + [ + 0.009673622646993832, + -0.9867162082112018, + 0.15741211916170053, + 0.022375506515830413 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772258309962073.npz", + "transform_matrix": [ + [ + 0.6373958977809124, + -0.10860380767531472, + -0.7622530716386817, + -0.5010434096244787 + ], + [ + -0.7702112604336876, + -0.1185390511176507, + -0.6261830174241197, + 0.12373366553261844 + ], + [ + 0.022384901009850137, + -0.9862223856424868, + 0.159204180506734, + 0.01980907229772898 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + } + ], + "w": 256, + "h": 192, + "fl_x": 118.6514575329715, + "fl_y": 118.7964934010577, + "cx": 130.6802784645003, + "cy": 100.360570246814, + "camera_angle_y": 1.3593266161827677 +} \ No newline at end of file diff --git a/codes/reconstruction/experiments/data/physics_building3/three_views/transforms_test.json b/codes/reconstruction/experiments/data/physics_building3/three_views/transforms_test.json new file mode 100644 index 0000000000000000000000000000000000000000..4ff0e43e2c7afaad45a3883d82fc685f48e19f65 --- /dev/null +++ b/codes/reconstruction/experiments/data/physics_building3/three_views/transforms_test.json @@ -0,0 +1,476 @@ +{ + "camera_angle_x": 1.6465637264171746, + "frames": [ + { + "file_path": "RawDataHistogramMap_frame_0_1772257724749929.npz", + "transform_matrix": [ + [ + 0.16646640648423, + 0.06879326072027178, + 0.9828933851830096, + 0.010771555154300307 + ], + [ + 0.9859450213221171, + -0.025957174696215852, + -0.16491281914075345, + -0.11128341019270073 + ], + [ + -0.014189800645461827, + -0.9965312839971754, + 0.0721473705018289, + 0.015895453500954823 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772257744737684.npz", + "transform_matrix": [ + [ + 0.2849896145092302, + 0.06903563875004225, + 0.9553110847981592, + -0.010008272034559 + ], + [ + 0.9583309170587228, + -0.040863811402058005, + -0.28250316802055514, + -0.1407371043639072 + ], + [ + -0.01956458615123539, + -0.996014616922798, + 0.0778047488519132, + 0.016853765024442247 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772257790407514.npz", + "transform_matrix": [ + [ + 0.5954862231202493, + 0.058105556546715065, + 0.8006494070946958, + -0.12096241700166113 + ], + [ + 0.8028860333919468, + -0.07747235003925344, + -0.5906201819236709, + -0.1201917839651301 + ], + [ + -0.027752035206911618, + -0.9945364080321996, + 0.09278585693494865, + 0.019084879428238652 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772257814057529.npz", + "transform_matrix": [ + [ + 0.7137548765370182, + 0.05184476370456914, + 0.6979404631338993, + -0.1461297923637544 + ], + [ + 0.6998150796431531, + -0.09335299799276232, + -0.7076502890052151, + -0.08857970911675013 + ], + [ + -0.02851018280661072, + -0.9935181054545384, + 0.10291290499767829, + 0.01864026399334273 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772257861556480.npz", + "transform_matrix": [ + [ + 0.8741918298749956, + 0.03128164437185901, + 0.48420234804991125, + -0.22224850314482533 + ], + [ + 0.48470091556809003, + -0.11621394686057468, + -0.8662546515074777, + -0.09865695131100888 + ], + [ + -0.02921758079069429, + -0.9919660603590619, + 0.11675552453055651, + 0.02094841707832342 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772257905212288.npz", + "transform_matrix": [ + [ + 0.9434103889376919, + 0.016605336514774197, + 0.3309592628525342, + -0.26528602316126193 + ], + [ + 0.3305710716665077, + -0.12668572523649754, + -0.9345161237881788, + -0.09465016253266097 + ], + [ + -0.026450040107503073, + -0.9910377780106715, + 0.12500587320528928, + 0.021722113177121086 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772257967191281.npz", + "transform_matrix": [ + [ + 0.9542643971795504, + 0.013416924400252472, + 0.29843536816352945, + -0.2740720066591609 + ], + [ + 0.29785392201431016, + -0.12860862798415734, + -0.9451764494541237, + -0.09166928748060299 + ], + [ + -0.02573910286394629, + -0.9908383796419404, + 0.12672291840937552, + 0.02180517724108184 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772258016348713.npz", + "transform_matrix": [ + [ + 0.9823224286000084, + 0.0030492393711363266, + 0.18702971606403052, + -0.3044493568540861 + ], + [ + 0.18589170102440833, + -0.1336617853640157, + -0.9726829824131424, + -0.0875417860130023 + ], + [ + -0.02206630371470482, + -0.9902555816032339, + 0.13186579790332378, + 0.02216673182449692 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772258038167800.npz", + "transform_matrix": [ + [ + 0.9962167456714212, + -0.008441243079549325, + 0.08642608648574794, + -0.3305344510434152 + ], + [ + 0.08450856781977487, + -0.13776099241137002, + -0.986089218884658, + -0.07650194868953786 + ], + [ + -0.020260740581003522, + -0.9896623373701278, + 0.13652645017724865, + 0.02293296184543986 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772258080164951.npz", + "transform_matrix": [ + [ + 0.9909355428305029, + -0.03123057106754499, + -0.13055261906527055, + -0.3800585335309066 + ], + [ + -0.1337915825837704, + -0.14185402724598725, + -0.980043533422928, + -0.04927833620101649 + ], + [ + -0.012106295260894347, + -0.9886268123051737, + 0.14474658501981716, + 0.023166962083543872 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772258103824645.npz", + "transform_matrix": [ + [ + 0.9761860562817386, + -0.04029904135653218, + -0.21299126782140082, + -0.3983331783824952 + ], + [ + -0.2167636455242635, + -0.14218516467226497, + -0.9650643327209993, + -0.0375262611178286 + ], + [ + -0.008620063812719608, + -0.988251108694884, + 0.14753454227876295, + 0.023248797689579555 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772258154994293.npz", + "transform_matrix": [ + [ + 0.9352722601948051, + -0.05603025071938878, + -0.34919352440785156, + -0.42768373871493554 + ], + [ + -0.35392017234997325, + -0.14105559611502505, + -0.9238587561263149, + -0.010513186159682893 + ], + [ + -0.002512153233272101, + -0.9876460992849422, + 0.15175562218304342, + 0.023308507748467634 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772258198641923.npz", + "transform_matrix": [ + [ + 0.8690745241991706, + -0.07370081669746047, + -0.4887800321407933, + -0.455531765558888 + ], + [ + -0.4946675834365875, + -0.13680297789168056, + -0.8575788800514437, + 0.02253587965417913 + ], + [ + 0.0036678719983130447, + -0.9870835944751093, + 0.15534938781327773, + 0.022912241665859354 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772258220459762.npz", + "transform_matrix": [ + [ + 0.8281202922326738, + -0.08210750738796686, + -0.5540738292152796, + -0.467983201766619 + ], + [ + -0.5605041590379168, + -0.13398991189344092, + -0.8166026761174816, + 0.04302638225212831 + ], + [ + 0.0072020339956426855, + -0.9868059324736194, + 0.1569813643726184, + 0.022739745920549715 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772258264296799.npz", + "transform_matrix": [ + [ + 0.7623198897742756, + -0.09221978004644087, + -0.6400996716715892, + -0.4824248816637571 + ], + [ + -0.6470612642825289, + -0.12910833727037385, + -0.7508393168206492, + 0.07054152640170619 + ], + [ + 0.013420354676291591, + -0.9865634480555582, + 0.158093700905598, + 0.021858636853784055 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772258287946897.npz", + "transform_matrix": [ + [ + 0.707132357987248, + -0.09996083382497188, + -0.6994370298670266, + -0.4917316762470562 + ], + [ + -0.706859851694034, + -0.12468631364360902, + -0.6957315478449871, + 0.09455614911372034 + ], + [ + 0.01769119415101494, + -0.986378245154865, + 0.15882802714827418, + 0.020949742574903445 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + } + ], + "w": 256, + "h": 192, + "fl_x": 118.6514575329715, + "fl_y": 118.7964934010577, + "cx": 130.6802784645003, + "cy": 100.360570246814, + "camera_angle_y": 1.3593266161827677 +} \ No newline at end of file diff --git a/codes/reconstruction/experiments/data/physics_building3/three_views/transforms_train.json b/codes/reconstruction/experiments/data/physics_building3/three_views/transforms_train.json new file mode 100644 index 0000000000000000000000000000000000000000..d2b825efc359e4eb70d950c43e4e32d59d0da066 --- /dev/null +++ b/codes/reconstruction/experiments/data/physics_building3/three_views/transforms_train.json @@ -0,0 +1,99 @@ +{ + "camera_angle_x": 1.6465637264171746, + "frames": [ + { + "file_path": "RawDataHistogramMap_frame_0_1772257836064752.npz", + "transform_matrix": [ + [ + 0.8049560995370886, + 0.041549421333933835, + 0.5914258418928685, + -0.18525636140375953 + ], + [ + 0.5926066154092271, + -0.10565394040764577, + -0.797915420146945, + -0.09813381282589466 + ], + [ + -0.029378175424239785, + -0.9927697507916678, + 0.10966924572017651, + 0.020119377693647814 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772258062005808.npz", + "transform_matrix": [ + [ + 0.9998520459354532, + -0.017093976195335703, + -0.0017979799983447256, + -0.35023103129893807 + ], + [ + -0.0041739067041632865, + -0.13969808418627966, + -0.9894179793527712, + -0.06723810037784755 + ], + [ + -0.01668726285264453, + -0.9892790955419591, + 0.13974876394875715, + 0.022971283728039762 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772258244115805.npz", + "transform_matrix": [ + [ + 0.8054990597841931, + -0.08558895195356397, + -0.5859286026265669, + -0.47334553119492867 + ], + [ + -0.5925180889320338, + -0.1324633661832773, + -0.7939710227639956, + 0.05153021612971289 + ], + [ + 0.009673622646993832, + -0.9867162082112018, + 0.15741211916170053, + 0.022375506515830413 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + } + ], + "w": 256, + "h": 192, + "fl_x": 118.6514575329715, + "fl_y": 118.7964934010577, + "cx": 130.6802784645003, + "cy": 100.360570246814, + "camera_angle_y": 1.3593266161827677 +} \ No newline at end of file diff --git a/codes/reconstruction/experiments/run_20261025/FlyingWithPhotons__c4floor2__5views/test_100000/unified_metrics/evaluation_protocol.json b/codes/reconstruction/experiments/run_20261025/FlyingWithPhotons__c4floor2__5views/test_100000/unified_metrics/evaluation_protocol.json new file mode 100644 index 0000000000000000000000000000000000000000..71037533b347f01330f049f1f5f46a8573de0dd1 --- /dev/null +++ b/codes/reconstruction/experiments/run_20261025/FlyingWithPhotons__c4floor2__5views/test_100000/unified_metrics/evaluation_protocol.json @@ -0,0 +1,75 @@ +{ + "protocol": "shared_transient_counts_v4_20261016", + "project": "FlyingWithPhotons", + "reference_contract": "/home/donghongzhou/project/SP-Transient-retrain/experiments/references/c4floor2/contract.json", + "reference_sha256": "e303df144f03b68db116f87ae6f4f5e96c8f89177617ccc9874a4b78cd4aa02c", + "scene_id": "c4floor2", + "histogram_peak": 2505.0341796875, + "display_scale": 9189.9951171875, + "mask_policy": "offset <= 10 AND calibrated GT peak >= 100 AND positive signal", + "n_bins": 672, + "bin_width_s": 7.5e-10, + "frames": [ + "RawDataHistogramMap_frame_0_1772202328518476.npz", + "RawDataHistogramMap_frame_0_1772202350521039.npz", + "RawDataHistogramMap_frame_0_1772202390676359.npz", + "RawDataHistogramMap_frame_0_1772202428826669.npz", + "RawDataHistogramMap_frame_0_1772202448998406.npz", + "RawDataHistogramMap_frame_0_1772202496499412.npz", + "RawDataHistogramMap_frame_0_1772202532994709.npz", + "RawDataHistogramMap_frame_0_1772202553170863.npz", + "RawDataHistogramMap_frame_0_1772202593329100.npz", + "RawDataHistogramMap_frame_0_1772202631663117.npz", + "RawDataHistogramMap_frame_0_1772202653675337.npz", + "RawDataHistogramMap_frame_0_1772202702449698.npz", + "RawDataHistogramMap_frame_0_1772202738945758.npz", + "RawDataHistogramMap_frame_0_1772202755449299.npz" + ], + "histogram_psnr": "20log10(frozen train peak)-10log10(mean squared count error); all valid bins/channels; no upper clipping/gamma", + "depth": "argmax of channel-mean full-count histogram; bin_index*c*dt/2, metres; canonical GT mask", + "aggregation": "arithmetic mean of per-view metrics, only complete frame sets receive an aggregate", + "training_scale_policy": "explicit actual training scale; never test maximum", + "evaluator_python": "/home/donghongzhou/project/SP-Transient-retrain/experiments/.venv/bin/python", + "image_metrics_device": "cpu", + "code_sha256": { + "core.py": "834be7901d6862e088c19ca0f55f9238f3f62d9fa38b187070ec0c6ab74b2be3", + "evaluator.py": "d96962d6462ab6b8139f08ce4f85f7757fbe05d6efa6a43ede78a0ea54962abb", + "worker.py": "42ecedfc168f7725646240d19f2fe0f7d33f50a458ae92c1dd03ae517cc197c1" + }, + "image_code_sha256": "400802b3e931934caaf6cd727ab3b7c7186dfcc7c586307b5a746833e8a0b808", + "image_metric_definition": { + "protocol": "shared_ta_display_psnr_ssim_lpips_v3_20260929", + "scale_policy": "explicit frozen per-scene record; no numeric scene fallback", + "metric_labels": { + "psnr": "PSNR-display", + "ssim": "SSIM-display", + "lpips": "LPIPS-display", + "linear_psnr": "PSNR-linear (auxiliary)" + }, + "prediction_display": "clip(I/D,0,1) ** (1/2.2)", + "reference_display": "(I/D) ** (1/2.2), no upper clipping", + "psnr": "-10log10 valid-reference-pixel/RGB display MSE; fixed peak 1", + "ssim": "RGB, data_range=1, uniform 7x7, sample covariance, complete reference-valid windows", + "lpips": "same display RGB, common invalid region black, [-1,1] transform, VGG0.1 FP32", + "linear_psnr": "-10log10 mean(((prediction-reference)/D)^2); no upper clipping or gamma", + "above_scale_percent": "percentage of reference-valid pixels with ANY RGB channel > D", + "aggregation": "arithmetic mean of per-view metrics; saturation percentages are mean per-view percentages", + "prediction_upper_clip": true, + "reference_upper_clip": false, + "count_domain_upper_clip": false, + "fitted_test_exposure": false, + "preview_png": "clip display arrays only for uint8 export; floating scoring arrays are retained", + "upstream_exact": false, + "scale": 9189.9951171875 + }, + "checkpoint_dir": "/home/donghongzhou/project/SP-Transient-retrain/experiments/run_20261025/FlyingWithPhotons__c4floor2__5views/checkpoints", + "checkpoint_step": 100000, + "rendering_note": "Native renderers retain their method-specific sampling; all default native V4 runs use 30 forward repetitions. Saved-output runs must record their rendering settings separately.", + "prediction_scale": 1000.0, + "prediction_gamma": 2.0, + "rendering": { + "forward_repeats": 30, + "sampling": "native same pixel rays, average forward outputs", + "warped": true + } +} \ No newline at end of file diff --git a/codes/reconstruction/experiments/run_20261025/FlyingWithPhotons__c4floor2__5views/test_100000/unified_metrics/metrics_per_view.json b/codes/reconstruction/experiments/run_20261025/FlyingWithPhotons__c4floor2__5views/test_100000/unified_metrics/metrics_per_view.json new file mode 100644 index 0000000000000000000000000000000000000000..6a00a159548c96eaf28cb5065459995d065442ea --- /dev/null +++ b/codes/reconstruction/experiments/run_20261025/FlyingWithPhotons__c4floor2__5views/test_100000/unified_metrics/metrics_per_view.json @@ -0,0 +1,282 @@ +[ + { + "view": 0, + "frame": "RawDataHistogramMap_frame_0_1772202328518476.npz", + "prediction_scale": 1000.0, + "prediction_gamma": 2.0, + "valid_pixels": 34870, + "histogram_psnr": 39.99771266049945, + "histogram_mse_counts": 627.8502128386218, + "histogram_mae_counts": 2.7126136152160805, + "depth_l1_m": 0.8209494488497133, + "transient_iou": 0.5702053423535911, + "ssim": 0.4831390316104992, + "lpips": 0.24909460544586182, + "linear_psnr": 18.490624601904873, + "prediction_above_scale_percent": 0.0, + "reference_above_scale_percent": 0.0, + "max_prediction_over_scale": 0.6963472839278868, + "max_reference_over_scale": 0.7315925083174558, + "image_psnr": 18.790058185291493 + }, + { + "view": 1, + "frame": "RawDataHistogramMap_frame_0_1772202350521039.npz", + "prediction_scale": 1000.0, + "prediction_gamma": 2.0, + "valid_pixels": 35135, + "histogram_psnr": 42.408267732898175, + "histogram_mse_counts": 360.4130756003884, + "histogram_mae_counts": 1.9372549234380934, + "depth_l1_m": 0.5039079470057991, + "transient_iou": 0.6788396268935137, + "ssim": 0.6113294572682498, + "lpips": 0.19696326553821564, + "linear_psnr": 21.7013623774421, + "prediction_above_scale_percent": 0.0, + "reference_above_scale_percent": 0.0, + "max_prediction_over_scale": 0.6882707551674379, + "max_reference_over_scale": 0.7329719714492131, + "image_psnr": 22.15431349593795 + }, + { + "view": 2, + "frame": "RawDataHistogramMap_frame_0_1772202390676359.npz", + "prediction_scale": 1000.0, + "prediction_gamma": 2.0, + "valid_pixels": 35493, + "histogram_psnr": 42.44190218752665, + "histogram_mse_counts": 357.632594291179, + "histogram_mae_counts": 2.009651155559435, + "depth_l1_m": 0.6371603315318021, + "transient_iou": 0.6582789504892788, + "ssim": 0.5164598203534438, + "lpips": 0.23217764496803284, + "linear_psnr": 19.110516114130803, + "prediction_above_scale_percent": 0.0, + "reference_above_scale_percent": 0.0, + "max_prediction_over_scale": 0.6818520403454273, + "max_reference_over_scale": 0.7336246316303874, + "image_psnr": 19.08720883778711 + }, + { + "view": 3, + "frame": "RawDataHistogramMap_frame_0_1772202428826669.npz", + "prediction_scale": 1000.0, + "prediction_gamma": 2.0, + "valid_pixels": 35918, + "histogram_psnr": 40.518449940024055, + "histogram_mse_counts": 556.9065397793111, + "histogram_mae_counts": 2.712108184612192, + "depth_l1_m": 0.7697247313027381, + "transient_iou": 0.5567599534408527, + "ssim": 0.3923270358554714, + "lpips": 0.2942248582839966, + "linear_psnr": 18.381096736831328, + "prediction_above_scale_percent": 0.0, + "reference_above_scale_percent": 0.0, + "max_prediction_over_scale": 0.6882964625244313, + "max_reference_over_scale": 0.7295987237701442, + "image_psnr": 18.209278967121595 + }, + { + "view": 4, + "frame": "RawDataHistogramMap_frame_0_1772202448998406.npz", + "prediction_scale": 1000.0, + "prediction_gamma": 2.0, + "valid_pixels": 36087, + "histogram_psnr": 40.913361010310446, + "histogram_mse_counts": 508.50029689916926, + "histogram_mae_counts": 2.538918389298289, + "depth_l1_m": 0.6164262788309501, + "transient_iou": 0.5830327874403884, + "ssim": 0.4585587544107781, + "lpips": 0.2645055055618286, + "linear_psnr": 19.883687537554266, + "prediction_above_scale_percent": 0.0, + "reference_above_scale_percent": 0.0, + "max_prediction_over_scale": 0.7033563391036244, + "max_reference_over_scale": 0.728945425176836, + "image_psnr": 20.111116122199306 + }, + { + "view": 5, + "frame": "RawDataHistogramMap_frame_0_1772202496499412.npz", + "prediction_scale": 1000.0, + "prediction_gamma": 2.0, + "valid_pixels": 36152, + "histogram_psnr": 40.68351535426547, + "histogram_mse_counts": 536.1369957454501, + "histogram_mae_counts": 2.614959122092157, + "depth_l1_m": 0.5910373646588986, + "transient_iou": 0.5685566462530122, + "ssim": 0.41087048298676326, + "lpips": 0.2708582580089569, + "linear_psnr": 17.910822900764202, + "prediction_above_scale_percent": 0.0, + "reference_above_scale_percent": 0.0, + "max_prediction_over_scale": 0.6887636004846934, + "max_reference_over_scale": 0.7299735165228034, + "image_psnr": 17.719117167566736 + }, + { + "view": 6, + "frame": "RawDataHistogramMap_frame_0_1772202532994709.npz", + "prediction_scale": 1000.0, + "prediction_gamma": 2.0, + "valid_pixels": 35544, + "histogram_psnr": 40.74429191106388, + "histogram_mse_counts": 528.6863781568848, + "histogram_mae_counts": 2.794126271813154, + "depth_l1_m": 0.825485668608837, + "transient_iou": 0.5285672202782183, + "ssim": 0.36636014265097944, + "lpips": 0.3063077926635742, + "linear_psnr": 16.915217131495993, + "prediction_above_scale_percent": 0.0, + "reference_above_scale_percent": 0.0, + "max_prediction_over_scale": 0.6830287667465175, + "max_reference_over_scale": 0.7303234311266711, + "image_psnr": 16.304897520566353 + }, + { + "view": 7, + "frame": "RawDataHistogramMap_frame_0_1772202553170863.npz", + "prediction_scale": 1000.0, + "prediction_gamma": 2.0, + "valid_pixels": 35333, + "histogram_psnr": 41.868386307933726, + "histogram_mse_counts": 408.12075468799384, + "histogram_mae_counts": 2.360918586901824, + "depth_l1_m": 0.7071209195290522, + "transient_iou": 0.5903505271405913, + "ssim": 0.43455068367836575, + "lpips": 0.28201067447662354, + "linear_psnr": 17.99294062511583, + "prediction_above_scale_percent": 0.0, + "reference_above_scale_percent": 0.0, + "max_prediction_over_scale": 0.7151034586521444, + "max_reference_over_scale": 0.7294532170674977, + "image_psnr": 17.089656646544405 + }, + { + "view": 8, + "frame": "RawDataHistogramMap_frame_0_1772202593329100.npz", + "prediction_scale": 1000.0, + "prediction_gamma": 2.0, + "valid_pixels": 34627, + "histogram_psnr": 43.64950326354553, + "histogram_mse_counts": 270.81766265616585, + "histogram_mae_counts": 1.7635296669765885, + "depth_l1_m": 0.5866815982250917, + "transient_iou": 0.6826367409945532, + "ssim": 0.4966659271578577, + "lpips": 0.24072769284248352, + "linear_psnr": 19.212720706898807, + "prediction_above_scale_percent": 0.0, + "reference_above_scale_percent": 0.0, + "max_prediction_over_scale": 0.7237207380204875, + "max_reference_over_scale": 0.7316644317952687, + "image_psnr": 18.772880212588884 + }, + { + "view": 9, + "frame": "RawDataHistogramMap_frame_0_1772202631663117.npz", + "prediction_scale": 1000.0, + "prediction_gamma": 2.0, + "valid_pixels": 34195, + "histogram_psnr": 43.370210587783305, + "histogram_mse_counts": 288.8060276251755, + "histogram_mae_counts": 1.9788440729462626, + "depth_l1_m": 0.8520216505934493, + "transient_iou": 0.6426501101462212, + "ssim": 0.469610196557674, + "lpips": 0.2597702443599701, + "linear_psnr": 18.607585928104353, + "prediction_above_scale_percent": 0.0, + "reference_above_scale_percent": 0.0, + "max_prediction_over_scale": 0.6932845249449808, + "max_reference_over_scale": 0.7311939639768191, + "image_psnr": 17.755840007561062 + }, + { + "view": 10, + "frame": "RawDataHistogramMap_frame_0_1772202653675337.npz", + "prediction_scale": 1000.0, + "prediction_gamma": 2.0, + "valid_pixels": 34078, + "histogram_psnr": 44.2764567687103, + "histogram_mse_counts": 234.4129687023102, + "histogram_mae_counts": 1.753372574741945, + "depth_l1_m": 0.7440290534498651, + "transient_iou": 0.6829042513752577, + "ssim": 0.5213723168131092, + "lpips": 0.24015823006629944, + "linear_psnr": 20.1411593381108, + "prediction_above_scale_percent": 0.0, + "reference_above_scale_percent": 0.0, + "max_prediction_over_scale": 0.7124401291006276, + "max_reference_over_scale": 0.7304078584332965, + "image_psnr": 18.951457440811744 + }, + { + "view": 11, + "frame": "RawDataHistogramMap_frame_0_1772202702449698.npz", + "prediction_scale": 1000.0, + "prediction_gamma": 2.0, + "valid_pixels": 33838, + "histogram_psnr": 44.602345762959075, + "histogram_mse_counts": 217.4666856534851, + "histogram_mae_counts": 1.4760635534804296, + "depth_l1_m": 0.44723345959521094, + "transient_iou": 0.7311619849966771, + "ssim": 0.5112557168478944, + "lpips": 0.20718175172805786, + "linear_psnr": 19.96565617566207, + "prediction_above_scale_percent": 0.0, + "reference_above_scale_percent": 0.0, + "max_prediction_over_scale": 0.6962896119366635, + "max_reference_over_scale": 0.7320640171876818, + "image_psnr": 19.42831336084783 + }, + { + "view": 12, + "frame": "RawDataHistogramMap_frame_0_1772202738945758.npz", + "prediction_scale": 1000.0, + "prediction_gamma": 2.0, + "valid_pixels": 33873, + "histogram_psnr": 43.63190586742039, + "histogram_mse_counts": 271.91722852700485, + "histogram_mae_counts": 1.8817586571668456, + "depth_l1_m": 0.7084790634070055, + "transient_iou": 0.6677388484414687, + "ssim": 0.4249799108853094, + "lpips": 0.26494383811950684, + "linear_psnr": 19.52232265625267, + "prediction_above_scale_percent": 0.0, + "reference_above_scale_percent": 0.0, + "max_prediction_over_scale": 0.7027768588307898, + "max_reference_over_scale": 0.7281369077561047, + "image_psnr": 18.919892803061504 + }, + { + "view": 13, + "frame": "RawDataHistogramMap_frame_0_1772202755449299.npz", + "prediction_scale": 1000.0, + "prediction_gamma": 2.0, + "valid_pixels": 34067, + "histogram_psnr": 44.484413094674636, + "histogram_mse_counts": 223.45290361872054, + "histogram_mae_counts": 1.6787933646680187, + "depth_l1_m": 0.5904515289290296, + "transient_iou": 0.6979917268116547, + "ssim": 0.511696792592013, + "lpips": 0.23462997376918793, + "linear_psnr": 20.595251251356075, + "prediction_above_scale_percent": 0.0, + "reference_above_scale_percent": 0.0, + "max_prediction_over_scale": 0.7118832147425905, + "max_reference_over_scale": 0.7236972063051808, + "image_psnr": 20.180878960412528 + } +] \ No newline at end of file diff --git a/codes/reconstruction/experiments/run_20261025/FlyingWithPhotons__c4floor2__5views/test_100000/unified_metrics/view11_image_scores.json b/codes/reconstruction/experiments/run_20261025/FlyingWithPhotons__c4floor2__5views/test_100000/unified_metrics/view11_image_scores.json new file mode 100644 index 0000000000000000000000000000000000000000..82726708f4c9254b8ca28a27f0cda0b9e92116c2 --- /dev/null +++ b/codes/reconstruction/experiments/run_20261025/FlyingWithPhotons__c4floor2__5views/test_100000/unified_metrics/view11_image_scores.json @@ -0,0 +1,10 @@ +{ + "ssim": 0.5112557168478944, + "lpips": 0.20718175172805786, + "linear_psnr": 19.96565617566207, + "prediction_above_scale_percent": 0.0, + "reference_above_scale_percent": 0.0, + "max_prediction_over_scale": 0.6962896119366635, + "max_reference_over_scale": 0.7320640171876818, + "image_psnr": 19.42831336084783 +} \ No newline at end of file diff --git a/codes/reconstruction/experiments/run_20261025/FlyingWithPhotons__c4floor2__5views/test_100000/unified_metrics/view5_image_scores.json b/codes/reconstruction/experiments/run_20261025/FlyingWithPhotons__c4floor2__5views/test_100000/unified_metrics/view5_image_scores.json new file mode 100644 index 0000000000000000000000000000000000000000..658bf256dbfa7c2f4c09eb8d81a119dfaa38d2a1 --- /dev/null +++ b/codes/reconstruction/experiments/run_20261025/FlyingWithPhotons__c4floor2__5views/test_100000/unified_metrics/view5_image_scores.json @@ -0,0 +1,10 @@ +{ + "ssim": 0.41087048298676326, + "lpips": 0.2708582580089569, + "linear_psnr": 17.910822900764202, + "prediction_above_scale_percent": 0.0, + "reference_above_scale_percent": 0.0, + "max_prediction_over_scale": 0.6887636004846934, + "max_reference_over_scale": 0.7299735165228034, + "image_psnr": 17.719117167566736 +} \ No newline at end of file diff --git a/codes/reconstruction/experiments/run_20261025/FlyingWithPhotons__c4floor2__5views/test_100000/unified_metrics/view6_image_scores.json b/codes/reconstruction/experiments/run_20261025/FlyingWithPhotons__c4floor2__5views/test_100000/unified_metrics/view6_image_scores.json new file mode 100644 index 0000000000000000000000000000000000000000..6b8857666fc3d4b8196647ca6fb7669fc2fad8e5 --- /dev/null +++ b/codes/reconstruction/experiments/run_20261025/FlyingWithPhotons__c4floor2__5views/test_100000/unified_metrics/view6_image_scores.json @@ -0,0 +1,10 @@ +{ + "ssim": 0.36636014265097944, + "lpips": 0.3063077926635742, + "linear_psnr": 16.915217131495993, + "prediction_above_scale_percent": 0.0, + "reference_above_scale_percent": 0.0, + "max_prediction_over_scale": 0.6830287667465175, + "max_reference_over_scale": 0.7303234311266711, + "image_psnr": 16.304897520566353 +} \ No newline at end of file diff --git a/codes/reconstruction/experiments/run_20261025/trnerf__design_floor1__5views/checkpoints/image_metric_normalization.json b/codes/reconstruction/experiments/run_20261025/trnerf__design_floor1__5views/checkpoints/image_metric_normalization.json new file mode 100644 index 0000000000000000000000000000000000000000..6cb84addb1a1dedbb574f55518b09ee8c83b5b57 --- /dev/null +++ b/codes/reconstruction/experiments/run_20261025/trnerf__design_floor1__5views/checkpoints/image_metric_normalization.json @@ -0,0 +1,11 @@ +{ + "training_scale": 3113.941650390625, + "training_gamma": 1.0, + "project": "trnerf", + "train_poses": "/home/donghongzhou/project/SP-Transient-retrain/experiments/data/design_floor1/five_views/transforms_train.json", + "train_poses_sha256": "ef94ccb698b275662141234102c3cb26aae0459e3ece0ac3bd96ac52d38e5b8d", + "measurement_root": "/home/donghongzhou/project/SP-Transient-retrain/experiments/data/design_floor1", + "intrinsics": "/home/donghongzhou/project/SP-Transient-retrain/config/intrinsics.npy", + "intrinsics_sha256": "6f45a6b4c7cc80310744d530654d3fe84a75b60982fc54b25935bdfa20152aa2", + "source": "actual training loader/configuration; never computed from test data" +} \ No newline at end of file diff --git a/codes/reconstruction/experiments/run_20261025/trnerf__design_floor1__5views/checkpoints/params_full.txt b/codes/reconstruction/experiments/run_20261025/trnerf__design_floor1__5views/checkpoints/params_full.txt new file mode 100644 index 0000000000000000000000000000000000000000..7b48a36dd1fe0c8d71c3ac11b5a3a72a33e6c51f --- /dev/null +++ b/codes/reconstruction/experiments/run_20261025/trnerf__design_floor1__5views/checkpoints/params_full.txt @@ -0,0 +1,55 @@ +skip_train_summaries= 'True' +irf_path= '/home/donghongzhou/project/SP-Transient-retrain/experiments/calibration/IRF_global_nonnegative.csv' +irf_column= 'irf' +irf_half_window= 50 +no_irf_reverse= 'False' +measurement_root= '/home/donghongzhou/project/SP-Transient-retrain/experiments/data/design_floor1' +data_exts= '.npz' +bin_width_s_loader= 7.5e-10 +img_height= 192 +img_width= 256 +img_height_test= 192 +img_width_test= 256 +meas_peak_min= 100.0 +invalid_mask_path= '/home/donghongzhou/project/SP-Transient-retrain/config/offset.txt' +invalid_mask_invalid_gt= 10.0 +my_config= '/home/donghongzhou/project/SP-Transient-retrain/experiments/run_20261025/trnerf__design_floor1__5views/train.ini' +exp_name= 'checkpoints' +aabb= '[-32.97903368485406, -31.80313330072445, -2.285502236111863, 32.84135510520197, 25.272967183539148, 15.918132996760834]' +test_chunk_size= 256 +num_rays_per_batch= 512 +starting_rays_per_pixel= 1 +tfilter_sigma= 3 +space_carving= 0.0 +rfilter_sigma= 0.15 +exposure_time= 0.2248443435 +lr= 0.0001 +steps_til_checkpoint= 50000 +n_bins= 672 +img_shape= 256 +sample_as_per_distribution= 'False' +render_n_samples= 1024 +exp= 'True' +max_steps= 150000 +near_plane= 0.1 +alpha_thre= 0.0 +far_plane= 75.547699416 +version= 'captured' +occ_thre= 1e-07 +thold_warmup= 80000 +final= 'True' +grid_resolution= 128 +grid_nlvl= 1 +outpath= '/home/donghongzhou/project/SP-Transient-retrain/experiments/run_20261025/trnerf__design_floor1__5views' +data_root_fp= '/home/donghongzhou/project/SP-Transient-retrain/experiments/data/design_floor1/five_views' +pulse_path= './datasets/pulse_low_flux.mat' +intrinsics= '/home/donghongzhou/project/SP-Transient-retrain/config/intrinsics.npy' +pixels_to_plot= '[(40, 60), (60, 100), (80, 60)]' +img_scale= 100 +num_views= 5 +img_shape_test= 256 +seed= 42 +device= 'cuda:0' +cone_angle= 0.0 +resume= 'None' +laser_kernel= 'Conv1d(1, 1, kernel_size=(101,), stride=(1,), padding=(50,))' \ No newline at end of file diff --git a/codes/reconstruction/experiments/run_20261025/trnerf__design_floor1__5views/eval.ini b/codes/reconstruction/experiments/run_20261025/trnerf__design_floor1__5views/eval.ini new file mode 100644 index 0000000000000000000000000000000000000000..949eff64dc3f49ee1c508b21736ec6296bda82ca --- /dev/null +++ b/codes/reconstruction/experiments/run_20261025/trnerf__design_floor1__5views/eval.ini @@ -0,0 +1,49 @@ +exp_name = checkpoints +test_chunk_size = 256 +num_rays_per_batch = 512 +starting_rays_per_pixel = 1 +tfilter_sigma = 3 +rfilter_sigma = 0.15 +space_carving = 0.0 +lr = 0.0001 +num_views = 5 +n_bins = 672 +aabb = "[-32.97903368485406, -31.80313330072445, -2.285502236111863, 32.84135510520197, 25.272967183539148, 15.918132996760834]" +version = captured +data_root_fp = "/home/donghongzhou/project/SP-Transient-retrain/experiments/data/design_floor1/five_views" +measurement_root = "/home/donghongzhou/project/SP-Transient-retrain/experiments/data/design_floor1" +data_exts = ".npz" +irf_path = "/home/donghongzhou/project/SP-Transient-retrain/experiments/calibration/IRF_global_nonnegative.csv" +irf_column = "irf" +irf_half_window = 50 +intrinsics = "/home/donghongzhou/project/SP-Transient-retrain/config/intrinsics.npy" +invalid_mask_path = "/home/donghongzhou/project/SP-Transient-retrain/config/offset.txt" +invalid_mask_invalid_gt = 10.0 +exposure_time = 0.2248443435 +bin_width_s_loader = 7.5e-10 +thold_warmup = 80000 +max_steps = 150000 +img_height_test = 192 +img_width_test = 256 +img_shape = 256 +img_shape_test = 256 +near_plane = 0.100000 +far_plane = 75.547699416 +alpha_thre = 0 +occ_thre = 0.0000001 +sample_as_per_distribution = False +render_n_samples = 1024 +exp = True +final = True +steps_til_checkpoint = 50000 +grid_resolution = 128 +grid_nlvl = 1 +outpath = "/home/donghongzhou/project/SP-Transient-retrain/experiments/run_20261025/trnerf__design_floor1__5views" +pixels_to_plot = ["(40, 60)", "(60, 100)", "(80, 60)"] +img_scale = 100 +seed = 42 +device = cuda:0 +test_folder_path = "/home/donghongzhou/project/SP-Transient-retrain/experiments/data/design_floor1/five_views" +split = test +rep_number = 30 +shared_reference_contract = "/home/donghongzhou/project/SP-Transient-retrain/experiments/references/design_floor1/contract.json" diff --git a/codes/reconstruction/experiments/run_20261025/trnerf__design_floor1__5views/test_100000/prediction_manifest.json b/codes/reconstruction/experiments/run_20261025/trnerf__design_floor1__5views/test_100000/prediction_manifest.json new file mode 100644 index 0000000000000000000000000000000000000000..02a4deec26dbfb41a1d94de7f36725faffd49347 --- /dev/null +++ b/codes/reconstruction/experiments/run_20261025/trnerf__design_floor1__5views/test_100000/prediction_manifest.json @@ -0,0 +1,591 @@ +{ + "frames": [ + { + "file_path": "RawDataHistogramMap_frame_0_1772195683421466.npz", + "transform_matrix": [ + [ + 0.05952934156170293, + 0.054673978798180124, + 0.9959685158189008, + 0.04041923568818094 + ], + [ + 0.9982188570198786, + -0.00717912861334852, + -0.05917910872031087, + -0.09755549469905742 + ], + [ + -0.003920584542941435, + -0.9977174468648544, + 0.0550039654239877, + 0.014058813326669148 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772195708926196.npz", + "transform_matrix": [ + [ + 0.14611095339582167, + 0.05717959110194544, + 0.9868613894148891, + 0.024887442930526638 + ], + [ + 0.9892278411124873, + -0.017456693604031702, + -0.14522737432548138, + -0.11965797044337106 + ], + [ + -0.008936871135470826, + -0.9974500718500275, + 0.05911425760709587, + 0.015298356291131137 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772195786677057.npz", + "transform_matrix": [ + [ + 0.2871074303234434, + 0.057110429913988583, + 0.9554652433934121, + -0.0020618093318914565 + ], + [ + 0.9577616771989089, + -0.03396654106921851, + -0.285330027285764, + -0.1511363929333374 + ], + [ + -0.016183112871320317, + -0.9970283649458686, + 0.06445022746333079, + 0.016462465087975022 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772195804830922.npz", + "transform_matrix": [ + [ + 0.3623204477966613, + 0.05530898866514927, + 0.9297016293756548, + -0.017160501545969375 + ], + [ + 0.9318506256817919, + -0.04231107057900046, + -0.36008913740510523, + -0.16567000856878852 + ], + [ + -0.01945005205353409, + -0.9968107025424113, + 0.06686988173238516, + 0.01703668596917768 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772195844807697.npz", + "transform_matrix": [ + [ + 0.5008071209394004, + 0.04795708476123409, + 0.8635706331577494, + -0.048744428853460905 + ], + [ + 0.8651656616027725, + -0.05780638187612441, + -0.49775974233596876, + -0.19235433638589872 + ], + [ + -0.026088418883387813, + -0.9964132816554556, + 0.0704406706452977, + 0.017950195170815152 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772195866448285.npz", + "transform_matrix": [ + [ + 0.5898277314716865, + 0.041240317939372134, + 0.8058609465967868, + -0.07439769990673617 + ], + [ + 0.8069255566937308, + -0.06867528495656708, + -0.5861952547702293, + -0.20757655771445718 + ], + [ + -0.031215270966078, + -0.9960240102709347, + 0.07378445404555688, + 0.01894868839250832 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772195884607109.npz", + "transform_matrix": [ + [ + 0.6601538333378768, + 0.0413406609996904, + 0.749420301005527, + -0.10036549677566538 + ], + [ + 0.7506843442493093, + -0.07069224594932119, + -0.6563631388966117, + -0.22233203177006405 + ], + [ + -0.0258830374628225, + -0.9958787294317274, + 0.07770154414409286, + 0.019275147559676933 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772195929915524.npz", + "transform_matrix": [ + [ + 0.7719628669472366, + 0.03496268896956454, + 0.6342216565484131, + -0.13997802473911158 + ], + [ + 0.6351157371478379, + -0.08398871418421808, + -0.7672467343282794, + -0.23537742042946658 + ], + [ + -0.02648268267706175, + -0.9950901436018248, + 0.0870415225704353, + 0.021280089367266556 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772195949897250.npz", + "transform_matrix": [ + [ + 0.8132268877261241, + 0.03186312212698906, + 0.580630954090365, + -0.16027318444290733 + ], + [ + 0.5813518037299009, + -0.08958542041889962, + -0.8080834329819928, + -0.23704362281423325 + ], + [ + -0.02630797178203703, + -0.9947060276888294, + 0.09137695615388795, + 0.022011946656855387 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772196037012271.npz", + "transform_matrix": [ + [ + 0.8948323894114544, + 0.024296013735720604, + 0.4454009176750651, + -0.213344190045993 + ], + [ + 0.4457463595697376, + -0.10269907225613777, + -0.8885638993747103, + -0.23527521544852686 + ], + [ + -0.024190448332435787, + -0.9936515948249073, + 0.10272831589205172, + 0.024830345405855513 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772196065982375.npz", + "transform_matrix": [ + [ + 0.9282916072022016, + 0.019872588650741214, + 0.3710387007070186, + -0.23882260025173063 + ], + [ + 0.3711972402475508, + -0.10875686035890968, + -0.9214525252624157, + -0.23314051429553379 + ], + [ + -0.02207489140555535, + -0.9931051873638521, + 0.10833473076056614, + 0.025877588082447604 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772196111467395.npz", + "transform_matrix": [ + [ + 0.9736179859036981, + 0.0025560576438236646, + 0.2279964625259145, + -0.2853719984937336 + ], + [ + 0.22680233124855376, + -0.12063596011438794, + -0.9656949297602733, + -0.22335107635320217 + ], + [ + -0.02507429091834164, + -0.9919280817279047, + 0.11803306034655284, + 0.027617884535878406 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772196140438461.npz", + "transform_matrix": [ + [ + 0.9896630350882573, + -0.006807665217071326, + 0.1431414998280345, + -0.3041895257601137 + ], + [ + 0.14129447014468602, + -0.12461186875406559, + -0.9813352996039661, + -0.21379387710771258 + ], + [ + -0.024555033831021086, + -0.9914163734192162, + 0.12236187478939824, + 0.027956449654252043 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772196185933036.npz", + "transform_matrix": [ + [ + 0.9992301303744404, + -0.026533055835313422, + -0.028858367302277484, + -0.3346155030722252 + ], + [ + -0.0321029135788806, + -0.13016719002749794, + -0.9902062203382911, + -0.19428949214974464 + ], + [ + -0.022551041919068253, + -0.9903703283177384, + 0.13091876666011468, + 0.02844224509423926 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772196216559505.npz", + "transform_matrix": [ + [ + 0.992362319994533, + -0.03629194706795451, + -0.11779984745657922, + -0.3477467671832681 + ], + [ + -0.1217298003785673, + -0.13349315655505295, + -0.9827842239794874, + -0.19194651149240205 + ], + [ + -0.019972019298897813, + -0.9896177844778171, + 0.13689139001429582, + 0.029047309663462403 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772196241855245.npz", + "transform_matrix": [ + [ + 0.9740996888973295, + -0.05267302830942507, + -0.21972181565065485, + -0.36172954888317893 + ], + [ + -0.22494919102112226, + -0.12702345349237656, + -0.9653085836563012, + -0.18094519518739696 + ], + [ + -0.02297079774584637, + -0.989733035709822, + 0.13558226163642478, + 0.028276281212936648 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772196280001075.npz", + "transform_matrix": [ + [ + 0.9174467925532044, + -0.07255817231591423, + -0.39087879459663166, + -0.39456008129568976 + ], + [ + -0.3974542542774043, + -0.1228698161134221, + -0.9086550421777622, + -0.14858603606600862 + ], + [ + -0.017930381776202636, + -0.9889990938025293, + 0.1415650729644126, + 0.028685938452087573 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772196299998913.npz", + "transform_matrix": [ + [ + 0.8800657229954864, + -0.08145120775179268, + -0.46744784515301163, + -0.40846745288603903 + ], + [ + -0.47462643319501957, + -0.1205540342233508, + -0.8712172933288629, + -0.1310728742750863 + ], + [ + -0.014631203676262054, + -0.9885915805892971, + 0.14475436950345436, + 0.028450321529243462 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772196366934821.npz", + "transform_matrix": [ + [ + 0.8014745568914703, + -0.09415677535200856, + -0.5901099416098193, + -0.432892475061012 + ], + [ + -0.5979805888020999, + -0.1136390754528174, + -0.7927985046436958, + -0.0951426055441195 + ], + [ + -0.007599346782840904, + -0.9882821205553277, + 0.1473827516088035, + 0.027576962775641034 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + }, + { + "file_path": "RawDataHistogramMap_frame_0_1772196386919610.npz", + "transform_matrix": [ + [ + 0.7465343334659513, + -0.10180119380950022, + -0.6570011532496508, + -0.44375842945188565 + ], + [ + -0.6653326972788847, + -0.10777027581523921, + -0.7381539941183582, + -0.07354395895532102 + ], + [ + -0.00434636493662422, + -0.9881816494012946, + 0.1481858738866557, + 0.027347477378918423 + ], + [ + 0.0, + 0.0, + 0.0, + 1.0 + ] + ] + } + ], + "prediction_scale": 3113.941650390625, + "prediction_gamma": 1.0, + "bin_width_s": 7.5e-10, + "rendering": { + "forward_repeats": 30, + "sampling": "native fresh ray jitter and weighted average" + } +} \ No newline at end of file diff --git a/codes/reconstruction/experiments/run_20261025/trnerf__design_floor1__5views/test_100000/unified_metrics/evaluation_protocol.json b/codes/reconstruction/experiments/run_20261025/trnerf__design_floor1__5views/test_100000/unified_metrics/evaluation_protocol.json new file mode 100644 index 0000000000000000000000000000000000000000..757641902eb1fa87afd1db96392890e066a63212 --- /dev/null +++ b/codes/reconstruction/experiments/run_20261025/trnerf__design_floor1__5views/test_100000/unified_metrics/evaluation_protocol.json @@ -0,0 +1,80 @@ +{ + "protocol": "shared_transient_counts_v4_20261016", + "project": "trnerf", + "reference_contract": "/home/donghongzhou/project/SP-Transient-retrain/experiments/references/design_floor1/contract.json", + "reference_sha256": "09c22e1b64858ddc2d55a7f8d5e52508db2163592d8c1b5992c8befbabe72353", + "scene_id": "design_floor1", + "histogram_peak": 3113.941650390625, + "display_scale": 8371.91796875, + "mask_policy": "offset <= 10 AND calibrated GT peak >= 100 AND positive signal", + "n_bins": 672, + "bin_width_s": 7.5e-10, + "frames": [ + "RawDataHistogramMap_frame_0_1772195683421466.npz", + "RawDataHistogramMap_frame_0_1772195708926196.npz", + "RawDataHistogramMap_frame_0_1772195786677057.npz", + "RawDataHistogramMap_frame_0_1772195804830922.npz", + "RawDataHistogramMap_frame_0_1772195844807697.npz", + "RawDataHistogramMap_frame_0_1772195866448285.npz", + "RawDataHistogramMap_frame_0_1772195884607109.npz", + "RawDataHistogramMap_frame_0_1772195929915524.npz", + "RawDataHistogramMap_frame_0_1772195949897250.npz", + "RawDataHistogramMap_frame_0_1772196037012271.npz", + "RawDataHistogramMap_frame_0_1772196065982375.npz", + "RawDataHistogramMap_frame_0_1772196111467395.npz", + "RawDataHistogramMap_frame_0_1772196140438461.npz", + "RawDataHistogramMap_frame_0_1772196185933036.npz", + "RawDataHistogramMap_frame_0_1772196216559505.npz", + "RawDataHistogramMap_frame_0_1772196241855245.npz", + "RawDataHistogramMap_frame_0_1772196280001075.npz", + "RawDataHistogramMap_frame_0_1772196299998913.npz", + "RawDataHistogramMap_frame_0_1772196366934821.npz", + "RawDataHistogramMap_frame_0_1772196386919610.npz" + ], + "histogram_psnr": "20log10(frozen train peak)-10log10(mean squared count error); all valid bins/channels; no upper clipping/gamma", + "depth": "argmax of channel-mean full-count histogram; bin_index*c*dt/2, metres; canonical GT mask", + "aggregation": "arithmetic mean of per-view metrics, only complete frame sets receive an aggregate", + "training_scale_policy": "explicit actual training scale; never test maximum", + "evaluator_python": "/home/donghongzhou/project/SP-Transient-retrain/experiments/.venv/bin/python", + "image_metrics_device": "cpu", + "code_sha256": { + "core.py": "834be7901d6862e088c19ca0f55f9238f3f62d9fa38b187070ec0c6ab74b2be3", + "evaluator.py": "d96962d6462ab6b8139f08ce4f85f7757fbe05d6efa6a43ede78a0ea54962abb", + "worker.py": "42ecedfc168f7725646240d19f2fe0f7d33f50a458ae92c1dd03ae517cc197c1" + }, + "image_code_sha256": "400802b3e931934caaf6cd727ab3b7c7186dfcc7c586307b5a746833e8a0b808", + "image_metric_definition": { + "protocol": "shared_ta_display_psnr_ssim_lpips_v3_20260929", + "scale_policy": "explicit frozen per-scene record; no numeric scene fallback", + "metric_labels": { + "psnr": "PSNR-display", + "ssim": "SSIM-display", + "lpips": "LPIPS-display", + "linear_psnr": "PSNR-linear (auxiliary)" + }, + "prediction_display": "clip(I/D,0,1) ** (1/2.2)", + "reference_display": "(I/D) ** (1/2.2), no upper clipping", + "psnr": "-10log10 valid-reference-pixel/RGB display MSE; fixed peak 1", + "ssim": "RGB, data_range=1, uniform 7x7, sample covariance, complete reference-valid windows", + "lpips": "same display RGB, common invalid region black, [-1,1] transform, VGG0.1 FP32", + "linear_psnr": "-10log10 mean(((prediction-reference)/D)^2); no upper clipping or gamma", + "above_scale_percent": "percentage of reference-valid pixels with ANY RGB channel > D", + "aggregation": "arithmetic mean of per-view metrics; saturation percentages are mean per-view percentages", + "prediction_upper_clip": true, + "reference_upper_clip": false, + "count_domain_upper_clip": false, + "fitted_test_exposure": false, + "preview_png": "clip display arrays only for uint8 export; floating scoring arrays are retained", + "upstream_exact": false, + "scale": 8371.91796875 + }, + "checkpoint_dir": "/home/donghongzhou/project/SP-Transient-retrain/experiments/run_20261025/trnerf__design_floor1__5views/checkpoints", + "checkpoint_step": 100000, + "rendering_note": "Native renderers retain their method-specific sampling; all default native V4 runs use 30 forward repetitions. Saved-output runs must record their rendering settings separately.", + "prediction_scale": 3113.941650390625, + "prediction_gamma": 1.0, + "rendering": { + "forward_repeats": 30, + "sampling": "native fresh ray jitter and weighted average" + } +} \ No newline at end of file diff --git a/codes/reconstruction/experiments/run_20261025/trnerf__design_floor1__5views/test_100000/unified_metrics/metrics_aggregate.json b/codes/reconstruction/experiments/run_20261025/trnerf__design_floor1__5views/test_100000/unified_metrics/metrics_aggregate.json new file mode 100644 index 0000000000000000000000000000000000000000..8f77ca3a3830a5c4ceac8cc80e11b7ebaa3dbe64 --- /dev/null +++ b/codes/reconstruction/experiments/run_20261025/trnerf__design_floor1__5views/test_100000/unified_metrics/metrics_aggregate.json @@ -0,0 +1,15 @@ +{ + "histogram_psnr": 46.30459343965366, + "histogram_mse_counts": 242.78176352245504, + "histogram_mae_counts": 1.527139500877828, + "depth_l1_m": 0.4813363535258154, + "transient_iou": 0.7866637471572333, + "ssim": 0.7860923116542449, + "lpips": 0.11500622481107711, + "linear_psnr": 20.892417050929595, + "prediction_above_scale_percent": 0.08840702554519221, + "reference_above_scale_percent": 0.0004796594573149672, + "max_prediction_over_scale": 1.6457656558766558, + "max_reference_over_scale": 0.861484610035028, + "image_psnr": 21.3131064500574 +} \ No newline at end of file diff --git a/codes/reconstruction/experiments/run_20261025/trnerf__design_floor1__5views/test_100000/unified_metrics/metrics_per_view.json b/codes/reconstruction/experiments/run_20261025/trnerf__design_floor1__5views/test_100000/unified_metrics/metrics_per_view.json new file mode 100644 index 0000000000000000000000000000000000000000..c6f30243b8e759b1880946c82f64462d79a7974f --- /dev/null +++ b/codes/reconstruction/experiments/run_20261025/trnerf__design_floor1__5views/test_100000/unified_metrics/metrics_per_view.json @@ -0,0 +1,402 @@ +[ + { + "view": 0, + "frame": "RawDataHistogramMap_frame_0_1772195683421466.npz", + "prediction_scale": 3113.941650390625, + "prediction_gamma": 1.0, + "valid_pixels": 20937, + "histogram_psnr": 45.27903276612476, + "histogram_mse_counts": 287.5528419759072, + "histogram_mae_counts": 1.7293086894113676, + "depth_l1_m": 0.435153327639669, + "transient_iou": 0.7602847074537018, + "ssim": 0.7842701641082462, + "lpips": 0.12625519931316376, + "linear_psnr": 17.945657158625817, + "prediction_above_scale_percent": 0.0, + "reference_above_scale_percent": 0.004776233462291637, + "max_prediction_over_scale": 0.9069249603241658, + "max_reference_over_scale": 1.0013671697750623, + "image_psnr": 18.595604578089663 + }, + { + "view": 1, + "frame": "RawDataHistogramMap_frame_0_1772195708926196.npz", + "prediction_scale": 3113.941650390625, + "prediction_gamma": 1.0, + "valid_pixels": 20760, + "histogram_psnr": 49.254552856322206, + "histogram_mse_counts": 115.12394284553616, + "histogram_mae_counts": 1.0964480775411485, + "depth_l1_m": 0.42203803146264446, + "transient_iou": 0.8439575386384937, + "ssim": 0.8861079284530722, + "lpips": 0.08638212084770203, + "linear_psnr": 23.88539646176198, + "prediction_above_scale_percent": 0.0, + "reference_above_scale_percent": 0.004816955684007708, + "max_prediction_over_scale": 0.8325462051132414, + "max_reference_over_scale": 1.0169927958435525, + "image_psnr": 22.88334620999647 + }, + { + "view": 2, + "frame": "RawDataHistogramMap_frame_0_1772195786677057.npz", + "prediction_scale": 3113.941650390625, + "prediction_gamma": 1.0, + "valid_pixels": 20780, + "histogram_psnr": 48.365345455836945, + "histogram_mse_counts": 141.28185720915945, + "histogram_mae_counts": 1.1697767771425729, + "depth_l1_m": 0.4935160216172642, + "transient_iou": 0.8320541928848777, + "ssim": 0.8515980760374875, + "lpips": 0.09590993821620941, + "linear_psnr": 22.675078651570214, + "prediction_above_scale_percent": 0.0, + "reference_above_scale_percent": 0.0, + "max_prediction_over_scale": 0.8515618908884944, + "max_reference_over_scale": 0.8073459941320231, + "image_psnr": 22.420286748092867 + }, + { + "view": 3, + "frame": "RawDataHistogramMap_frame_0_1772195804830922.npz", + "prediction_scale": 3113.941650390625, + "prediction_gamma": 1.0, + "valid_pixels": 20831, + "histogram_psnr": 46.71336491220332, + "histogram_mse_counts": 206.67333598167193, + "histogram_mae_counts": 1.4358420800487786, + "depth_l1_m": 0.5821764165516659, + "transient_iou": 0.7981078746217346, + "ssim": 0.7786818407121215, + "lpips": 0.12315498292446136, + "linear_psnr": 21.24354712234797, + "prediction_above_scale_percent": 0.1632182804474101, + "reference_above_scale_percent": 0.0, + "max_prediction_over_scale": 1.0402264917390633, + "max_reference_over_scale": 0.8357685792291667, + "image_psnr": 21.497826974646188 + }, + { + "view": 4, + "frame": "RawDataHistogramMap_frame_0_1772195844807697.npz", + "prediction_scale": 3113.941650390625, + "prediction_gamma": 1.0, + "valid_pixels": 21247, + "histogram_psnr": 45.89765232019437, + "histogram_mse_counts": 249.3766053662056, + "histogram_mae_counts": 1.6668320404652825, + "depth_l1_m": 0.6258275148526733, + "transient_iou": 0.769183082197555, + "ssim": 0.7272106519462939, + "lpips": 0.13133348524570465, + "linear_psnr": 20.266665502814657, + "prediction_above_scale_percent": 0.04706546806607992, + "reference_above_scale_percent": 0.0, + "max_prediction_over_scale": 1.0371211447333186, + "max_reference_over_scale": 0.8606854202581493, + "image_psnr": 20.59896137425392 + }, + { + "view": 5, + "frame": "RawDataHistogramMap_frame_0_1772195866448285.npz", + "prediction_scale": 3113.941650390625, + "prediction_gamma": 1.0, + "valid_pixels": 21438, + "histogram_psnr": 46.66707743485004, + "histogram_mse_counts": 208.88785839579486, + "histogram_mae_counts": 1.505432573581786, + "depth_l1_m": 0.5691850965376085, + "transient_iou": 0.789583526251782, + "ssim": 0.764666229351429, + "lpips": 0.1285271793603897, + "linear_psnr": 20.760834812703504, + "prediction_above_scale_percent": 0.0, + "reference_above_scale_percent": 0.0, + "max_prediction_over_scale": 0.9615097982654611, + "max_reference_over_scale": 0.8624694799912932, + "image_psnr": 20.66965439010832 + }, + { + "view": 6, + "frame": "RawDataHistogramMap_frame_0_1772195884607109.npz", + "prediction_scale": 3113.941650390625, + "prediction_gamma": 1.0, + "valid_pixels": 21330, + "histogram_psnr": 48.4105341298637, + "histogram_mse_counts": 139.81943017289382, + "histogram_mae_counts": 1.169753299593695, + "depth_l1_m": 0.5111967387732067, + "transient_iou": 0.8341613666106481, + "ssim": 0.8570429535279184, + "lpips": 0.10637762397527695, + "linear_psnr": 22.980680782801986, + "prediction_above_scale_percent": 0.0, + "reference_above_scale_percent": 0.0, + "max_prediction_over_scale": 0.8665637052059992, + "max_reference_over_scale": 0.8428349264685138, + "image_psnr": 22.119400446292303 + }, + { + "view": 7, + "frame": "RawDataHistogramMap_frame_0_1772195929915524.npz", + "prediction_scale": 3113.941650390625, + "prediction_gamma": 1.0, + "valid_pixels": 21227, + "histogram_psnr": 47.60283932106324, + "histogram_mse_counts": 168.39803082225868, + "histogram_mae_counts": 1.228220786690113, + "depth_l1_m": 0.43391134448135626, + "transient_iou": 0.8251294414214649, + "ssim": 0.8323393760686818, + "lpips": 0.0982525423169136, + "linear_psnr": 21.2720720363573, + "prediction_above_scale_percent": 0.0, + "reference_above_scale_percent": 0.0, + "max_prediction_over_scale": 0.8697727619048554, + "max_reference_over_scale": 0.8348511131106023, + "image_psnr": 21.77695279988502 + }, + { + "view": 8, + "frame": "RawDataHistogramMap_frame_0_1772195949897250.npz", + "prediction_scale": 3113.941650390625, + "prediction_gamma": 1.0, + "valid_pixels": 21363, + "histogram_psnr": 45.94103066907638, + "histogram_mse_counts": 246.8981716830241, + "histogram_mae_counts": 1.5201237777820444, + "depth_l1_m": 0.44479458880557515, + "transient_iou": 0.7870256782255313, + "ssim": 0.7574818861996404, + "lpips": 0.12944382429122925, + "linear_psnr": 21.149875747705437, + "prediction_above_scale_percent": 0.0, + "reference_above_scale_percent": 0.0, + "max_prediction_over_scale": 0.9520421395203406, + "max_reference_over_scale": 0.8371883657060014, + "image_psnr": 21.42340295193999 + }, + { + "view": 9, + "frame": "RawDataHistogramMap_frame_0_1772196037012271.npz", + "prediction_scale": 3113.941650390625, + "prediction_gamma": 1.0, + "valid_pixels": 21043, + "histogram_psnr": 46.42219747556669, + "histogram_mse_counts": 221.00453897292473, + "histogram_mae_counts": 1.4912387159150389, + "depth_l1_m": 0.3610085734763461, + "transient_iou": 0.7939490986699138, + "ssim": 0.7509790776739812, + "lpips": 0.12167640775442123, + "linear_psnr": 22.00531710113915, + "prediction_above_scale_percent": 0.0, + "reference_above_scale_percent": 0.0, + "max_prediction_over_scale": 0.9496089748938243, + "max_reference_over_scale": 0.8484882531033459, + "image_psnr": 22.506694408441273 + }, + { + "view": 10, + "frame": "RawDataHistogramMap_frame_0_1772196065982375.npz", + "prediction_scale": 3113.941650390625, + "prediction_gamma": 1.0, + "valid_pixels": 21049, + "histogram_psnr": 47.96147968947515, + "histogram_mse_counts": 155.05042888963342, + "histogram_mae_counts": 1.2551780637638967, + "depth_l1_m": 0.3084466169763053, + "transient_iou": 0.8233498885193573, + "ssim": 0.8165960575000256, + "lpips": 0.10659946501255035, + "linear_psnr": 23.77122640075486, + "prediction_above_scale_percent": 0.0, + "reference_above_scale_percent": 0.0, + "max_prediction_over_scale": 0.8858355809088363, + "max_reference_over_scale": 0.8444731432473866, + "image_psnr": 23.99658287356893 + }, + { + "view": 11, + "frame": "RawDataHistogramMap_frame_0_1772196111467395.npz", + "prediction_scale": 3113.941650390625, + "prediction_gamma": 1.0, + "valid_pixels": 21329, + "histogram_psnr": 47.31951626341706, + "histogram_mse_counts": 179.7501719467645, + "histogram_mae_counts": 1.303705875524641, + "depth_l1_m": 0.3123458894337873, + "transient_iou": 0.8104068431492363, + "ssim": 0.8097939558740874, + "lpips": 0.09790147840976715, + "linear_psnr": 21.67352409918724, + "prediction_above_scale_percent": 0.0, + "reference_above_scale_percent": 0.0, + "max_prediction_over_scale": 0.8993767537280026, + "max_reference_over_scale": 0.8409035498460385, + "image_psnr": 22.193293385317897 + }, + { + "view": 12, + "frame": "RawDataHistogramMap_frame_0_1772196140438461.npz", + "prediction_scale": 3113.941650390625, + "prediction_gamma": 1.0, + "valid_pixels": 20901, + "histogram_psnr": 45.46871369309259, + "histogram_mse_counts": 275.2640982357503, + "histogram_mae_counts": 1.6287966908865943, + "depth_l1_m": 0.3592442672126094, + "transient_iou": 0.7716306097936932, + "ssim": 0.7574111837555036, + "lpips": 0.12058958411216736, + "linear_psnr": 21.56669593274094, + "prediction_above_scale_percent": 0.0, + "reference_above_scale_percent": 0.0, + "max_prediction_over_scale": 0.9341689327700288, + "max_reference_over_scale": 0.8498402803594116, + "image_psnr": 21.980363698398143 + }, + { + "view": 13, + "frame": "RawDataHistogramMap_frame_0_1772196185933036.npz", + "prediction_scale": 3113.941650390625, + "prediction_gamma": 1.0, + "valid_pixels": 20852, + "histogram_psnr": 45.45606791555805, + "histogram_mse_counts": 276.0667797105215, + "histogram_mae_counts": 1.6967498764336908, + "depth_l1_m": 0.49268536931854257, + "transient_iou": 0.7650731000953149, + "ssim": 0.7396682573469799, + "lpips": 0.12946860492229462, + "linear_psnr": 19.723569376482544, + "prediction_above_scale_percent": 0.0959140610013428, + "reference_above_scale_percent": 0.0, + "max_prediction_over_scale": 1.0651882238649282, + "max_reference_over_scale": 0.8272519525025768, + "image_psnr": 18.95659824221704 + }, + { + "view": 14, + "frame": "RawDataHistogramMap_frame_0_1772196216559505.npz", + "prediction_scale": 3113.941650390625, + "prediction_gamma": 1.0, + "valid_pixels": 21162, + "histogram_psnr": 45.63354919959169, + "histogram_mse_counts": 265.0122936476565, + "histogram_mae_counts": 1.7276512192987359, + "depth_l1_m": 0.5002685706230862, + "transient_iou": 0.7620122399142615, + "ssim": 0.7503636060126926, + "lpips": 0.12640920281410217, + "linear_psnr": 20.790539506898288, + "prediction_above_scale_percent": 0.4489178716567432, + "reference_above_scale_percent": 0.0, + "max_prediction_over_scale": 1.1579389320653681, + "max_reference_over_scale": 0.843175304439154, + "image_psnr": 21.289607395138784 + }, + { + "view": 15, + "frame": "RawDataHistogramMap_frame_0_1772196241855245.npz", + "prediction_scale": 3113.941650390625, + "prediction_gamma": 1.0, + "valid_pixels": 22137, + "histogram_psnr": 46.65825733561019, + "histogram_mse_counts": 209.3125204314978, + "histogram_mae_counts": 1.5097811902859974, + "depth_l1_m": 0.45237012110055574, + "transient_iou": 0.788060802374648, + "ssim": 0.8341237781362361, + "lpips": 0.10417716205120087, + "linear_psnr": 21.514662035785218, + "prediction_above_scale_percent": 0.7137371820933279, + "reference_above_scale_percent": 0.0, + "max_prediction_over_scale": 1.2180591149669209, + "max_reference_over_scale": 0.8521754508972605, + "image_psnr": 21.986433742454032 + }, + { + "view": 16, + "frame": "RawDataHistogramMap_frame_0_1772196280001075.npz", + "prediction_scale": 3113.941650390625, + "prediction_gamma": 1.0, + "valid_pixels": 23284, + "histogram_psnr": 43.24026306254201, + "histogram_mse_counts": 459.82717587890653, + "histogram_mae_counts": 1.8800031083290107, + "depth_l1_m": 0.4472986777654935, + "transient_iou": 0.7387630683494087, + "ssim": 0.7523838640705613, + "lpips": 0.11170157045125961, + "linear_psnr": 15.641258362501283, + "prediction_above_scale_percent": 0.11166466242913589, + "reference_above_scale_percent": 0.0, + "max_prediction_over_scale": 7.676091698488547, + "max_reference_over_scale": 0.8452196287996725, + "image_psnr": 18.953150011552648 + }, + { + "view": 17, + "frame": "RawDataHistogramMap_frame_0_1772196299998913.npz", + "prediction_scale": 3113.941650390625, + "prediction_gamma": 1.0, + "valid_pixels": 23763, + "histogram_psnr": 42.992075171567286, + "histogram_mse_counts": 486.8704581855454, + "histogram_mae_counts": 2.1054905328595765, + "depth_l1_m": 0.5126248546046901, + "transient_iou": 0.7128971982192225, + "ssim": 0.6981225418711269, + "lpips": 0.1298331767320633, + "linear_psnr": 16.557387443644146, + "prediction_above_scale_percent": 0.12203846315700881, + "reference_above_scale_percent": 0.0, + "max_prediction_over_scale": 6.808172065208872, + "max_reference_over_scale": 0.8459322282714586, + "image_psnr": 19.970388716592215 + }, + { + "view": 18, + "frame": "RawDataHistogramMap_frame_0_1772196366934821.npz", + "prediction_scale": 3113.941650390625, + "prediction_gamma": 1.0, + "valid_pixels": 24396, + "histogram_psnr": 44.841726781934234, + "histogram_mse_counts": 318.0154814986201, + "histogram_mae_counts": 1.8694383547838789, + "depth_l1_m": 0.6677451202283264, + "transient_iou": 0.7437089784714928, + "ssim": 0.7390484226850553, + "lpips": 0.12703610956668854, + "linear_psnr": 20.23164921431127, + "prediction_above_scale_percent": 0.06558452205279554, + "reference_above_scale_percent": 0.0, + "max_prediction_over_scale": 2.109945831598295, + "max_reference_over_scale": 0.8621340751789897, + "image_psnr": 20.886415242545077 + }, + { + "view": 19, + "frame": "RawDataHistogramMap_frame_0_1772196386919610.npz", + "prediction_scale": 3113.941650390625, + "prediction_gamma": 1.0, + "valid_pixels": 24603, + "histogram_psnr": 45.96659233918335, + "histogram_mse_counts": 245.44924859882806, + "histogram_mae_counts": 1.553018287218714, + "depth_l1_m": 0.6948899290549018, + "transient_iou": 0.7839357072823294, + "ssim": 0.8339563817537571, + "lpips": 0.09909483790397644, + "linear_psnr": 22.19270326845812, + "prediction_above_scale_percent": 0.0, + "reference_above_scale_percent": 0.0, + "max_prediction_over_scale": 0.8926579113445596, + "max_reference_over_scale": 0.870594489540898, + "image_psnr": 21.55716481161725 + } +] \ No newline at end of file diff --git a/codes/reconstruction/experiments/run_20261025/trnerf__design_floor1__5views/test_100000/unified_metrics/progress.json b/codes/reconstruction/experiments/run_20261025/trnerf__design_floor1__5views/test_100000/unified_metrics/progress.json new file mode 100644 index 0000000000000000000000000000000000000000..98443f40b1074d351a0cc049a26a7a21ededd489 --- /dev/null +++ b/codes/reconstruction/experiments/run_20261025/trnerf__design_floor1__5views/test_100000/unified_metrics/progress.json @@ -0,0 +1,5 @@ +{ + "completed_views": 20, + "expected_views": 20, + "complete": true +} \ No newline at end of file diff --git a/codes/reconstruction/experiments/run_20261025/trnerf__design_floor1__5views/test_100000/unified_metrics/view0_image_scores.json b/codes/reconstruction/experiments/run_20261025/trnerf__design_floor1__5views/test_100000/unified_metrics/view0_image_scores.json new file mode 100644 index 0000000000000000000000000000000000000000..a9d1a906908ce00a71268d67ad0334fb3ab76f09 --- /dev/null +++ b/codes/reconstruction/experiments/run_20261025/trnerf__design_floor1__5views/test_100000/unified_metrics/view0_image_scores.json @@ -0,0 +1,10 @@ +{ + "ssim": 0.7842701641082462, + "lpips": 0.12625519931316376, + "linear_psnr": 17.945657158625817, + "prediction_above_scale_percent": 0.0, + "reference_above_scale_percent": 0.004776233462291637, + "max_prediction_over_scale": 0.9069249603241658, + "max_reference_over_scale": 1.0013671697750623, + "image_psnr": 18.595604578089663 +} \ No newline at end of file diff --git a/codes/reconstruction/experiments/run_20261025/trnerf__design_floor1__5views/test_100000/unified_metrics/view10_image_scores.json b/codes/reconstruction/experiments/run_20261025/trnerf__design_floor1__5views/test_100000/unified_metrics/view10_image_scores.json new file mode 100644 index 0000000000000000000000000000000000000000..864decb82d847dab7d28e38db5ae2fc6e54425ac --- /dev/null +++ b/codes/reconstruction/experiments/run_20261025/trnerf__design_floor1__5views/test_100000/unified_metrics/view10_image_scores.json @@ -0,0 +1,10 @@ +{ + "ssim": 0.8165960575000256, + "lpips": 0.10659946501255035, + "linear_psnr": 23.77122640075486, + "prediction_above_scale_percent": 0.0, + "reference_above_scale_percent": 0.0, + "max_prediction_over_scale": 0.8858355809088363, + "max_reference_over_scale": 0.8444731432473866, + "image_psnr": 23.99658287356893 +} \ No newline at end of file diff --git a/codes/reconstruction/experiments/run_20261025/trnerf__design_floor1__5views/test_100000/unified_metrics/view11_image_scores.json b/codes/reconstruction/experiments/run_20261025/trnerf__design_floor1__5views/test_100000/unified_metrics/view11_image_scores.json new file mode 100644 index 0000000000000000000000000000000000000000..afed1531b257c17fb69a77688bcd9aa8efb7b5f1 --- /dev/null +++ b/codes/reconstruction/experiments/run_20261025/trnerf__design_floor1__5views/test_100000/unified_metrics/view11_image_scores.json @@ -0,0 +1,10 @@ +{ + "ssim": 0.8097939558740874, + "lpips": 0.09790147840976715, + "linear_psnr": 21.67352409918724, + "prediction_above_scale_percent": 0.0, + "reference_above_scale_percent": 0.0, + "max_prediction_over_scale": 0.8993767537280026, + "max_reference_over_scale": 0.8409035498460385, + "image_psnr": 22.193293385317897 +} \ No newline at end of file diff --git a/codes/reconstruction/experiments/run_20261025/trnerf__design_floor1__5views/test_100000/unified_metrics/view12_image_scores.json b/codes/reconstruction/experiments/run_20261025/trnerf__design_floor1__5views/test_100000/unified_metrics/view12_image_scores.json new file mode 100644 index 0000000000000000000000000000000000000000..82bb9564864f0153299788935697a3d0166ebc54 --- /dev/null +++ b/codes/reconstruction/experiments/run_20261025/trnerf__design_floor1__5views/test_100000/unified_metrics/view12_image_scores.json @@ -0,0 +1,10 @@ +{ + "ssim": 0.7574111837555036, + "lpips": 0.12058958411216736, + "linear_psnr": 21.56669593274094, + "prediction_above_scale_percent": 0.0, + "reference_above_scale_percent": 0.0, + "max_prediction_over_scale": 0.9341689327700288, + "max_reference_over_scale": 0.8498402803594116, + "image_psnr": 21.980363698398143 +} \ No newline at end of file diff --git a/codes/reconstruction/experiments/run_20261025/trnerf__design_floor1__5views/test_100000/unified_metrics/view13_image_scores.json b/codes/reconstruction/experiments/run_20261025/trnerf__design_floor1__5views/test_100000/unified_metrics/view13_image_scores.json new file mode 100644 index 0000000000000000000000000000000000000000..46568f2f8c39ca2411d6648cbdf9b699417c8354 --- /dev/null +++ b/codes/reconstruction/experiments/run_20261025/trnerf__design_floor1__5views/test_100000/unified_metrics/view13_image_scores.json @@ -0,0 +1,10 @@ +{ + "ssim": 0.7396682573469799, + "lpips": 0.12946860492229462, + "linear_psnr": 19.723569376482544, + "prediction_above_scale_percent": 0.0959140610013428, + "reference_above_scale_percent": 0.0, + "max_prediction_over_scale": 1.0651882238649282, + "max_reference_over_scale": 0.8272519525025768, + "image_psnr": 18.95659824221704 +} \ No newline at end of file diff --git a/codes/reconstruction/experiments/run_20261025/trnerf__design_floor1__5views/test_100000/unified_metrics/view14_image_scores.json b/codes/reconstruction/experiments/run_20261025/trnerf__design_floor1__5views/test_100000/unified_metrics/view14_image_scores.json new file mode 100644 index 0000000000000000000000000000000000000000..376bdd6ca425b23eb3f94db85b0390c5fd67911c --- /dev/null +++ b/codes/reconstruction/experiments/run_20261025/trnerf__design_floor1__5views/test_100000/unified_metrics/view14_image_scores.json @@ -0,0 +1,10 @@ +{ + "ssim": 0.7503636060126926, + "lpips": 0.12640920281410217, + "linear_psnr": 20.790539506898288, + "prediction_above_scale_percent": 0.4489178716567432, + "reference_above_scale_percent": 0.0, + "max_prediction_over_scale": 1.1579389320653681, + "max_reference_over_scale": 0.843175304439154, + "image_psnr": 21.289607395138784 +} \ No newline at end of file diff --git a/codes/reconstruction/experiments/run_20261025/trnerf__design_floor1__5views/test_100000/unified_metrics/view15_image_scores.json b/codes/reconstruction/experiments/run_20261025/trnerf__design_floor1__5views/test_100000/unified_metrics/view15_image_scores.json new file mode 100644 index 0000000000000000000000000000000000000000..83fda380fb3634e9b8de3d8adfae748078db55ff --- /dev/null +++ b/codes/reconstruction/experiments/run_20261025/trnerf__design_floor1__5views/test_100000/unified_metrics/view15_image_scores.json @@ -0,0 +1,10 @@ +{ + "ssim": 0.8341237781362361, + "lpips": 0.10417716205120087, + "linear_psnr": 21.514662035785218, + "prediction_above_scale_percent": 0.7137371820933279, + "reference_above_scale_percent": 0.0, + "max_prediction_over_scale": 1.2180591149669209, + "max_reference_over_scale": 0.8521754508972605, + "image_psnr": 21.986433742454032 +} \ No newline at end of file diff --git a/codes/reconstruction/experiments/run_20261025/trnerf__design_floor1__5views/test_100000/unified_metrics/view16_image_scores.json b/codes/reconstruction/experiments/run_20261025/trnerf__design_floor1__5views/test_100000/unified_metrics/view16_image_scores.json new file mode 100644 index 0000000000000000000000000000000000000000..c0bcceb606be99eb298a2b5f53b8d4e90cfc0fb6 --- /dev/null +++ b/codes/reconstruction/experiments/run_20261025/trnerf__design_floor1__5views/test_100000/unified_metrics/view16_image_scores.json @@ -0,0 +1,10 @@ +{ + "ssim": 0.7523838640705613, + "lpips": 0.11170157045125961, + "linear_psnr": 15.641258362501283, + "prediction_above_scale_percent": 0.11166466242913589, + "reference_above_scale_percent": 0.0, + "max_prediction_over_scale": 7.676091698488547, + "max_reference_over_scale": 0.8452196287996725, + "image_psnr": 18.953150011552648 +} \ No newline at end of file diff --git a/codes/reconstruction/experiments/run_20261025/trnerf__design_floor1__5views/test_100000/unified_metrics/view17_image_scores.json b/codes/reconstruction/experiments/run_20261025/trnerf__design_floor1__5views/test_100000/unified_metrics/view17_image_scores.json new file mode 100644 index 0000000000000000000000000000000000000000..305bb535a17aaba776f2f2829210933cd19bb2ad --- /dev/null +++ b/codes/reconstruction/experiments/run_20261025/trnerf__design_floor1__5views/test_100000/unified_metrics/view17_image_scores.json @@ -0,0 +1,10 @@ +{ + "ssim": 0.6981225418711269, + "lpips": 0.1298331767320633, + "linear_psnr": 16.557387443644146, + "prediction_above_scale_percent": 0.12203846315700881, + "reference_above_scale_percent": 0.0, + "max_prediction_over_scale": 6.808172065208872, + "max_reference_over_scale": 0.8459322282714586, + "image_psnr": 19.970388716592215 +} \ No newline at end of file diff --git a/codes/reconstruction/experiments/run_20261025/trnerf__design_floor1__5views/test_100000/unified_metrics/view18_image_scores.json b/codes/reconstruction/experiments/run_20261025/trnerf__design_floor1__5views/test_100000/unified_metrics/view18_image_scores.json new file mode 100644 index 0000000000000000000000000000000000000000..e76225b260f64f9568321e11f24ccb6c7657afc7 --- /dev/null +++ b/codes/reconstruction/experiments/run_20261025/trnerf__design_floor1__5views/test_100000/unified_metrics/view18_image_scores.json @@ -0,0 +1,10 @@ +{ + "ssim": 0.7390484226850553, + "lpips": 0.12703610956668854, + "linear_psnr": 20.23164921431127, + "prediction_above_scale_percent": 0.06558452205279554, + "reference_above_scale_percent": 0.0, + "max_prediction_over_scale": 2.109945831598295, + "max_reference_over_scale": 0.8621340751789897, + "image_psnr": 20.886415242545077 +} \ No newline at end of file diff --git a/codes/reconstruction/experiments/run_20261025/trnerf__design_floor1__5views/test_100000/unified_metrics/view19_image_scores.json b/codes/reconstruction/experiments/run_20261025/trnerf__design_floor1__5views/test_100000/unified_metrics/view19_image_scores.json new file mode 100644 index 0000000000000000000000000000000000000000..b0f67c0290cd599778bc0e4749b60594ff4f65c0 --- /dev/null +++ b/codes/reconstruction/experiments/run_20261025/trnerf__design_floor1__5views/test_100000/unified_metrics/view19_image_scores.json @@ -0,0 +1,10 @@ +{ + "ssim": 0.8339563817537571, + "lpips": 0.09909483790397644, + "linear_psnr": 22.19270326845812, + "prediction_above_scale_percent": 0.0, + "reference_above_scale_percent": 0.0, + "max_prediction_over_scale": 0.8926579113445596, + "max_reference_over_scale": 0.870594489540898, + "image_psnr": 21.55716481161725 +} \ No newline at end of file diff --git a/codes/reconstruction/experiments/run_20261025/trnerf__design_floor1__5views/test_100000/unified_metrics/view1_image_scores.json b/codes/reconstruction/experiments/run_20261025/trnerf__design_floor1__5views/test_100000/unified_metrics/view1_image_scores.json new file mode 100644 index 0000000000000000000000000000000000000000..7484180353051139ff2fd5f31f96f3d72e46f62d --- /dev/null +++ b/codes/reconstruction/experiments/run_20261025/trnerf__design_floor1__5views/test_100000/unified_metrics/view1_image_scores.json @@ -0,0 +1,10 @@ +{ + "ssim": 0.8861079284530722, + "lpips": 0.08638212084770203, + "linear_psnr": 23.88539646176198, + "prediction_above_scale_percent": 0.0, + "reference_above_scale_percent": 0.004816955684007708, + "max_prediction_over_scale": 0.8325462051132414, + "max_reference_over_scale": 1.0169927958435525, + "image_psnr": 22.88334620999647 +} \ No newline at end of file diff --git a/codes/reconstruction/experiments/run_20261025/trnerf__design_floor1__5views/test_100000/unified_metrics/view2_image_scores.json b/codes/reconstruction/experiments/run_20261025/trnerf__design_floor1__5views/test_100000/unified_metrics/view2_image_scores.json new file mode 100644 index 0000000000000000000000000000000000000000..2dacdbc21c72022ee060957145be6923095bce02 --- /dev/null +++ b/codes/reconstruction/experiments/run_20261025/trnerf__design_floor1__5views/test_100000/unified_metrics/view2_image_scores.json @@ -0,0 +1,10 @@ +{ + "ssim": 0.8515980760374875, + "lpips": 0.09590993821620941, + "linear_psnr": 22.675078651570214, + "prediction_above_scale_percent": 0.0, + "reference_above_scale_percent": 0.0, + "max_prediction_over_scale": 0.8515618908884944, + "max_reference_over_scale": 0.8073459941320231, + "image_psnr": 22.420286748092867 +} \ No newline at end of file diff --git a/codes/reconstruction/experiments/run_20261025/trnerf__design_floor1__5views/test_100000/unified_metrics/view3_image_scores.json b/codes/reconstruction/experiments/run_20261025/trnerf__design_floor1__5views/test_100000/unified_metrics/view3_image_scores.json new file mode 100644 index 0000000000000000000000000000000000000000..4ccfcc921e093657bfa730d19e6aab0e7f949db1 --- /dev/null +++ b/codes/reconstruction/experiments/run_20261025/trnerf__design_floor1__5views/test_100000/unified_metrics/view3_image_scores.json @@ -0,0 +1,10 @@ +{ + "ssim": 0.7786818407121215, + "lpips": 0.12315498292446136, + "linear_psnr": 21.24354712234797, + "prediction_above_scale_percent": 0.1632182804474101, + "reference_above_scale_percent": 0.0, + "max_prediction_over_scale": 1.0402264917390633, + "max_reference_over_scale": 0.8357685792291667, + "image_psnr": 21.497826974646188 +} \ No newline at end of file diff --git a/codes/reconstruction/experiments/run_20261025/trnerf__design_floor1__5views/test_100000/unified_metrics/view4_image_scores.json b/codes/reconstruction/experiments/run_20261025/trnerf__design_floor1__5views/test_100000/unified_metrics/view4_image_scores.json new file mode 100644 index 0000000000000000000000000000000000000000..0b4f133de2cd90bd35979caa4ac1923ad0410636 --- /dev/null +++ b/codes/reconstruction/experiments/run_20261025/trnerf__design_floor1__5views/test_100000/unified_metrics/view4_image_scores.json @@ -0,0 +1,10 @@ +{ + "ssim": 0.7272106519462939, + "lpips": 0.13133348524570465, + "linear_psnr": 20.266665502814657, + "prediction_above_scale_percent": 0.04706546806607992, + "reference_above_scale_percent": 0.0, + "max_prediction_over_scale": 1.0371211447333186, + "max_reference_over_scale": 0.8606854202581493, + "image_psnr": 20.59896137425392 +} \ No newline at end of file diff --git a/codes/reconstruction/experiments/run_20261025/trnerf__design_floor1__5views/test_100000/unified_metrics/view5_image_scores.json b/codes/reconstruction/experiments/run_20261025/trnerf__design_floor1__5views/test_100000/unified_metrics/view5_image_scores.json new file mode 100644 index 0000000000000000000000000000000000000000..848e775b05700e8802f69d58ec1b0eaf997d675a --- /dev/null +++ b/codes/reconstruction/experiments/run_20261025/trnerf__design_floor1__5views/test_100000/unified_metrics/view5_image_scores.json @@ -0,0 +1,10 @@ +{ + "ssim": 0.764666229351429, + "lpips": 0.1285271793603897, + "linear_psnr": 20.760834812703504, + "prediction_above_scale_percent": 0.0, + "reference_above_scale_percent": 0.0, + "max_prediction_over_scale": 0.9615097982654611, + "max_reference_over_scale": 0.8624694799912932, + "image_psnr": 20.66965439010832 +} \ No newline at end of file diff --git a/codes/reconstruction/experiments/run_20261025/trnerf__design_floor1__5views/test_100000/unified_metrics/view6_image_scores.json b/codes/reconstruction/experiments/run_20261025/trnerf__design_floor1__5views/test_100000/unified_metrics/view6_image_scores.json new file mode 100644 index 0000000000000000000000000000000000000000..be06456c153192ee811b0dcb1fb095e786991c6d --- /dev/null +++ b/codes/reconstruction/experiments/run_20261025/trnerf__design_floor1__5views/test_100000/unified_metrics/view6_image_scores.json @@ -0,0 +1,10 @@ +{ + "ssim": 0.8570429535279184, + "lpips": 0.10637762397527695, + "linear_psnr": 22.980680782801986, + "prediction_above_scale_percent": 0.0, + "reference_above_scale_percent": 0.0, + "max_prediction_over_scale": 0.8665637052059992, + "max_reference_over_scale": 0.8428349264685138, + "image_psnr": 22.119400446292303 +} \ No newline at end of file diff --git a/codes/reconstruction/experiments/run_20261025/trnerf__design_floor1__5views/test_100000/unified_metrics/view7_image_scores.json b/codes/reconstruction/experiments/run_20261025/trnerf__design_floor1__5views/test_100000/unified_metrics/view7_image_scores.json new file mode 100644 index 0000000000000000000000000000000000000000..75c9e91581a3cb608c8f89ac10f8537059a4f692 --- /dev/null +++ b/codes/reconstruction/experiments/run_20261025/trnerf__design_floor1__5views/test_100000/unified_metrics/view7_image_scores.json @@ -0,0 +1,10 @@ +{ + "ssim": 0.8323393760686818, + "lpips": 0.0982525423169136, + "linear_psnr": 21.2720720363573, + "prediction_above_scale_percent": 0.0, + "reference_above_scale_percent": 0.0, + "max_prediction_over_scale": 0.8697727619048554, + "max_reference_over_scale": 0.8348511131106023, + "image_psnr": 21.77695279988502 +} \ No newline at end of file diff --git a/codes/reconstruction/experiments/run_20261025/trnerf__design_floor1__5views/test_100000/unified_metrics/view8_image_scores.json b/codes/reconstruction/experiments/run_20261025/trnerf__design_floor1__5views/test_100000/unified_metrics/view8_image_scores.json new file mode 100644 index 0000000000000000000000000000000000000000..cbe1690db4045f3f73809cc5a482c0ac91ff9164 --- /dev/null +++ b/codes/reconstruction/experiments/run_20261025/trnerf__design_floor1__5views/test_100000/unified_metrics/view8_image_scores.json @@ -0,0 +1,10 @@ +{ + "ssim": 0.7574818861996404, + "lpips": 0.12944382429122925, + "linear_psnr": 21.149875747705437, + "prediction_above_scale_percent": 0.0, + "reference_above_scale_percent": 0.0, + "max_prediction_over_scale": 0.9520421395203406, + "max_reference_over_scale": 0.8371883657060014, + "image_psnr": 21.42340295193999 +} \ No newline at end of file diff --git a/codes/reconstruction/experiments/run_20261025/trnerf__design_floor1__5views/test_100000/unified_metrics/view9_image_scores.json b/codes/reconstruction/experiments/run_20261025/trnerf__design_floor1__5views/test_100000/unified_metrics/view9_image_scores.json new file mode 100644 index 0000000000000000000000000000000000000000..c851cd05b857aa3bfb110bb59bfad58321a63cac --- /dev/null +++ b/codes/reconstruction/experiments/run_20261025/trnerf__design_floor1__5views/test_100000/unified_metrics/view9_image_scores.json @@ -0,0 +1,10 @@ +{ + "ssim": 0.7509790776739812, + "lpips": 0.12167640775442123, + "linear_psnr": 22.00531710113915, + "prediction_above_scale_percent": 0.0, + "reference_above_scale_percent": 0.0, + "max_prediction_over_scale": 0.9496089748938243, + "max_reference_over_scale": 0.8484882531033459, + "image_psnr": 22.506694408441273 +} \ No newline at end of file diff --git a/codes/reconstruction/experiments/run_20261025/trnerf__design_floor1__5views/train.ini b/codes/reconstruction/experiments/run_20261025/trnerf__design_floor1__5views/train.ini new file mode 100644 index 0000000000000000000000000000000000000000..3987beb9265467b35b7ac2386bb042690f8db611 --- /dev/null +++ b/codes/reconstruction/experiments/run_20261025/trnerf__design_floor1__5views/train.ini @@ -0,0 +1,48 @@ +exp_name = checkpoints +test_chunk_size = 256 +num_rays_per_batch = 512 +starting_rays_per_pixel = 1 +tfilter_sigma = 3 +rfilter_sigma = 0.15 +space_carving = 0.0 +lr = 0.0001 +num_views = 5 +n_bins = 672 +aabb = "[-32.97903368485406, -31.80313330072445, -2.285502236111863, 32.84135510520197, 25.272967183539148, 15.918132996760834]" +version = captured +data_root_fp = "/home/donghongzhou/project/SP-Transient-retrain/experiments/data/design_floor1/five_views" +measurement_root = "/home/donghongzhou/project/SP-Transient-retrain/experiments/data/design_floor1" +data_exts = ".npz" +irf_path = "/home/donghongzhou/project/SP-Transient-retrain/experiments/calibration/IRF_global_nonnegative.csv" +irf_column = "irf" +irf_half_window = 50 +intrinsics = "/home/donghongzhou/project/SP-Transient-retrain/config/intrinsics.npy" +invalid_mask_path = "/home/donghongzhou/project/SP-Transient-retrain/config/offset.txt" +invalid_mask_invalid_gt = 10.0 +exposure_time = 0.2248443435 +bin_width_s_loader = 7.5e-10 +thold_warmup = 80000 +max_steps = 150000 +img_height = 192 +img_width = 256 +img_height_test = 192 +img_width_test = 256 +img_shape = 256 +img_shape_test = 256 +near_plane = 0.100000 +far_plane = 75.547699416 +alpha_thre = 0 +occ_thre = 0.0000001 +sample_as_per_distribution = False +render_n_samples = 1024 +exp = True +final = True +steps_til_checkpoint = 50000 +grid_resolution = 128 +grid_nlvl = 1 +outpath = "/home/donghongzhou/project/SP-Transient-retrain/experiments/run_20261025/trnerf__design_floor1__5views" +pixels_to_plot = ["(40, 60)", "(60, 100)", "(80, 60)"] +img_scale = 100 +seed = 42 +device = cuda:0 +skip_train_summaries = True diff --git a/codes/reconstruction/experiments/ta_deps/nerfacc-0.3.3.dist-info/INSTALLER b/codes/reconstruction/experiments/ta_deps/nerfacc-0.3.3.dist-info/INSTALLER new file mode 100644 index 0000000000000000000000000000000000000000..a1b589e38a32041e49332e5e81c2d363dc418d68 --- /dev/null +++ b/codes/reconstruction/experiments/ta_deps/nerfacc-0.3.3.dist-info/INSTALLER @@ -0,0 +1 @@ +pip diff --git a/codes/reconstruction/experiments/ta_deps/nerfacc-0.3.3.dist-info/LICENSE b/codes/reconstruction/experiments/ta_deps/nerfacc-0.3.3.dist-info/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..da70168fa1e33a266c74aa8de82bcb89f310e59e --- /dev/null +++ b/codes/reconstruction/experiments/ta_deps/nerfacc-0.3.3.dist-info/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2022 Ruilong Li + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/codes/reconstruction/experiments/ta_deps/nerfacc-0.3.3.dist-info/METADATA b/codes/reconstruction/experiments/ta_deps/nerfacc-0.3.3.dist-info/METADATA new file mode 100644 index 0000000000000000000000000000000000000000..a09d229dc8969780aed8bb4e29ba0929d5c85b02 --- /dev/null +++ b/codes/reconstruction/experiments/ta_deps/nerfacc-0.3.3.dist-info/METADATA @@ -0,0 +1,176 @@ +Metadata-Version: 2.1 +Name: nerfacc +Version: 0.3.3 +Summary: A General NeRF Acceleration Toolbox. +Author-email: Ruilong +License: MIT +Project-URL: homepage, https://www.nerfacc.com/en/latest/ +Project-URL: documentation, https://www.nerfacc.com/en/latest/ +Project-URL: repository, https://github.com/KAIR-BAIR/nerfacc/ +Requires-Python: >=3.7 +Description-Content-Type: text/markdown +License-File: LICENSE +Requires-Dist: ninja (>=1.10.2.3) +Requires-Dist: pybind11 (>=2.10.0) +Requires-Dist: torch +Requires-Dist: rich (>=12) +Requires-Dist: importlib-metadata (>=5.0.0) ; python_version < "3.8" +Provides-Extra: dev +Requires-Dist: black[jupyter] (==22.3.0) ; extra == 'dev' +Requires-Dist: isort (==5.10.1) ; extra == 'dev' +Requires-Dist: pylint (==2.13.4) ; extra == 'dev' +Requires-Dist: pytest (==7.1.2) ; extra == 'dev' +Requires-Dist: pytest-xdist (==2.5.0) ; extra == 'dev' +Requires-Dist: typeguard (>=2.13.3) ; extra == 'dev' +Requires-Dist: pyyaml (==6.0) ; extra == 'dev' +Requires-Dist: build ; extra == 'dev' +Requires-Dist: twine ; extra == 'dev' + +

+ nerfacc logo +

+ +[![Core Tests.](https://github.com/KAIR-BAIR/nerfacc/actions/workflows/code_checks.yml/badge.svg)](https://github.com/KAIR-BAIR/nerfacc/actions/workflows/code_checks.yml) +[![Documentation Status](https://readthedocs.com/projects/plenoptix-nerfacc/badge/?version=latest)](https://www.nerfacc.com/en/latest/?badge=latest) +[![Downloads](https://pepy.tech/badge/nerfacc)](https://pepy.tech/project/nerfacc) + +https://www.nerfacc.com/ + +NerfAcc is a PyTorch Nerf acceleration toolbox for both training and inference. It focuses on efficient volumetric rendering of radiance fields, which is universal and plug-and-play for most of the NeRFs. + +Using NerfAcc, + +- The `vanilla NeRF` model with 8-layer MLPs can be trained to *better quality* (+~0.5 PNSR) + in *1 hour* rather than *days* as in the paper. +- The `Instant-NGP NeRF` model can be trained to *equal quality* in *4.5 minutes*, + comparing to the official pure-CUDA implementation. +- The `D-NeRF` model for *dynamic* objects can also be trained in *1 hour* + rather than *2 days* as in the paper, and with *better quality* (+~2.5 PSNR). +- Both *bounded* and *unbounded* scenes are supported. + +**And it is a pure Python interface with flexible APIs!** + +## Installation + +``` +pip install nerfacc +``` + +## Usage + +The idea of NerfAcc is to perform efficient ray marching and volumetric rendering. So NerfAcc can work with any user-defined radiance field. To plug the NerfAcc rendering pipeline into your code and enjoy the acceleration, you only need to define two functions with your radiance field. +- `sigma_fn`: Compute density at each sample. It will be used by `nerfacc.ray_marching()` to skip the empty and occluded space during ray marching, which is where the major speedup comes from. +- `rgb_sigma_fn`: Compute color and density at each sample. It will be used by `nerfacc.rendering()` to conduct differentiable volumetric rendering. This function will receive gradients to update your network. + +A simple example is like this: + +``` python +import torch +from torch import Tensor +import nerfacc + +radiance_field = ... # network: a NeRF model +rays_o: Tensor = ... # ray origins. (n_rays, 3) +rays_d: Tensor = ... # ray normalized directions. (n_rays, 3) +optimizer = ... # optimizer + +def sigma_fn( + t_starts: Tensor, t_ends:Tensor, ray_indices: Tensor +) -> Tensor: + """ Query density values from a user-defined radiance field. + :params t_starts: Start of the sample interval along the ray. (n_samples, 1). + :params t_ends: End of the sample interval along the ray. (n_samples, 1). + :params ray_indices: Ray indices that each sample belongs to. (n_samples,). + :returns The post-activation density values. (n_samples, 1). + """ + t_origins = rays_o[ray_indices] # (n_samples, 3) + t_dirs = rays_d[ray_indices] # (n_samples, 3) + positions = t_origins + t_dirs * (t_starts + t_ends) / 2.0 + sigmas = radiance_field.query_density(positions) + return sigmas # (n_samples, 1) + +def rgb_sigma_fn( + t_starts: Tensor, t_ends: Tensor, ray_indices: Tensor +) -> Tuple[Tensor, Tensor]: + """ Query rgb and density values from a user-defined radiance field. + :params t_starts: Start of the sample interval along the ray. (n_samples, 1). + :params t_ends: End of the sample interval along the ray. (n_samples, 1). + :params ray_indices: Ray indices that each sample belongs to. (n_samples,). + :returns The post-activation rgb and density values. + (n_samples, 3), (n_samples, 1). + """ + t_origins = rays_o[ray_indices] # (n_samples, 3) + t_dirs = rays_d[ray_indices] # (n_samples, 3) + positions = t_origins + t_dirs * (t_starts + t_ends) / 2.0 + rgbs, sigmas = radiance_field(positions, condition=t_dirs) + return rgbs, sigmas # (n_samples, 3), (n_samples, 1) + +# Efficient Raymarching: Skip empty and occluded space, pack samples from all rays. +# ray_indices: (n_samples,). t_starts: (n_samples, 1). t_ends: (n_samples, 1). +with torch.no_grad(): + ray_indices, t_starts, t_ends = nerfacc.ray_marching( + rays_o, rays_d, sigma_fn=sigma_fn, near_plane=0.2, far_plane=1.0, + early_stop_eps=1e-4, alpha_thre=1e-2, + ) + +# Differentiable Volumetric Rendering. +# colors: (n_rays, 3). opaicity: (n_rays, 1). depth: (n_rays, 1). +color, opacity, depth = nerfacc.rendering( + t_starts, t_ends, ray_indices, n_rays=rays_o.shape[0], rgb_sigma_fn=rgb_sigma_fn +) + +# Optimize: Both the network and rays will receive gradients +optimizer.zero_grad() +loss = F.mse_loss(color, color_gt) +loss.backward() +optimizer.step() +``` + +## Examples: + +Before running those example scripts, please check the script about which dataset it is needed, and download the dataset first. + +```bash +# clone the repo with submodules. +git clone --recursive git://github.com/KAIR-BAIR/nerfacc/ +``` + +``` bash +# Instant-NGP NeRF in 4.5 minutes with reproduced performance! +# See results at here: https://www.nerfacc.com/en/latest/examples/ngp.html +python examples/train_ngp_nerf.py --train_split train --scene lego +``` + +``` bash +# Vanilla MLP NeRF in 1 hour with better performance! +# See results at here: https://www.nerfacc.com/en/latest/examples/vanilla.html +python examples/train_mlp_nerf.py --train_split train --scene lego +``` + +```bash +# D-NeRF for Dynamic objects in 1 hour with better performance! +# See results at here: https://www.nerfacc.com/en/latest/examples/dnerf.html +python examples/train_mlp_dnerf.py --train_split train --scene lego +``` + +```bash +# Instant-NGP on unbounded scenes in 20 minutes! +# See results at here: https://www.nerfacc.com/en/latest/examples/unbounded.html +python examples/train_ngp_nerf.py --train_split train --scene garden --auto_aabb --unbounded --cone_angle=0.004 +``` + +Used by: +- [nerfstudio](https://github.com/nerfstudio-project/nerfstudio): A collaboration friendly studio for NeRFs. +- [instant-nsr-pl](https://github.com/bennyguo/instant-nsr-pl): NeuS in 10 minutes. + + +## Citation + +```bibtex +@article{li2022nerfacc, + title={NerfAcc: A General NeRF Accleration Toolbox.}, + author={Li, Ruilong and Tancik, Matthew and Kanazawa, Angjoo}, + journal={arXiv preprint arXiv:2210.04847}, + year={2022} +} +``` diff --git a/codes/reconstruction/experiments/ta_deps/nerfacc-0.3.3.dist-info/RECORD b/codes/reconstruction/experiments/ta_deps/nerfacc-0.3.3.dist-info/RECORD new file mode 100644 index 0000000000000000000000000000000000000000..fce0c3032c6cdee7a91fb4e48d49c29531684d8a --- /dev/null +++ b/codes/reconstruction/experiments/ta_deps/nerfacc-0.3.3.dist-info/RECORD @@ -0,0 +1,45 @@ +nerfacc-0.3.3.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4 +nerfacc-0.3.3.dist-info/LICENSE,sha256=TpgTkHEX-ByjShoBTUt0fJLU-jR5cua4Mb9l_2eltx8,1067 +nerfacc-0.3.3.dist-info/METADATA,sha256=SLPt10Q5gBnsoNuMW9D_dJUJIYhTrToCFd7MN7S9ez4,7362 +nerfacc-0.3.3.dist-info/RECORD,, +nerfacc-0.3.3.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +nerfacc-0.3.3.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92 +nerfacc-0.3.3.dist-info/top_level.txt,sha256=9elkvqSKMccFccHPKSalaudKivTELLOdisb8KSBGtzk,8 +nerfacc/__init__.py,sha256=iUcqI8uWnhmgn4WpgW7lo3pmx3u18YTfoQBQ2JQdxGo,1511 +nerfacc/__pycache__/__init__.cpython-312.pyc,, +nerfacc/__pycache__/cdf.cpython-312.pyc,, +nerfacc/__pycache__/contraction.cpython-312.pyc,, +nerfacc/__pycache__/grid.cpython-312.pyc,, +nerfacc/__pycache__/intersection.cpython-312.pyc,, +nerfacc/__pycache__/losses.cpython-312.pyc,, +nerfacc/__pycache__/pack.cpython-312.pyc,, +nerfacc/__pycache__/ray_marching.cpython-312.pyc,, +nerfacc/__pycache__/sampling.cpython-312.pyc,, +nerfacc/__pycache__/version.cpython-312.pyc,, +nerfacc/__pycache__/vol_rendering.cpython-312.pyc,, +nerfacc/cdf.py,sha256=24n5hij0D77vPTxhsx3saK-LEH6x-_eFpO_TiPRb7Y0,1412 +nerfacc/contraction.py,sha256=pWM420mg7JNzVNLZYudnsyyxZk4KITwDZbd-VrngiRs,2911 +nerfacc/cuda/__init__.py,sha256=e7c8LWTb9ir5pRYRIeSgTd5auwjvG1PS6jZgwwF_KfM,2203 +nerfacc/cuda/__pycache__/__init__.cpython-312.pyc,, +nerfacc/cuda/__pycache__/_backend.cpython-312.pyc,, +nerfacc/cuda/_backend.py,sha256=Vudxy6zArcFHJbdVo1_0TcTXlFhUn95VcvYHkdvEA7A,3403 +nerfacc/cuda/csrc/cdf.cu,sha256=hfCsQ6PyMJvsRzVQUQ6ufCWrp0Pw4Z_AcR3y2YCt378,7026 +nerfacc/cuda/csrc/contraction.cu,sha256=p_y9jnDmqlmDk00lXEdj0KWKntZbNBPbMxWCLPa2jqo,3026 +nerfacc/cuda/csrc/include/helpers_contraction.h,sha256=F3vs_0QYFQfx_RFKDIx6Le5JYEKXCv2K8i0eHSzt2x4,3725 +nerfacc/cuda/csrc/include/helpers_cuda.h,sha256=gXZT7stFuZi24hwDokgTpJiSFV7rYABVtwcjcJoUPrI,1700 +nerfacc/cuda/csrc/include/helpers_math.h,sha256=wT8CNuYazHqmrwjfdssR0W8XcRz9H1Gh5suo3CC7r84,38908 +nerfacc/cuda/csrc/intersection.cu,sha256=5AJgBObB2waaDGBSe2Ir_-Mm0kVhCK_pm9QkIPh5NJU,3623 +nerfacc/cuda/csrc/pack.cu,sha256=7I5SuFAzxZqeS3M5J7oeMCAUgFCA3F0D2D0vbdUTVdM,4297 +nerfacc/cuda/csrc/pybind.cu,sha256=XXJ7ZaTJvlMc2gzG-IapQOoDMpb5ZTn2nM8DQo--ZRY,5648 +nerfacc/cuda/csrc/ray_marching.cu,sha256=xTgsxceNRhzMF-rbMMKTZpmTfNuMZKcWkJltyo6OwB0,10929 +nerfacc/cuda/csrc/render_transmittance.cu,sha256=bG8Dm0ULbWjKF6SwISfI1giC0N-tejxoD8VpfUXngH4,8075 +nerfacc/cuda/csrc/render_transmittance_cub.cu,sha256=kbbYhNQYOEyc7dSWmwkAJdTd7MWl3tURHxtMcmf_des,6297 +nerfacc/cuda/csrc/render_weight.cu,sha256=_8AJhX-Lgwfob6VkufjKc0_ViPJ4KwhWnJBjO3WcOKM,8118 +nerfacc/grid.py,sha256=DOpQJ3TLj5ggN-vy9ntcbPOkebPidEaRxfau9v98OoQ,11066 +nerfacc/intersection.py,sha256=KU1ZK6q6Uib5GmTY_qF-ottPCzWv00_uZpQ2IFe8wD8,1457 +nerfacc/losses.py,sha256=cF2bayJ67269xLKB9Dv5FGplYPmaBfeNVK4MMIYL3Us,1060 +nerfacc/pack.py,sha256=ryxmZHJ4hv9E26wHmJ6W4EC6M9AgCJJDEehyLrkuJjk,6999 +nerfacc/ray_marching.py,sha256=cNl-0XW1USmGlu_AVmWXgUd8qlxwegg9ANMMQiGi10c,9231 +nerfacc/sampling.py,sha256=YGUZkvY7N2j46cn6yxaoDGJJwOKDCmAMRhSX-gcp5xo,6540 +nerfacc/version.py,sha256=t0WHp8RZgPZFgfJHBcr_fUYbDHiyUKq3A_iUw7Wb4s8,261 +nerfacc/vol_rendering.py,sha256=JeQJlMgiSf2MHuKa0CzvHt3XyyZKmjmfTjnTd_wQ1kU,26892 diff --git a/codes/reconstruction/experiments/ta_deps/nerfacc-0.3.3.dist-info/REQUESTED b/codes/reconstruction/experiments/ta_deps/nerfacc-0.3.3.dist-info/REQUESTED new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/codes/reconstruction/experiments/ta_deps/nerfacc-0.3.3.dist-info/WHEEL b/codes/reconstruction/experiments/ta_deps/nerfacc-0.3.3.dist-info/WHEEL new file mode 100644 index 0000000000000000000000000000000000000000..57e3d840d59a650ac5bccbad5baeec47d155f0ad --- /dev/null +++ b/codes/reconstruction/experiments/ta_deps/nerfacc-0.3.3.dist-info/WHEEL @@ -0,0 +1,5 @@ +Wheel-Version: 1.0 +Generator: bdist_wheel (0.38.4) +Root-Is-Purelib: true +Tag: py3-none-any + diff --git a/codes/reconstruction/experiments/ta_deps/nerfacc-0.3.3.dist-info/top_level.txt b/codes/reconstruction/experiments/ta_deps/nerfacc-0.3.3.dist-info/top_level.txt new file mode 100644 index 0000000000000000000000000000000000000000..b0881c2bb3babd7312b9d8d4071f7e4bc391e3ec --- /dev/null +++ b/codes/reconstruction/experiments/ta_deps/nerfacc-0.3.3.dist-info/top_level.txt @@ -0,0 +1 @@ +nerfacc diff --git a/codes/reconstruction/experiments/ta_deps/nerfacc/__init__.py b/codes/reconstruction/experiments/ta_deps/nerfacc/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..61b0404aab511c16a656b60f0d1f68dca6d57009 --- /dev/null +++ b/codes/reconstruction/experiments/ta_deps/nerfacc/__init__.py @@ -0,0 +1,59 @@ +""" +Copyright (c) 2022 Ruilong Li, UC Berkeley. +""" +import warnings + +from .cdf import ray_resampling +from .contraction import ContractionType, contract, contract_inv +from .grid import Grid, OccupancyGrid, query_grid +from .intersection import ray_aabb_intersect +from .losses import distortion as loss_distortion +from .pack import pack_data, pack_info, unpack_data, unpack_info +from .ray_marching import ray_marching +from .version import __version__ +from .vol_rendering import ( + accumulate_along_rays, + render_transmittance_from_alpha, + render_transmittance_from_density, + render_visibility, + render_weight_from_alpha, + render_weight_from_density, + rendering, +) + + +# About to be deprecated +def unpack_to_ray_indices(*args, **kwargs): + warnings.warn( + "`unpack_to_ray_indices` will be deprecated. Please use `unpack_info` instead.", + DeprecationWarning, + stacklevel=2, + ) + return unpack_info(*args, **kwargs) + + +__all__ = [ + "__version__", + "Grid", + "OccupancyGrid", + "query_grid", + "ContractionType", + "contract", + "contract_inv", + "ray_aabb_intersect", + "ray_marching", + "accumulate_along_rays", + "render_visibility", + "render_weight_from_alpha", + "render_weight_from_density", + "rendering", + "pack_data", + "unpack_data", + "unpack_info", + "pack_info", + "ray_resampling", + "loss_distortion", + "unpack_to_ray_indices", + "render_transmittance_from_density", + "render_transmittance_from_alpha", +] diff --git a/codes/reconstruction/experiments/ta_deps/nerfacc/cdf.py b/codes/reconstruction/experiments/ta_deps/nerfacc/cdf.py new file mode 100644 index 0000000000000000000000000000000000000000..06cafd509ecb12cab2c9a462922156baa33a5052 --- /dev/null +++ b/codes/reconstruction/experiments/ta_deps/nerfacc/cdf.py @@ -0,0 +1,46 @@ +""" +Copyright (c) 2022 Ruilong Li, UC Berkeley. +""" + +from typing import Tuple + +from torch import Tensor + +import nerfacc.cuda as _C + + +def ray_resampling( + packed_info: Tensor, + t_starts: Tensor, + t_ends: Tensor, + weights: Tensor, + n_samples: int, +) -> Tuple[Tensor, Tensor, Tensor]: + """Resample a set of rays based on the CDF of the weights. + + Args: + packed_info (Tensor): Stores information on which samples belong to the same ray. \ + See :func:`nerfacc.ray_marching` for details. Tensor with shape (n_rays, 2). + t_starts: Where the frustum-shape sample starts along a ray. Tensor with \ + shape (n_samples, 1). + t_ends: Where the frustum-shape sample ends along a ray. Tensor with \ + shape (n_samples, 1). + weights: Volumetric rendering weights for those samples. Tensor with shape \ + (n_samples,). + n_samples (int): Number of samples per ray to resample. + + Returns: + Resampled packed info (n_rays, 2), t_starts (n_samples, 1), and t_ends (n_samples, 1). + """ + ( + resampled_packed_info, + resampled_t_starts, + resampled_t_ends, + ) = _C.ray_resampling( + packed_info.contiguous(), + t_starts.contiguous(), + t_ends.contiguous(), + weights.contiguous(), + n_samples, + ) + return resampled_packed_info, resampled_t_starts, resampled_t_ends diff --git a/codes/reconstruction/experiments/ta_deps/nerfacc/contraction.py b/codes/reconstruction/experiments/ta_deps/nerfacc/contraction.py new file mode 100644 index 0000000000000000000000000000000000000000..3143d805f380f34dc29300128cc691bd87efd926 --- /dev/null +++ b/codes/reconstruction/experiments/ta_deps/nerfacc/contraction.py @@ -0,0 +1,102 @@ +""" +Copyright (c) 2022 Ruilong Li, UC Berkeley. +""" + +from enum import Enum + +import torch + +import nerfacc.cuda as _C + + +class ContractionType(Enum): + """Space contraction options. + + This is an enum class that describes how a :class:`nerfacc.Grid` covers the 3D space. + It is also used by :func:`nerfacc.ray_marching` to determine how to perform ray marching + within the grid. + + The options in this enum class are: + + Attributes: + AABB: Linearly map the region of interest :math:`[x_0, x_1]` to a + unit cube in :math:`[0, 1]`. + + .. math:: f(x) = \\frac{x - x_0}{x_1 - x_0} + + UN_BOUNDED_TANH: Contract an unbounded space into a unit cube in :math:`[0, 1]` + using tanh. The region of interest :math:`[x_0, x_1]` is first + mapped into :math:`[-0.5, +0.5]` before applying tanh. + + .. math:: f(x) = \\frac{1}{2}(tanh(\\frac{x - x_0}{x_1 - x_0} - \\frac{1}{2}) + 1) + + UN_BOUNDED_SPHERE: Contract an unbounded space into a unit sphere. Used in + `Mip-Nerf 360: Unbounded Anti-Aliased Neural Radiance Fields`_. + + .. math:: + f(x) = + \\begin{cases} + z(x) & ||z(x)|| \\leq 1 \\\\ + (2 - \\frac{1}{||z(x)||})(\\frac{z(x)}{||z(x)||}) & ||z(x)|| > 1 + \\end{cases} + + .. math:: + z(x) = \\frac{x - x_0}{x_1 - x_0} * 2 - 1 + + .. _Mip-Nerf 360\: Unbounded Anti-Aliased Neural Radiance Fields: + https://arxiv.org/abs/2111.12077 + + """ + + AABB = 0 + UN_BOUNDED_TANH = 1 + UN_BOUNDED_SPHERE = 2 + + def to_cpp_version(self): + """Convert to the C++ version of the enum class. + + Returns: + The C++ version of the enum class. + + """ + return _C.ContractionTypeGetter(self.value) + + +@torch.no_grad() +def contract( + x: torch.Tensor, + roi: torch.Tensor, + type: ContractionType = ContractionType.AABB, +) -> torch.Tensor: + """Contract the space into [0, 1]^3. + + Args: + x (torch.Tensor): Un-contracted points. + roi (torch.Tensor): Region of interest. + type (ContractionType): Contraction type. + + Returns: + torch.Tensor: Contracted points ([0, 1]^3). + """ + ctype = type.to_cpp_version() + return _C.contract(x.contiguous(), roi.contiguous(), ctype) + + +@torch.no_grad() +def contract_inv( + x: torch.Tensor, + roi: torch.Tensor, + type: ContractionType = ContractionType.AABB, +) -> torch.Tensor: + """Recover the space from [0, 1]^3 by inverse contraction. + + Args: + x (torch.Tensor): Contracted points ([0, 1]^3). + roi (torch.Tensor): Region of interest. + type (ContractionType): Contraction type. + + Returns: + torch.Tensor: Un-contracted points. + """ + ctype = type.to_cpp_version() + return _C.contract_inv(x.contiguous(), roi.contiguous(), ctype) diff --git a/codes/reconstruction/experiments/ta_deps/nerfacc/cuda/__init__.py b/codes/reconstruction/experiments/ta_deps/nerfacc/cuda/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..c1ff784ade03a66b92e9ebd549ab6da447415177 --- /dev/null +++ b/codes/reconstruction/experiments/ta_deps/nerfacc/cuda/__init__.py @@ -0,0 +1,70 @@ +""" +Copyright (c) 2022 Ruilong Li, UC Berkeley. +""" + +from typing import Any, Callable + + +def _make_lazy_cuda_func(name: str) -> Callable: + def call_cuda(*args, **kwargs): + # pylint: disable=import-outside-toplevel + from ._backend import _C + + return getattr(_C, name)(*args, **kwargs) + + return call_cuda + + +ContractionTypeGetter = _make_lazy_cuda_func("ContractionType") +contract = _make_lazy_cuda_func("contract") +contract_inv = _make_lazy_cuda_func("contract_inv") + +grid_query = _make_lazy_cuda_func("grid_query") + +ray_aabb_intersect = _make_lazy_cuda_func("ray_aabb_intersect") +ray_marching = _make_lazy_cuda_func("ray_marching") +ray_resampling = _make_lazy_cuda_func("ray_resampling") + +is_cub_available = _make_lazy_cuda_func("is_cub_available") +transmittance_from_sigma_forward_cub = _make_lazy_cuda_func( + "transmittance_from_sigma_forward_cub" +) +transmittance_from_sigma_backward_cub = _make_lazy_cuda_func( + "transmittance_from_sigma_backward_cub" +) +transmittance_from_alpha_forward_cub = _make_lazy_cuda_func( + "transmittance_from_alpha_forward_cub" +) +transmittance_from_alpha_backward_cub = _make_lazy_cuda_func( + "transmittance_from_alpha_backward_cub" +) + +transmittance_from_sigma_forward_naive = _make_lazy_cuda_func( + "transmittance_from_sigma_forward_naive" +) +transmittance_from_sigma_backward_naive = _make_lazy_cuda_func( + "transmittance_from_sigma_backward_naive" +) +transmittance_from_alpha_forward_naive = _make_lazy_cuda_func( + "transmittance_from_alpha_forward_naive" +) +transmittance_from_alpha_backward_naive = _make_lazy_cuda_func( + "transmittance_from_alpha_backward_naive" +) + +weight_from_sigma_forward_naive = _make_lazy_cuda_func( + "weight_from_sigma_forward_naive" +) +weight_from_sigma_backward_naive = _make_lazy_cuda_func( + "weight_from_sigma_backward_naive" +) +weight_from_alpha_forward_naive = _make_lazy_cuda_func( + "weight_from_alpha_forward_naive" +) +weight_from_alpha_backward_naive = _make_lazy_cuda_func( + "weight_from_alpha_backward_naive" +) + +unpack_data = _make_lazy_cuda_func("unpack_data") +unpack_info = _make_lazy_cuda_func("unpack_info") +unpack_info_to_mask = _make_lazy_cuda_func("unpack_info_to_mask") diff --git a/codes/reconstruction/experiments/ta_deps/nerfacc/cuda/_backend.py b/codes/reconstruction/experiments/ta_deps/nerfacc/cuda/_backend.py new file mode 100644 index 0000000000000000000000000000000000000000..4e3936d3b88fca1e837ba3ccc94826f51ce612bc --- /dev/null +++ b/codes/reconstruction/experiments/ta_deps/nerfacc/cuda/_backend.py @@ -0,0 +1,98 @@ +""" +Copyright (c) 2022 Ruilong Li, UC Berkeley. +""" + +import glob +import json +import os +import shutil +import urllib.request +import zipfile +from subprocess import DEVNULL, call + +from packaging import version +from rich.console import Console +from torch.utils.cpp_extension import _get_build_directory, load + +PATH = os.path.dirname(os.path.abspath(__file__)) + + +def cuda_toolkit_available(): + """Check if the nvcc is avaiable on the machine.""" + try: + call(["nvcc"], stdout=DEVNULL, stderr=DEVNULL) + return True + except FileNotFoundError: + return False + + +def cuda_toolkit_version(): + """Get the cuda toolkit version.""" + cuda_home = os.path.join(os.path.dirname(shutil.which("nvcc")), "..") + if os.path.exists(os.path.join(cuda_home, "version.txt")): + with open(os.path.join(cuda_home, "version.txt")) as f: + cuda_version = f.read().strip().split()[-1] + elif os.path.exists(os.path.join(cuda_home, "version.json")): + with open(os.path.join(cuda_home, "version.json")) as f: + cuda_version = json.load(f)["cuda"]["version"] + else: + raise RuntimeError("Cannot find the cuda version.") + return cuda_version + + +name = "nerfacc_cuda" +build_dir = _get_build_directory(name, verbose=False) +extra_include_paths = [] +extra_cflags = ["-O3"] +extra_cuda_cflags = ["-O3"] + +_C = None +if cuda_toolkit_available(): + # # we need cub >= 1.15.0 which is shipped with cuda >= 11.6, so download if + # # necessary. (compling does not garentee to success) + # if version.parse(cuda_toolkit_version()) < version.parse("11.6"): + # target_path = os.path.join(build_dir, "cub-1.17.0") + # if not os.path.exists(target_path): + # zip_path, _ = urllib.request.urlretrieve( + # "https://github.com/NVIDIA/cub/archive/1.17.0.tar.gz", + # os.path.join(build_dir, "cub-1.17.0.tar.gz"), + # ) + # shutil.unpack_archive(zip_path, build_dir) + # extra_include_paths.append(target_path) + # extra_cuda_cflags.append("-DTHRUST_IGNORE_CUB_VERSION_CHECK") + # print( + # f"download cub because the cuda version is {cuda_toolkit_version()}" + # ) + + if os.path.exists(os.path.join(build_dir, f"{name}.so")): + # If the build exists, we assume the extension has been built + # and we can load it. + _C = load( + name=name, + sources=glob.glob(os.path.join(PATH, "csrc/*.cu")), + extra_cflags=extra_cflags, + extra_cuda_cflags=extra_cuda_cflags, + extra_include_paths=extra_include_paths, + ) + else: + # Build from scratch. Remove the build directory just to be safe: pytorch jit might stuck + # if the build directory exists. + shutil.rmtree(build_dir) + with Console().status( + "[bold yellow]NerfAcc: Setting up CUDA (This may take a few minutes the first time)", + spinner="bouncingBall", + ): + _C = load( + name=name, + sources=glob.glob(os.path.join(PATH, "csrc/*.cu")), + extra_cflags=extra_cflags, + extra_cuda_cflags=extra_cuda_cflags, + extra_include_paths=extra_include_paths, + ) +else: + Console().print( + "[yellow]NerfAcc: No CUDA toolkit found. NerfAcc will be disabled.[/yellow]" + ) + + +__all__ = ["_C"] diff --git a/codes/reconstruction/experiments/ta_deps/nerfacc/cuda/csrc/cdf.cu b/codes/reconstruction/experiments/ta_deps/nerfacc/cuda/csrc/cdf.cu new file mode 100644 index 0000000000000000000000000000000000000000..a84545a50da36b043fc184fd1dd3c79bac91cc44 --- /dev/null +++ b/codes/reconstruction/experiments/ta_deps/nerfacc/cuda/csrc/cdf.cu @@ -0,0 +1,203 @@ +/* + * Copyright (c) 2022 Ruilong Li, UC Berkeley. + */ + +#include "include/helpers_cuda.h" + +template +__global__ void cdf_resampling_kernel( + const uint32_t n_rays, + const int *packed_info, // input ray & point indices. + const scalar_t *starts, // input start t + const scalar_t *ends, // input end t + const scalar_t *weights, // transmittance weights + const int *resample_packed_info, + scalar_t *resample_starts, + scalar_t *resample_ends) +{ + CUDA_GET_THREAD_ID(i, n_rays); + + // locate + const int base = packed_info[i * 2 + 0]; // point idx start. + const int steps = packed_info[i * 2 + 1]; // point idx shift. + const int resample_base = resample_packed_info[i * 2 + 0]; + const int resample_steps = resample_packed_info[i * 2 + 1]; + if (steps == 0) + return; + + starts += base; + ends += base; + weights += base; + resample_starts += resample_base; + resample_ends += resample_base; + + // normalize weights **per ray** + scalar_t weights_sum = 0.0f; + for (int j = 0; j < steps; j++) + weights_sum += weights[j]; + scalar_t padding = fmaxf(1e-5f - weights_sum, 0.0f); + scalar_t padding_step = padding / steps; + weights_sum += padding; + + int num_bins = resample_steps + 1; + scalar_t cdf_step_size = (1.0f - 1.0 / num_bins) / resample_steps; + + int idx = 0, j = 0; + scalar_t cdf_prev = 0.0f, cdf_next = (weights[idx] + padding_step) / weights_sum; + scalar_t cdf_u = 1.0 / (2 * num_bins); + while (j < num_bins) + { + if (cdf_u < cdf_next) + { + // printf("cdf_u: %f, cdf_next: %f\n", cdf_u, cdf_next); + // resample in this interval + scalar_t scaling = (ends[idx] - starts[idx]) / (cdf_next - cdf_prev); + scalar_t t = (cdf_u - cdf_prev) * scaling + starts[idx]; + if (j < num_bins - 1) + resample_starts[j] = t; + if (j > 0) + resample_ends[j - 1] = t; + // going further to next resample + cdf_u += cdf_step_size; + j += 1; + } + else + { + // going to next interval + idx += 1; + cdf_prev = cdf_next; + cdf_next += (weights[idx] + padding_step) / weights_sum; + } + } + if (j != num_bins) + { + printf("Error: %d %d %f\n", j, num_bins, weights_sum); + } + return; +} + +// template +// __global__ void cdf_resampling_kernel( +// const uint32_t n_rays, +// const int *packed_info, // input ray & point indices. +// const scalar_t *starts, // input start t +// const scalar_t *ends, // input end t +// const scalar_t *weights, // transmittance weights +// const int *resample_packed_info, +// scalar_t *resample_starts, +// scalar_t *resample_ends) +// { +// CUDA_GET_THREAD_ID(i, n_rays); + +// // locate +// const int base = packed_info[i * 2 + 0]; // point idx start. +// const int steps = packed_info[i * 2 + 1]; // point idx shift. +// const int resample_base = resample_packed_info[i * 2 + 0]; +// const int resample_steps = resample_packed_info[i * 2 + 1]; +// if (steps == 0) +// return; + +// starts += base; +// ends += base; +// weights += base; +// resample_starts += resample_base; +// resample_ends += resample_base; + +// scalar_t cdf_step_size = 1.0f / resample_steps; + +// // normalize weights **per ray** +// scalar_t weights_sum = 0.0f; +// for (int j = 0; j < steps; j++) +// weights_sum += weights[j]; + +// scalar_t padding = fmaxf(1e-5f - weights_sum, 0.0f); +// scalar_t padding_step = padding / steps; +// weights_sum += padding; + +// int idx = 0, j = 0; +// scalar_t cdf_prev = 0.0f, cdf_next = (weights[idx] + padding_step) / weights_sum; +// scalar_t cdf_u = 0.5f * cdf_step_size; +// while (cdf_u < 1.0f) +// { +// if (cdf_u < cdf_next) +// { +// // resample in this interval +// scalar_t scaling = (ends[idx] - starts[idx]) / (cdf_next - cdf_prev); +// scalar_t resample_mid = (cdf_u - cdf_prev) * scaling + starts[idx]; +// scalar_t resample_half_size = cdf_step_size * scaling * 0.5; +// resample_starts[j] = fmaxf(resample_mid - resample_half_size, starts[idx]); +// resample_ends[j] = fminf(resample_mid + resample_half_size, ends[idx]); +// // going further to next resample +// cdf_u += cdf_step_size; +// j += 1; +// } +// else +// { +// // go to next interval +// idx += 1; +// if (idx == steps) +// break; +// cdf_prev = cdf_next; +// cdf_next += (weights[idx] + padding_step) / weights_sum; +// } +// } +// if (j != resample_steps) +// { +// printf("Error: %d %d %f\n", j, resample_steps, weights_sum); +// } +// return; +// } + +std::vector ray_resampling( + torch::Tensor packed_info, + torch::Tensor starts, + torch::Tensor ends, + torch::Tensor weights, + const int steps) +{ + DEVICE_GUARD(packed_info); + + CHECK_INPUT(packed_info); + CHECK_INPUT(starts); + CHECK_INPUT(ends); + CHECK_INPUT(weights); + + TORCH_CHECK(packed_info.ndimension() == 2 & packed_info.size(1) == 2); + TORCH_CHECK(starts.ndimension() == 2 & starts.size(1) == 1); + TORCH_CHECK(ends.ndimension() == 2 & ends.size(1) == 1); + TORCH_CHECK(weights.ndimension() == 1); + + const uint32_t n_rays = packed_info.size(0); + const uint32_t n_samples = weights.size(0); + + const int threads = 256; + const int blocks = CUDA_N_BLOCKS_NEEDED(n_rays, threads); + + torch::Tensor num_steps = torch::split(packed_info, 1, 1)[1]; + torch::Tensor resample_num_steps = (num_steps > 0).to(num_steps.options()) * steps; + torch::Tensor resample_cum_steps = resample_num_steps.cumsum(0, torch::kInt32); + torch::Tensor resample_packed_info = torch::cat( + {resample_cum_steps - resample_num_steps, resample_num_steps}, 1); + + int total_steps = resample_cum_steps[resample_cum_steps.size(0) - 1].item(); + torch::Tensor resample_starts = torch::zeros({total_steps, 1}, starts.options()); + torch::Tensor resample_ends = torch::zeros({total_steps, 1}, ends.options()); + + AT_DISPATCH_FLOATING_TYPES_AND_HALF( + weights.scalar_type(), + "ray_resampling", + ([&] + { cdf_resampling_kernel<<>>( + n_rays, + // inputs + packed_info.data_ptr(), + starts.data_ptr(), + ends.data_ptr(), + weights.data_ptr(), + resample_packed_info.data_ptr(), + // outputs + resample_starts.data_ptr(), + resample_ends.data_ptr()); })); + + return {resample_packed_info, resample_starts, resample_ends}; +} diff --git a/codes/reconstruction/experiments/ta_deps/nerfacc/cuda/csrc/contraction.cu b/codes/reconstruction/experiments/ta_deps/nerfacc/cuda/csrc/contraction.cu new file mode 100644 index 0000000000000000000000000000000000000000..4555d749b206fa106a8e7704836a59c6b63418df --- /dev/null +++ b/codes/reconstruction/experiments/ta_deps/nerfacc/cuda/csrc/contraction.cu @@ -0,0 +1,113 @@ +/* + * Copyright (c) 2022 Ruilong Li, UC Berkeley. + */ + +#include "include/helpers_cuda.h" +#include "include/helpers_math.h" +#include "include/helpers_contraction.h" + +__global__ void contract_kernel( + // samples info + const uint32_t n_samples, + const float *samples, // (n_samples, 3) + // contraction + const float *roi, + const ContractionType type, + // outputs + float *out_samples) +{ + CUDA_GET_THREAD_ID(i, n_samples); + + // locate + samples += i * 3; + out_samples += i * 3; + + const float3 roi_min = make_float3(roi[0], roi[1], roi[2]); + const float3 roi_max = make_float3(roi[3], roi[4], roi[5]); + const float3 xyz = make_float3(samples[0], samples[1], samples[2]); + float3 xyz_unit = apply_contraction(xyz, roi_min, roi_max, type); + + out_samples[0] = xyz_unit.x; + out_samples[1] = xyz_unit.y; + out_samples[2] = xyz_unit.z; + return; +} + +__global__ void contract_inv_kernel( + // samples info + const uint32_t n_samples, + const float *samples, // (n_samples, 3) + // contraction + const float *roi, + const ContractionType type, + // outputs + float *out_samples) +{ + CUDA_GET_THREAD_ID(i, n_samples); + + // locate + samples += i * 3; + out_samples += i * 3; + + const float3 roi_min = make_float3(roi[0], roi[1], roi[2]); + const float3 roi_max = make_float3(roi[3], roi[4], roi[5]); + const float3 xyz_unit = make_float3(samples[0], samples[1], samples[2]); + float3 xyz = apply_contraction_inv(xyz_unit, roi_min, roi_max, type); + + out_samples[0] = xyz.x; + out_samples[1] = xyz.y; + out_samples[2] = xyz.z; + return; +} + +torch::Tensor contract( + const torch::Tensor samples, + // contraction + const torch::Tensor roi, + const ContractionType type) +{ + DEVICE_GUARD(samples); + CHECK_INPUT(samples); + + const int n_samples = samples.size(0); + const int threads = 256; + const int blocks = CUDA_N_BLOCKS_NEEDED(n_samples, threads); + + torch::Tensor out_samples = torch::empty({n_samples, 3}, samples.options()); + + contract_kernel<<>>( + n_samples, + samples.data_ptr(), + // contraction + roi.data_ptr(), + type, + // outputs + out_samples.data_ptr()); + return out_samples; +} + +torch::Tensor contract_inv( + const torch::Tensor samples, + // contraction + const torch::Tensor roi, + const ContractionType type) +{ + DEVICE_GUARD(samples); + CHECK_INPUT(samples); + + const int n_samples = samples.size(0); + const int threads = 256; + const int blocks = CUDA_N_BLOCKS_NEEDED(n_samples, threads); + + torch::Tensor out_samples = torch::empty({n_samples, 3}, samples.options()); + + contract_inv_kernel<<>>( + n_samples, + samples.data_ptr(), + // contraction + roi.data_ptr(), + type, + // outputs + out_samples.data_ptr()); + return out_samples; +} diff --git a/codes/reconstruction/experiments/ta_deps/nerfacc/cuda/csrc/include/helpers_contraction.h b/codes/reconstruction/experiments/ta_deps/nerfacc/cuda/csrc/include/helpers_contraction.h new file mode 100644 index 0000000000000000000000000000000000000000..af56b55165e03006d9df097c5e809b72f2c3ee45 --- /dev/null +++ b/codes/reconstruction/experiments/ta_deps/nerfacc/cuda/csrc/include/helpers_contraction.h @@ -0,0 +1,129 @@ +/* + * Copyright (c) 2022 Ruilong Li, UC Berkeley. + */ + +#pragma once + +#include "helpers_math.h" + +enum ContractionType +{ + AABB = 0, + UN_BOUNDED_TANH = 1, + UN_BOUNDED_SPHERE = 2, +}; + +inline __device__ __host__ float3 roi_to_unit( + const float3 xyz, const float3 roi_min, const float3 roi_max) +{ + // roi -> [0, 1]^3 + return (xyz - roi_min) / (roi_max - roi_min); +} + +inline __device__ __host__ float3 unit_to_roi( + const float3 xyz, const float3 roi_min, const float3 roi_max) +{ + // [0, 1]^3 -> roi + return xyz * (roi_max - roi_min) + roi_min; +} + +inline __device__ __host__ float3 inf_to_unit_tanh( + const float3 xyz, float3 roi_min, const float3 roi_max) +{ + /** + [-inf, inf]^3 -> [0, 1]^3 + roi -> cube of [0.25, 0.75]^3 + **/ + float3 xyz_unit = roi_to_unit(xyz, roi_min, roi_max); // roi -> [0, 1]^3 + xyz_unit = xyz_unit - 0.5f; // roi -> [-0.5, 0.5]^3 + return make_float3(tanhf(xyz_unit.x), tanhf(xyz_unit.y), tanhf(xyz_unit.z)) * 0.5f + 0.5f; +} + +inline __device__ __host__ float3 unit_to_inf_tanh( + const float3 xyz, float3 roi_min, const float3 roi_max) +{ + /** + [0, 1]^3 -> [-inf, inf]^3 + cube of [0.25, 0.75]^3 -> roi + **/ + float3 xyz_unit = clamp( + make_float3( + atanhf(xyz.x * 2.0f - 1.0f), + atanhf(xyz.y * 2.0f - 1.0f), + atanhf(xyz.z * 2.0f - 1.0f)), + -1e10f, + 1e10f); + xyz_unit = xyz_unit + 0.5f; + xyz_unit = unit_to_roi(xyz_unit, roi_min, roi_max); + return xyz_unit; +} + +inline __device__ __host__ float3 inf_to_unit_sphere( + const float3 xyz, const float3 roi_min, const float3 roi_max) +{ + /** From MipNeRF360 + [-inf, inf]^3 -> sphere of [0, 1]^3; + roi -> sphere of [0.25, 0.75]^3 + **/ + float3 xyz_unit = roi_to_unit(xyz, roi_min, roi_max); // roi -> [0, 1]^3 + xyz_unit = xyz_unit * 2.0f - 1.0f; // roi -> [-1, 1]^3 + + float norm_sq = dot(xyz_unit, xyz_unit); + float norm = sqrt(norm_sq); + if (norm > 1.0f) + { + xyz_unit = (2.0f - 1.0f / norm) * (xyz_unit / norm); + } + xyz_unit = xyz_unit * 0.25f + 0.5f; // [-1, 1]^3 -> [0.25, 0.75]^3 + return xyz_unit; +} + +inline __device__ __host__ float3 unit_sphere_to_inf( + const float3 xyz, const float3 roi_min, const float3 roi_max) +{ + /** From MipNeRF360 + sphere of [0, 1]^3 -> [-inf, inf]^3; + sphere of [0.25, 0.75]^3 -> roi + **/ + float3 xyz_unit = (xyz - 0.5f) * 4.0f; // [0.25, 0.75]^3 -> [-1, 1]^3 + + float norm_sq = dot(xyz_unit, xyz_unit); + float norm = sqrt(norm_sq); + if (norm > 1.0f) + { + xyz_unit = xyz_unit / fmaxf((2.0f * norm - 1.0f * norm_sq), 1e-10f); + } + xyz_unit = xyz_unit * 0.5f + 0.5f; // [-1, 1]^3 -> [0, 1]^3 + xyz_unit = unit_to_roi(xyz_unit, roi_min, roi_max); // [0, 1]^3 -> roi + return xyz_unit; +} + +inline __device__ __host__ float3 apply_contraction( + const float3 xyz, const float3 roi_min, const float3 roi_max, + const ContractionType type) +{ + switch (type) + { + case AABB: + return roi_to_unit(xyz, roi_min, roi_max); + case UN_BOUNDED_TANH: + return inf_to_unit_tanh(xyz, roi_min, roi_max); + case UN_BOUNDED_SPHERE: + return inf_to_unit_sphere(xyz, roi_min, roi_max); + } +} + +inline __device__ __host__ float3 apply_contraction_inv( + const float3 xyz, const float3 roi_min, const float3 roi_max, + const ContractionType type) +{ + switch (type) + { + case AABB: + return unit_to_roi(xyz, roi_min, roi_max); + case UN_BOUNDED_TANH: + return unit_to_inf_tanh(xyz, roi_min, roi_max); + case UN_BOUNDED_SPHERE: + return unit_sphere_to_inf(xyz, roi_min, roi_max); + } +} diff --git a/codes/reconstruction/experiments/ta_deps/nerfacc/cuda/csrc/include/helpers_cuda.h b/codes/reconstruction/experiments/ta_deps/nerfacc/cuda/csrc/include/helpers_cuda.h new file mode 100644 index 0000000000000000000000000000000000000000..2f17657ecffb0e65893fdb862a4a0926e358cf71 --- /dev/null +++ b/codes/reconstruction/experiments/ta_deps/nerfacc/cuda/csrc/include/helpers_cuda.h @@ -0,0 +1,42 @@ +/* + * Copyright (c) 2022 Ruilong Li, UC Berkeley. + */ + +#pragma once + +#include +#include +#include +// #include + +// cub support for scan by key is added to cub 1.15 +// in https://github.com/NVIDIA/cub/pull/376 +#if CUB_VERSION >= 101500 +#define CUB_SUPPORTS_SCAN_BY_KEY() 1 +#else +#define CUB_SUPPORTS_SCAN_BY_KEY() 0 +#endif + +#define CHECK_CUDA(x) TORCH_CHECK(x.is_cuda(), #x " must be a CUDA tensor") +#define CHECK_CONTIGUOUS(x) \ + TORCH_CHECK(x.is_contiguous(), #x " must be contiguous") +#define CHECK_INPUT(x) \ + CHECK_CUDA(x); \ + CHECK_CONTIGUOUS(x) +#define CUDA_GET_THREAD_ID(tid, Q) \ + const int tid = blockIdx.x * blockDim.x + threadIdx.x; \ + if (tid >= Q) \ + return +#define CUDA_N_BLOCKS_NEEDED(Q, CUDA_N_THREADS) ((Q - 1) / CUDA_N_THREADS + 1) +#define DEVICE_GUARD(_ten) \ + const at::cuda::OptionalCUDAGuard device_guard(device_of(_ten)); + +// https://github.com/pytorch/pytorch/blob/233305a852e1cd7f319b15b5137074c9eac455f6/aten/src/ATen/cuda/cub.cuh#L38-L46 +#define CUB_WRAPPER(func, ...) do { \ + size_t temp_storage_bytes = 0; \ + func(nullptr, temp_storage_bytes, __VA_ARGS__); \ + auto& caching_allocator = *::c10::cuda::CUDACachingAllocator::get(); \ + auto temp_storage = caching_allocator.allocate(temp_storage_bytes); \ + func(temp_storage.get(), temp_storage_bytes, __VA_ARGS__); \ + AT_CUDA_CHECK(cudaGetLastError()); \ +} while (false) diff --git a/codes/reconstruction/experiments/ta_deps/nerfacc/cuda/csrc/include/helpers_math.h b/codes/reconstruction/experiments/ta_deps/nerfacc/cuda/csrc/include/helpers_math.h new file mode 100644 index 0000000000000000000000000000000000000000..08faae7ff815d39bb60d6386952499bed17067e2 --- /dev/null +++ b/codes/reconstruction/experiments/ta_deps/nerfacc/cuda/csrc/include/helpers_math.h @@ -0,0 +1,1477 @@ +/* Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. + * Modified by Ruilong Li, 2022 + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * * Neither the name of NVIDIA CORPORATION nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY + * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* + * This file implements common mathematical operations on vector types + * (float3, float4 etc.) since these are not provided as standard by CUDA. + * + * The syntax is modeled on the Cg standard library. + * + * This is part of the Helper library includes + * + * Thanks to Linh Hah for additions and fixes. + */ + +#ifndef HELPER_MATH_H +#define HELPER_MATH_H + +#include "cuda_runtime.h" + +typedef unsigned int uint; +typedef unsigned short ushort; + +#ifndef EXIT_WAIVED +#define EXIT_WAIVED 2 +#endif + +#ifndef __CUDACC__ +#include + +//////////////////////////////////////////////////////////////////////////////// +// host implementations of CUDA functions +//////////////////////////////////////////////////////////////////////////////// + +inline float fminf(float a, float b) +{ + return a < b ? a : b; +} + +inline float fmaxf(float a, float b) +{ + return a > b ? a : b; +} + +inline int max(int a, int b) +{ + return a > b ? a : b; +} + +inline int min(int a, int b) +{ + return a < b ? a : b; +} + +inline float rsqrtf(float x) +{ + return 1.0f / sqrtf(x); +} +#endif + +//////////////////////////////////////////////////////////////////////////////// +// constructors +//////////////////////////////////////////////////////////////////////////////// + +inline __host__ __device__ float2 make_float2(float s) +{ + return make_float2(s, s); +} +inline __host__ __device__ float2 make_float2(float3 a) +{ + return make_float2(a.x, a.y); +} +inline __host__ __device__ float2 make_float2(int2 a) +{ + return make_float2(float(a.x), float(a.y)); +} +inline __host__ __device__ float2 make_float2(uint2 a) +{ + return make_float2(float(a.x), float(a.y)); +} + +inline __host__ __device__ int2 make_int2(int s) +{ + return make_int2(s, s); +} +inline __host__ __device__ int2 make_int2(int3 a) +{ + return make_int2(a.x, a.y); +} +inline __host__ __device__ int2 make_int2(uint2 a) +{ + return make_int2(int(a.x), int(a.y)); +} +inline __host__ __device__ int2 make_int2(float2 a) +{ + return make_int2(int(a.x), int(a.y)); +} + +inline __host__ __device__ uint2 make_uint2(uint s) +{ + return make_uint2(s, s); +} +inline __host__ __device__ uint2 make_uint2(uint3 a) +{ + return make_uint2(a.x, a.y); +} +inline __host__ __device__ uint2 make_uint2(int2 a) +{ + return make_uint2(uint(a.x), uint(a.y)); +} + +inline __host__ __device__ float3 make_float3(float s) +{ + return make_float3(s, s, s); +} +inline __host__ __device__ float3 make_float3(float2 a) +{ + return make_float3(a.x, a.y, 0.0f); +} +inline __host__ __device__ float3 make_float3(float2 a, float s) +{ + return make_float3(a.x, a.y, s); +} +inline __host__ __device__ float3 make_float3(float4 a) +{ + return make_float3(a.x, a.y, a.z); +} +inline __host__ __device__ float3 make_float3(int3 a) +{ + return make_float3(float(a.x), float(a.y), float(a.z)); +} +inline __host__ __device__ float3 make_float3(uint3 a) +{ + return make_float3(float(a.x), float(a.y), float(a.z)); +} + +inline __host__ __device__ int3 make_int3(int s) +{ + return make_int3(s, s, s); +} +inline __host__ __device__ int3 make_int3(int2 a) +{ + return make_int3(a.x, a.y, 0); +} +inline __host__ __device__ int3 make_int3(int2 a, int s) +{ + return make_int3(a.x, a.y, s); +} +inline __host__ __device__ int3 make_int3(uint3 a) +{ + return make_int3(int(a.x), int(a.y), int(a.z)); +} +inline __host__ __device__ int3 make_int3(float3 a) +{ + return make_int3(int(a.x), int(a.y), int(a.z)); +} + +inline __host__ __device__ uint3 make_uint3(uint s) +{ + return make_uint3(s, s, s); +} +inline __host__ __device__ uint3 make_uint3(uint2 a) +{ + return make_uint3(a.x, a.y, 0); +} +inline __host__ __device__ uint3 make_uint3(uint2 a, uint s) +{ + return make_uint3(a.x, a.y, s); +} +inline __host__ __device__ uint3 make_uint3(uint4 a) +{ + return make_uint3(a.x, a.y, a.z); +} +inline __host__ __device__ uint3 make_uint3(int3 a) +{ + return make_uint3(uint(a.x), uint(a.y), uint(a.z)); +} + +inline __host__ __device__ float4 make_float4(float s) +{ + return make_float4(s, s, s, s); +} +inline __host__ __device__ float4 make_float4(float3 a) +{ + return make_float4(a.x, a.y, a.z, 0.0f); +} +inline __host__ __device__ float4 make_float4(float3 a, float w) +{ + return make_float4(a.x, a.y, a.z, w); +} +inline __host__ __device__ float4 make_float4(int4 a) +{ + return make_float4(float(a.x), float(a.y), float(a.z), float(a.w)); +} +inline __host__ __device__ float4 make_float4(uint4 a) +{ + return make_float4(float(a.x), float(a.y), float(a.z), float(a.w)); +} + +inline __host__ __device__ int4 make_int4(int s) +{ + return make_int4(s, s, s, s); +} +inline __host__ __device__ int4 make_int4(int3 a) +{ + return make_int4(a.x, a.y, a.z, 0); +} +inline __host__ __device__ int4 make_int4(int3 a, int w) +{ + return make_int4(a.x, a.y, a.z, w); +} +inline __host__ __device__ int4 make_int4(uint4 a) +{ + return make_int4(int(a.x), int(a.y), int(a.z), int(a.w)); +} +inline __host__ __device__ int4 make_int4(float4 a) +{ + return make_int4(int(a.x), int(a.y), int(a.z), int(a.w)); +} + +inline __host__ __device__ uint4 make_uint4(uint s) +{ + return make_uint4(s, s, s, s); +} +inline __host__ __device__ uint4 make_uint4(uint3 a) +{ + return make_uint4(a.x, a.y, a.z, 0); +} +inline __host__ __device__ uint4 make_uint4(uint3 a, uint w) +{ + return make_uint4(a.x, a.y, a.z, w); +} +inline __host__ __device__ uint4 make_uint4(int4 a) +{ + return make_uint4(uint(a.x), uint(a.y), uint(a.z), uint(a.w)); +} + +//////////////////////////////////////////////////////////////////////////////// +// negate +//////////////////////////////////////////////////////////////////////////////// + +inline __host__ __device__ float2 operator-(float2 &a) +{ + return make_float2(-a.x, -a.y); +} +inline __host__ __device__ int2 operator-(int2 &a) +{ + return make_int2(-a.x, -a.y); +} +inline __host__ __device__ float3 operator-(float3 &a) +{ + return make_float3(-a.x, -a.y, -a.z); +} +inline __host__ __device__ int3 operator-(int3 &a) +{ + return make_int3(-a.x, -a.y, -a.z); +} +inline __host__ __device__ float4 operator-(float4 &a) +{ + return make_float4(-a.x, -a.y, -a.z, -a.w); +} +inline __host__ __device__ int4 operator-(int4 &a) +{ + return make_int4(-a.x, -a.y, -a.z, -a.w); +} + +//////////////////////////////////////////////////////////////////////////////// +// addition +//////////////////////////////////////////////////////////////////////////////// + +inline __host__ __device__ float2 operator+(float2 a, float2 b) +{ + return make_float2(a.x + b.x, a.y + b.y); +} +inline __host__ __device__ void operator+=(float2 &a, float2 b) +{ + a.x += b.x; + a.y += b.y; +} +inline __host__ __device__ float2 operator+(float2 a, float b) +{ + return make_float2(a.x + b, a.y + b); +} +inline __host__ __device__ float2 operator+(float b, float2 a) +{ + return make_float2(a.x + b, a.y + b); +} +inline __host__ __device__ void operator+=(float2 &a, float b) +{ + a.x += b; + a.y += b; +} + +inline __host__ __device__ int2 operator+(int2 a, int2 b) +{ + return make_int2(a.x + b.x, a.y + b.y); +} +inline __host__ __device__ void operator+=(int2 &a, int2 b) +{ + a.x += b.x; + a.y += b.y; +} +inline __host__ __device__ int2 operator+(int2 a, int b) +{ + return make_int2(a.x + b, a.y + b); +} +inline __host__ __device__ int2 operator+(int b, int2 a) +{ + return make_int2(a.x + b, a.y + b); +} +inline __host__ __device__ void operator+=(int2 &a, int b) +{ + a.x += b; + a.y += b; +} + +inline __host__ __device__ uint2 operator+(uint2 a, uint2 b) +{ + return make_uint2(a.x + b.x, a.y + b.y); +} +inline __host__ __device__ void operator+=(uint2 &a, uint2 b) +{ + a.x += b.x; + a.y += b.y; +} +inline __host__ __device__ uint2 operator+(uint2 a, uint b) +{ + return make_uint2(a.x + b, a.y + b); +} +inline __host__ __device__ uint2 operator+(uint b, uint2 a) +{ + return make_uint2(a.x + b, a.y + b); +} +inline __host__ __device__ void operator+=(uint2 &a, uint b) +{ + a.x += b; + a.y += b; +} + +inline __host__ __device__ float3 operator+(float3 a, float3 b) +{ + return make_float3(a.x + b.x, a.y + b.y, a.z + b.z); +} +inline __host__ __device__ void operator+=(float3 &a, float3 b) +{ + a.x += b.x; + a.y += b.y; + a.z += b.z; +} +inline __host__ __device__ float3 operator+(float3 a, float b) +{ + return make_float3(a.x + b, a.y + b, a.z + b); +} +inline __host__ __device__ void operator+=(float3 &a, float b) +{ + a.x += b; + a.y += b; + a.z += b; +} + +inline __host__ __device__ int3 operator+(int3 a, int3 b) +{ + return make_int3(a.x + b.x, a.y + b.y, a.z + b.z); +} +inline __host__ __device__ void operator+=(int3 &a, int3 b) +{ + a.x += b.x; + a.y += b.y; + a.z += b.z; +} +inline __host__ __device__ int3 operator+(int3 a, int b) +{ + return make_int3(a.x + b, a.y + b, a.z + b); +} +inline __host__ __device__ void operator+=(int3 &a, int b) +{ + a.x += b; + a.y += b; + a.z += b; +} + +inline __host__ __device__ uint3 operator+(uint3 a, uint3 b) +{ + return make_uint3(a.x + b.x, a.y + b.y, a.z + b.z); +} +inline __host__ __device__ void operator+=(uint3 &a, uint3 b) +{ + a.x += b.x; + a.y += b.y; + a.z += b.z; +} +inline __host__ __device__ uint3 operator+(uint3 a, uint b) +{ + return make_uint3(a.x + b, a.y + b, a.z + b); +} +inline __host__ __device__ void operator+=(uint3 &a, uint b) +{ + a.x += b; + a.y += b; + a.z += b; +} + +inline __host__ __device__ int3 operator+(int b, int3 a) +{ + return make_int3(a.x + b, a.y + b, a.z + b); +} +inline __host__ __device__ uint3 operator+(uint b, uint3 a) +{ + return make_uint3(a.x + b, a.y + b, a.z + b); +} +inline __host__ __device__ float3 operator+(float b, float3 a) +{ + return make_float3(a.x + b, a.y + b, a.z + b); +} + +inline __host__ __device__ float4 operator+(float4 a, float4 b) +{ + return make_float4(a.x + b.x, a.y + b.y, a.z + b.z, a.w + b.w); +} +inline __host__ __device__ void operator+=(float4 &a, float4 b) +{ + a.x += b.x; + a.y += b.y; + a.z += b.z; + a.w += b.w; +} +inline __host__ __device__ float4 operator+(float4 a, float b) +{ + return make_float4(a.x + b, a.y + b, a.z + b, a.w + b); +} +inline __host__ __device__ float4 operator+(float b, float4 a) +{ + return make_float4(a.x + b, a.y + b, a.z + b, a.w + b); +} +inline __host__ __device__ void operator+=(float4 &a, float b) +{ + a.x += b; + a.y += b; + a.z += b; + a.w += b; +} + +inline __host__ __device__ int4 operator+(int4 a, int4 b) +{ + return make_int4(a.x + b.x, a.y + b.y, a.z + b.z, a.w + b.w); +} +inline __host__ __device__ void operator+=(int4 &a, int4 b) +{ + a.x += b.x; + a.y += b.y; + a.z += b.z; + a.w += b.w; +} +inline __host__ __device__ int4 operator+(int4 a, int b) +{ + return make_int4(a.x + b, a.y + b, a.z + b, a.w + b); +} +inline __host__ __device__ int4 operator+(int b, int4 a) +{ + return make_int4(a.x + b, a.y + b, a.z + b, a.w + b); +} +inline __host__ __device__ void operator+=(int4 &a, int b) +{ + a.x += b; + a.y += b; + a.z += b; + a.w += b; +} + +inline __host__ __device__ uint4 operator+(uint4 a, uint4 b) +{ + return make_uint4(a.x + b.x, a.y + b.y, a.z + b.z, a.w + b.w); +} +inline __host__ __device__ void operator+=(uint4 &a, uint4 b) +{ + a.x += b.x; + a.y += b.y; + a.z += b.z; + a.w += b.w; +} +inline __host__ __device__ uint4 operator+(uint4 a, uint b) +{ + return make_uint4(a.x + b, a.y + b, a.z + b, a.w + b); +} +inline __host__ __device__ uint4 operator+(uint b, uint4 a) +{ + return make_uint4(a.x + b, a.y + b, a.z + b, a.w + b); +} +inline __host__ __device__ void operator+=(uint4 &a, uint b) +{ + a.x += b; + a.y += b; + a.z += b; + a.w += b; +} + +//////////////////////////////////////////////////////////////////////////////// +// subtract +//////////////////////////////////////////////////////////////////////////////// + +inline __host__ __device__ float2 operator-(float2 a, float2 b) +{ + return make_float2(a.x - b.x, a.y - b.y); +} +inline __host__ __device__ void operator-=(float2 &a, float2 b) +{ + a.x -= b.x; + a.y -= b.y; +} +inline __host__ __device__ float2 operator-(float2 a, float b) +{ + return make_float2(a.x - b, a.y - b); +} +inline __host__ __device__ float2 operator-(float b, float2 a) +{ + return make_float2(b - a.x, b - a.y); +} +inline __host__ __device__ void operator-=(float2 &a, float b) +{ + a.x -= b; + a.y -= b; +} + +inline __host__ __device__ int2 operator-(int2 a, int2 b) +{ + return make_int2(a.x - b.x, a.y - b.y); +} +inline __host__ __device__ void operator-=(int2 &a, int2 b) +{ + a.x -= b.x; + a.y -= b.y; +} +inline __host__ __device__ int2 operator-(int2 a, int b) +{ + return make_int2(a.x - b, a.y - b); +} +inline __host__ __device__ int2 operator-(int b, int2 a) +{ + return make_int2(b - a.x, b - a.y); +} +inline __host__ __device__ void operator-=(int2 &a, int b) +{ + a.x -= b; + a.y -= b; +} + +inline __host__ __device__ uint2 operator-(uint2 a, uint2 b) +{ + return make_uint2(a.x - b.x, a.y - b.y); +} +inline __host__ __device__ void operator-=(uint2 &a, uint2 b) +{ + a.x -= b.x; + a.y -= b.y; +} +inline __host__ __device__ uint2 operator-(uint2 a, uint b) +{ + return make_uint2(a.x - b, a.y - b); +} +inline __host__ __device__ uint2 operator-(uint b, uint2 a) +{ + return make_uint2(b - a.x, b - a.y); +} +inline __host__ __device__ void operator-=(uint2 &a, uint b) +{ + a.x -= b; + a.y -= b; +} + +inline __host__ __device__ float3 operator-(float3 a, float3 b) +{ + return make_float3(a.x - b.x, a.y - b.y, a.z - b.z); +} +inline __host__ __device__ void operator-=(float3 &a, float3 b) +{ + a.x -= b.x; + a.y -= b.y; + a.z -= b.z; +} +inline __host__ __device__ float3 operator-(float3 a, float b) +{ + return make_float3(a.x - b, a.y - b, a.z - b); +} +inline __host__ __device__ float3 operator-(float b, float3 a) +{ + return make_float3(b - a.x, b - a.y, b - a.z); +} +inline __host__ __device__ void operator-=(float3 &a, float b) +{ + a.x -= b; + a.y -= b; + a.z -= b; +} + +inline __host__ __device__ int3 operator-(int3 a, int3 b) +{ + return make_int3(a.x - b.x, a.y - b.y, a.z - b.z); +} +inline __host__ __device__ void operator-=(int3 &a, int3 b) +{ + a.x -= b.x; + a.y -= b.y; + a.z -= b.z; +} +inline __host__ __device__ int3 operator-(int3 a, int b) +{ + return make_int3(a.x - b, a.y - b, a.z - b); +} +inline __host__ __device__ int3 operator-(int b, int3 a) +{ + return make_int3(b - a.x, b - a.y, b - a.z); +} +inline __host__ __device__ void operator-=(int3 &a, int b) +{ + a.x -= b; + a.y -= b; + a.z -= b; +} + +inline __host__ __device__ uint3 operator-(uint3 a, uint3 b) +{ + return make_uint3(a.x - b.x, a.y - b.y, a.z - b.z); +} +inline __host__ __device__ void operator-=(uint3 &a, uint3 b) +{ + a.x -= b.x; + a.y -= b.y; + a.z -= b.z; +} +inline __host__ __device__ uint3 operator-(uint3 a, uint b) +{ + return make_uint3(a.x - b, a.y - b, a.z - b); +} +inline __host__ __device__ uint3 operator-(uint b, uint3 a) +{ + return make_uint3(b - a.x, b - a.y, b - a.z); +} +inline __host__ __device__ void operator-=(uint3 &a, uint b) +{ + a.x -= b; + a.y -= b; + a.z -= b; +} + +inline __host__ __device__ float4 operator-(float4 a, float4 b) +{ + return make_float4(a.x - b.x, a.y - b.y, a.z - b.z, a.w - b.w); +} +inline __host__ __device__ void operator-=(float4 &a, float4 b) +{ + a.x -= b.x; + a.y -= b.y; + a.z -= b.z; + a.w -= b.w; +} +inline __host__ __device__ float4 operator-(float4 a, float b) +{ + return make_float4(a.x - b, a.y - b, a.z - b, a.w - b); +} +inline __host__ __device__ void operator-=(float4 &a, float b) +{ + a.x -= b; + a.y -= b; + a.z -= b; + a.w -= b; +} + +inline __host__ __device__ int4 operator-(int4 a, int4 b) +{ + return make_int4(a.x - b.x, a.y - b.y, a.z - b.z, a.w - b.w); +} +inline __host__ __device__ void operator-=(int4 &a, int4 b) +{ + a.x -= b.x; + a.y -= b.y; + a.z -= b.z; + a.w -= b.w; +} +inline __host__ __device__ int4 operator-(int4 a, int b) +{ + return make_int4(a.x - b, a.y - b, a.z - b, a.w - b); +} +inline __host__ __device__ int4 operator-(int b, int4 a) +{ + return make_int4(b - a.x, b - a.y, b - a.z, b - a.w); +} +inline __host__ __device__ void operator-=(int4 &a, int b) +{ + a.x -= b; + a.y -= b; + a.z -= b; + a.w -= b; +} + +inline __host__ __device__ uint4 operator-(uint4 a, uint4 b) +{ + return make_uint4(a.x - b.x, a.y - b.y, a.z - b.z, a.w - b.w); +} +inline __host__ __device__ void operator-=(uint4 &a, uint4 b) +{ + a.x -= b.x; + a.y -= b.y; + a.z -= b.z; + a.w -= b.w; +} +inline __host__ __device__ uint4 operator-(uint4 a, uint b) +{ + return make_uint4(a.x - b, a.y - b, a.z - b, a.w - b); +} +inline __host__ __device__ uint4 operator-(uint b, uint4 a) +{ + return make_uint4(b - a.x, b - a.y, b - a.z, b - a.w); +} +inline __host__ __device__ void operator-=(uint4 &a, uint b) +{ + a.x -= b; + a.y -= b; + a.z -= b; + a.w -= b; +} + +//////////////////////////////////////////////////////////////////////////////// +// multiply +//////////////////////////////////////////////////////////////////////////////// + +inline __host__ __device__ float2 operator*(float2 a, float2 b) +{ + return make_float2(a.x * b.x, a.y * b.y); +} +inline __host__ __device__ void operator*=(float2 &a, float2 b) +{ + a.x *= b.x; + a.y *= b.y; +} +inline __host__ __device__ float2 operator*(float2 a, float b) +{ + return make_float2(a.x * b, a.y * b); +} +inline __host__ __device__ float2 operator*(float b, float2 a) +{ + return make_float2(b * a.x, b * a.y); +} +inline __host__ __device__ void operator*=(float2 &a, float b) +{ + a.x *= b; + a.y *= b; +} + +inline __host__ __device__ int2 operator*(int2 a, int2 b) +{ + return make_int2(a.x * b.x, a.y * b.y); +} +inline __host__ __device__ void operator*=(int2 &a, int2 b) +{ + a.x *= b.x; + a.y *= b.y; +} +inline __host__ __device__ int2 operator*(int2 a, int b) +{ + return make_int2(a.x * b, a.y * b); +} +inline __host__ __device__ int2 operator*(int b, int2 a) +{ + return make_int2(b * a.x, b * a.y); +} +inline __host__ __device__ void operator*=(int2 &a, int b) +{ + a.x *= b; + a.y *= b; +} + +inline __host__ __device__ uint2 operator*(uint2 a, uint2 b) +{ + return make_uint2(a.x * b.x, a.y * b.y); +} +inline __host__ __device__ void operator*=(uint2 &a, uint2 b) +{ + a.x *= b.x; + a.y *= b.y; +} +inline __host__ __device__ uint2 operator*(uint2 a, uint b) +{ + return make_uint2(a.x * b, a.y * b); +} +inline __host__ __device__ uint2 operator*(uint b, uint2 a) +{ + return make_uint2(b * a.x, b * a.y); +} +inline __host__ __device__ void operator*=(uint2 &a, uint b) +{ + a.x *= b; + a.y *= b; +} + +inline __host__ __device__ float3 operator*(float3 a, float3 b) +{ + return make_float3(a.x * b.x, a.y * b.y, a.z * b.z); +} +inline __host__ __device__ void operator*=(float3 &a, float3 b) +{ + a.x *= b.x; + a.y *= b.y; + a.z *= b.z; +} +inline __host__ __device__ float3 operator*(float3 a, float b) +{ + return make_float3(a.x * b, a.y * b, a.z * b); +} +inline __host__ __device__ float3 operator*(float b, float3 a) +{ + return make_float3(b * a.x, b * a.y, b * a.z); +} +inline __host__ __device__ void operator*=(float3 &a, float b) +{ + a.x *= b; + a.y *= b; + a.z *= b; +} + +inline __host__ __device__ int3 operator*(int3 a, int3 b) +{ + return make_int3(a.x * b.x, a.y * b.y, a.z * b.z); +} +inline __host__ __device__ void operator*=(int3 &a, int3 b) +{ + a.x *= b.x; + a.y *= b.y; + a.z *= b.z; +} +inline __host__ __device__ int3 operator*(int3 a, int b) +{ + return make_int3(a.x * b, a.y * b, a.z * b); +} +inline __host__ __device__ int3 operator*(int b, int3 a) +{ + return make_int3(b * a.x, b * a.y, b * a.z); +} +inline __host__ __device__ void operator*=(int3 &a, int b) +{ + a.x *= b; + a.y *= b; + a.z *= b; +} + +inline __host__ __device__ uint3 operator*(uint3 a, uint3 b) +{ + return make_uint3(a.x * b.x, a.y * b.y, a.z * b.z); +} +inline __host__ __device__ void operator*=(uint3 &a, uint3 b) +{ + a.x *= b.x; + a.y *= b.y; + a.z *= b.z; +} +inline __host__ __device__ uint3 operator*(uint3 a, uint b) +{ + return make_uint3(a.x * b, a.y * b, a.z * b); +} +inline __host__ __device__ uint3 operator*(uint b, uint3 a) +{ + return make_uint3(b * a.x, b * a.y, b * a.z); +} +inline __host__ __device__ void operator*=(uint3 &a, uint b) +{ + a.x *= b; + a.y *= b; + a.z *= b; +} + +inline __host__ __device__ float4 operator*(float4 a, float4 b) +{ + return make_float4(a.x * b.x, a.y * b.y, a.z * b.z, a.w * b.w); +} +inline __host__ __device__ void operator*=(float4 &a, float4 b) +{ + a.x *= b.x; + a.y *= b.y; + a.z *= b.z; + a.w *= b.w; +} +inline __host__ __device__ float4 operator*(float4 a, float b) +{ + return make_float4(a.x * b, a.y * b, a.z * b, a.w * b); +} +inline __host__ __device__ float4 operator*(float b, float4 a) +{ + return make_float4(b * a.x, b * a.y, b * a.z, b * a.w); +} +inline __host__ __device__ void operator*=(float4 &a, float b) +{ + a.x *= b; + a.y *= b; + a.z *= b; + a.w *= b; +} + +inline __host__ __device__ int4 operator*(int4 a, int4 b) +{ + return make_int4(a.x * b.x, a.y * b.y, a.z * b.z, a.w * b.w); +} +inline __host__ __device__ void operator*=(int4 &a, int4 b) +{ + a.x *= b.x; + a.y *= b.y; + a.z *= b.z; + a.w *= b.w; +} +inline __host__ __device__ int4 operator*(int4 a, int b) +{ + return make_int4(a.x * b, a.y * b, a.z * b, a.w * b); +} +inline __host__ __device__ int4 operator*(int b, int4 a) +{ + return make_int4(b * a.x, b * a.y, b * a.z, b * a.w); +} +inline __host__ __device__ void operator*=(int4 &a, int b) +{ + a.x *= b; + a.y *= b; + a.z *= b; + a.w *= b; +} + +inline __host__ __device__ uint4 operator*(uint4 a, uint4 b) +{ + return make_uint4(a.x * b.x, a.y * b.y, a.z * b.z, a.w * b.w); +} +inline __host__ __device__ void operator*=(uint4 &a, uint4 b) +{ + a.x *= b.x; + a.y *= b.y; + a.z *= b.z; + a.w *= b.w; +} +inline __host__ __device__ uint4 operator*(uint4 a, uint b) +{ + return make_uint4(a.x * b, a.y * b, a.z * b, a.w * b); +} +inline __host__ __device__ uint4 operator*(uint b, uint4 a) +{ + return make_uint4(b * a.x, b * a.y, b * a.z, b * a.w); +} +inline __host__ __device__ void operator*=(uint4 &a, uint b) +{ + a.x *= b; + a.y *= b; + a.z *= b; + a.w *= b; +} + +//////////////////////////////////////////////////////////////////////////////// +// divide +//////////////////////////////////////////////////////////////////////////////// + +inline __host__ __device__ float2 operator/(float2 a, float2 b) +{ + return make_float2(a.x / b.x, a.y / b.y); +} +inline __host__ __device__ void operator/=(float2 &a, float2 b) +{ + a.x /= b.x; + a.y /= b.y; +} +inline __host__ __device__ float2 operator/(float2 a, float b) +{ + return make_float2(a.x / b, a.y / b); +} +inline __host__ __device__ void operator/=(float2 &a, float b) +{ + a.x /= b; + a.y /= b; +} +inline __host__ __device__ float2 operator/(float b, float2 a) +{ + return make_float2(b / a.x, b / a.y); +} + +inline __host__ __device__ float3 operator/(float3 a, float3 b) +{ + return make_float3(a.x / b.x, a.y / b.y, a.z / b.z); +} +inline __host__ __device__ void operator/=(float3 &a, float3 b) +{ + a.x /= b.x; + a.y /= b.y; + a.z /= b.z; +} +inline __host__ __device__ float3 operator/(float3 a, float b) +{ + return make_float3(a.x / b, a.y / b, a.z / b); +} +inline __host__ __device__ void operator/=(float3 &a, float b) +{ + a.x /= b; + a.y /= b; + a.z /= b; +} +inline __host__ __device__ float3 operator/(float b, float3 a) +{ + return make_float3(b / a.x, b / a.y, b / a.z); +} + +inline __host__ __device__ float4 operator/(float4 a, float4 b) +{ + return make_float4(a.x / b.x, a.y / b.y, a.z / b.z, a.w / b.w); +} +inline __host__ __device__ void operator/=(float4 &a, float4 b) +{ + a.x /= b.x; + a.y /= b.y; + a.z /= b.z; + a.w /= b.w; +} +inline __host__ __device__ float4 operator/(float4 a, float b) +{ + return make_float4(a.x / b, a.y / b, a.z / b, a.w / b); +} +inline __host__ __device__ void operator/=(float4 &a, float b) +{ + a.x /= b; + a.y /= b; + a.z /= b; + a.w /= b; +} +inline __host__ __device__ float4 operator/(float b, float4 a) +{ + return make_float4(b / a.x, b / a.y, b / a.z, b / a.w); +} + +//////////////////////////////////////////////////////////////////////////////// +// min +//////////////////////////////////////////////////////////////////////////////// + +inline __host__ __device__ float2 fminf(float2 a, float2 b) +{ + return make_float2(fminf(a.x, b.x), fminf(a.y, b.y)); +} +inline __host__ __device__ float3 fminf(float3 a, float3 b) +{ + return make_float3(fminf(a.x, b.x), fminf(a.y, b.y), fminf(a.z, b.z)); +} +inline __host__ __device__ float4 fminf(float4 a, float4 b) +{ + return make_float4(fminf(a.x, b.x), fminf(a.y, b.y), fminf(a.z, b.z), fminf(a.w, b.w)); +} + +inline __host__ __device__ int2 min(int2 a, int2 b) +{ + return make_int2(min(a.x, b.x), min(a.y, b.y)); +} +inline __host__ __device__ int3 min(int3 a, int3 b) +{ + return make_int3(min(a.x, b.x), min(a.y, b.y), min(a.z, b.z)); +} +inline __host__ __device__ int4 min(int4 a, int4 b) +{ + return make_int4(min(a.x, b.x), min(a.y, b.y), min(a.z, b.z), min(a.w, b.w)); +} + +inline __host__ __device__ uint2 min(uint2 a, uint2 b) +{ + return make_uint2(min(a.x, b.x), min(a.y, b.y)); +} +inline __host__ __device__ uint3 min(uint3 a, uint3 b) +{ + return make_uint3(min(a.x, b.x), min(a.y, b.y), min(a.z, b.z)); +} +inline __host__ __device__ uint4 min(uint4 a, uint4 b) +{ + return make_uint4(min(a.x, b.x), min(a.y, b.y), min(a.z, b.z), min(a.w, b.w)); +} + +//////////////////////////////////////////////////////////////////////////////// +// max +//////////////////////////////////////////////////////////////////////////////// + +inline __host__ __device__ float2 fmaxf(float2 a, float2 b) +{ + return make_float2(fmaxf(a.x, b.x), fmaxf(a.y, b.y)); +} +inline __host__ __device__ float3 fmaxf(float3 a, float3 b) +{ + return make_float3(fmaxf(a.x, b.x), fmaxf(a.y, b.y), fmaxf(a.z, b.z)); +} +inline __host__ __device__ float4 fmaxf(float4 a, float4 b) +{ + return make_float4(fmaxf(a.x, b.x), fmaxf(a.y, b.y), fmaxf(a.z, b.z), fmaxf(a.w, b.w)); +} + +inline __host__ __device__ int2 max(int2 a, int2 b) +{ + return make_int2(max(a.x, b.x), max(a.y, b.y)); +} +inline __host__ __device__ int3 max(int3 a, int3 b) +{ + return make_int3(max(a.x, b.x), max(a.y, b.y), max(a.z, b.z)); +} +inline __host__ __device__ int4 max(int4 a, int4 b) +{ + return make_int4(max(a.x, b.x), max(a.y, b.y), max(a.z, b.z), max(a.w, b.w)); +} + +inline __host__ __device__ uint2 max(uint2 a, uint2 b) +{ + return make_uint2(max(a.x, b.x), max(a.y, b.y)); +} +inline __host__ __device__ uint3 max(uint3 a, uint3 b) +{ + return make_uint3(max(a.x, b.x), max(a.y, b.y), max(a.z, b.z)); +} +inline __host__ __device__ uint4 max(uint4 a, uint4 b) +{ + return make_uint4(max(a.x, b.x), max(a.y, b.y), max(a.z, b.z), max(a.w, b.w)); +} + +//////////////////////////////////////////////////////////////////////////////// +// lerp +// - linear interpolation between a and b, based on value t in [0, 1] range +//////////////////////////////////////////////////////////////////////////////// + +inline __device__ __host__ float lerp(float a, float b, float t) +{ + return a + t * (b - a); +} +inline __device__ __host__ float2 lerp(float2 a, float2 b, float t) +{ + return a + t * (b - a); +} +inline __device__ __host__ float3 lerp(float3 a, float3 b, float t) +{ + return a + t * (b - a); +} +inline __device__ __host__ float4 lerp(float4 a, float4 b, float t) +{ + return a + t * (b - a); +} + +//////////////////////////////////////////////////////////////////////////////// +// clamp +// - clamp the value v to be in the range [a, b] +//////////////////////////////////////////////////////////////////////////////// + +inline __device__ __host__ float clamp(float f, float a, float b) +{ + return fmaxf(a, fminf(f, b)); +} +inline __device__ __host__ int clamp(int f, int a, int b) +{ + return max(a, min(f, b)); +} +inline __device__ __host__ uint clamp(uint f, uint a, uint b) +{ + return max(a, min(f, b)); +} + +inline __device__ __host__ float2 clamp(float2 v, float a, float b) +{ + return make_float2(clamp(v.x, a, b), clamp(v.y, a, b)); +} +inline __device__ __host__ float2 clamp(float2 v, float2 a, float2 b) +{ + return make_float2(clamp(v.x, a.x, b.x), clamp(v.y, a.y, b.y)); +} +inline __device__ __host__ float3 clamp(float3 v, float a, float b) +{ + return make_float3(clamp(v.x, a, b), clamp(v.y, a, b), clamp(v.z, a, b)); +} +inline __device__ __host__ float3 clamp(float3 v, float3 a, float3 b) +{ + return make_float3(clamp(v.x, a.x, b.x), clamp(v.y, a.y, b.y), clamp(v.z, a.z, b.z)); +} +inline __device__ __host__ float4 clamp(float4 v, float a, float b) +{ + return make_float4(clamp(v.x, a, b), clamp(v.y, a, b), clamp(v.z, a, b), clamp(v.w, a, b)); +} +inline __device__ __host__ float4 clamp(float4 v, float4 a, float4 b) +{ + return make_float4(clamp(v.x, a.x, b.x), clamp(v.y, a.y, b.y), clamp(v.z, a.z, b.z), clamp(v.w, a.w, b.w)); +} + +inline __device__ __host__ int2 clamp(int2 v, int a, int b) +{ + return make_int2(clamp(v.x, a, b), clamp(v.y, a, b)); +} +inline __device__ __host__ int2 clamp(int2 v, int2 a, int2 b) +{ + return make_int2(clamp(v.x, a.x, b.x), clamp(v.y, a.y, b.y)); +} +inline __device__ __host__ int3 clamp(int3 v, int a, int b) +{ + return make_int3(clamp(v.x, a, b), clamp(v.y, a, b), clamp(v.z, a, b)); +} +inline __device__ __host__ int3 clamp(int3 v, int3 a, int3 b) +{ + return make_int3(clamp(v.x, a.x, b.x), clamp(v.y, a.y, b.y), clamp(v.z, a.z, b.z)); +} +inline __device__ __host__ int4 clamp(int4 v, int a, int b) +{ + return make_int4(clamp(v.x, a, b), clamp(v.y, a, b), clamp(v.z, a, b), clamp(v.w, a, b)); +} +inline __device__ __host__ int4 clamp(int4 v, int4 a, int4 b) +{ + return make_int4(clamp(v.x, a.x, b.x), clamp(v.y, a.y, b.y), clamp(v.z, a.z, b.z), clamp(v.w, a.w, b.w)); +} + +inline __device__ __host__ uint2 clamp(uint2 v, uint a, uint b) +{ + return make_uint2(clamp(v.x, a, b), clamp(v.y, a, b)); +} +inline __device__ __host__ uint2 clamp(uint2 v, uint2 a, uint2 b) +{ + return make_uint2(clamp(v.x, a.x, b.x), clamp(v.y, a.y, b.y)); +} +inline __device__ __host__ uint3 clamp(uint3 v, uint a, uint b) +{ + return make_uint3(clamp(v.x, a, b), clamp(v.y, a, b), clamp(v.z, a, b)); +} +inline __device__ __host__ uint3 clamp(uint3 v, uint3 a, uint3 b) +{ + return make_uint3(clamp(v.x, a.x, b.x), clamp(v.y, a.y, b.y), clamp(v.z, a.z, b.z)); +} +inline __device__ __host__ uint4 clamp(uint4 v, uint a, uint b) +{ + return make_uint4(clamp(v.x, a, b), clamp(v.y, a, b), clamp(v.z, a, b), clamp(v.w, a, b)); +} +inline __device__ __host__ uint4 clamp(uint4 v, uint4 a, uint4 b) +{ + return make_uint4(clamp(v.x, a.x, b.x), clamp(v.y, a.y, b.y), clamp(v.z, a.z, b.z), clamp(v.w, a.w, b.w)); +} + +//////////////////////////////////////////////////////////////////////////////// +// dot product +//////////////////////////////////////////////////////////////////////////////// + +inline __host__ __device__ float dot(float2 a, float2 b) +{ + return a.x * b.x + a.y * b.y; +} +inline __host__ __device__ float dot(float3 a, float3 b) +{ + return a.x * b.x + a.y * b.y + a.z * b.z; +} +inline __host__ __device__ float dot(float4 a, float4 b) +{ + return a.x * b.x + a.y * b.y + a.z * b.z + a.w * b.w; +} + +inline __host__ __device__ int dot(int2 a, int2 b) +{ + return a.x * b.x + a.y * b.y; +} +inline __host__ __device__ int dot(int3 a, int3 b) +{ + return a.x * b.x + a.y * b.y + a.z * b.z; +} +inline __host__ __device__ int dot(int4 a, int4 b) +{ + return a.x * b.x + a.y * b.y + a.z * b.z + a.w * b.w; +} + +inline __host__ __device__ uint dot(uint2 a, uint2 b) +{ + return a.x * b.x + a.y * b.y; +} +inline __host__ __device__ uint dot(uint3 a, uint3 b) +{ + return a.x * b.x + a.y * b.y + a.z * b.z; +} +inline __host__ __device__ uint dot(uint4 a, uint4 b) +{ + return a.x * b.x + a.y * b.y + a.z * b.z + a.w * b.w; +} + +//////////////////////////////////////////////////////////////////////////////// +// length +//////////////////////////////////////////////////////////////////////////////// + +inline __host__ __device__ float length(float2 v) +{ + return sqrtf(dot(v, v)); +} +inline __host__ __device__ float length(float3 v) +{ + return sqrtf(dot(v, v)); +} +inline __host__ __device__ float length(float4 v) +{ + return sqrtf(dot(v, v)); +} + +//////////////////////////////////////////////////////////////////////////////// +// normalize +//////////////////////////////////////////////////////////////////////////////// + +inline __host__ __device__ float2 normalize(float2 v) +{ + float invLen = rsqrtf(dot(v, v)); + return v * invLen; +} +inline __host__ __device__ float3 normalize(float3 v) +{ + float invLen = rsqrtf(dot(v, v)); + return v * invLen; +} +inline __host__ __device__ float4 normalize(float4 v) +{ + float invLen = rsqrtf(dot(v, v)); + return v * invLen; +} + +//////////////////////////////////////////////////////////////////////////////// +// floor +//////////////////////////////////////////////////////////////////////////////// + +inline __host__ __device__ float2 floorf(float2 v) +{ + return make_float2(floorf(v.x), floorf(v.y)); +} +inline __host__ __device__ float3 floorf(float3 v) +{ + return make_float3(floorf(v.x), floorf(v.y), floorf(v.z)); +} +inline __host__ __device__ float4 floorf(float4 v) +{ + return make_float4(floorf(v.x), floorf(v.y), floorf(v.z), floorf(v.w)); +} + +//////////////////////////////////////////////////////////////////////////////// +// frac - returns the fractional portion of a scalar or each vector component +//////////////////////////////////////////////////////////////////////////////// + +inline __host__ __device__ float fracf(float v) +{ + return v - floorf(v); +} +inline __host__ __device__ float2 fracf(float2 v) +{ + return make_float2(fracf(v.x), fracf(v.y)); +} +inline __host__ __device__ float3 fracf(float3 v) +{ + return make_float3(fracf(v.x), fracf(v.y), fracf(v.z)); +} +inline __host__ __device__ float4 fracf(float4 v) +{ + return make_float4(fracf(v.x), fracf(v.y), fracf(v.z), fracf(v.w)); +} + +//////////////////////////////////////////////////////////////////////////////// +// fmod +//////////////////////////////////////////////////////////////////////////////// + +inline __host__ __device__ float2 fmodf(float2 a, float2 b) +{ + return make_float2(fmodf(a.x, b.x), fmodf(a.y, b.y)); +} +inline __host__ __device__ float3 fmodf(float3 a, float3 b) +{ + return make_float3(fmodf(a.x, b.x), fmodf(a.y, b.y), fmodf(a.z, b.z)); +} +inline __host__ __device__ float4 fmodf(float4 a, float4 b) +{ + return make_float4(fmodf(a.x, b.x), fmodf(a.y, b.y), fmodf(a.z, b.z), fmodf(a.w, b.w)); +} + +//////////////////////////////////////////////////////////////////////////////// +// absolute value +//////////////////////////////////////////////////////////////////////////////// + +inline __host__ __device__ float2 fabs(float2 v) +{ + return make_float2(fabs(v.x), fabs(v.y)); +} +inline __host__ __device__ float3 fabs(float3 v) +{ + return make_float3(fabs(v.x), fabs(v.y), fabs(v.z)); +} +inline __host__ __device__ float4 fabs(float4 v) +{ + return make_float4(fabs(v.x), fabs(v.y), fabs(v.z), fabs(v.w)); +} + +inline __host__ __device__ int2 abs(int2 v) +{ + return make_int2(abs(v.x), abs(v.y)); +} +inline __host__ __device__ int3 abs(int3 v) +{ + return make_int3(abs(v.x), abs(v.y), abs(v.z)); +} +inline __host__ __device__ int4 abs(int4 v) +{ + return make_int4(abs(v.x), abs(v.y), abs(v.z), abs(v.w)); +} + +//////////////////////////////////////////////////////////////////////////////// +// reflect +// - returns reflection of incident ray I around surface normal N +// - N should be normalized, reflected vector's length is equal to length of I +//////////////////////////////////////////////////////////////////////////////// + +inline __host__ __device__ float3 reflect(float3 i, float3 n) +{ + return i - 2.0f * n * dot(n, i); +} + +//////////////////////////////////////////////////////////////////////////////// +// cross product +//////////////////////////////////////////////////////////////////////////////// + +inline __host__ __device__ float3 cross(float3 a, float3 b) +{ + return make_float3(a.y * b.z - a.z * b.y, a.z * b.x - a.x * b.z, a.x * b.y - a.y * b.x); +} + +//////////////////////////////////////////////////////////////////////////////// +// smoothstep +// - returns 0 if x < a +// - returns 1 if x > b +// - otherwise returns smooth interpolation between 0 and 1 based on x +//////////////////////////////////////////////////////////////////////////////// + +inline __device__ __host__ float smoothstep(float a, float b, float x) +{ + float y = clamp((x - a) / (b - a), 0.0f, 1.0f); + return (y * y * (3.0f - (2.0f * y))); +} +inline __device__ __host__ float2 smoothstep(float2 a, float2 b, float2 x) +{ + float2 y = clamp((x - a) / (b - a), 0.0f, 1.0f); + return (y * y * (make_float2(3.0f) - (make_float2(2.0f) * y))); +} +inline __device__ __host__ float3 smoothstep(float3 a, float3 b, float3 x) +{ + float3 y = clamp((x - a) / (b - a), 0.0f, 1.0f); + return (y * y * (make_float3(3.0f) - (make_float3(2.0f) * y))); +} +inline __device__ __host__ float4 smoothstep(float4 a, float4 b, float4 x) +{ + float4 y = clamp((x - a) / (b - a), 0.0f, 1.0f); + return (y * y * (make_float4(3.0f) - (make_float4(2.0f) * y))); +} + +//////////////////////////////////////////////////////////////////////////////// +// sign +//////////////////////////////////////////////////////////////////////////////// +inline __device__ __host__ float3 sign(float3 a) +{ + return make_float3( + copysignf(1.0f, a.x), copysignf(1.0f, a.y), copysignf(1.0f, a.z)); +} + +#endif \ No newline at end of file diff --git a/codes/reconstruction/experiments/ta_deps/nerfacc/cuda/csrc/intersection.cu b/codes/reconstruction/experiments/ta_deps/nerfacc/cuda/csrc/intersection.cu new file mode 100644 index 0000000000000000000000000000000000000000..d5c2163d2fe93ebad65e6b775b473ecb4d683368 --- /dev/null +++ b/codes/reconstruction/experiments/ta_deps/nerfacc/cuda/csrc/intersection.cu @@ -0,0 +1,134 @@ +/* + * Copyright (c) 2022 Ruilong Li, UC Berkeley. + */ + +#include "include/helpers_cuda.h" + +template +inline __host__ __device__ void _swap(scalar_t &a, scalar_t &b) +{ + scalar_t c = a; + a = b; + b = c; +} + +template +inline __host__ __device__ void _ray_aabb_intersect( + const scalar_t *rays_o, + const scalar_t *rays_d, + const scalar_t *aabb, + scalar_t *near, + scalar_t *far) +{ + // aabb is [xmin, ymin, zmin, xmax, ymax, zmax] + scalar_t tmin = (aabb[0] - rays_o[0]) / rays_d[0]; + scalar_t tmax = (aabb[3] - rays_o[0]) / rays_d[0]; + if (tmin > tmax) + _swap(tmin, tmax); + + scalar_t tymin = (aabb[1] - rays_o[1]) / rays_d[1]; + scalar_t tymax = (aabb[4] - rays_o[1]) / rays_d[1]; + if (tymin > tymax) + _swap(tymin, tymax); + + if (tmin > tymax || tymin > tmax) + { + *near = 1e10; + *far = 1e10; + return; + } + + if (tymin > tmin) + tmin = tymin; + if (tymax < tmax) + tmax = tymax; + + scalar_t tzmin = (aabb[2] - rays_o[2]) / rays_d[2]; + scalar_t tzmax = (aabb[5] - rays_o[2]) / rays_d[2]; + if (tzmin > tzmax) + _swap(tzmin, tzmax); + + if (tmin > tzmax || tzmin > tmax) + { + *near = 1e10; + *far = 1e10; + return; + } + + if (tzmin > tmin) + tmin = tzmin; + if (tzmax < tmax) + tmax = tzmax; + + *near = tmin; + *far = tmax; + return; +} + +template +__global__ void ray_aabb_intersect_kernel( + const int N, + const scalar_t *rays_o, + const scalar_t *rays_d, + const scalar_t *aabb, + scalar_t *t_min, + scalar_t *t_max) +{ + // aabb is [xmin, ymin, zmin, xmax, ymax, zmax] + CUDA_GET_THREAD_ID(thread_id, N); + + // locate + rays_o += thread_id * 3; + rays_d += thread_id * 3; + t_min += thread_id; + t_max += thread_id; + + _ray_aabb_intersect(rays_o, rays_d, aabb, t_min, t_max); + + scalar_t zero = static_cast(0.f); + *t_min = *t_min > zero ? *t_min : zero; + return; +} + +/** + * @brief Ray AABB Test + * + * @param rays_o Ray origins. Tensor with shape [N, 3]. + * @param rays_d Normalized ray directions. Tensor with shape [N, 3]. + * @param aabb Scene AABB [xmin, ymin, zmin, xmax, ymax, zmax]. Tensor with shape [6]. + * @return std::vector + * Ray AABB intersection {t_min, t_max} with shape [N] respectively. Note the t_min is + * clipped to minimum zero. 1e10 is returned if no intersection. + */ +std::vector ray_aabb_intersect( + const torch::Tensor rays_o, const torch::Tensor rays_d, const torch::Tensor aabb) +{ + DEVICE_GUARD(rays_o); + CHECK_INPUT(rays_o); + CHECK_INPUT(rays_d); + CHECK_INPUT(aabb); + TORCH_CHECK(rays_o.ndimension() == 2 & rays_o.size(1) == 3) + TORCH_CHECK(rays_d.ndimension() == 2 & rays_d.size(1) == 3) + TORCH_CHECK(aabb.ndimension() == 1 & aabb.size(0) == 6) + + const int N = rays_o.size(0); + + const int threads = 256; + const int blocks = CUDA_N_BLOCKS_NEEDED(N, threads); + + torch::Tensor t_min = torch::empty({N}, rays_o.options()); + torch::Tensor t_max = torch::empty({N}, rays_o.options()); + + AT_DISPATCH_FLOATING_TYPES_AND_HALF( + rays_o.scalar_type(), "ray_aabb_intersect", + ([&] + { ray_aabb_intersect_kernel<<>>( + N, + rays_o.data_ptr(), + rays_d.data_ptr(), + aabb.data_ptr(), + t_min.data_ptr(), + t_max.data_ptr()); })); + + return {t_min, t_max}; +} \ No newline at end of file diff --git a/codes/reconstruction/experiments/ta_deps/nerfacc/cuda/csrc/pack.cu b/codes/reconstruction/experiments/ta_deps/nerfacc/cuda/csrc/pack.cu new file mode 100644 index 0000000000000000000000000000000000000000..a53498897cac4f8ee08907de7c9467034214a02f --- /dev/null +++ b/codes/reconstruction/experiments/ta_deps/nerfacc/cuda/csrc/pack.cu @@ -0,0 +1,164 @@ +/* + * Copyright (c) 2022 Ruilong Li, UC Berkeley. + */ + +#include "include/helpers_cuda.h" + +__global__ void unpack_info_kernel( + // input + const int n_rays, + const int *packed_info, + // output + int64_t *ray_indices) +{ + CUDA_GET_THREAD_ID(i, n_rays); + + // locate + const int base = packed_info[i * 2 + 0]; // point idx start. + const int steps = packed_info[i * 2 + 1]; // point idx shift. + if (steps == 0) + return; + + ray_indices += base; + + for (int j = 0; j < steps; ++j) + { + ray_indices[j] = i; + } +} + +__global__ void unpack_info_to_mask_kernel( + // input + const int n_rays, + const int *packed_info, + const int n_samples, + // output + bool *masks) // [n_rays, n_samples] +{ + CUDA_GET_THREAD_ID(i, n_rays); + + // locate + const int base = packed_info[i * 2 + 0]; // point idx start. + const int steps = packed_info[i * 2 + 1]; // point idx shift. + if (steps == 0) + return; + + masks += i * n_samples; + + for (int j = 0; j < steps; ++j) + { + masks[j] = true; + } +} + +template +__global__ void unpack_data_kernel( + const uint32_t n_rays, + const int *packed_info, // input ray & point indices. + const int data_dim, + const scalar_t *data, + const int n_sampler_per_ray, + scalar_t *unpacked_data) // (n_rays, n_sampler_per_ray, data_dim) +{ + CUDA_GET_THREAD_ID(i, n_rays); + + // locate + const int base = packed_info[i * 2 + 0]; // point idx start. + const int steps = packed_info[i * 2 + 1]; // point idx shift. + if (steps == 0) + return; + + data += base * data_dim; + unpacked_data += i * n_sampler_per_ray * data_dim; + + for (int j = 0; j < steps; j++) + { + for (int k = 0; k < data_dim; k++) + { + unpacked_data[j * data_dim + k] = data[j * data_dim + k]; + } + } + return; +} + +torch::Tensor unpack_info(const torch::Tensor packed_info, const int n_samples) +{ + DEVICE_GUARD(packed_info); + CHECK_INPUT(packed_info); + + const int n_rays = packed_info.size(0); + const int threads = 256; + const int blocks = CUDA_N_BLOCKS_NEEDED(n_rays, threads); + + // int n_samples = packed_info[n_rays - 1].sum(0).item(); + torch::Tensor ray_indices = torch::empty( + {n_samples}, packed_info.options().dtype(torch::kLong)); + + unpack_info_kernel<<>>( + n_rays, + packed_info.data_ptr(), + ray_indices.data_ptr()); + return ray_indices; +} + + +torch::Tensor unpack_info_to_mask( + const torch::Tensor packed_info, const int n_samples) +{ + DEVICE_GUARD(packed_info); + CHECK_INPUT(packed_info); + + const int n_rays = packed_info.size(0); + const int threads = 256; + const int blocks = CUDA_N_BLOCKS_NEEDED(n_rays, threads); + + torch::Tensor masks = torch::zeros( + {n_rays, n_samples}, packed_info.options().dtype(torch::kBool)); + + unpack_info_to_mask_kernel<<>>( + n_rays, + packed_info.data_ptr(), + n_samples, + masks.data_ptr()); + return masks; +} + +torch::Tensor unpack_data( + torch::Tensor packed_info, + torch::Tensor data, + int n_samples_per_ray) +{ + DEVICE_GUARD(packed_info); + + CHECK_INPUT(packed_info); + CHECK_INPUT(data); + + TORCH_CHECK(packed_info.ndimension() == 2 & packed_info.size(1) == 2); + TORCH_CHECK(data.ndimension() == 2); + + const int n_rays = packed_info.size(0); + const int n_samples = data.size(0); + const int data_dim = data.size(1); + + const int threads = 256; + const int blocks = CUDA_N_BLOCKS_NEEDED(n_rays, threads); + + torch::Tensor unpacked_data = torch::zeros( + {n_rays, n_samples_per_ray, data_dim}, data.options()); + + AT_DISPATCH_ALL_TYPES( + data.scalar_type(), + "unpack_data", + ([&] + { unpack_data_kernel<<>>( + n_rays, + // inputs + packed_info.data_ptr(), + data_dim, + data.data_ptr(), + n_samples_per_ray, + // outputs + unpacked_data.data_ptr()); })); + + return unpacked_data; +} diff --git a/codes/reconstruction/experiments/ta_deps/nerfacc/cuda/csrc/pybind.cu b/codes/reconstruction/experiments/ta_deps/nerfacc/cuda/csrc/pybind.cu new file mode 100644 index 0000000000000000000000000000000000000000..a8ba63b3b7f06523e9b84cc083ec9040981f936f --- /dev/null +++ b/codes/reconstruction/experiments/ta_deps/nerfacc/cuda/csrc/pybind.cu @@ -0,0 +1,170 @@ +/* + * Copyright (c) 2022 Ruilong Li, UC Berkeley. + */ + +#include "include/helpers_cuda.h" +#include "include/helpers_math.h" +#include "include/helpers_contraction.h" + + +std::vector ray_aabb_intersect( + const torch::Tensor rays_o, + const torch::Tensor rays_d, + const torch::Tensor aabb); + +std::vector ray_marching( + // rays + const torch::Tensor rays_o, + const torch::Tensor rays_d, + const torch::Tensor t_min, + const torch::Tensor t_max, + // occupancy grid & contraction + const torch::Tensor roi, + const torch::Tensor grid_binary, + const ContractionType type, + // sampling + const float step_size, + const float cone_angle); + +torch::Tensor unpack_info( + const torch::Tensor packed_info, const int n_samples); + +torch::Tensor unpack_info_to_mask( + const torch::Tensor packed_info, const int n_samples); + +torch::Tensor grid_query( + const torch::Tensor samples, + // occupancy grid & contraction + const torch::Tensor roi, + const torch::Tensor grid_value, + const ContractionType type); + +torch::Tensor contract( + const torch::Tensor samples, + // contraction + const torch::Tensor roi, + const ContractionType type); + +torch::Tensor contract_inv( + const torch::Tensor samples, + // contraction + const torch::Tensor roi, + const ContractionType type); + +std::vector ray_resampling( + torch::Tensor packed_info, + torch::Tensor starts, + torch::Tensor ends, + torch::Tensor weights, + const int steps); + +torch::Tensor unpack_data( + torch::Tensor packed_info, + torch::Tensor data, + int n_samples_per_ray); + +// cub implementations: parallel across samples +bool is_cub_available() { + return (bool) CUB_SUPPORTS_SCAN_BY_KEY(); +} +torch::Tensor transmittance_from_sigma_forward_cub( + torch::Tensor ray_indices, + torch::Tensor starts, + torch::Tensor ends, + torch::Tensor sigmas); +torch::Tensor transmittance_from_sigma_backward_cub( + torch::Tensor ray_indices, + torch::Tensor starts, + torch::Tensor ends, + torch::Tensor transmittance, + torch::Tensor transmittance_grad); +torch::Tensor transmittance_from_alpha_forward_cub( + torch::Tensor ray_indices, torch::Tensor alphas); +torch::Tensor transmittance_from_alpha_backward_cub( + torch::Tensor ray_indices, + torch::Tensor alphas, + torch::Tensor transmittance, + torch::Tensor transmittance_grad); + +// naive implementations: parallel across rays +torch::Tensor transmittance_from_sigma_forward_naive( + torch::Tensor packed_info, + torch::Tensor starts, + torch::Tensor ends, + torch::Tensor sigmas); +torch::Tensor transmittance_from_sigma_backward_naive( + torch::Tensor packed_info, + torch::Tensor starts, + torch::Tensor ends, + torch::Tensor transmittance, + torch::Tensor transmittance_grad); +torch::Tensor transmittance_from_alpha_forward_naive( + torch::Tensor packed_info, + torch::Tensor alphas); +torch::Tensor transmittance_from_alpha_backward_naive( + torch::Tensor packed_info, + torch::Tensor alphas, + torch::Tensor transmittance, + torch::Tensor transmittance_grad); + +torch::Tensor weight_from_sigma_forward_naive( + torch::Tensor packed_info, + torch::Tensor starts, + torch::Tensor ends, + torch::Tensor sigmas); +torch::Tensor weight_from_sigma_backward_naive( + torch::Tensor weights, + torch::Tensor grad_weights, + torch::Tensor packed_info, + torch::Tensor starts, + torch::Tensor ends, + torch::Tensor sigmas); +torch::Tensor weight_from_alpha_forward_naive( + torch::Tensor packed_info, + torch::Tensor alphas); +torch::Tensor weight_from_alpha_backward_naive( + torch::Tensor weights, + torch::Tensor grad_weights, + torch::Tensor packed_info, + torch::Tensor alphas); + +PYBIND11_MODULE(TORCH_EXTENSION_NAME, m) +{ + // contraction + py::enum_(m, "ContractionType") + .value("AABB", ContractionType::AABB) + .value("UN_BOUNDED_TANH", ContractionType::UN_BOUNDED_TANH) + .value("UN_BOUNDED_SPHERE", ContractionType::UN_BOUNDED_SPHERE); + m.def("contract", &contract); + m.def("contract_inv", &contract_inv); + + // grid + m.def("grid_query", &grid_query); + + // marching + m.def("ray_aabb_intersect", &ray_aabb_intersect); + m.def("ray_marching", &ray_marching); + m.def("ray_resampling", &ray_resampling); + + // rendering + m.def("is_cub_available", is_cub_available); + m.def("transmittance_from_sigma_forward_cub", transmittance_from_sigma_forward_cub); + m.def("transmittance_from_sigma_backward_cub", transmittance_from_sigma_backward_cub); + m.def("transmittance_from_alpha_forward_cub", transmittance_from_alpha_forward_cub); + m.def("transmittance_from_alpha_backward_cub", transmittance_from_alpha_backward_cub); + + m.def("transmittance_from_sigma_forward_naive", transmittance_from_sigma_forward_naive); + m.def("transmittance_from_sigma_backward_naive", transmittance_from_sigma_backward_naive); + m.def("transmittance_from_alpha_forward_naive", transmittance_from_alpha_forward_naive); + m.def("transmittance_from_alpha_backward_naive", transmittance_from_alpha_backward_naive); + + m.def("weight_from_sigma_forward_naive", weight_from_sigma_forward_naive); + m.def("weight_from_sigma_backward_naive", weight_from_sigma_backward_naive); + m.def("weight_from_alpha_forward_naive", weight_from_alpha_forward_naive); + m.def("weight_from_alpha_backward_naive", weight_from_alpha_backward_naive); + + // pack & unpack + m.def("unpack_data", &unpack_data); + m.def("unpack_info", &unpack_info); + m.def("unpack_info_to_mask", &unpack_info_to_mask); +} \ No newline at end of file diff --git a/codes/reconstruction/experiments/ta_deps/nerfacc/cuda/csrc/ray_marching.cu b/codes/reconstruction/experiments/ta_deps/nerfacc/cuda/csrc/ray_marching.cu new file mode 100644 index 0000000000000000000000000000000000000000..ef05d6fc13950937b41748a756502be87e16c2cc --- /dev/null +++ b/codes/reconstruction/experiments/ta_deps/nerfacc/cuda/csrc/ray_marching.cu @@ -0,0 +1,358 @@ +/* + * Copyright (c) 2022 Ruilong Li, UC Berkeley. + */ + +#include "include/helpers_cuda.h" +#include "include/helpers_math.h" +#include "include/helpers_contraction.h" + +inline __device__ __host__ float calc_dt( + const float t, const float cone_angle, + const float dt_min, const float dt_max) +{ + return clamp(t * cone_angle, dt_min, dt_max); +} + +inline __device__ __host__ int grid_idx_at( + const float3 xyz_unit, const int3 grid_res) +{ + // xyz should be always in [0, 1]^3. + int3 ixyz = make_int3(xyz_unit * make_float3(grid_res)); + ixyz = clamp(ixyz, make_int3(0, 0, 0), grid_res - 1); + int3 grid_offset = make_int3(grid_res.y * grid_res.z, grid_res.z, 1); + int idx = dot(ixyz, grid_offset); + return idx; +} + +template +inline __device__ __host__ scalar_t grid_occupied_at( + const float3 xyz, + const float3 roi_min, const float3 roi_max, + ContractionType type, + const int3 grid_res, const scalar_t *grid_value) +{ + if (type == ContractionType::AABB && + (xyz.x < roi_min.x || xyz.x > roi_max.x || + xyz.y < roi_min.y || xyz.y > roi_max.y || + xyz.z < roi_min.z || xyz.z > roi_max.z)) + { + return false; + } + float3 xyz_unit = apply_contraction( + xyz, roi_min, roi_max, type); + int idx = grid_idx_at(xyz_unit, grid_res); + return grid_value[idx]; +} + +// dda like step +inline __device__ __host__ float distance_to_next_voxel( + const float3 xyz, const float3 dir, const float3 inv_dir, + const float3 roi_min, const float3 roi_max, const int3 grid_res) +{ + float3 _occ_res = make_float3(grid_res); + float3 _xyz = roi_to_unit(xyz, roi_min, roi_max) * _occ_res; + float3 txyz = ((floorf(_xyz + 0.5f + 0.5f * sign(dir)) - _xyz) * inv_dir) / _occ_res * (roi_max - roi_min); + float t = min(min(txyz.x, txyz.y), txyz.z); + return fmaxf(t, 0.0f); +} + +inline __device__ __host__ float advance_to_next_voxel( + const float t, const float dt_min, + const float3 xyz, const float3 dir, const float3 inv_dir, + const float3 roi_min, const float3 roi_max, const int3 grid_res, const float far) +{ + // Regular stepping (may be slower but matches non-empty space) + float t_target = t + distance_to_next_voxel( + xyz, dir, inv_dir, roi_min, roi_max, grid_res); + + t_target = min(t_target, far); + float _t = t; + do + { + _t += dt_min; + } while (_t < t_target); + return _t; +} + +// ------------------------------------------------------------------------------- +// Raymarching +// ------------------------------------------------------------------------------- + +__global__ void ray_marching_kernel( + // rays info + const uint32_t n_rays, + const float *rays_o, // shape (n_rays, 3) + const float *rays_d, // shape (n_rays, 3) + const float *t_min, // shape (n_rays,) + const float *t_max, // shape (n_rays,) + // occupancy grid & contraction + const float *roi, + const int3 grid_res, + const bool *grid_binary, // shape (reso_x, reso_y, reso_z) + const ContractionType type, + // sampling + const float step_size, + const float cone_angle, + const int *packed_info, + // first round outputs + int *num_steps, + // second round outputs + int64_t *ray_indices, + float *t_starts, + float *t_ends) +{ + CUDA_GET_THREAD_ID(i, n_rays); + + bool is_first_round = (packed_info == nullptr); + + // locate + rays_o += i * 3; + rays_d += i * 3; + t_min += i; + t_max += i; + + if (is_first_round) + { + num_steps += i; + } + else + { + int base = packed_info[i * 2 + 0]; + int steps = packed_info[i * 2 + 1]; + t_starts += base; + t_ends += base; + ray_indices += base; + } + + const float3 origin = make_float3(rays_o[0], rays_o[1], rays_o[2]); + const float3 dir = make_float3(rays_d[0], rays_d[1], rays_d[2]); + const float3 inv_dir = 1.0f / dir; + const float near = t_min[0], far = t_max[0]; + + const float3 roi_min = make_float3(roi[0], roi[1], roi[2]); + const float3 roi_max = make_float3(roi[3], roi[4], roi[5]); + + // TODO: compute dt_max from occ resolution. + float dt_min = step_size; + float dt_max = 1e10f; + + int j = 0; + float t0 = near; + float dt = calc_dt(t0, cone_angle, dt_min, dt_max); + float t1 = t0 + dt; + float t_mid = (t0 + t1) * 0.5f; + + while (t_mid < far) + { + // current center + const float3 xyz = origin + t_mid * dir; + if (grid_occupied_at(xyz, roi_min, roi_max, type, grid_res, grid_binary)) + { + if (!is_first_round) + { + t_starts[j] = t0; + t_ends[j] = t1; + ray_indices[j] = i; + } + ++j; + // march to next sample + t0 = t1; + t1 = t0 + calc_dt(t0, cone_angle, dt_min, dt_max); + t_mid = (t0 + t1) * 0.5f; + } + else + { + // march to next sample + switch (type) + { + case ContractionType::AABB: + // no contraction + t_mid = advance_to_next_voxel( + t_mid, dt_min, xyz, dir, inv_dir, roi_min, roi_max, grid_res, far); + dt = calc_dt(t_mid, cone_angle, dt_min, dt_max); + t0 = t_mid - dt * 0.5f; + t1 = t_mid + dt * 0.5f; + break; + + default: + // any type of scene contraction does not work with DDA. + t0 = t1; + t1 = t0 + calc_dt(t0, cone_angle, dt_min, dt_max); + t_mid = (t0 + t1) * 0.5f; + break; + } + } + } + + if (is_first_round) + { + *num_steps = j; + } + return; +} + +std::vector ray_marching( + // rays + const torch::Tensor rays_o, + const torch::Tensor rays_d, + const torch::Tensor t_min, + const torch::Tensor t_max, + // occupancy grid & contraction + const torch::Tensor roi, + const torch::Tensor grid_binary, + const ContractionType type, + // sampling + const float step_size, + const float cone_angle) +{ + DEVICE_GUARD(rays_o); + + CHECK_INPUT(rays_o); + CHECK_INPUT(rays_d); + CHECK_INPUT(t_min); + CHECK_INPUT(t_max); + CHECK_INPUT(roi); + CHECK_INPUT(grid_binary); + TORCH_CHECK(rays_o.ndimension() == 2 & rays_o.size(1) == 3) + TORCH_CHECK(rays_d.ndimension() == 2 & rays_d.size(1) == 3) + TORCH_CHECK(t_min.ndimension() == 1) + TORCH_CHECK(t_max.ndimension() == 1) + TORCH_CHECK(roi.ndimension() == 1 & roi.size(0) == 6) + TORCH_CHECK(grid_binary.ndimension() == 3) + + const int n_rays = rays_o.size(0); + const int3 grid_res = make_int3( + grid_binary.size(0), grid_binary.size(1), grid_binary.size(2)); + + const int threads = 256; + const int blocks = CUDA_N_BLOCKS_NEEDED(n_rays, threads); + + // helper counter + torch::Tensor num_steps = torch::empty( + {n_rays}, rays_o.options().dtype(torch::kInt32)); + + // count number of samples per ray + ray_marching_kernel<<>>( + // rays + n_rays, + rays_o.data_ptr(), + rays_d.data_ptr(), + t_min.data_ptr(), + t_max.data_ptr(), + // occupancy grid & contraction + roi.data_ptr(), + grid_res, + grid_binary.data_ptr(), + type, + // sampling + step_size, + cone_angle, + nullptr, /* packed_info */ + // outputs + num_steps.data_ptr(), + nullptr, /* ray_indices */ + nullptr, /* t_starts */ + nullptr /* t_ends */); + + torch::Tensor cum_steps = num_steps.cumsum(0, torch::kInt32); + torch::Tensor packed_info = torch::stack({cum_steps - num_steps, num_steps}, 1); + + // output samples starts and ends + int total_steps = cum_steps[cum_steps.size(0) - 1].item(); + torch::Tensor t_starts = torch::empty({total_steps, 1}, rays_o.options()); + torch::Tensor t_ends = torch::empty({total_steps, 1}, rays_o.options()); + torch::Tensor ray_indices = torch::empty({total_steps}, cum_steps.options().dtype(torch::kLong)); + + ray_marching_kernel<<>>( + // rays + n_rays, + rays_o.data_ptr(), + rays_d.data_ptr(), + t_min.data_ptr(), + t_max.data_ptr(), + // occupancy grid & contraction + roi.data_ptr(), + grid_res, + grid_binary.data_ptr(), + type, + // sampling + step_size, + cone_angle, + packed_info.data_ptr(), + // outputs + nullptr, /* num_steps */ + ray_indices.data_ptr(), + t_starts.data_ptr(), + t_ends.data_ptr()); + + return {packed_info, ray_indices, t_starts, t_ends}; +} + +// ---------------------------------------------------------------------------- +// Query the occupancy grid +// ---------------------------------------------------------------------------- + +template +__global__ void query_occ_kernel( + // rays info + const uint32_t n_samples, + const float *samples, // shape (n_samples, 3) + // occupancy grid & contraction + const float *roi, + const int3 grid_res, + const scalar_t *grid_value, // shape (reso_x, reso_y, reso_z) + const ContractionType type, + // outputs + scalar_t *occs) +{ + CUDA_GET_THREAD_ID(i, n_samples); + + // locate + samples += i * 3; + occs += i; + + const float3 roi_min = make_float3(roi[0], roi[1], roi[2]); + const float3 roi_max = make_float3(roi[3], roi[4], roi[5]); + const float3 xyz = make_float3(samples[0], samples[1], samples[2]); + + *occs = grid_occupied_at(xyz, roi_min, roi_max, type, grid_res, grid_value); + return; +} + +torch::Tensor grid_query( + const torch::Tensor samples, + // occupancy grid & contraction + const torch::Tensor roi, + const torch::Tensor grid_value, + const ContractionType type) +{ + DEVICE_GUARD(samples); + CHECK_INPUT(samples); + + const int n_samples = samples.size(0); + const int3 grid_res = make_int3( + grid_value.size(0), grid_value.size(1), grid_value.size(2)); + + const int threads = 256; + const int blocks = CUDA_N_BLOCKS_NEEDED(n_samples, threads); + + torch::Tensor occs = torch::empty({n_samples}, grid_value.options()); + + AT_DISPATCH_FLOATING_TYPES_AND( + at::ScalarType::Bool, + occs.scalar_type(), + "grid_query", + ([&] + { query_occ_kernel<<>>( + n_samples, + samples.data_ptr(), + // grid + roi.data_ptr(), + grid_res, + grid_value.data_ptr(), + type, + // outputs + occs.data_ptr()); })); + + return occs; +} diff --git a/codes/reconstruction/experiments/ta_deps/nerfacc/cuda/csrc/render_transmittance.cu b/codes/reconstruction/experiments/ta_deps/nerfacc/cuda/csrc/render_transmittance.cu new file mode 100644 index 0000000000000000000000000000000000000000..55d05818d6ee1d4fd286dad03b5545eea5f8ba1a --- /dev/null +++ b/codes/reconstruction/experiments/ta_deps/nerfacc/cuda/csrc/render_transmittance.cu @@ -0,0 +1,294 @@ +/* + * Copyright (c) 2022 Ruilong Li, UC Berkeley. + */ + +#include "include/helpers_cuda.h" + +__global__ void transmittance_from_sigma_forward_kernel( + const uint32_t n_rays, + // inputs + const int *packed_info, + const float *starts, + const float *ends, + const float *sigmas, + // outputs + float *transmittance) +{ + CUDA_GET_THREAD_ID(i, n_rays); + + // locate + const int base = packed_info[i * 2 + 0]; + const int steps = packed_info[i * 2 + 1]; + if (steps == 0) + return; + + starts += base; + ends += base; + sigmas += base; + transmittance += base; + + // accumulation + float cumsum = 0.0f; + for (int j = 0; j < steps; ++j) + { + transmittance[j] = __expf(-cumsum); + cumsum += sigmas[j] * (ends[j] - starts[j]); + } + + // // another way to impl: + // float T = 1.f; + // for (int j = 0; j < steps; ++j) + // { + // const float delta = ends[j] - starts[j]; + // const float alpha = 1.f - __expf(-sigmas[j] * delta); + // transmittance[j] = T; + // T *= (1.f - alpha); + // } + return; +} + +__global__ void transmittance_from_sigma_backward_kernel( + const uint32_t n_rays, + // inputs + const int *packed_info, + const float *starts, + const float *ends, + const float *transmittance, + const float *transmittance_grad, + // outputs + float *sigmas_grad) +{ + CUDA_GET_THREAD_ID(i, n_rays); + + // locate + const int base = packed_info[i * 2 + 0]; + const int steps = packed_info[i * 2 + 1]; + if (steps == 0) + return; + + transmittance += base; + transmittance_grad += base; + starts += base; + ends += base; + sigmas_grad += base; + + // accumulation + float cumsum = 0.0f; + for (int j = steps - 1; j >= 0; --j) + { + sigmas_grad[j] = cumsum * (ends[j] - starts[j]); + cumsum += -transmittance_grad[j] * transmittance[j]; + } + return; +} + +__global__ void transmittance_from_alpha_forward_kernel( + const uint32_t n_rays, + // inputs + const int *packed_info, + const float *alphas, + // outputs + float *transmittance) +{ + CUDA_GET_THREAD_ID(i, n_rays); + + // locate + const int base = packed_info[i * 2 + 0]; + const int steps = packed_info[i * 2 + 1]; + if (steps == 0) + return; + + alphas += base; + transmittance += base; + + // accumulation + float T = 1.0f; + for (int j = 0; j < steps; ++j) + { + transmittance[j] = T; + T *= (1.0f - alphas[j]); + } + return; +} + +__global__ void transmittance_from_alpha_backward_kernel( + const uint32_t n_rays, + // inputs + const int *packed_info, + const float *alphas, + const float *transmittance, + const float *transmittance_grad, + // outputs + float *alphas_grad) +{ + CUDA_GET_THREAD_ID(i, n_rays); + + // locate + const int base = packed_info[i * 2 + 0]; + const int steps = packed_info[i * 2 + 1]; + if (steps == 0) + return; + + alphas += base; + transmittance += base; + transmittance_grad += base; + alphas_grad += base; + + // accumulation + float cumsum = 0.0f; + for (int j = steps - 1; j >= 0; --j) + { + alphas_grad[j] = cumsum / fmax(1.0f - alphas[j], 1e-10f); + cumsum += -transmittance_grad[j] * transmittance[j]; + } + return; +} + +torch::Tensor transmittance_from_sigma_forward_naive( + torch::Tensor packed_info, + torch::Tensor starts, + torch::Tensor ends, + torch::Tensor sigmas) +{ + DEVICE_GUARD(packed_info); + CHECK_INPUT(packed_info); + CHECK_INPUT(starts); + CHECK_INPUT(ends); + CHECK_INPUT(sigmas); + TORCH_CHECK(packed_info.ndimension() == 2); + TORCH_CHECK(starts.ndimension() == 2 & starts.size(1) == 1); + TORCH_CHECK(ends.ndimension() == 2 & ends.size(1) == 1); + TORCH_CHECK(sigmas.ndimension() == 2 & sigmas.size(1) == 1); + + const uint32_t n_samples = sigmas.size(0); + const uint32_t n_rays = packed_info.size(0); + + const int threads = 256; + const int blocks = CUDA_N_BLOCKS_NEEDED(n_rays, threads); + + // outputs + torch::Tensor transmittance = torch::empty_like(sigmas); + + // parallel across rays + transmittance_from_sigma_forward_kernel<<< + blocks, threads, 0, at::cuda::getCurrentCUDAStream()>>>( + n_rays, + // inputs + packed_info.data_ptr(), + starts.data_ptr(), + ends.data_ptr(), + sigmas.data_ptr(), + // outputs + transmittance.data_ptr()); + return transmittance; +} + +torch::Tensor transmittance_from_sigma_backward_naive( + torch::Tensor packed_info, + torch::Tensor starts, + torch::Tensor ends, + torch::Tensor transmittance, + torch::Tensor transmittance_grad) +{ + DEVICE_GUARD(packed_info); + CHECK_INPUT(packed_info); + CHECK_INPUT(starts); + CHECK_INPUT(ends); + CHECK_INPUT(transmittance); + CHECK_INPUT(transmittance_grad); + TORCH_CHECK(packed_info.ndimension() == 2); + TORCH_CHECK(starts.ndimension() == 2 & starts.size(1) == 1); + TORCH_CHECK(ends.ndimension() == 2 & ends.size(1) == 1); + TORCH_CHECK(transmittance.ndimension() == 2 & transmittance.size(1) == 1); + TORCH_CHECK(transmittance_grad.ndimension() == 2 & transmittance_grad.size(1) == 1); + + const uint32_t n_samples = transmittance.size(0); + const uint32_t n_rays = packed_info.size(0); + + const int threads = 256; + const int blocks = CUDA_N_BLOCKS_NEEDED(n_rays, threads); + + // outputs + torch::Tensor sigmas_grad = torch::empty_like(transmittance); + + // parallel across rays + transmittance_from_sigma_backward_kernel<<< + blocks, threads, 0, at::cuda::getCurrentCUDAStream()>>>( + n_rays, + // inputs + packed_info.data_ptr(), + starts.data_ptr(), + ends.data_ptr(), + transmittance.data_ptr(), + transmittance_grad.data_ptr(), + // outputs + sigmas_grad.data_ptr()); + return sigmas_grad; +} + +torch::Tensor transmittance_from_alpha_forward_naive( + torch::Tensor packed_info, torch::Tensor alphas) +{ + DEVICE_GUARD(packed_info); + CHECK_INPUT(packed_info); + CHECK_INPUT(alphas); + TORCH_CHECK(alphas.ndimension() == 2 & alphas.size(1) == 1); + TORCH_CHECK(packed_info.ndimension() == 2); + + const uint32_t n_samples = alphas.size(0); + const uint32_t n_rays = packed_info.size(0); + + const int threads = 256; + const int blocks = CUDA_N_BLOCKS_NEEDED(n_rays, threads); + + // outputs + torch::Tensor transmittance = torch::empty_like(alphas); + + // parallel across rays + transmittance_from_alpha_forward_kernel<<< + blocks, threads, 0, at::cuda::getCurrentCUDAStream()>>>( + n_rays, + // inputs + packed_info.data_ptr(), + alphas.data_ptr(), + // outputs + transmittance.data_ptr()); + return transmittance; +} + +torch::Tensor transmittance_from_alpha_backward_naive( + torch::Tensor packed_info, + torch::Tensor alphas, + torch::Tensor transmittance, + torch::Tensor transmittance_grad) +{ + DEVICE_GUARD(packed_info); + CHECK_INPUT(packed_info); + CHECK_INPUT(transmittance); + CHECK_INPUT(transmittance_grad); + TORCH_CHECK(packed_info.ndimension() == 2); + TORCH_CHECK(transmittance.ndimension() == 2 & transmittance.size(1) == 1); + TORCH_CHECK(transmittance_grad.ndimension() == 2 & transmittance_grad.size(1) == 1); + + const uint32_t n_samples = transmittance.size(0); + const uint32_t n_rays = packed_info.size(0); + + const int threads = 256; + const int blocks = CUDA_N_BLOCKS_NEEDED(n_rays, threads); + + // outputs + torch::Tensor alphas_grad = torch::empty_like(alphas); + + // parallel across rays + transmittance_from_alpha_backward_kernel<<< + blocks, threads, 0, at::cuda::getCurrentCUDAStream()>>>( + n_rays, + // inputs + packed_info.data_ptr(), + alphas.data_ptr(), + transmittance.data_ptr(), + transmittance_grad.data_ptr(), + // outputs + alphas_grad.data_ptr()); + return alphas_grad; +} diff --git a/codes/reconstruction/experiments/ta_deps/nerfacc/cuda/csrc/render_transmittance_cub.cu b/codes/reconstruction/experiments/ta_deps/nerfacc/cuda/csrc/render_transmittance_cub.cu new file mode 100644 index 0000000000000000000000000000000000000000..10c270fd85ffcb4e56725e4dd98fd4b90b3b87c1 --- /dev/null +++ b/codes/reconstruction/experiments/ta_deps/nerfacc/cuda/csrc/render_transmittance_cub.cu @@ -0,0 +1,166 @@ +/* + * Copyright (c) 2022 Ruilong Li, UC Berkeley. + */ +// CUB is supported in CUDA >= 11.0 +// ExclusiveScanByKey is supported in CUB >= 1.15.0 (CUDA >= 11.6) +// See: https://github.com/NVIDIA/cub/tree/main#releases +#include "include/helpers_cuda.h" +#if CUB_SUPPORTS_SCAN_BY_KEY() +#include +#endif + +struct Product +{ + template + __host__ __device__ __forceinline__ T operator()(const T &a, const T &b) const { return a * b; } +}; + +#if CUB_SUPPORTS_SCAN_BY_KEY() +template +inline void exclusive_sum_by_key( + KeysInputIteratorT keys, ValuesInputIteratorT input, ValuesOutputIteratorT output, int64_t num_items) +{ + TORCH_CHECK(num_items <= std::numeric_limits::max(), + "cub ExclusiveSumByKey does not support more than LONG_MAX elements"); + CUB_WRAPPER(cub::DeviceScan::ExclusiveSumByKey, keys, input, output, + num_items, cub::Equality(), at::cuda::getCurrentCUDAStream()); +} + +template +inline void exclusive_prod_by_key( + KeysInputIteratorT keys, ValuesInputIteratorT input, ValuesOutputIteratorT output, int64_t num_items) +{ + TORCH_CHECK(num_items <= std::numeric_limits::max(), + "cub ExclusiveScanByKey does not support more than LONG_MAX elements"); + CUB_WRAPPER(cub::DeviceScan::ExclusiveScanByKey, keys, input, output, Product(), 1.0f, + num_items, cub::Equality(), at::cuda::getCurrentCUDAStream()); +} +#endif + +torch::Tensor transmittance_from_sigma_forward_cub( + torch::Tensor ray_indices, + torch::Tensor starts, + torch::Tensor ends, + torch::Tensor sigmas) +{ + DEVICE_GUARD(ray_indices); + CHECK_INPUT(ray_indices); + CHECK_INPUT(starts); + CHECK_INPUT(ends); + CHECK_INPUT(sigmas); + TORCH_CHECK(ray_indices.ndimension() == 1); + TORCH_CHECK(starts.ndimension() == 2 & starts.size(1) == 1); + TORCH_CHECK(ends.ndimension() == 2 & ends.size(1) == 1); + TORCH_CHECK(sigmas.ndimension() == 2 & sigmas.size(1) == 1); + + const uint32_t n_samples = sigmas.size(0); + + // parallel across samples + torch::Tensor sigmas_dt = sigmas * (ends - starts); + torch::Tensor sigmas_dt_cumsum = torch::empty_like(sigmas); +#if CUB_SUPPORTS_SCAN_BY_KEY() + exclusive_sum_by_key( + ray_indices.data_ptr(), + sigmas_dt.data_ptr(), + sigmas_dt_cumsum.data_ptr(), + n_samples); +#else + std::runtime_error("CUB functions are only supported in CUDA >= 11.6."); +#endif + torch::Tensor transmittance = (-sigmas_dt_cumsum).exp(); + return transmittance; +} + +torch::Tensor transmittance_from_sigma_backward_cub( + torch::Tensor ray_indices, + torch::Tensor starts, + torch::Tensor ends, + torch::Tensor transmittance, + torch::Tensor transmittance_grad) +{ + DEVICE_GUARD(ray_indices); + CHECK_INPUT(ray_indices); + CHECK_INPUT(starts); + CHECK_INPUT(ends); + CHECK_INPUT(transmittance); + CHECK_INPUT(transmittance_grad); + TORCH_CHECK(ray_indices.ndimension() == 1); + TORCH_CHECK(starts.ndimension() == 2 & starts.size(1) == 1); + TORCH_CHECK(ends.ndimension() == 2 & ends.size(1) == 1); + TORCH_CHECK(transmittance.ndimension() == 2 & transmittance.size(1) == 1); + TORCH_CHECK(transmittance_grad.ndimension() == 2 & transmittance_grad.size(1) == 1); + + const uint32_t n_samples = transmittance.size(0); + + // parallel across samples + torch::Tensor sigmas_dt_cumsum_grad = -transmittance_grad * transmittance; + torch::Tensor sigmas_dt_grad = torch::empty_like(transmittance_grad); +#if CUB_SUPPORTS_SCAN_BY_KEY() + exclusive_sum_by_key( + thrust::make_reverse_iterator(ray_indices.data_ptr() + n_samples), + thrust::make_reverse_iterator(sigmas_dt_cumsum_grad.data_ptr() + n_samples), + thrust::make_reverse_iterator(sigmas_dt_grad.data_ptr() + n_samples), + n_samples); +#else + std::runtime_error("CUB functions are only supported in CUDA >= 11.6."); +#endif + torch::Tensor sigmas_grad = sigmas_dt_grad * (ends - starts); + return sigmas_grad; +} + +torch::Tensor transmittance_from_alpha_forward_cub( + torch::Tensor ray_indices, torch::Tensor alphas) +{ + DEVICE_GUARD(ray_indices); + CHECK_INPUT(ray_indices); + CHECK_INPUT(alphas); + TORCH_CHECK(alphas.ndimension() == 2 & alphas.size(1) == 1); + TORCH_CHECK(ray_indices.ndimension() == 1); + + const uint32_t n_samples = alphas.size(0); + + // parallel across samples + torch::Tensor transmittance = torch::empty_like(alphas); +#if CUB_SUPPORTS_SCAN_BY_KEY() + exclusive_prod_by_key( + ray_indices.data_ptr(), + (1.0f - alphas).data_ptr(), + transmittance.data_ptr(), + n_samples); +#else + std::runtime_error("CUB functions are only supported in CUDA >= 11.6."); +#endif + return transmittance; +} + +torch::Tensor transmittance_from_alpha_backward_cub( + torch::Tensor ray_indices, + torch::Tensor alphas, + torch::Tensor transmittance, + torch::Tensor transmittance_grad) +{ + DEVICE_GUARD(ray_indices); + CHECK_INPUT(ray_indices); + CHECK_INPUT(transmittance); + CHECK_INPUT(transmittance_grad); + TORCH_CHECK(ray_indices.ndimension() == 1); + TORCH_CHECK(transmittance.ndimension() == 2 & transmittance.size(1) == 1); + TORCH_CHECK(transmittance_grad.ndimension() == 2 & transmittance_grad.size(1) == 1); + + const uint32_t n_samples = transmittance.size(0); + + // parallel across samples + torch::Tensor sigmas_dt_cumsum_grad = -transmittance_grad * transmittance; + torch::Tensor sigmas_dt_grad = torch::empty_like(transmittance_grad); +#if CUB_SUPPORTS_SCAN_BY_KEY() + exclusive_sum_by_key( + thrust::make_reverse_iterator(ray_indices.data_ptr() + n_samples), + thrust::make_reverse_iterator(sigmas_dt_cumsum_grad.data_ptr() + n_samples), + thrust::make_reverse_iterator(sigmas_dt_grad.data_ptr() + n_samples), + n_samples); +#else + std::runtime_error("CUB functions are only supported in CUDA >= 11.6."); +#endif + torch::Tensor alphas_grad = sigmas_dt_grad / (1.0f - alphas).clamp_min(1e-10f); + return alphas_grad; +} diff --git a/codes/reconstruction/experiments/ta_deps/nerfacc/cuda/csrc/render_weight.cu b/codes/reconstruction/experiments/ta_deps/nerfacc/cuda/csrc/render_weight.cu new file mode 100644 index 0000000000000000000000000000000000000000..27a22a16728076edf5172893f7e0ceb5a09d67b8 --- /dev/null +++ b/codes/reconstruction/experiments/ta_deps/nerfacc/cuda/csrc/render_weight.cu @@ -0,0 +1,307 @@ +/* + * Copyright (c) 2022 Ruilong Li, UC Berkeley. + */ + +#include "include/helpers_cuda.h" + +__global__ void weight_from_sigma_forward_kernel( + const uint32_t n_rays, + const int *packed_info, + const float *starts, + const float *ends, + const float *sigmas, + // outputs + float *weights) +{ + CUDA_GET_THREAD_ID(i, n_rays); + + // locate + const int base = packed_info[i * 2 + 0]; + const int steps = packed_info[i * 2 + 1]; + if (steps == 0) + return; + + starts += base; + ends += base; + sigmas += base; + weights += base; + + // accumulation + float T = 1.f; + for (int j = 0; j < steps; ++j) + { + const float delta = ends[j] - starts[j]; + const float alpha = 1.f - __expf(-sigmas[j] * delta); + weights[j] = alpha * T; + T *= (1.f - alpha); + } + return; +} + +__global__ void weight_from_sigma_backward_kernel( + const uint32_t n_rays, + const int *packed_info, + const float *starts, + const float *ends, + const float *sigmas, + const float *weights, + const float *grad_weights, + // outputs + float *grad_sigmas) +{ + CUDA_GET_THREAD_ID(i, n_rays); + + // locate + const int base = packed_info[i * 2 + 0]; + const int steps = packed_info[i * 2 + 1]; + if (steps == 0) + return; + + starts += base; + ends += base; + sigmas += base; + weights += base; + grad_weights += base; + grad_sigmas += base; + + float accum = 0; + for (int j = 0; j < steps; ++j) + { + accum += grad_weights[j] * weights[j]; + } + + // accumulation + float T = 1.f; + for (int j = 0; j < steps; ++j) + { + const float delta = ends[j] - starts[j]; + const float alpha = 1.f - __expf(-sigmas[j] * delta); + grad_sigmas[j] = (grad_weights[j] * T - accum) * delta; + accum -= grad_weights[j] * weights[j]; + T *= (1.f - alpha); + } + return; +} + +__global__ void weight_from_alpha_forward_kernel( + const uint32_t n_rays, + const int *packed_info, + const float *alphas, + // outputs + float *weights) +{ + CUDA_GET_THREAD_ID(i, n_rays); + + // locate + const int base = packed_info[i * 2 + 0]; + const int steps = packed_info[i * 2 + 1]; + if (steps == 0) + return; + + alphas += base; + weights += base; + + // accumulation + float T = 1.f; + for (int j = 0; j < steps; ++j) + { + const float alpha = alphas[j]; + weights[j] = alpha * T; + T *= (1.f - alpha); + } + return; +} + +__global__ void weight_from_alpha_backward_kernel( + const uint32_t n_rays, + const int *packed_info, + const float *alphas, + const float *weights, + const float *grad_weights, + // outputs + float *grad_alphas) +{ + CUDA_GET_THREAD_ID(i, n_rays); + + // locate + const int base = packed_info[i * 2 + 0]; + const int steps = packed_info[i * 2 + 1]; + if (steps == 0) + return; + + alphas += base; + weights += base; + grad_weights += base; + grad_alphas += base; + + float accum = 0; + for (int j = 0; j < steps; ++j) + { + accum += grad_weights[j] * weights[j]; + } + + // accumulation + float T = 1.f; + for (int j = 0; j < steps; ++j) + { + const float alpha = alphas[j]; + grad_alphas[j] = (grad_weights[j] * T - accum) / fmaxf(1.f - alpha, 1e-10f); + accum -= grad_weights[j] * weights[j]; + T *= (1.f - alpha); + } + return; +} + +torch::Tensor weight_from_sigma_forward_naive( + torch::Tensor packed_info, + torch::Tensor starts, + torch::Tensor ends, + torch::Tensor sigmas) +{ + DEVICE_GUARD(packed_info); + CHECK_INPUT(packed_info); + CHECK_INPUT(starts); + CHECK_INPUT(ends); + CHECK_INPUT(sigmas); + + TORCH_CHECK(packed_info.ndimension() == 2); + TORCH_CHECK(starts.ndimension() == 2 & starts.size(1) == 1); + TORCH_CHECK(ends.ndimension() == 2 & ends.size(1) == 1); + TORCH_CHECK(sigmas.ndimension() == 2 & sigmas.size(1) == 1); + + const uint32_t n_samples = sigmas.size(0); + const uint32_t n_rays = packed_info.size(0); + + const int threads = 256; + const int blocks = CUDA_N_BLOCKS_NEEDED(n_rays, threads); + + // outputs + torch::Tensor weights = torch::empty_like(sigmas); + + weight_from_sigma_forward_kernel<<< + blocks, threads, 0, at::cuda::getCurrentCUDAStream()>>>( + n_rays, + // inputs + packed_info.data_ptr(), + starts.data_ptr(), + ends.data_ptr(), + sigmas.data_ptr(), + // outputs + weights.data_ptr()); + return weights; +} + +torch::Tensor weight_from_sigma_backward_naive( + torch::Tensor weights, + torch::Tensor grad_weights, + torch::Tensor packed_info, + torch::Tensor starts, + torch::Tensor ends, + torch::Tensor sigmas) +{ + DEVICE_GUARD(packed_info); + CHECK_INPUT(weights); + CHECK_INPUT(grad_weights); + CHECK_INPUT(packed_info); + CHECK_INPUT(starts); + CHECK_INPUT(ends); + CHECK_INPUT(sigmas); + + TORCH_CHECK(packed_info.ndimension() == 2); + TORCH_CHECK(starts.ndimension() == 2 & starts.size(1) == 1); + TORCH_CHECK(ends.ndimension() == 2 & ends.size(1) == 1); + TORCH_CHECK(sigmas.ndimension() == 2 & sigmas.size(1) == 1); + TORCH_CHECK(weights.ndimension() == 2 & weights.size(1) == 1); + TORCH_CHECK(grad_weights.ndimension() == 2 & grad_weights.size(1) == 1); + + const uint32_t n_samples = sigmas.size(0); + const uint32_t n_rays = packed_info.size(0); + + const int threads = 256; + const int blocks = CUDA_N_BLOCKS_NEEDED(n_rays, threads); + + // outputs + torch::Tensor grad_sigmas = torch::empty_like(sigmas); + + weight_from_sigma_backward_kernel<<< + blocks, threads, 0, at::cuda::getCurrentCUDAStream()>>>( + n_rays, + // inputs + packed_info.data_ptr(), + starts.data_ptr(), + ends.data_ptr(), + sigmas.data_ptr(), + weights.data_ptr(), + grad_weights.data_ptr(), + // outputs + grad_sigmas.data_ptr()); + + return grad_sigmas; +} + +torch::Tensor weight_from_alpha_forward_naive( + torch::Tensor packed_info, torch::Tensor alphas) +{ + DEVICE_GUARD(packed_info); + CHECK_INPUT(packed_info); + CHECK_INPUT(alphas); + TORCH_CHECK(packed_info.ndimension() == 2); + TORCH_CHECK(alphas.ndimension() == 2 & alphas.size(1) == 1); + + const uint32_t n_samples = alphas.size(0); + const uint32_t n_rays = packed_info.size(0); + + const int threads = 256; + const int blocks = CUDA_N_BLOCKS_NEEDED(n_rays, threads); + + // outputs + torch::Tensor weights = torch::empty_like(alphas); + + weight_from_alpha_forward_kernel<<< + blocks, threads, 0, at::cuda::getCurrentCUDAStream()>>>( + n_rays, + // inputs + packed_info.data_ptr(), + alphas.data_ptr(), + // outputs + weights.data_ptr()); + return weights; +} + +torch::Tensor weight_from_alpha_backward_naive( + torch::Tensor weights, + torch::Tensor grad_weights, + torch::Tensor packed_info, + torch::Tensor alphas) +{ + DEVICE_GUARD(packed_info); + CHECK_INPUT(packed_info); + CHECK_INPUT(alphas); + CHECK_INPUT(weights); + CHECK_INPUT(grad_weights); + TORCH_CHECK(packed_info.ndimension() == 2); + TORCH_CHECK(alphas.ndimension() == 2 & alphas.size(1) == 1); + TORCH_CHECK(weights.ndimension() == 2 & weights.size(1) == 1); + TORCH_CHECK(grad_weights.ndimension() == 2 & grad_weights.size(1) == 1); + + const uint32_t n_samples = alphas.size(0); + const uint32_t n_rays = packed_info.size(0); + + const int threads = 256; + const int blocks = CUDA_N_BLOCKS_NEEDED(n_rays, threads); + + // outputs + torch::Tensor grad_alphas = torch::empty_like(alphas); + + weight_from_alpha_backward_kernel<<< + blocks, threads, 0, at::cuda::getCurrentCUDAStream()>>>( + n_rays, + // inputs + packed_info.data_ptr(), + alphas.data_ptr(), + weights.data_ptr(), + grad_weights.data_ptr(), + // outputs + grad_alphas.data_ptr()); + return grad_alphas; +} diff --git a/codes/reconstruction/experiments/ta_deps/nerfacc/grid.py b/codes/reconstruction/experiments/ta_deps/nerfacc/grid.py new file mode 100644 index 0000000000000000000000000000000000000000..9c3c2eac052da64b4afe0d6a61256c81ad264cce --- /dev/null +++ b/codes/reconstruction/experiments/ta_deps/nerfacc/grid.py @@ -0,0 +1,313 @@ +""" +Copyright (c) 2022 Ruilong Li @ UC Berkeley +""" + +from typing import Callable, List, Union + +import torch +import torch.nn as nn + +import nerfacc.cuda as _C + +from .contraction import ContractionType, contract_inv + +# TODO: check torch.scatter_reduce_ +# from torch_scatter import scatter_max + + +@torch.no_grad() +def query_grid( + samples: torch.Tensor, + grid_roi: torch.Tensor, + grid_values: torch.Tensor, + grid_type: ContractionType, +): + """Query grid values given coordinates. + + Args: + samples: (n_samples, 3) tensor of coordinates. + grid_roi: (6,) region of interest of the grid. Usually it should be + accquired from the grid itself using `grid.roi_aabb`. + grid_values: A 3D tensor of grid values in the shape of (resx, resy, resz). + grid_type: Contraction type of the grid. Usually it should be + accquired from the grid itself using `grid.contraction_type`. + + Returns: + (n_samples) values for those samples queried from the grid. + """ + assert samples.dim() == 2 and samples.size(-1) == 3 + assert grid_roi.dim() == 1 and grid_roi.size(0) == 6 + assert grid_values.dim() == 3 + assert isinstance(grid_type, ContractionType) + return _C.grid_query( + samples.contiguous(), + grid_roi.contiguous(), + grid_values.contiguous(), + grid_type.to_cpp_version(), + ) + + +class Grid(nn.Module): + """An abstract Grid class. + + The grid is used as a cache of the 3D space to indicate whether each voxel + area is important or not for the differentiable rendering process. The + ray marching function (see :func:`nerfacc.ray_marching`) would use the + grid to skip the unimportant voxel areas. + + To work with :func:`nerfacc.ray_marching`, three attributes must exist: + + - :attr:`roi_aabb`: The axis-aligned bounding box of the region of interest. + - :attr:`binary`: A 3D binarized tensor of shape {resx, resy, resz}, \ + with torch.bool data type. + - :attr:`contraction_type`: The contraction type of the grid, indicating how \ + the 3D space is mapped to the grid. + """ + + def __init__(self, *args, **kwargs): + super().__init__() + self.register_buffer("_dummy", torch.empty(0), persistent=False) + + @property + def device(self) -> torch.device: + return self._dummy.device + + @property + def roi_aabb(self) -> torch.Tensor: + """The axis-aligned bounding box of the region of interest. + + Its is a shape (6,) tensor in the format of {minx, miny, minz, maxx, maxy, maxz}. + """ + if hasattr(self, "_roi_aabb"): + return getattr(self, "_roi_aabb") + else: + raise NotImplementedError("please set an attribute named _roi_aabb") + + @property + def binary(self) -> torch.Tensor: + """A 3D binarized tensor with torch.bool data type. + + The tensor is of shape (resx, resy, resz), in which each boolen value + represents whether the corresponding voxel should be kept or not. + """ + if hasattr(self, "_binary"): + return getattr(self, "_binary") + else: + raise NotImplementedError("please set an attribute named _binary") + + @property + def contraction_type(self) -> ContractionType: + """The contraction type of the grid. + + The contraction type is an indicator of how the 3D space is contracted + to this voxel grid. See :class:`nerfacc.ContractionType` for more details. + """ + if hasattr(self, "_contraction_type"): + return getattr(self, "_contraction_type") + else: + raise NotImplementedError( + "please set an attribute named _contraction_type" + ) + + +class OccupancyGrid(Grid): + """Occupancy grid: whether each voxel area is occupied or not. + + Args: + roi_aabb: The axis-aligned bounding box of the region of interest. Useful for mapping + the 3D space to the grid. + resolution: The resolution of the grid. If an integer is given, the grid is assumed to + be a cube. Otherwise, a list or a tensor of shape (3,) is expected. Default: 128. + contraction_type: The contraction type of the grid. See :class:`nerfacc.ContractionType` + for more details. Default: :attr:`nerfacc.ContractionType.AABB`. + """ + + NUM_DIM: int = 3 + + def __init__( + self, + roi_aabb: Union[List[int], torch.Tensor], + resolution: Union[int, List[int], torch.Tensor] = 128, + contraction_type: ContractionType = ContractionType.AABB, + ) -> None: + super().__init__() + if isinstance(resolution, int): + resolution = [resolution] * self.NUM_DIM + if isinstance(resolution, (list, tuple)): + resolution = torch.tensor(resolution, dtype=torch.int32) + assert isinstance( + resolution, torch.Tensor + ), f"Invalid type: {type(resolution)}" + assert resolution.shape == ( + self.NUM_DIM, + ), f"Invalid shape: {resolution.shape}" + + if isinstance(roi_aabb, (list, tuple)): + roi_aabb = torch.tensor(roi_aabb, dtype=torch.float32) + assert isinstance( + roi_aabb, torch.Tensor + ), f"Invalid type: {type(roi_aabb)}" + assert roi_aabb.shape == torch.Size( + [self.NUM_DIM * 2] + ), f"Invalid shape: {roi_aabb.shape}" + + # total number of voxels + self.num_cells = int(resolution.prod().item()) + + # required attributes + self.register_buffer("_roi_aabb", roi_aabb) + self.register_buffer( + "_binary", torch.zeros(resolution.tolist(), dtype=torch.bool) + ) + self._contraction_type = contraction_type + + # helper attributes + self.register_buffer("resolution", resolution) + self.register_buffer("occs", torch.zeros(self.num_cells)) + + # Grid coords & indices + grid_coords = _meshgrid3d(resolution).reshape( + self.num_cells, self.NUM_DIM + ) + self.register_buffer("grid_coords", grid_coords, persistent=False) + grid_indices = torch.arange(self.num_cells) + self.register_buffer("grid_indices", grid_indices, persistent=False) + + @torch.no_grad() + def _get_all_cells(self) -> torch.Tensor: + """Returns all cells of the grid.""" + return self.grid_indices + + @torch.no_grad() + def _sample_uniform_and_occupied_cells(self, n: int) -> torch.Tensor: + """Samples both n uniform and occupied cells.""" + uniform_indices = torch.randint( + self.num_cells, (n,), device=self.device + ) + occupied_indices = torch.nonzero(self._binary.flatten())[:, 0] + if n < len(occupied_indices): + selector = torch.randint( + len(occupied_indices), (n,), device=self.device + ) + occupied_indices = occupied_indices[selector] + indices = torch.cat([uniform_indices, occupied_indices], dim=0) + return indices + + @torch.no_grad() + def _update( + self, + step: int, + occ_eval_fn: Callable, + occ_thre: float = 0.01, + ema_decay: float = 0.95, + warmup_steps: int = 256, + ) -> None: + """Update the occ field in the EMA way.""" + # sample cells + if step < warmup_steps: + indices = self._get_all_cells() + else: + N = self.num_cells // 4 + indices = self._sample_uniform_and_occupied_cells(N) + + # infer occupancy: density * step_size + grid_coords = self.grid_coords[indices] + x = ( + grid_coords + torch.rand_like(grid_coords, dtype=torch.float32) + ) / self.resolution + if self._contraction_type == ContractionType.UN_BOUNDED_SPHERE: + # only the points inside the sphere are valid + mask = (x - 0.5).norm(dim=1) < 0.5 + x = x[mask] + indices = indices[mask] + # voxel coordinates [0, 1]^3 -> world + x = contract_inv( + x, + roi=self._roi_aabb, + type=self._contraction_type, + ) + occ = occ_eval_fn(x).squeeze(-1) + + # ema update + self.occs[indices] = torch.maximum(self.occs[indices] * ema_decay, occ) + # suppose to use scatter max but emperically it is almost the same. + # self.occs, _ = scatter_max( + # occ, indices, dim=0, out=self.occs * ema_decay + # ) + self._binary = ( + self.occs > torch.clamp(self.occs.mean(), max=occ_thre) + ).view(self._binary.shape) + + @torch.no_grad() + def every_n_step( + self, + step: int, + occ_eval_fn: Callable, + occ_thre: float = 1e-2, + ema_decay: float = 0.95, + warmup_steps: int = 256, + n: int = 16, + ) -> None: + """Update the grid every n steps during training. + + Args: + step: Current training step. + occ_eval_fn: A function that takes in sample locations :math:`(N, 3)` and + returns the occupancy values :math:`(N, 1)` at those locations. + occ_thre: Threshold used to binarize the occupancy grid. Default: 1e-2. + ema_decay: The decay rate for EMA updates. Default: 0.95. + warmup_steps: Sample all cells during the warmup stage. After the warmup + stage we change the sampling strategy to 1/4 uniformly sampled cells + together with 1/4 occupied cells. Default: 256. + n: Update the grid every n steps. Default: 16. + """ + if not self.training: + raise RuntimeError( + "You should only call this function only during training. " + "Please call _update() directly if you want to update the " + "field during inference." + ) + if step % n == 0 and self.training: + self._update( + step=step, + occ_eval_fn=occ_eval_fn, + occ_thre=occ_thre, + ema_decay=ema_decay, + warmup_steps=warmup_steps, + ) + + @torch.no_grad() + def query_occ(self, samples: torch.Tensor) -> torch.Tensor: + """Query the occupancy field at the given samples. + + Args: + samples: Samples in the world coordinates. (n_samples, 3) + + Returns: + Occupancy values at the given samples. (n_samples,) + """ + return query_grid( + samples, + self._roi_aabb, + self.binary, + self.contraction_type, + ) + + +def _meshgrid3d( + res: torch.Tensor, device: Union[torch.device, str] = "cpu" +) -> torch.Tensor: + """Create 3D grid coordinates.""" + assert len(res) == 3 + res = res.tolist() + return torch.stack( + torch.meshgrid( + [ + torch.arange(res[0], dtype=torch.long), + torch.arange(res[1], dtype=torch.long), + torch.arange(res[2], dtype=torch.long), + ], + indexing="ij", + ), + dim=-1, + ).to(device) diff --git a/codes/reconstruction/experiments/ta_deps/nerfacc/intersection.py b/codes/reconstruction/experiments/ta_deps/nerfacc/intersection.py new file mode 100644 index 0000000000000000000000000000000000000000..3b0783bef2f58e8a602f95df6565db7cfd7c2b59 --- /dev/null +++ b/codes/reconstruction/experiments/ta_deps/nerfacc/intersection.py @@ -0,0 +1,50 @@ +""" +Copyright (c) 2022 Ruilong Li, UC Berkeley. +""" + +from typing import Tuple + +import torch +from torch import Tensor + +import nerfacc.cuda as _C + + +@torch.no_grad() +def ray_aabb_intersect( + rays_o: Tensor, rays_d: Tensor, aabb: Tensor +) -> Tuple[Tensor, Tensor]: + """Ray AABB Test. + + Note: + this function is not differentiable to any inputs. + + Args: + rays_o: Ray origins of shape (n_rays, 3). + rays_d: Normalized ray directions of shape (n_rays, 3). + aabb: Scene bounding box {xmin, ymin, zmin, xmax, ymax, zmax}. \ + Tensor with shape (6) + + Returns: + Ray AABB intersection {t_min, t_max} with shape (n_rays) respectively. \ + Note the t_min is clipped to minimum zero. 1e10 means no intersection. + + Examples: + + .. code-block:: python + + aabb = torch.tensor([0.0, 0.0, 0.0, 1.0, 1.0, 1.0], device="cuda:0") + rays_o = torch.rand((128, 3), device="cuda:0") + rays_d = torch.randn((128, 3), device="cuda:0") + rays_d = rays_d / rays_d.norm(dim=-1, keepdim=True) + t_min, t_max = ray_aabb_intersect(rays_o, rays_d, aabb) + + """ + if rays_o.is_cuda and rays_d.is_cuda and aabb.is_cuda: + rays_o = rays_o.contiguous() + rays_d = rays_d.contiguous() + aabb = aabb.contiguous() + t_min, t_max = _C.ray_aabb_intersect(rays_o, rays_d, aabb) + else: + raise NotImplementedError("Only support cuda inputs.") + return t_min, t_max diff --git a/codes/reconstruction/experiments/ta_deps/nerfacc/losses.py b/codes/reconstruction/experiments/ta_deps/nerfacc/losses.py new file mode 100644 index 0000000000000000000000000000000000000000..21b44f0ae5db5751f9351e6396d6f8676d460a5a --- /dev/null +++ b/codes/reconstruction/experiments/ta_deps/nerfacc/losses.py @@ -0,0 +1,32 @@ +from torch import Tensor + +from .pack import unpack_data + + +def distortion( + packed_info: Tensor, weights: Tensor, t_starts: Tensor, t_ends: Tensor +) -> Tensor: + """Distortion loss from Mip-NeRF 360 paper, Equ. 15. + + Args: + packed_info: Packed info for the samples. (n_rays, 2) + weights: Weights for the samples. (all_samples,) + t_starts: Per-sample start distance. Tensor with shape (all_samples, 1). + t_ends: Per-sample end distance. Tensor with shape (all_samples, 1). + + Returns: + Distortion loss. (n_rays,) + """ + # (all_samples, 1) -> (n_rays, n_samples) + w = unpack_data(packed_info, weights[..., None]).squeeze(-1) + t1 = unpack_data(packed_info, t_starts).squeeze(-1) + t2 = unpack_data(packed_info, t_ends).squeeze(-1) + + interval = t2 - t1 + tmid = (t1 + t2) / 2 + + loss_uni = (1 / 3) * (interval * w.pow(2)).sum(-1) + ww = w.unsqueeze(-1) * w.unsqueeze(-2) + mm = (tmid.unsqueeze(-1) - tmid.unsqueeze(-2)).abs() + loss_bi = (ww * mm).sum((-1, -2)) + return loss_uni + loss_bi diff --git a/codes/reconstruction/experiments/ta_deps/nerfacc/pack.py b/codes/reconstruction/experiments/ta_deps/nerfacc/pack.py new file mode 100644 index 0000000000000000000000000000000000000000..3034a819f4937178743c7d4c801b8b1e91a58af7 --- /dev/null +++ b/codes/reconstruction/experiments/ta_deps/nerfacc/pack.py @@ -0,0 +1,190 @@ +""" +Copyright (c) 2022 Ruilong Li, UC Berkeley. +""" +from typing import Optional, Tuple + +import torch +from torch import Tensor + +import nerfacc.cuda as _C + + +def pack_data(data: Tensor, mask: Tensor) -> Tuple[Tensor, Tensor]: + """Pack per-ray data (n_rays, n_samples, D) to (all_samples, D) based on mask. + + Args: + data: Tensor with shape (n_rays, n_samples, D). + mask: Boolen tensor with shape (n_rays, n_samples). + + Returns: + Tuple of Tensors including packed data (all_samples, D), \ + and packed_info (n_rays, 2) which stores the start index of the sample, + and the number of samples kept for each ray. \ + + Examples: + + .. code-block:: python + + data = torch.rand((10, 3, 4), device="cuda:0") + mask = data.rand((10, 3), dtype=torch.bool, device="cuda:0") + packed_data, packed_info = pack(data, mask) + print(packed_data.shape, packed_info.shape) + + """ + assert data.dim() == 3, "data must be with shape of (n_rays, n_samples, D)." + assert ( + mask.shape == data.shape[:2] + ), "mask must be with shape of (n_rays, n_samples)." + assert mask.dtype == torch.bool, "mask must be a boolean tensor." + packed_data = data[mask] + num_steps = mask.sum(dim=-1, dtype=torch.int32) + cum_steps = num_steps.cumsum(dim=0, dtype=torch.int32) + packed_info = torch.stack([cum_steps - num_steps, num_steps], dim=-1) + return packed_data, packed_info + + +@torch.no_grad() +def pack_info(ray_indices: Tensor, n_rays: int = None) -> Tensor: + """Pack `ray_indices` to `packed_info`. Useful for converting per sample data to per ray data. + + Note: + this function is not differentiable to any inputs. + + Args: + ray_indices: Ray index of each sample. LongTensor with shape (n_sample). + + Returns: + packed_info: Stores information on which samples belong to the same ray. \ + See :func:`nerfacc.ray_marching` for details. IntTensor with shape (n_rays, 2). + """ + assert ( + ray_indices.dim() == 1 + ), "ray_indices must be a 1D tensor with shape (n_samples)." + if ray_indices.is_cuda: + ray_indices = ray_indices + device = ray_indices.device + if n_rays is None: + n_rays = int(ray_indices.max()) + 1 + # else: + # assert n_rays > ray_indices.max() + src = torch.ones_like(ray_indices, dtype=torch.int) + num_steps = torch.zeros((n_rays,), device=device, dtype=torch.int) + num_steps.scatter_add_(0, ray_indices, src) + cum_steps = num_steps.cumsum(dim=0, dtype=torch.int) + packed_info = torch.stack([cum_steps - num_steps, num_steps], dim=-1) + else: + raise NotImplementedError("Only support cuda inputs.") + return packed_info + + +@torch.no_grad() +def unpack_info(packed_info: Tensor, n_samples: int) -> Tensor: + """Unpack `packed_info` to `ray_indices`. Useful for converting per ray data to per sample data. + + Note: + this function is not differentiable to any inputs. + + Args: + packed_info: Stores information on which samples belong to the same ray. \ + See :func:`nerfacc.ray_marching` for details. IntTensor with shape (n_rays, 2). + n_samples: Total number of samples. + + Returns: + Ray index of each sample. LongTensor with shape (n_sample). + + Examples: + + .. code-block:: python + + rays_o = torch.rand((128, 3), device="cuda:0") + rays_d = torch.randn((128, 3), device="cuda:0") + rays_d = rays_d / rays_d.norm(dim=-1, keepdim=True) + # Ray marching with near far plane. + packed_info, t_starts, t_ends = ray_marching( + rays_o, rays_d, near_plane=0.1, far_plane=1.0, render_step_size=1e-3 + ) + # torch.Size([128, 2]) torch.Size([115200, 1]) torch.Size([115200, 1]) + print(packed_info.shape, t_starts.shape, t_ends.shape) + # Unpack per-ray info to per-sample info. + ray_indices = unpack_info(packed_info, t_starts.shape[0]) + # torch.Size([115200]) torch.int64 + print(ray_indices.shape, ray_indices.dtype) + + """ + assert ( + packed_info.dim() == 2 and packed_info.shape[-1] == 2 + ), "packed_info must be a 2D tensor with shape (n_rays, 2)." + if packed_info.is_cuda: + ray_indices = _C.unpack_info(packed_info.contiguous(), n_samples) + else: + raise NotImplementedError("Only support cuda inputs.") + return ray_indices + + +def unpack_data( + packed_info: Tensor, + data: Tensor, + n_samples: Optional[int] = None, +) -> Tensor: + """Unpack packed data (all_samples, D) to per-ray data (n_rays, n_samples, D). + + Args: + packed_info (Tensor): Stores information on which samples belong to the same ray. \ + See :func:`nerfacc.ray_marching` for details. Tensor with shape (n_rays, 2). + data: Packed data to unpack. Tensor with shape (n_samples, D). + n_samples (int): Optional Number of samples per ray. If not provided, it \ + will be inferred from the packed_info. + + Returns: + Unpacked data (n_rays, n_samples, D). + + Examples: + + .. code-block:: python + + rays_o = torch.rand((128, 3), device="cuda:0") + rays_d = torch.randn((128, 3), device="cuda:0") + rays_d = rays_d / rays_d.norm(dim=-1, keepdim=True) + + # Ray marching with aabb. + scene_aabb = torch.tensor([0.0, 0.0, 0.0, 1.0, 1.0, 1.0], device="cuda:0") + packed_info, t_starts, t_ends = ray_marching( + rays_o, rays_d, scene_aabb=scene_aabb, render_step_size=1e-2 + ) + print(t_starts.shape) # torch.Size([all_samples, 1]) + + t_starts = unpack_data(packed_info, t_starts, n_samples=1024) + print(t_starts.shape) # torch.Size([128, 1024, 1]) + """ + assert ( + packed_info.dim() == 2 and packed_info.shape[-1] == 2 + ), "packed_info must be a 2D tensor with shape (n_rays, 2)." + assert ( + data.dim() == 2 + ), "data must be a 2D tensor with shape (n_samples, D)." + if n_samples is None: + n_samples = packed_info[:, 1].max().item() + return _UnpackData.apply(packed_info, data, n_samples) + + +class _UnpackData(torch.autograd.Function): + """Unpack packed data (all_samples, D) to per-ray data (n_rays, n_samples, D).""" + + @staticmethod + def forward(ctx, packed_info: Tensor, data: Tensor, n_samples: int): + # shape of the data should be (all_samples, D) + packed_info = packed_info.contiguous() + data = data.contiguous() + if ctx.needs_input_grad[1]: + ctx.save_for_backward(packed_info) + ctx.n_samples = n_samples + return _C.unpack_data(packed_info, data, n_samples) + + @staticmethod + def backward(ctx, grad: Tensor): + # shape of the grad should be (n_rays, n_samples, D) + packed_info = ctx.saved_tensors[0] + n_samples = ctx.n_samples + mask = _C.unpack_info_to_mask(packed_info, n_samples) + packed_grad = grad[mask].contiguous() + return None, packed_grad, None diff --git a/codes/reconstruction/experiments/ta_deps/nerfacc/ray_marching.py b/codes/reconstruction/experiments/ta_deps/nerfacc/ray_marching.py new file mode 100644 index 0000000000000000000000000000000000000000..8172a23fa1172d53772554615715200cafbdbf29 --- /dev/null +++ b/codes/reconstruction/experiments/ta_deps/nerfacc/ray_marching.py @@ -0,0 +1,222 @@ +from typing import Callable, Optional, Tuple + +import torch + +import nerfacc.cuda as _C + +from .contraction import ContractionType +from .grid import Grid +from .intersection import ray_aabb_intersect +from .vol_rendering import render_visibility + + +@torch.no_grad() +def ray_marching( + # rays + rays_o: torch.Tensor, + rays_d: torch.Tensor, + t_min: Optional[torch.Tensor] = None, + t_max: Optional[torch.Tensor] = None, + # bounding box of the scene + scene_aabb: Optional[torch.Tensor] = None, + # binarized grid for skipping empty space + grid: Optional[Grid] = None, + # sigma/alpha function for skipping invisible space + sigma_fn: Optional[Callable] = None, + alpha_fn: Optional[Callable] = None, + early_stop_eps: float = 1e-4, + alpha_thre: float = 0.0, + # rendering options + near_plane: Optional[float] = None, + far_plane: Optional[float] = None, + render_step_size: float = 1e-3, + stratified: bool = False, + cone_angle: float = 0.0, +) -> Tuple[torch.Tensor, torch.Tensor, torch.Tensor]: + """Ray marching with space skipping. + + Note: + The logic for computing `t_min` and `t_max`: + 1. If `t_min` and `t_max` are given, use them with highest priority. + 2. If `t_min` and `t_max` are not given, but `scene_aabb` is given, use \ + :func:`ray_aabb_intersect` to compute `t_min` and `t_max`. + 3. If `t_min` and `t_max` are not given, and `scene_aabb` is not given, \ + set `t_min` to 0.0, and `t_max` to 1e10. (the case of unbounded scene) + 4. Always clip `t_min` with `near_plane` and `t_max` with `far_plane` if given. + + Warning: + This function is not differentiable to any inputs. + + Args: + rays_o: Ray origins of shape (n_rays, 3). + rays_d: Normalized ray directions of shape (n_rays, 3). + t_min: Optional. Per-ray minimum distance. Tensor with shape (n_rays). + t_max: Optional. Per-ray maximum distance. Tensor with shape (n_rays). + scene_aabb: Optional. Scene bounding box for computing t_min and t_max. + A tensor with shape (6,) {xmin, ymin, zmin, xmax, ymax, zmax}. + `scene_aabb` will be ignored if both `t_min` and `t_max` are provided. + grid: Optional. Grid that idicates where to skip during marching. + See :class:`nerfacc.Grid` for details. + sigma_fn: Optional. If provided, the marching will skip the invisible space + by evaluating the density along the ray with `sigma_fn`. It should be a + function that takes in samples {t_starts (N, 1), t_ends (N, 1), + ray indices (N,)} and returns the post-activation density values (N, 1). + You should only provide either `sigma_fn` or `alpha_fn`. + alpha_fn: Optional. If provided, the marching will skip the invisible space + by evaluating the density along the ray with `alpha_fn`. It should be a + function that takes in samples {t_starts (N, 1), t_ends (N, 1), + ray indices (N,)} and returns the post-activation opacity values (N, 1). + You should only provide either `sigma_fn` or `alpha_fn`. + early_stop_eps: Early stop threshold for skipping invisible space. Default: 1e-4. + alpha_thre: Alpha threshold for skipping empty space. Default: 0.0. + near_plane: Optional. Near plane distance. If provided, it will be used + to clip t_min. + far_plane: Optional. Far plane distance. If provided, it will be used + to clip t_max. + render_step_size: Step size for marching. Default: 1e-3. + stratified: Whether to use stratified sampling. Default: False. + cone_angle: Cone angle for linearly-increased step size. 0. means + constant step size. Default: 0.0. + + Returns: + A tuple of tensors. + + - **ray_indices**: Ray index of each sample. IntTensor with shape (n_samples). + - **t_starts**: Per-sample start distance. Tensor with shape (n_samples, 1). + - **t_ends**: Per-sample end distance. Tensor with shape (n_samples, 1). + + Examples: + + .. code-block:: python + + import torch + from nerfacc import OccupancyGrid, ray_marching, unpack_info + + device = "cuda:0" + batch_size = 128 + rays_o = torch.rand((batch_size, 3), device=device) + rays_d = torch.randn((batch_size, 3), device=device) + rays_d = rays_d / rays_d.norm(dim=-1, keepdim=True) + + # Ray marching with near far plane. + ray_indices, t_starts, t_ends = ray_marching( + rays_o, rays_d, near_plane=0.1, far_plane=1.0, render_step_size=1e-3 + ) + + # Ray marching with aabb. + scene_aabb = torch.tensor([0.0, 0.0, 0.0, 1.0, 1.0, 1.0], device=device) + ray_indices, t_starts, t_ends = ray_marching( + rays_o, rays_d, scene_aabb=scene_aabb, render_step_size=1e-3 + ) + + # Ray marching with per-ray t_min and t_max. + t_min = torch.zeros((batch_size,), device=device) + t_max = torch.ones((batch_size,), device=device) + ray_indices, t_starts, t_ends = ray_marching( + rays_o, rays_d, t_min=t_min, t_max=t_max, render_step_size=1e-3 + ) + + # Ray marching with aabb and skip areas based on occupancy grid. + scene_aabb = torch.tensor([0.0, 0.0, 0.0, 1.0, 1.0, 1.0], device=device) + grid = OccupancyGrid(roi_aabb=[0.0, 0.0, 0.0, 0.5, 0.5, 0.5]).to(device) + ray_indices, t_starts, t_ends = ray_marching( + rays_o, rays_d, scene_aabb=scene_aabb, grid=grid, render_step_size=1e-3 + ) + + # Convert t_starts and t_ends to sample locations. + t_mid = (t_starts + t_ends) / 2.0 + sample_locs = rays_o[ray_indices] + t_mid * rays_d[ray_indices] + + """ + if not rays_o.is_cuda: + raise NotImplementedError("Only support cuda inputs.") + if alpha_fn is not None and sigma_fn is not None: + raise ValueError( + "Only one of `alpha_fn` and `sigma_fn` should be provided." + ) + + # logic for t_min and t_max: + # 1. if t_min and t_max are given, use them with highest priority. + # 2. if t_min and t_max are not given, but scene_aabb is given, use + # ray_aabb_intersect to compute t_min and t_max. + # 3. if t_min and t_max are not given, and scene_aabb is not given, + # set t_min to 0.0, and t_max to 1e10. (the case of unbounded scene) + # 4. always clip t_min with near_plane and t_max with far_plane if given. + if t_min is None or t_max is None: + if scene_aabb is not None: + t_min, t_max = ray_aabb_intersect(rays_o, rays_d, scene_aabb) + else: + t_min = torch.zeros_like(rays_o[..., 0]) + t_max = torch.ones_like(rays_o[..., 0]) * 1e10 + if near_plane is not None: + t_min = torch.clamp(t_min, min=near_plane) + if far_plane is not None: + t_max = torch.clamp(t_max, max=far_plane) + + # stratified sampling: prevent overfitting during training + if stratified: + t_min = t_min + torch.rand_like(t_min) * render_step_size + + # use grid for skipping if given + if grid is not None: + grid_roi_aabb = grid.roi_aabb + grid_binary = grid.binary + contraction_type = grid.contraction_type.to_cpp_version() + else: + grid_roi_aabb = torch.tensor( + [-1e10, -1e10, -1e10, 1e10, 1e10, 1e10], + dtype=torch.float32, + device=rays_o.device, + ) + grid_binary = torch.ones( + [1, 1, 1], dtype=torch.bool, device=rays_o.device + ) + contraction_type = ContractionType.AABB.to_cpp_version() + + # marching with grid-based skipping + packed_info, ray_indices, t_starts, t_ends = _C.ray_marching( + # rays + rays_o.contiguous(), + rays_d.contiguous(), + t_min.contiguous(), + t_max.contiguous(), + # coontraction and grid + grid_roi_aabb.contiguous(), + grid_binary.contiguous(), + contraction_type, + # sampling + render_step_size, + cone_angle, + ) + + # skip invisible space + if sigma_fn is not None or alpha_fn is not None: + # Query sigma without gradients + if sigma_fn is not None: + sigmas = sigma_fn(t_starts, t_ends, ray_indices) + assert ( + sigmas.shape == t_starts.shape + ), "sigmas must have shape of (N, 1)! Got {}".format(sigmas.shape) + alphas = 1.0 - torch.exp(-sigmas * (t_ends - t_starts)) + elif alpha_fn is not None: + alphas = alpha_fn(t_starts, t_ends, ray_indices) + assert ( + alphas.shape == t_starts.shape + ), "alphas must have shape of (N, 1)! Got {}".format(alphas.shape) + + # Compute visibility of the samples, and filter out invisible samples + masks = render_visibility( + alphas, + ray_indices=ray_indices, + packed_info=packed_info, + early_stop_eps=early_stop_eps, + alpha_thre=alpha_thre, + n_rays=rays_o.shape[0], + ) + ray_indices, t_starts, t_ends = ( + ray_indices[masks], + t_starts[masks], + t_ends[masks], + ) + + return ray_indices, t_starts, t_ends diff --git a/codes/reconstruction/experiments/ta_deps/nerfacc/sampling.py b/codes/reconstruction/experiments/ta_deps/nerfacc/sampling.py new file mode 100644 index 0000000000000000000000000000000000000000..cc6895ddcd39c3acfe1206dfb81b22aff537e8e2 --- /dev/null +++ b/codes/reconstruction/experiments/ta_deps/nerfacc/sampling.py @@ -0,0 +1,187 @@ +import math +from typing import Callable, Optional, Tuple, Union, overload + +import torch + +import nerfacc.cuda as _C + +from .cdf import ray_resampling +from .grid import Grid +from .pack import pack_info, unpack_info +from .vol_rendering import ( + render_transmittance_from_alpha, + render_weight_from_density, +) + + +@overload +def sample_along_rays( + rays_o: torch.Tensor, # [n_rays, 3] + rays_d: torch.Tensor, # [n_rays, 3] + t_min: torch.Tensor, # [n_rays,] + t_max: torch.Tensor, # [n_rays,] + step_size: float, + cone_angle: float = 0.0, + grid: Optional[Grid] = None, +) -> Tuple[torch.Tensor, torch.Tensor, torch.Tensor]: + """Sample along rays with per-ray min max.""" + ... + + +@overload +def sample_along_rays( + rays_o: torch.Tensor, # [n_rays, 3] + rays_d: torch.Tensor, # [n_rays, 3] + t_min: float, + t_max: float, + step_size: float, + cone_angle: float = 0.0, +) -> Tuple[torch.Tensor, torch.Tensor, torch.Tensor]: + """Sample along rays with near far plane.""" + ... + + +@torch.no_grad() +def sample_along_rays( + rays_o: torch.Tensor, # [n_rays, 3] + rays_d: torch.Tensor, # [n_rays, 3] + t_min: Union[float, torch.Tensor], # [n_rays,] + t_max: Union[float, torch.Tensor], # [n_rays,] + step_size: float, + cone_angle: float = 0.0, + grid: Optional[Grid] = None, +) -> Tuple[torch.Tensor, torch.Tensor, torch.Tensor]: + """Sample intervals along rays.""" + if isinstance(t_min, float) and isinstance(t_max, float): + n_rays = rays_o.shape[0] + device = rays_o.device + num_steps = math.floor((t_max - t_min) / step_size) + t_starts = ( + (t_min + torch.arange(0, num_steps, device=device) * step_size) + .expand(n_rays, -1) + .reshape(-1, 1) + ) + t_ends = t_starts + step_size + ray_indices = torch.arange(0, n_rays, device=device).repeat_interleave( + num_steps, dim=0 + ) + else: + if grid is None: + packed_info, ray_indices, t_starts, t_ends = _C.ray_marching( + # rays + t_min.contiguous(), + t_max.contiguous(), + # sampling + step_size, + cone_angle, + ) + else: + ( + packed_info, + ray_indices, + t_starts, + t_ends, + ) = _C.ray_marching_with_grid( + # rays + rays_o.contiguous(), + rays_d.contiguous(), + t_min.contiguous(), + t_max.contiguous(), + # coontraction and grid + grid.roi_aabb.contiguous(), + grid.binary.contiguous(), + grid.contraction_type.to_cpp_version(), + # sampling + step_size, + cone_angle, + ) + return ray_indices, t_starts, t_ends + + +@torch.no_grad() +def proposal_sampling_with_filter( + t_starts: torch.Tensor, # [n_samples, 1] + t_ends: torch.Tensor, # [n_samples, 1] + ray_indices: torch.Tensor, # [n_samples,] + n_rays: Optional[int] = None, + # compute density of samples: {t_starts, t_ends, ray_indices} -> density + sigma_fn: Optional[Callable] = None, + # proposal density fns: {t_starts, t_ends, ray_indices} -> density + proposal_sigma_fns: Tuple[Callable, ...] = [], + proposal_n_samples: Tuple[int, ...] = [], + proposal_require_grads: bool = False, + # acceleration options + early_stop_eps: float = 1e-4, + alpha_thre: float = 0.0, +) -> Tuple[torch.Tensor, torch.Tensor, torch.Tensor, torch.Tensor]: + """Hueristic marching with proposal fns.""" + assert len(proposal_sigma_fns) == len(proposal_n_samples), ( + "proposal_sigma_fns and proposal_n_samples must have the same length, " + f"but got {len(proposal_sigma_fns)} and {len(proposal_n_samples)}." + ) + if n_rays is None: + n_rays = ray_indices.max() + 1 + + # compute density from proposal fns + proposal_samples = [] + for proposal_fn, n_samples in zip(proposal_sigma_fns, proposal_n_samples): + + # compute weights for resampling + sigmas = proposal_fn(t_starts, t_ends, ray_indices) + assert ( + sigmas.shape == t_starts.shape + ), "sigmas must have shape of (N, 1)! Got {}".format(sigmas.shape) + alphas = 1.0 - torch.exp(-sigmas * (t_ends - t_starts)) + transmittance = render_transmittance_from_alpha( + alphas, ray_indices=ray_indices, n_rays=n_rays + ) + weights = alphas * transmittance + + # Compute visibility for filtering + if alpha_thre > 0 or early_stop_eps > 0: + vis = (alphas >= alpha_thre) & (transmittance >= early_stop_eps) + vis = vis.squeeze(-1) + ray_indices, t_starts, t_ends, weights = ( + ray_indices[vis], + t_starts[vis], + t_ends[vis], + weights[vis], + ) + packed_info = pack_info(ray_indices, n_rays=n_rays) + + # Rerun the proposal function **with** gradients on filtered samples. + if proposal_require_grads: + with torch.enable_grad(): + sigmas = proposal_fn(t_starts, t_ends, ray_indices) + weights = render_weight_from_density( + t_starts, t_ends, sigmas, ray_indices=ray_indices + ) + proposal_samples.append( + (packed_info, t_starts, t_ends, weights) + ) + + # resampling on filtered samples + packed_info, t_starts, t_ends = ray_resampling( + packed_info, t_starts, t_ends, weights, n_samples=n_samples + ) + ray_indices = unpack_info(packed_info, t_starts.shape[0]) + + # last round filtering with sigma_fn + if (alpha_thre > 0 or early_stop_eps > 0) and (sigma_fn is not None): + sigmas = sigma_fn(t_starts, t_ends, ray_indices) + assert ( + sigmas.shape == t_starts.shape + ), "sigmas must have shape of (N, 1)! Got {}".format(sigmas.shape) + alphas = 1.0 - torch.exp(-sigmas * (t_ends - t_starts)) + transmittance = render_transmittance_from_alpha( + alphas, ray_indices=ray_indices, n_rays=n_rays + ) + vis = (alphas >= alpha_thre) & (transmittance >= early_stop_eps) + vis = vis.squeeze(-1) + ray_indices, t_starts, t_ends = ( + ray_indices[vis], + t_starts[vis], + t_ends[vis], + ) + + return ray_indices, t_starts, t_ends, proposal_samples diff --git a/codes/reconstruction/experiments/ta_deps/nerfacc/version.py b/codes/reconstruction/experiments/ta_deps/nerfacc/version.py new file mode 100644 index 0000000000000000000000000000000000000000..97452e92bb8e0796327cb22aac62650a2d760f8d --- /dev/null +++ b/codes/reconstruction/experiments/ta_deps/nerfacc/version.py @@ -0,0 +1,10 @@ +""" +Copyright (c) 2022 Ruilong Li, UC Berkeley. +""" +try: + from importlib.metadata import version +except ImportError: + # Running on pre-3.8 Python; use importlib-metadata package + from importlib_metadata import version + +__version__ = version("nerfacc") diff --git a/codes/reconstruction/experiments/ta_deps/nerfacc/vol_rendering.py b/codes/reconstruction/experiments/ta_deps/nerfacc/vol_rendering.py new file mode 100644 index 0000000000000000000000000000000000000000..193ebd89ddf53b77f2ed8a8e1b2b45e145eabd67 --- /dev/null +++ b/codes/reconstruction/experiments/ta_deps/nerfacc/vol_rendering.py @@ -0,0 +1,670 @@ +""" +Copyright (c) 2022 Ruilong Li, UC Berkeley. +""" + +from typing import Callable, Optional, Tuple + +import torch +from torch import Tensor + +import nerfacc.cuda as _C + +from .pack import pack_info + + +def rendering( + # ray marching results + t_starts: torch.Tensor, + t_ends: torch.Tensor, + ray_indices: torch.Tensor, + n_rays: int, + # radiance field + rgb_sigma_fn: Optional[Callable] = None, + rgb_alpha_fn: Optional[Callable] = None, + # rendering options + render_bkgd: Optional[torch.Tensor] = None, +) -> Tuple[torch.Tensor, torch.Tensor, torch.Tensor]: + """Render the rays through the radience field defined by `rgb_sigma_fn`. + + This function is differentiable to the outputs of `rgb_sigma_fn` so it can + be used for gradient-based optimization. + + Note: + Either `rgb_sigma_fn` or `rgb_alpha_fn` should be provided. + + Warning: + This function is not differentiable to `t_starts`, `t_ends` and `ray_indices`. + + Args: + t_starts: Per-sample start distance. Tensor with shape (n_samples, 1). + t_ends: Per-sample end distance. Tensor with shape (n_samples, 1). + ray_indices: Ray index of each sample. IntTensor with shape (n_samples). + n_rays: Total number of rays. This will decide the shape of the ouputs. + rgb_sigma_fn: A function that takes in samples {t_starts (N, 1), t_ends (N, 1), \ + ray indices (N,)} and returns the post-activation rgb (N, 3) and density \ + values (N, 1). + rgb_alpha_fn: A function that takes in samples {t_starts (N, 1), t_ends (N, 1), \ + ray indices (N,)} and returns the post-activation rgb (N, 3) and opacity \ + values (N, 1). + render_bkgd: Optional. Background color. Tensor with shape (3,). + + Returns: + Ray colors (n_rays, 3), opacities (n_rays, 1) and depths (n_rays, 1). + + Examples: + + .. code-block:: python + + >>> rays_o = torch.rand((128, 3), device="cuda:0") + >>> rays_d = torch.randn((128, 3), device="cuda:0") + >>> rays_d = rays_d / rays_d.norm(dim=-1, keepdim=True) + >>> ray_indices, t_starts, t_ends = ray_marching( + >>> rays_o, rays_d, near_plane=0.1, far_plane=1.0, render_step_size=1e-3) + >>> def rgb_sigma_fn(t_starts, t_ends, ray_indices): + >>> # This is a dummy function that returns random values. + >>> rgbs = torch.rand((t_starts.shape[0], 3), device="cuda:0") + >>> sigmas = torch.rand((t_starts.shape[0], 1), device="cuda:0") + >>> return rgbs, sigmas + >>> colors, opacities, depths = rendering( + >>> t_starts, t_ends, ray_indices, n_rays=128, rgb_sigma_fn=rgb_sigma_fn) + >>> print(colors.shape, opacities.shape, depths.shape) + torch.Size([128, 3]) torch.Size([128, 1]) torch.Size([128, 1]) + + """ + if rgb_sigma_fn is None and rgb_alpha_fn is None: + raise ValueError( + "At least one of `rgb_sigma_fn` and `rgb_alpha_fn` should be specified." + ) + + # Query sigma/alpha and color with gradients + if rgb_sigma_fn is not None: + rgbs, sigmas = rgb_sigma_fn(t_starts, t_ends, ray_indices) + assert rgbs.shape[-1] == 3, "rgbs must have 3 channels, got {}".format( + rgbs.shape + ) + assert ( + sigmas.shape == t_starts.shape + ), "sigmas must have shape of (N, 1)! Got {}".format(sigmas.shape) + # Rendering: compute weights. + weights = render_weight_from_density( + t_starts, + t_ends, + sigmas, + ray_indices=ray_indices, + n_rays=n_rays, + ) + elif rgb_alpha_fn is not None: + rgbs, alphas = rgb_alpha_fn(t_starts, t_ends, ray_indices) + assert rgbs.shape[-1] == 3, "rgbs must have 3 channels, got {}".format( + rgbs.shape + ) + assert ( + alphas.shape == t_starts.shape + ), "alphas must have shape of (N, 1)! Got {}".format(alphas.shape) + # Rendering: compute weights. + weights = render_weight_from_alpha( + alphas, + ray_indices=ray_indices, + n_rays=n_rays, + ) + + # Rendering: accumulate rgbs, opacities, and depths along the rays. + colors = accumulate_along_rays( + weights, ray_indices, values=rgbs, n_rays=n_rays + ) + opacities = accumulate_along_rays( + weights, ray_indices, values=None, n_rays=n_rays + ) + depths = accumulate_along_rays( + weights, + ray_indices, + values=(t_starts + t_ends) / 2.0, + n_rays=n_rays, + ) + + # Background composition. + if render_bkgd is not None: + colors = colors + render_bkgd * (1.0 - opacities) + + return colors, opacities, depths + + +def accumulate_along_rays( + weights: Tensor, + ray_indices: Tensor, + values: Optional[Tensor] = None, + n_rays: Optional[int] = None, +) -> Tensor: + """Accumulate volumetric values along the ray. + + Note: + This function is only differentiable to `weights` and `values`. + + Args: + weights: Volumetric rendering weights for those samples. Tensor with shape \ + (n_samples,). + ray_indices: Ray index of each sample. LongTensor with shape (n_samples). + values: The values to be accmulated. Tensor with shape (n_samples, D). If \ + None, the accumulated values are just weights. Default is None. + n_rays: Total number of rays. This will decide the shape of the ouputs. If \ + None, it will be inferred from `ray_indices.max() + 1`. If specified \ + it should be at least larger than `ray_indices.max()`. Default is None. + + Returns: + Accumulated values with shape (n_rays, D). If `values` is not given then we return \ + the accumulated weights, in which case D == 1. + + Examples: + + .. code-block:: python + + # Rendering: accumulate rgbs, opacities, and depths along the rays. + colors = accumulate_along_rays(weights, ray_indices, values=rgbs, n_rays=n_rays) + opacities = accumulate_along_rays(weights, ray_indices, values=None, n_rays=n_rays) + depths = accumulate_along_rays( + weights, + ray_indices, + values=(t_starts + t_ends) / 2.0, + n_rays=n_rays, + ) + # (n_rays, 3), (n_rays, 1), (n_rays, 1) + print(colors.shape, opacities.shape, depths.shape) + + """ + assert ray_indices.dim() == 1 and weights.dim() == 2 + if not weights.is_cuda: + raise NotImplementedError("Only support cuda inputs.") + if values is not None: + assert ( + values.dim() == 2 and values.shape[0] == weights.shape[0] + ), "Invalid shapes: {} vs {}".format(values.shape, weights.shape) + src = weights * values + else: + src = weights + + if ray_indices.numel() == 0: + assert n_rays is not None + return torch.zeros((n_rays, src.shape[-1]), device=weights.device) + + if n_rays is None: + n_rays = int(ray_indices.max()) + 1 + # assert n_rays > ray_indices.max() + + index = ray_indices[:, None].expand(-1, src.shape[-1]) + outputs = torch.zeros( + (n_rays, src.shape[-1]), device=src.device, dtype=src.dtype + ) + outputs.scatter_add_(0, index, src) + return outputs + + +def render_transmittance_from_density( + t_starts: Tensor, + t_ends: Tensor, + sigmas: Tensor, + *, + packed_info: Optional[torch.Tensor] = None, + ray_indices: Optional[torch.Tensor] = None, + n_rays: Optional[int] = None, +) -> Tensor: + """Compute transmittance :math:`T_i` from density :math:`\\sigma_i`. + + .. math:: + T_i = exp(-\\sum_{j=1}^{i-1}\\sigma_j\delta_j) + + Note: + Either `ray_indices` or `packed_info` should be provided. If `ray_indices` is + provided, CUB acceleration will be used if available (CUDA >= 11.6). Otherwise, + we will use the naive implementation with `packed_info`. + + Args: + t_starts: Where the frustum-shape sample starts along a ray. Tensor with \ + shape (n_samples, 1). + t_ends: Where the frustum-shape sample ends along a ray. Tensor with \ + shape (n_samples, 1). + sigmas: The density values of the samples. Tensor with shape (n_samples, 1). + packed_info: Optional. Stores information on which samples belong to the same ray. \ + See :func:`nerfacc.ray_marching` for details. LongTensor with shape (n_rays, 2). + ray_indices: Optional. Ray index of each sample. LongTensor with shape (n_sample). + n_rays: Optional. Number of rays. Only useful when `ray_indices` is provided yet \ + CUB acceleration is not available. We will implicitly convert `ray_indices` to \ + `packed_info` and use the naive implementation. If not provided, we will infer \ + it from `ray_indices` but it will be slower. + + Returns: + The rendering transmittance. Tensor with shape (n_sample, 1). + + Examples: + + .. code-block:: python + + >>> t_starts = torch.tensor( + >>> [[0.0], [1.0], [2.0], [3.0], [4.0], [5.0], [6.0]], device="cuda") + >>> t_ends = torch.tensor( + >>> [[1.0], [2.0], [3.0], [4.0], [5.0], [6.0], [7.0]], device="cuda") + >>> sigmas = torch.tensor( + >>> [[0.4], [0.8], [0.1], [0.8], [0.1], [0.0], [0.9]], device="cuda") + >>> ray_indices = torch.tensor([0, 0, 0, 1, 1, 2, 2], device="cuda") + >>> transmittance = render_transmittance_from_density( + >>> t_starts, t_ends, sigmas, ray_indices=ray_indices) + [[1.00], [0.67], [0.30], [1.00], [0.45], [1.00], [1.00]] + + """ + assert ( + ray_indices is not None or packed_info is not None + ), "Either ray_indices or packed_info should be provided." + if ray_indices is not None and _C.is_cub_available(): + transmittance = _RenderingTransmittanceFromDensityCUB.apply( + ray_indices, t_starts, t_ends, sigmas + ) + else: + if packed_info is None: + packed_info = pack_info(ray_indices, n_rays=n_rays) + transmittance = _RenderingTransmittanceFromDensityNaive.apply( + packed_info, t_starts, t_ends, sigmas + ) + return transmittance + + +def render_transmittance_from_alpha( + alphas: Tensor, + *, + packed_info: Optional[torch.Tensor] = None, + ray_indices: Optional[torch.Tensor] = None, + n_rays: Optional[int] = None, +) -> Tensor: + """Compute transmittance :math:`T_i` from alpha :math:`\\alpha_i`. + + .. math:: + T_i = \\prod_{j=1}^{i-1}(1-\\alpha_j) + + Note: + Either `ray_indices` or `packed_info` should be provided. If `ray_indices` is + provided, CUB acceleration will be used if available (CUDA >= 11.6). Otherwise, + we will use the naive implementation with `packed_info`. + + Args: + alphas: The opacity values of the samples. Tensor with shape (n_samples, 1). + packed_info: Optional. Stores information on which samples belong to the same ray. \ + See :func:`nerfacc.ray_marching` for details. LongTensor with shape (n_rays, 2). + ray_indices: Optional. Ray index of each sample. LongTensor with shape (n_sample). + n_rays: Optional. Number of rays. Only useful when `ray_indices` is provided yet \ + CUB acceleration is not available. We will implicitly convert `ray_indices` to \ + `packed_info` and use the naive implementation. If not provided, we will infer \ + it from `ray_indices` but it will be slower. + + Returns: + The rendering transmittance. Tensor with shape (n_sample, 1). + + Examples: + + .. code-block:: python + + >>> alphas = torch.tensor( + >>> [[0.4], [0.8], [0.1], [0.8], [0.1], [0.0], [0.9]], device="cuda")) + >>> ray_indices = torch.tensor([0, 0, 0, 1, 1, 2, 2], device="cuda") + >>> transmittance = render_transmittance_from_alpha(alphas, ray_indices=ray_indices) + tensor([[1.0], [0.6], [0.12], [1.0], [0.2], [1.0], [1.0]]) + + """ + assert ( + ray_indices is not None or packed_info is not None + ), "Either ray_indices or packed_info should be provided." + if ray_indices is not None and _C.is_cub_available(): + transmittance = _RenderingTransmittanceFromAlphaCUB.apply( + ray_indices, alphas + ) + else: + if packed_info is None: + packed_info = pack_info(ray_indices, n_rays=n_rays) + transmittance = _RenderingTransmittanceFromAlphaNaive.apply( + packed_info, alphas + ) + return transmittance + + +def render_weight_from_density( + t_starts: Tensor, + t_ends: Tensor, + sigmas: Tensor, + *, + packed_info: Optional[torch.Tensor] = None, + ray_indices: Optional[torch.Tensor] = None, + n_rays: Optional[int] = None, +) -> torch.Tensor: + """Compute rendering weights :math:`w_i` from density :math:`\\sigma_i` and interval :math:`\\delta_i`. + + .. math:: + w_i = T_i(1 - exp(-\\sigma_i\delta_i)), \\quad\\textrm{where}\\quad T_i = exp(-\\sum_{j=1}^{i-1}\\sigma_j\delta_j) + + Note: + Either `ray_indices` or `packed_info` should be provided. If `ray_indices` is + provided, CUB acceleration will be used if available (CUDA >= 11.6). Otherwise, + we will use the naive implementation with `packed_info`. + + Args: + t_starts: Where the frustum-shape sample starts along a ray. Tensor with \ + shape (n_samples, 1). + t_ends: Where the frustum-shape sample ends along a ray. Tensor with \ + shape (n_samples, 1). + sigmas: The density values of the samples. Tensor with shape (n_samples, 1). + packed_info: Optional. Stores information on which samples belong to the same ray. \ + See :func:`nerfacc.ray_marching` for details. LongTensor with shape (n_rays, 2). + ray_indices: Optional. Ray index of each sample. LongTensor with shape (n_sample). + n_rays: Optional. Number of rays. Only useful when `ray_indices` is provided yet \ + CUB acceleration is not available. We will implicitly convert `ray_indices` to \ + `packed_info` and use the naive implementation. If not provided, we will infer \ + it from `ray_indices` but it will be slower. + + Returns: + The rendering weights. Tensor with shape (n_sample, 1). + + Examples: + + .. code-block:: python + + >>> t_starts = torch.tensor( + >>> [[0.0], [1.0], [2.0], [3.0], [4.0], [5.0], [6.0]], device="cuda") + >>> t_ends = torch.tensor( + >>> [[1.0], [2.0], [3.0], [4.0], [5.0], [6.0], [7.0]], device="cuda") + >>> sigmas = torch.tensor( + >>> [[0.4], [0.8], [0.1], [0.8], [0.1], [0.0], [0.9]], device="cuda") + >>> ray_indices = torch.tensor([0, 0, 0, 1, 1, 2, 2], device="cuda") + >>> weights = render_weight_from_density( + >>> t_starts, t_ends, sigmas, ray_indices=ray_indices) + [[0.33], [0.37], [0.03], [0.55], [0.04], [0.00], [0.59]] + + """ + assert ( + ray_indices is not None or packed_info is not None + ), "Either ray_indices or packed_info should be provided." + if ray_indices is not None and _C.is_cub_available(): + transmittance = _RenderingTransmittanceFromDensityCUB.apply( + ray_indices, t_starts, t_ends, sigmas + ) + alphas = 1.0 - torch.exp(-sigmas * (t_ends - t_starts)) + weights = transmittance * alphas + else: + if packed_info is None: + packed_info = pack_info(ray_indices, n_rays=n_rays) + weights = _RenderingWeightFromDensityNaive.apply( + packed_info, t_starts, t_ends, sigmas + ) + return weights + + +def render_weight_from_alpha( + alphas: Tensor, + *, + packed_info: Optional[torch.Tensor] = None, + ray_indices: Optional[torch.Tensor] = None, + n_rays: Optional[int] = None, +) -> torch.Tensor: + """Compute rendering weights :math:`w_i` from opacity :math:`\\alpha_i`. + + .. math:: + w_i = T_i\\alpha_i, \\quad\\textrm{where}\\quad T_i = \\prod_{j=1}^{i-1}(1-\\alpha_j) + + Note: + Either `ray_indices` or `packed_info` should be provided. If `ray_indices` is + provided, CUB acceleration will be used if available (CUDA >= 11.6). Otherwise, + we will use the naive implementation with `packed_info`. + + Args: + alphas: The opacity values of the samples. Tensor with shape (n_samples, 1). + packed_info: Optional. Stores information on which samples belong to the same ray. \ + See :func:`nerfacc.ray_marching` for details. LongTensor with shape (n_rays, 2). + ray_indices: Optional. Ray index of each sample. LongTensor with shape (n_sample). + n_rays: Optional. Number of rays. Only useful when `ray_indices` is provided yet \ + CUB acceleration is not available. We will implicitly convert `ray_indices` to \ + `packed_info` and use the naive implementation. If not provided, we will infer \ + it from `ray_indices` but it will be slower. + + Returns: + The rendering weights. Tensor with shape (n_sample, 1). + + Examples: + + .. code-block:: python + + >>> alphas = torch.tensor( + >>> [[0.4], [0.8], [0.1], [0.8], [0.1], [0.0], [0.9]], device="cuda")) + >>> ray_indices = torch.tensor([0, 0, 0, 1, 1, 2, 2], device="cuda") + >>> weights = render_weight_from_alpha(alphas, ray_indices=ray_indices) + tensor([[0.4], [0.48], [0.012], [0.8], [0.02], [0.0], [0.9]]) + + """ + assert ( + ray_indices is not None or packed_info is not None + ), "Either ray_indices or packed_info should be provided." + if ray_indices is not None and _C.is_cub_available(): + transmittance = _RenderingTransmittanceFromAlphaCUB.apply( + ray_indices, alphas + ) + weights = transmittance * alphas + else: + if packed_info is None: + packed_info = pack_info(ray_indices, n_rays=n_rays) + weights = _RenderingWeightFromAlphaNaive.apply(packed_info, alphas) + return weights + + +@torch.no_grad() +def render_visibility( + alphas: torch.Tensor, + *, + ray_indices: Optional[torch.Tensor] = None, + packed_info: Optional[torch.Tensor] = None, + n_rays: Optional[int] = None, + early_stop_eps: float = 1e-4, + alpha_thre: float = 0.0, +) -> torch.Tensor: + """Filter out transparent and occluded samples. + + In this function, we first compute the transmittance from the sample opacity. The + transmittance is then used to filter out occluded samples. And opacity is used to + filter out transparent samples. The function returns a boolean tensor indicating + which samples are visible (`transmittance > early_stop_eps` and `opacity > alpha_thre`). + + Note: + Either `ray_indices` or `packed_info` should be provided. If `ray_indices` is + provided, CUB acceleration will be used if available (CUDA >= 11.6). Otherwise, + we will use the naive implementation with `packed_info`. + + Args: + alphas: The opacity values of the samples. Tensor with shape (n_samples, 1). + packed_info: Optional. Stores information on which samples belong to the same ray. \ + See :func:`nerfacc.ray_marching` for details. LongTensor with shape (n_rays, 2). + ray_indices: Optional. Ray index of each sample. LongTensor with shape (n_sample). + n_rays: Optional. Number of rays. Only useful when `ray_indices` is provided yet \ + CUB acceleration is not available. We will implicitly convert `ray_indices` to \ + `packed_info` and use the naive implementation. If not provided, we will infer \ + it from `ray_indices` but it will be slower. + early_stop_eps: The early stopping threshold on transmittance. + alpha_thre: The threshold on opacity. + + Returns: + The visibility of each sample. Tensor with shape (n_samples, 1). + + Examples: + + .. code-block:: python + + >>> alphas = torch.tensor( + >>> [[0.4], [0.8], [0.1], [0.8], [0.1], [0.0], [0.9]], device="cuda") + >>> ray_indices = torch.tensor([0, 0, 0, 1, 1, 2, 2], device="cuda") + >>> transmittance = render_transmittance_from_alpha(alphas, ray_indices=ray_indices) + tensor([[1.0], [0.6], [0.12], [1.0], [0.2], [1.0], [1.0]]) + >>> visibility = render_visibility( + >>> alphas, ray_indices=ray_indices, early_stop_eps=0.3, alpha_thre=0.2) + tensor([True, True, False, True, False, False, True]) + + """ + assert ( + ray_indices is not None or packed_info is not None + ), "Either ray_indices or packed_info should be provided." + if ray_indices is not None and _C.is_cub_available(): + transmittance = _RenderingTransmittanceFromAlphaCUB.apply( + ray_indices, alphas + ) + else: + if packed_info is None: + packed_info = pack_info(ray_indices, n_rays=n_rays) + transmittance = _RenderingTransmittanceFromAlphaNaive.apply( + packed_info, alphas + ) + visibility = transmittance >= early_stop_eps + if alpha_thre > 0: + visibility = visibility & (alphas >= alpha_thre) + visibility = visibility.squeeze(-1) + return visibility + + +class _RenderingTransmittanceFromDensityCUB(torch.autograd.Function): + """Rendering transmittance from density with CUB implementation.""" + + @staticmethod + def forward(ctx, ray_indices, t_starts, t_ends, sigmas): + ray_indices = ray_indices.contiguous() + t_starts = t_starts.contiguous() + t_ends = t_ends.contiguous() + sigmas = sigmas.contiguous() + transmittance = _C.transmittance_from_sigma_forward_cub( + ray_indices, t_starts, t_ends, sigmas + ) + if ctx.needs_input_grad[3]: + ctx.save_for_backward(ray_indices, t_starts, t_ends, transmittance) + return transmittance + + @staticmethod + def backward(ctx, transmittance_grads): + transmittance_grads = transmittance_grads.contiguous() + ray_indices, t_starts, t_ends, transmittance = ctx.saved_tensors + grad_sigmas = _C.transmittance_from_sigma_backward_cub( + ray_indices, t_starts, t_ends, transmittance, transmittance_grads + ) + return None, None, None, grad_sigmas + + +class _RenderingTransmittanceFromDensityNaive(torch.autograd.Function): + """Rendering transmittance from density with naive forloop.""" + + @staticmethod + def forward(ctx, packed_info, t_starts, t_ends, sigmas): + packed_info = packed_info.contiguous() + t_starts = t_starts.contiguous() + t_ends = t_ends.contiguous() + sigmas = sigmas.contiguous() + transmittance = _C.transmittance_from_sigma_forward_naive( + packed_info, t_starts, t_ends, sigmas + ) + if ctx.needs_input_grad[3]: + ctx.save_for_backward(packed_info, t_starts, t_ends, transmittance) + return transmittance + + @staticmethod + def backward(ctx, transmittance_grads): + transmittance_grads = transmittance_grads.contiguous() + packed_info, t_starts, t_ends, transmittance = ctx.saved_tensors + grad_sigmas = _C.transmittance_from_sigma_backward_naive( + packed_info, t_starts, t_ends, transmittance, transmittance_grads + ) + return None, None, None, grad_sigmas + + +class _RenderingTransmittanceFromAlphaCUB(torch.autograd.Function): + """Rendering transmittance from opacity with CUB implementation.""" + + @staticmethod + def forward(ctx, ray_indices, alphas): + ray_indices = ray_indices.contiguous() + alphas = alphas.contiguous() + transmittance = _C.transmittance_from_alpha_forward_cub( + ray_indices, alphas + ) + if ctx.needs_input_grad[1]: + ctx.save_for_backward(ray_indices, transmittance, alphas) + return transmittance + + @staticmethod + def backward(ctx, transmittance_grads): + transmittance_grads = transmittance_grads.contiguous() + ray_indices, transmittance, alphas = ctx.saved_tensors + grad_alphas = _C.transmittance_from_alpha_backward_cub( + ray_indices, alphas, transmittance, transmittance_grads + ) + return None, grad_alphas + + +class _RenderingTransmittanceFromAlphaNaive(torch.autograd.Function): + """Rendering transmittance from opacity with naive forloop.""" + + @staticmethod + def forward(ctx, packed_info, alphas): + packed_info = packed_info.contiguous() + alphas = alphas.contiguous() + transmittance = _C.transmittance_from_alpha_forward_naive( + packed_info, alphas + ) + if ctx.needs_input_grad[1]: + ctx.save_for_backward(packed_info, transmittance, alphas) + return transmittance + + @staticmethod + def backward(ctx, transmittance_grads): + transmittance_grads = transmittance_grads.contiguous() + packed_info, transmittance, alphas = ctx.saved_tensors + grad_alphas = _C.transmittance_from_alpha_backward_naive( + packed_info, alphas, transmittance, transmittance_grads + ) + return None, grad_alphas + + +class _RenderingWeightFromDensityNaive(torch.autograd.Function): + """Rendering weight from density with naive forloop.""" + + @staticmethod + def forward(ctx, packed_info, t_starts, t_ends, sigmas): + packed_info = packed_info.contiguous() + t_starts = t_starts.contiguous() + t_ends = t_ends.contiguous() + sigmas = sigmas.contiguous() + weights = _C.weight_from_sigma_forward_naive( + packed_info, t_starts, t_ends, sigmas + ) + if ctx.needs_input_grad[3]: + ctx.save_for_backward( + packed_info, t_starts, t_ends, sigmas, weights + ) + return weights + + @staticmethod + def backward(ctx, grad_weights): + grad_weights = grad_weights.contiguous() + packed_info, t_starts, t_ends, sigmas, weights = ctx.saved_tensors + grad_sigmas = _C.weight_from_sigma_backward_naive( + weights, grad_weights, packed_info, t_starts, t_ends, sigmas + ) + return None, None, None, grad_sigmas + + +class _RenderingWeightFromAlphaNaive(torch.autograd.Function): + """Rendering weight from opacity with naive forloop.""" + + @staticmethod + def forward(ctx, packed_info, alphas): + packed_info = packed_info.contiguous() + alphas = alphas.contiguous() + weights = _C.weight_from_alpha_forward_naive(packed_info, alphas) + if ctx.needs_input_grad[1]: + ctx.save_for_backward(packed_info, alphas, weights) + return weights + + @staticmethod + def backward(ctx, grad_weights): + grad_weights = grad_weights.contiguous() + packed_info, alphas, weights = ctx.saved_tensors + grad_alphas = _C.weight_from_alpha_backward_naive( + weights, grad_weights, packed_info, alphas + ) + return None, grad_alphas