Skip to content
Permalink
Browse files

First commit.

  • Loading branch information...
skanti committed Jan 25, 2019
0 parents commit 269b123fbd54762b1a01fc58b137edd2248796f1
Showing with 10,767 additions and 0 deletions.
  1. +30 −0 .gitignore
  2. +1 −0 ...ts/output-network/example/scene0470_00_03001627_b4371c352f96c4d5a6fee8e2140acec9_1_0/gt-match.txt
  3. +1 −0 ...ts/output-network/example/scene0470_00_03001627_b4371c352f96c4d5a6fee8e2140acec9_1_0/gt-scale.txt
  4. +1 −0 ...tput-network/example/scene0470_00_03001627_b4371c352f96c4d5a6fee8e2140acec9_1_0/predict-match.txt
  5. +1 −0 ...tput-network/example/scene0470_00_03001627_b4371c352f96c4d5a6fee8e2140acec9_1_0/predict-scale.txt
  6. +1 −0 ...ts/output-network/example/scene0470_00_03001627_b4371c352f96c4d5a6fee8e2140acec9_1_1/gt-match.txt
  7. +1 −0 ...ts/output-network/example/scene0470_00_03001627_b4371c352f96c4d5a6fee8e2140acec9_1_1/gt-scale.txt
  8. +1 −0 ...tput-network/example/scene0470_00_03001627_b4371c352f96c4d5a6fee8e2140acec9_1_1/predict-match.txt
  9. +1 −0 ...tput-network/example/scene0470_00_03001627_b4371c352f96c4d5a6fee8e2140acec9_1_1/predict-scale.txt
  10. +1 −0 ...ts/output-network/example/scene0470_00_03001627_b4371c352f96c4d5a6fee8e2140acec9_1_2/gt-match.txt
  11. +1 −0 ...ts/output-network/example/scene0470_00_03001627_b4371c352f96c4d5a6fee8e2140acec9_1_2/gt-scale.txt
  12. +1 −0 ...tput-network/example/scene0470_00_03001627_b4371c352f96c4d5a6fee8e2140acec9_1_2/predict-match.txt
  13. +1 −0 ...tput-network/example/scene0470_00_03001627_b4371c352f96c4d5a6fee8e2140acec9_1_2/predict-scale.txt
  14. +1 −0 ...ts/output-network/example/scene0470_00_03001627_b4371c352f96c4d5a6fee8e2140acec9_1_3/gt-match.txt
  15. +1 −0 ...ts/output-network/example/scene0470_00_03001627_b4371c352f96c4d5a6fee8e2140acec9_1_3/gt-scale.txt
  16. +1 −0 ...tput-network/example/scene0470_00_03001627_b4371c352f96c4d5a6fee8e2140acec9_1_3/predict-match.txt
  17. +1 −0 ...tput-network/example/scene0470_00_03001627_b4371c352f96c4d5a6fee8e2140acec9_1_3/predict-scale.txt
  18. +1 −0 ...ts/output-network/example/scene0470_00_03001627_b4371c352f96c4d5a6fee8e2140acec9_1_4/gt-match.txt
  19. +1 −0 ...ts/output-network/example/scene0470_00_03001627_b4371c352f96c4d5a6fee8e2140acec9_1_4/gt-scale.txt
  20. +1 −0 ...tput-network/example/scene0470_00_03001627_b4371c352f96c4d5a6fee8e2140acec9_1_4/predict-match.txt
  21. +1 −0 ...tput-network/example/scene0470_00_03001627_b4371c352f96c4d5a6fee8e2140acec9_1_4/predict-scale.txt
  22. +1 −0 ...ts/output-network/example/scene0470_00_03001627_b4371c352f96c4d5a6fee8e2140acec9_1_5/gt-match.txt
  23. +1 −0 ...ts/output-network/example/scene0470_00_03001627_b4371c352f96c4d5a6fee8e2140acec9_1_5/gt-scale.txt
  24. +1 −0 ...tput-network/example/scene0470_00_03001627_b4371c352f96c4d5a6fee8e2140acec9_1_5/predict-match.txt
  25. +1 −0 ...tput-network/example/scene0470_00_03001627_b4371c352f96c4d5a6fee8e2140acec9_1_5/predict-scale.txt
  26. +1 −0 ...ts/output-network/example/scene0470_00_03001627_b4371c352f96c4d5a6fee8e2140acec9_1_6/gt-match.txt
  27. +1 −0 ...ts/output-network/example/scene0470_00_03001627_b4371c352f96c4d5a6fee8e2140acec9_1_6/gt-scale.txt
  28. +1 −0 ...tput-network/example/scene0470_00_03001627_b4371c352f96c4d5a6fee8e2140acec9_1_6/predict-match.txt
  29. +1 −0 ...tput-network/example/scene0470_00_03001627_b4371c352f96c4d5a6fee8e2140acec9_1_6/predict-scale.txt
  30. +1 −0 ...ts/output-network/example/scene0470_00_03001627_b4371c352f96c4d5a6fee8e2140acec9_1_7/gt-match.txt
  31. +1 −0 ...ts/output-network/example/scene0470_00_03001627_b4371c352f96c4d5a6fee8e2140acec9_1_7/gt-scale.txt
  32. +1 −0 ...tput-network/example/scene0470_00_03001627_b4371c352f96c4d5a6fee8e2140acec9_1_7/predict-match.txt
  33. +1 −0 ...tput-network/example/scene0470_00_03001627_b4371c352f96c4d5a6fee8e2140acec9_1_7/predict-scale.txt
  34. +3 −0 Assets/scannet-sample/README.md
  35. +11 −0 Assets/scannet-voxelized-sdf-sample/README.md
  36. +1 −0 Assets/shapenet-sample/02747177/85d8a1ad55fa646878725384d6baf445/models/model_normalized.json
  37. +19 −0 Assets/shapenet-sample/02747177/85d8a1ad55fa646878725384d6baf445/models/model_normalized.mtl
  38. BIN ...ts/shapenet-sample/02747177/85d8a1ad55fa646878725384d6baf445/models/model_normalized.solid.binvox
  39. BIN .../shapenet-sample/02747177/85d8a1ad55fa646878725384d6baf445/models/model_normalized.surface.binvox
  40. +1 −0 Assets/shapenet-sample/03001627/235c8ef29ef5fc5bafd49046c1129780/models/model_normalized.json
  41. +30 −0 Assets/shapenet-sample/03001627/235c8ef29ef5fc5bafd49046c1129780/models/model_normalized.mtl
  42. BIN ...ts/shapenet-sample/03001627/235c8ef29ef5fc5bafd49046c1129780/models/model_normalized.solid.binvox
  43. BIN .../shapenet-sample/03001627/235c8ef29ef5fc5bafd49046c1129780/models/model_normalized.surface.binvox
  44. +1 −0 Assets/shapenet-sample/03001627/2c03bcb2a133ce28bb6caad47eee6580/models/model_normalized.json
  45. +66 −0 Assets/shapenet-sample/03001627/2c03bcb2a133ce28bb6caad47eee6580/models/model_normalized.mtl
  46. BIN ...ts/shapenet-sample/03001627/2c03bcb2a133ce28bb6caad47eee6580/models/model_normalized.solid.binvox
  47. BIN .../shapenet-sample/03001627/2c03bcb2a133ce28bb6caad47eee6580/models/model_normalized.surface.binvox
  48. +1 −0 Assets/shapenet-sample/03001627/b4371c352f96c4d5a6fee8e2140acec9/models/model_normalized.json
  49. +21 −0 Assets/shapenet-sample/03001627/b4371c352f96c4d5a6fee8e2140acec9/models/model_normalized.mtl
  50. BIN ...ts/shapenet-sample/03001627/b4371c352f96c4d5a6fee8e2140acec9/models/model_normalized.solid.binvox
  51. BIN .../shapenet-sample/03001627/b4371c352f96c4d5a6fee8e2140acec9/models/model_normalized.surface.binvox
  52. BIN Assets/shapenet-sample/03001627/bdc892547cceb2ef34dedfee80b7006/images/texture0.jpg
  53. +1 −0 Assets/shapenet-sample/03001627/bdc892547cceb2ef34dedfee80b7006/models/model_normalized.json
  54. +76 −0 Assets/shapenet-sample/03001627/bdc892547cceb2ef34dedfee80b7006/models/model_normalized.mtl
  55. BIN Assets/shapenet-sample/03001627/bdc892547cceb2ef34dedfee80b7006/models/model_normalized.solid.binvox
  56. BIN ...s/shapenet-sample/03001627/bdc892547cceb2ef34dedfee80b7006/models/model_normalized.surface.binvox
  57. BIN Assets/shapenet-sample/04379243/142060f848466cad97ef9a13efb5e3f7/images/texture0.jpg
  58. +1 −0 Assets/shapenet-sample/04379243/142060f848466cad97ef9a13efb5e3f7/models/model_normalized.json
  59. +31 −0 Assets/shapenet-sample/04379243/142060f848466cad97ef9a13efb5e3f7/models/model_normalized.mtl
  60. BIN ...ts/shapenet-sample/04379243/142060f848466cad97ef9a13efb5e3f7/models/model_normalized.solid.binvox
  61. BIN .../shapenet-sample/04379243/142060f848466cad97ef9a13efb5e3f7/models/model_normalized.surface.binvox
  62. +3 −0 Assets/shapenet-sample/README.md
  63. BIN ...ized-df-sample/02747177/85d8a1ad55fa646878725384d6baf445/85d8a1ad55fa646878725384d6baf445__0__.df
  64. BIN ...ized-df-sample/03001627/235c8ef29ef5fc5bafd49046c1129780/235c8ef29ef5fc5bafd49046c1129780__0__.df
  65. BIN ...ized-df-sample/03001627/2c03bcb2a133ce28bb6caad47eee6580/2c03bcb2a133ce28bb6caad47eee6580__0__.df
  66. BIN ...ized-df-sample/03001627/b4371c352f96c4d5a6fee8e2140acec9/b4371c352f96c4d5a6fee8e2140acec9__0__.df
  67. BIN ...elized-df-sample/03001627/bdc892547cceb2ef34dedfee80b7006/bdc892547cceb2ef34dedfee80b7006__0__.df
  68. BIN ...ized-df-sample/04379243/142060f848466cad97ef9a13efb5e3f7/142060f848466cad97ef9a13efb5e3f7__0__.df
  69. +11 −0 Assets/shapenet-voxelized-df-sample/README.md
  70. +11 −0 Assets/training-data/CAD-heatmaps-sample/README.md
  71. BIN Assets/training-data/CAD-heatmaps-sample/screencap.png
  72. +11 −0 Assets/training-data/scan-centers-sample/README.md
  73. BIN Assets/training-data/scan-centers-sample/screencap.png
  74. +1 −0 Assets/training-data/trainset.json
  75. +83 −0 LICENSE.txt
  76. +96 −0 README.md
  77. +1,417 −0 Routines/Base/Colormap.h
  78. +84 −0 Routines/Base/LoaderMesh.h
  79. +113 −0 Routines/Base/LoaderVOX.h
  80. +46 −0 Routines/Base/SE3.h
  81. +12 −0 Routines/Base/Types.h
  82. +4,173 −0 Routines/Base/args.hxx
  83. +2,253 −0 Routines/Base/tiny_obj_loader.h
  84. +359 −0 Routines/Base/tinyply.cpp
  85. +886 −0 Routines/Base/tinyply.h
  86. +42 −0 Routines/CropCentered/Box.h
  87. +70 −0 Routines/CropCentered/CropCentered.cpp
  88. +7 −0 Routines/CropCentered/makefile
  89. +40 −0 Routines/Keypoints2Grid/Keypoints2Grid.cpp
  90. +7 −0 Routines/Keypoints2Grid/makefile
  91. +137 −0 Routines/Script/Alignment2Mesh.py
  92. +143 −0 Routines/Script/Annotation2Mesh.py
  93. +29 −0 Routines/Script/CSVHelper.py
  94. +93 −0 Routines/Script/GenerateCorrespondences.py
  95. +9 −0 Routines/Script/JSONHelper.py
  96. +22 −0 Routines/Script/ParameterParser.py
  97. +6 −0 Routines/Script/Parameters.csv
  98. +2 −0 Routines/Script/dummy_alignment.csv
  99. +74 −0 Routines/Vox2Mesh/Box3D.h
  100. +195 −0 Routines/Vox2Mesh/main.cpp
  101. +7 −0 Routines/Vox2Mesh/makefile
@@ -0,0 +1,30 @@
# hidden files
.*


# generated
output
build
tmp
bin
lib
__*
*.vox
*.vox2
*.dat
*.ply
*.xyz
main
*.pth
*.pyc
*.obj
*.sdfpdf
*.so
**/scripts/*.txt
**/scripts/*.csv
trash


# exception
!.gitignore

@@ -0,0 +1 @@
1.000000000000000000e+00
@@ -0,0 +1 @@
1.170632958412170410e+00 1.294426441192626953e+00 1.040270447731018066e+00
@@ -0,0 +1 @@
9.899581074714660645e-01
@@ -0,0 +1 @@
1.197121620178222656e+00 1.349952340126037598e+00 1.045978188514709473e+00
@@ -0,0 +1 @@
1.000000000000000000e+00
@@ -0,0 +1 @@
1.170632958412170410e+00 1.294426441192626953e+00 1.040270447731018066e+00
@@ -0,0 +1 @@
9.900924563407897949e-01
@@ -0,0 +1 @@
1.208856344223022461e+00 1.345862984657287598e+00 1.066655993461608887e+00
@@ -0,0 +1 @@
1.000000000000000000e+00
@@ -0,0 +1 @@
1.170632958412170410e+00 1.294426441192626953e+00 1.040270447731018066e+00
@@ -0,0 +1 @@
9.889606833457946777e-01
@@ -0,0 +1 @@
1.163449764251708984e+00 1.336189389228820801e+00 1.072164416313171387e+00
@@ -0,0 +1 @@
1.000000000000000000e+00
@@ -0,0 +1 @@
1.170632958412170410e+00 1.294426441192626953e+00 1.040270447731018066e+00
@@ -0,0 +1 @@
9.859927892684936523e-01
@@ -0,0 +1 @@
1.191770672798156738e+00 1.363279223442077637e+00 1.054899692535400391e+00
@@ -0,0 +1 @@
1.000000000000000000e+00
@@ -0,0 +1 @@
1.170632958412170410e+00 1.294426441192626953e+00 1.040270447731018066e+00
@@ -0,0 +1 @@
9.833688139915466309e-01
@@ -0,0 +1 @@
1.201740384101867676e+00 1.345368862152099609e+00 1.052455782890319824e+00
@@ -0,0 +1 @@
1.000000000000000000e+00
@@ -0,0 +1 @@
1.170632958412170410e+00 1.294426441192626953e+00 1.040270447731018066e+00
@@ -0,0 +1 @@
9.751532077789306641e-01
@@ -0,0 +1 @@
1.208956956863403320e+00 1.332263827323913574e+00 1.097433805465698242e+00
@@ -0,0 +1 @@
1.000000000000000000e+00
@@ -0,0 +1 @@
1.170632958412170410e+00 1.294426441192626953e+00 1.040270447731018066e+00
@@ -0,0 +1 @@
9.807243347167968750e-01
@@ -0,0 +1 @@
1.204083919525146484e+00 1.275143504142761230e+00 1.120163321495056152e+00
@@ -0,0 +1 @@
1.000000000000000000e+00
@@ -0,0 +1 @@
1.170632958412170410e+00 1.294426441192626953e+00 1.040270447731018066e+00
@@ -0,0 +1 @@
9.855291247367858887e-01
@@ -0,0 +1 @@
1.133564114570617676e+00 1.230769395828247070e+00 1.026218175888061523e+00
@@ -0,0 +1,3 @@
# Info

This contains one sample scene from ScanNet. In particular this contains the reconstruction in form of a mesh (.ply) and the semantic labels (.labels.ply)
@@ -0,0 +1,11 @@
# Info

This folder contains a sample SDF voxel grid from a ScanNet mesh. From such a .vox file you can generate a .ply file which you can view in Meshlab.

## vox file

To transform a .vox file to a .ply file do:

```Routines/Vox2Mesh/main --in file.vox --out file.ply ```
The generated .ply file and the oiginal ScanNet mesh should exactly overlap the coordinate system is the same. Pull both meshes (original.ply and voxelized file.ply) into Meshlab to view.
@@ -0,0 +1 @@
{"max": [0.18415, 0.392906, 0.118563], "centroid": [-4.336808689942018e-18, 0.2613315408750007, -0.008437255357142872], "id": "85d8a1ad55fa646878725384d6baf445", "numVertices": 672, "min": [-0.18415, 0.0, -0.135437]}
@@ -0,0 +1,19 @@
# File produced by Open Asset Import Library (http://www.assimp.sf.net)
# (assimp v3.2.202087883)

newmtl material_0_0
Kd 0 0 0
Ka 0 0 0
Ks 0.4 0.4 0.4
Ke 0 0 0
Ns 10
illum 2

newmtl material_0_24
Kd 1 1 1
Ka 0 0 0
Ks 0.4 0.4 0.4
Ke 0 0 0
Ns 10
illum 2

Binary file not shown.
Binary file not shown.
@@ -0,0 +1 @@
{"max": [0.162005, 1.61319, -2.07323], "centroid": [-0.46061848394965776, 0.7330415389993824, -2.557694164077067], "id": "235c8ef29ef5fc5bafd49046c1129780", "numVertices": 3218, "min": [-1.08767, 0.0, -3.26195]}
@@ -0,0 +1,30 @@
# File produced by Open Asset Import Library (http://www.assimp.sf.net)
# (assimp v3.2.202087883)

newmtl material0
Kd 0.439216 0.439216 0.439216
Ka 0 0 0
Ks 0.33 0.33 0.33
Ke 0 0 0
d 1
Ns 20
illum 2

newmtl material1
Kd 0.070588 0.054902 0.043137
Ka 0 0 0
Ks 0.33 0.33 0.33
Ke 0 0 0
d 1
Ns 20
illum 2

newmtl material2
Kd 0.101961 0.101961 0.101961
Ka 0 0 0
Ks 0.33 0.33 0.33
Ke 0 0 0
d 1
Ns 20
illum 2

Binary file not shown.
Binary file not shown.
@@ -0,0 +1 @@
{"max": [0.278804, 0.917284, 0.3302], "centroid": [0.00564188968637993, 0.12493896953405123, 0.043981982293906784], "id": "2c03bcb2a133ce28bb6caad47eee6580", "numVertices": 1116, "min": [-0.29667, -0.10795, -0.29667]}
@@ -0,0 +1,66 @@
# File produced by Open Asset Import Library (http://www.assimp.sf.net)
# (assimp v3.2.202087883)

newmtl ForegroundColor
Kd 0 0 0
Ka 0 0 0
Ks 0.33 0.33 0.33
Ke 0 0 0
d 1
Ns 20
illum 2

newmtl FrontColorNoCulling
Kd 1 1 1
Ka 0 0 0
Ks 0.33 0.33 0.33
Ke 0 0 0
d 1
Ns 20
illum 2

newmtl material0
Kd 0.337255 0.337255 0.337255
Ka 0 0 0
Ks 0.33 0.33 0.33
Ke 0 0 0
d 1
Ns 20
illum 2

newmtl material1
Kd 0.556863 0.556863 0.556863
Ka 0 0 0
Ks 0.33 0.33 0.33
Ke 0 0 0
d 1
Ns 20
illum 2

newmtl material2
Kd 0.227451 0.227451 0.227451
Ka 0 0 0
Ks 0.33 0.33 0.33
Ke 0 0 0
d 1
Ns 20
illum 2

newmtl material3
Kd 0.666667 0.666667 0.666667
Ka 0 0 0
Ks 0.33 0.33 0.33
Ke 0 0 0
d 1
Ns 20
illum 2

newmtl material4
Kd 0.886275 0.886275 0.886275
Ka 0 0 0
Ks 0.33 0.33 0.33
Ke 0 0 0
d 1
Ns 20
illum 2

Binary file not shown.
Binary file not shown.
@@ -0,0 +1 @@
{"max": [0.600863, 0.807996, 0.0], "centroid": [0.3010301122244487, 0.3297953807615228, -0.29844012424849703], "id": "b4371c352f96c4d5a6fee8e2140acec9", "numVertices": 499, "min": [0.0, 0.0, -0.627881]}
@@ -0,0 +1,21 @@
# File produced by Open Asset Import Library (http://www.assimp.sf.net)
# (assimp v3.2.202087883)

newmtl material_0_0
Kd 0 0 0
Ka 0 0 0
Ks 0.4 0.4 0.4
Ke 0 0 0
d 1
Ns 10
illum 2

newmtl material_0_24
Kd 0.882353 0.882353 0.784314
Ka 0 0 0
Ks 0.4 0.4 0.4
Ke 0 0 0
d 1
Ns 10
illum 2

Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1 @@
{"max": [0.006221, 0.994111, 0.25698], "centroid": [-0.3248243997785168, 0.36619239756367533, -0.04262353599114051], "id": "bdc892547cceb2ef34dedfee80b7006", "numVertices": 2709, "min": [-0.689646, 0.006863, -0.383723]}
@@ -0,0 +1,76 @@
# File produced by Open Asset Import Library (http://www.assimp.sf.net)
# (assimp v3.2.202087883)

newmtl material_0_24
Kd 0.219608 0.219608 0.219608
Ka 0 0 0
Ks 0.4 0.4 0.4
Ke 0 0 0
Ns 10
illum 2

newmtl material_1_24
Kd 0 0 0
Ka 0 0 0
Ks 0.4 0.4 0.4
Ke 0 0 0
Ns 10
illum 2

newmtl material_2_1_8
Kd 1 1 1
Ka 0 0 0
Ks 0.4 0.4 0.4
Ke 0 0 0
Ns 10
illum 2
map_Kd ../images/texture0.jpg

newmtl material_3_24
Kd 0.52549 0.321569 0.05098
Ka 0 0 0
Ks 0.4 0.4 0.4
Ke 0 0 0
Ns 10
illum 2

newmtl material_4_0
Kd 0 0 0
Ka 0 0 0
Ks 0.4 0.4 0.4
Ke 0 0 0
Ns 10
illum 2

newmtl material_5_24
Kd 0.419608 0.419608 0.419608
Ka 0 0 0
Ks 0.4 0.4 0.4
Ke 0 0 0
Ns 10
illum 2

newmtl material_6_24
Kd 0.776471 0.776471 0.776471
Ka 0 0 0
Ks 0.4 0.4 0.4
Ke 0 0 0
Ns 10
illum 2

newmtl material_7_24
Kd 0.219608 0.219608 0.219608
Ka 0 0 0
Ks 0.4 0.4 0.4
Ke 0 0 0
Ns 10
illum 2

newmtl material_8_24
Kd 0.188235 0.188235 0.188235
Ka 0 0 0
Ks 0.4 0.4 0.4
Ke 0 0 0
Ns 10
illum 2

Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1 @@
{"max": [-0.704111, 0.827087, -0.23708], "centroid": [-1.201524556756756, 0.4722941243243246, -0.7344931891891887], "id": "142060f848466cad97ef9a13efb5e3f7", "numVertices": 185, "min": [-1.69894, 0.0, -1.23191]}
@@ -0,0 +1,31 @@
# File produced by Open Asset Import Library (http://www.assimp.sf.net)
# (assimp v3.2.202087883)

newmtl material_0_1_8
Kd 1 1 1
Ka 0 0 0
Ks 0.4 0.4 0.4
Ke 0 0 0
d 1
Ns 10
illum 2
map_Kd ../images/texture0.jpg

newmtl material_1_0
Kd 0 0 0
Ka 0 0 0
Ks 0.4 0.4 0.4
Ke 0 0 0
d 1
Ns 10
illum 2

newmtl material_1_24
Kd 1 1 1
Ka 0 0 0
Ks 0.4 0.4 0.4
Ke 0 0 0
d 1
Ns 10
illum 2

Binary file not shown.
Binary file not shown.
@@ -0,0 +1,3 @@
# Info

This folder contains some ShapeNet models (they come as .obj format). ShapeNet folder structure is ```category/modelId/```.
@@ -0,0 +1,11 @@
# Info

This folder contains some voxelized (.df) ShapeNet models. ShapeNet folder structure is ```category/modelId/```.

# df file

To transform a .df file to a .ply file do:

```Routines/Vox2Mesh/main --in file.df --out file.ply --is_unitless 1```
The generated .ply file and the oiginal ShapeNet mesh should exactly overlap the coordinate system is the same. Pull both meshes (original.obj and voxelized file.ply) into Meshlab to view.

0 comments on commit 269b123

Please sign in to comment.
You can’t perform that action at this time.