Skip to content

Commit e91631d

Browse files
authored
Update data.py
1 parent 5215ef5 commit e91631d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

exps/exp_assemble/data.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ def __init__(self, category, data_dir, data_features, data_split='train', \
2929
# load data
3030
self.data = []
3131
if 'Chair-mixed' in self.category or'Table-mixed' in self.category:
32-
self.data_path = os.path.join('/orion/u/liyichen/assembly/assembly/assembly/stats/train_test_splits/{}-{}.txt'.format(self.category[:11], self.data_split))
32+
self.data_path = os.path.join('../../stats/train_test_splits/{}-{}.txt'.format(self.category[:11], self.data_split))
3333
elif 'Chair-3' in self.category or'Table-3' in self.category:
34-
self.data_path = os.path.join('/orion/u/liyichen/assembly/assembly/assembly/stats/train_test_splits/{}-{}.txt'.format(self.category[:7], self.data_split))
34+
self.data_path = os.path.join('../../stats/train_test_splits/{}-{}.txt'.format(self.category[:7], self.data_split))
3535
elif 'StorageFurniture-3' in self.category:
36-
self.data_path = os.path.join('/orion/u/liyichen/assembly/assembly/assembly/stats/train_test_splits/{}-{}.txt'.format(self.category[:18], self.data_split))
36+
self.data_path = os.path.join('../../stats/train_test_splits/{}-{}.txt'.format(self.category[:18], self.data_split))
3737
else:
38-
self.data_path = os.path.join('/orion/u/liyichen/assembly/assembly/assembly/stats/train_test_splits/{}-{}.txt'.format(self.category[:22], self.data_split))
38+
self.data_path = os.path.join('../../stats/train_test_splits/{}-{}.txt'.format(self.category[:22], self.data_split))
3939

4040
with open(self.data_path, 'r') as f:
4141
for line in f:
@@ -47,7 +47,7 @@ def __init__(self, category, data_dir, data_features, data_split='train', \
4747
self.part_sems = []
4848
self.part_sem2id = dict()
4949
if not 'mixed' in self.category:
50-
with open(os.path.join('/orion/u/kaichun/projects/assembly/stats/part_semantics/', self.category.split('-')[0]+'-level-'+ self.category.split('-')[1]+'.txt'), 'r') as fin:
50+
with open(os.path.join('../../stats/part_semantics/', self.category.split('-')[0]+'-level-'+ self.category.split('-')[1]+'.txt'), 'r') as fin:
5151
for i, l in enumerate(fin.readlines()):
5252
_, part_sem, _ = l.rstrip().split()
5353
self.part_sems.append(part_sem)

0 commit comments

Comments
 (0)