This is for Linux - but shouldnt be hard to modify for any other OS.
The file rename.py takes all bottom level files in ShapeNetCore.v2 and renames them according to their actual names.
- Download ShapeNetCore.v2
- Extract and cd into ShapeNetCore.v2 folder
- Clone this repository in that folder
- Create file shapenet_models in your Downloads folder
- Modify these lines in rename.py :
directory = '~/Downloads/ShapeNetCore.v2/'
dest = os.path.join("~/Downloads/shapenet_models")- Download the metadata files from ShapeNet (you will find a few .csv files for the metadata that I have used already)
- Paste special into a spreadsheet and make comma separated (like the csv files here)
- Make sure that the names dont have any difficult to handle characters (e.g. "/")
- Run with > python rename.py: This should rename all files and copy the obj and mtl across to the
/shapenet_modelsfolder