-
Notifications
You must be signed in to change notification settings - Fork 305
Description
If I have understood everything correctly the generate_data.py file generates the .xyz files in the rendering folder. But these files can't be used for training yet. They need to be converted to .dat files.
In another issue I read that the .dat files are just a binary wrapper for the .xyz files and you should use pickle to create them. But if I use pickle as following:
import pickle
import numpy as np
content = []
with open('00.xyz', 'r') as f:
for line in f.readlines():
content.append(line.split(' '))
with open('00.dat', 'wb') as f:
pickle.dump(content, f)
the created .dat file looks different.
If you open a .dat file from the ShapeNet training data provided from the developers via google drive you see that every .dat file starts with
cnumpy.core.multiarray
_reconstruct
but my generated .dat file doesn't.
A snippet of a code which converts the .xyz files into .dat files that are usable for training would be great.
Does anyone know what I am doing wrong ?
Thanks in advance.