You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from multiprocessing.pool import ThreadPool as Pool
pool = Pool(8)
def convert_off2binvox(off):
binname = off.split('.')[0] + '.binvox'
if os.path.exists(binname):
print(binname, "exits, continue...")
return
os.system(f'./binvox -d 32 -cb {off}')
for c in CLASSES:
for split in ['test', 'train']:
list_offs = glob.glob(os.path.join(DATA_ROOT, c, split, '*.off'))
pool.map(convert_off2binvox, list_offs)
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: