Skip to content

Commit e5cce15

Browse files
authored
push to origin
1 parent 2f67a1b commit e5cce15

File tree

7 files changed

+121
-0
lines changed

7 files changed

+121
-0
lines changed

.gitmodules

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
[submodule "sampling_and_meshing/PoissonRecon"]
2+
path = sampling_and_meshing/PoissonRecon
3+
url = https://github.com/mkazhdan/PoissonRecon
4+
branch = master
5+
[submodule "sampling_and_meshing/O-CNN"]
6+
path = sampling_and_meshing/O-CNN
7+
url = https://github.com/palanglois/O-CNN.git
8+
branch = master
9+
[submodule "extension"]
10+
path = extension
11+
url = https://github.com/ThibaultGROUEIX/chamfer_pytorch
12+
[submodule "ChamferDistancePytorch"]
13+
path = ChamferDistancePytorch
14+
url = https://github.com/ThibaultGROUEIX/ChamferDistancePytorch
15+
[submodule "vcglib"]
16+
path = vcglib
17+
url = https://github.com/cnr-isti-vclab/vcglib.git
18+
[submodule "auxiliary/ChamferDistancePytorch"]
19+
path = auxiliary/ChamferDistancePytorch
20+
url = https://github.com/ThibaultGROUEIX/ChamferDistancePytorch
21+
[submodule "auxiliary/sampling_and_meshing/O-CNN"]
22+
path = auxiliary/sampling_and_meshing/O-CNN
23+
url = https://github.com/palanglois/O-CNN.git
24+
[submodule "auxiliary/sampling_and_meshing/PoissonRecon"]
25+
path = auxiliary/sampling_and_meshing/PoissonRecon
26+
url = https://github.com/mkazhdan/PoissonRecon.git
27+
[submodule "auxiliary/netvision"]
28+
path = auxiliary/netvision
29+
url = https://github.com/palanglois/netvision.git

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2019 ThibaultGROUEIX
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

chamfer.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/cluster/home/sejinkim/miniconda3/envs/atlasnet/bin/nvcc -I/cluster/home/sejinkim/miniconda3/envs/atlasnet/lib/python3.6/site-packages/torch/include -I/cluster/home/sejinkim/miniconda3/envs/atlasnet/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/cluster/home/sejinkim/miniconda3/envs/atlasnet/lib/python3.6/site-packages/torch/include/TH -I/cluster/home/sejinkim/miniconda3/envs/atlasnet/lib/python3.6/site-packages/torch/include/THC -I/cluster/home/sejinkim/miniconda3/envs/atlasnet/include/python3.6m -c -c /cluster/home/sejinkim/projects/AtlasNet/auxiliary/ChamferDistancePytorch/chamfer3D/chamfer3D.cu -o /cluster/home/sejinkim/projects/AtlasNet/build/temp.linux-x86_64-3.6/auxiliary/ChamferDistancePytorch/chamfer3D/chamfer3D.o -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_BFLOAT16_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=chamfer_3D -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_61,code=compute_61 -gencode=arch=compute_61,code=sm_61 -std=c++14

models.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
2214155: 02021-04-03T16:25:08.091652
2+
* 9 hexagons
3+
4+
2214150: 02021-04-03T16:16:07.162028
5+
* 9 hexagons
6+
7+
2214157: 02021-04-03T16:25:39.079993
8+
* 9 squares
9+
10+
2214148: 02021-04-03T16:12:40.192672
11+
* 9 squares

requirements.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
easydict
2+
joblib
3+
matplotlib
4+
ninja
5+
numpy
6+
scipy
7+
termcolor
8+
tornado
9+
urllib3
10+
visdom
11+
websocket-client
12+
https://github.com/PyMesh/PyMesh/releases/download/v0.2.1/pymesh2-0.2.1-cp36-cp36m-linux_x86_64.whl

test.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python train.py --demo --demo_input_path dataset/data/ShapeNetV1PointCloud/02691156/10155655850468db78d106ce0a280f87.points.ply.npy --reload_model_path log/02021-04-03T16\:25\:08.091652/network.pth

train.py

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
import sys
2+
import auxiliary.argument_parser as argument_parser
3+
import auxiliary.my_utils as my_utils
4+
import time
5+
import torch
6+
from auxiliary.my_utils import yellow_print
7+
8+
"""
9+
Main training script.
10+
author : Thibault Groueix 01.11.2019
11+
"""
12+
13+
opt = argument_parser.parser()
14+
torch.cuda.set_device(opt.multi_gpu[0])
15+
#torch.cuda.set_device(0)
16+
my_utils.plant_seeds(random_seed=opt.random_seed)
17+
import training.trainer as trainer
18+
19+
trainer = trainer.Trainer(opt)
20+
trainer.build_dataset()
21+
trainer.build_network()
22+
trainer.build_optimizer()
23+
trainer.build_losses()
24+
trainer.start_train_time = time.time()
25+
26+
if opt.demo:
27+
with torch.no_grad():
28+
trainer.demo(opt.demo_input_path)
29+
sys.exit(0)
30+
31+
if opt.run_single_eval:
32+
with torch.no_grad():
33+
trainer.test_epoch()
34+
sys.exit(0)
35+
36+
for epoch in range(trainer.epoch, opt.nepoch):
37+
trainer.train_epoch()
38+
with torch.no_grad():
39+
trainer.test_epoch()
40+
trainer.dump_stats()
41+
trainer.increment_epoch()
42+
trainer.save_network()
43+
44+
yellow_print(f"Visdom url http://localhost:{trainer.opt.visdom_port}/")
45+
yellow_print(f"Netvision report url http://localhost:{trainer.opt.http_port}/{trainer.opt.dir_name}/index.html")
46+
yellow_print(f"Training time {(time.time() - trainer.start_time)//60} minutes.")

0 commit comments

Comments
 (0)