Skip to content

Commit 0ce9a4b

Browse files
committed
change folder structure
1 parent f8049f5 commit 0ce9a4b

File tree

15 files changed

+32
-18
lines changed

15 files changed

+32
-18
lines changed

build.sh

Lines changed: 0 additions & 1 deletion
This file was deleted.

datasets.py renamed to pointnet/dataset.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import os.path
55
import torch
66
import numpy as np
7+
import sys
78

89
class PartDataset(data.Dataset):
910
def __init__(self,
@@ -86,13 +87,14 @@ def __len__(self):
8687

8788

8889
if __name__ == '__main__':
90+
datapath = sys.argv[1]
8991
print('test')
90-
d = PartDataset(root = 'shapenetcore_partanno_segmentation_benchmark_v0', class_choice = ['Chair'])
92+
d = PartDataset(root = datapath, class_choice = ['Chair'])
9193
print(len(d))
9294
ps, seg = d[0]
9395
print(ps.size(), ps.type(), seg.size(),seg.type())
9496

95-
d = PartDataset(root = 'shapenetcore_partanno_segmentation_benchmark_v0', classification = True)
97+
d = PartDataset(root = datapath, classification = True)
9698
print(len(d))
9799
ps, cls = d[0]
98100
print(ps.size(), ps.type(), cls.size(),cls.type())
File renamed without changes.

scripts/build.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
SCRIPT=`realpath $0`
2+
SCRIPTPATH=`dirname $SCRIPT`
3+
echo $SCRIPTPATH
4+
5+
g++ -std=c++11 $SCRIPTPATH/../utils/render_balls_so.cpp -o $SCRIPTPATH/../utils/render_balls_so.so -shared -fPIC -O2 -D_GLIBCXX_USE_CXX11_ABI=0
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
SCRIPT=`realpath $0`
2+
SCRIPTPATH=`dirname $SCRIPT`
3+
4+
cd $SCRIPTPATH/..
15
wget https://shapenet.cs.stanford.edu/ericyi/shapenetcore_partanno_segmentation_benchmark_v0.zip --no-check-certificate
26
unzip shapenetcore_partanno_segmentation_benchmark_v0.zip
37
rm shapenetcore_partanno_segmentation_benchmark_v0.zip
8+
cd -

setup.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# install using 'pip install -e .'
2+
3+
from setuptools import setup
4+
5+
setup(name='pointnet',
6+
packages=['pointnet'],
7+
package_dir={'pointnet': 'pointnet'},
8+
install_requires=['torch'],
9+
version='0.0.1')

show_seg.sh

Lines changed: 0 additions & 2 deletions
This file was deleted.

train_cls.sh

Lines changed: 0 additions & 2 deletions
This file was deleted.

train_seg.sh

Lines changed: 0 additions & 2 deletions
This file was deleted.
File renamed without changes.

0 commit comments

Comments
 (0)