Github link: https://github.com/pmiiller/chairGeneration
- Run
python clean_meshes.pyin order to clean the training data- Must be run before anything else!
python main.pyto generate a single chair with a random templatepython main.py <chairDirectoryName>to generate a single chair with a specified templatepython main.py allto generate a chair for all templates and then score thempython main.py evalto evaluate a sample of already generated chairspython main.py loadto load all templates again and create a new pickle filepython main.py clusterto create clustering of the parts and create a new pickle file of partspython main.py scorerto run the validation for the scorer- This runs the evaluation script on chairs generated using our method which we separated into two sets; "good" chairs and "bad" chairs. Good chairs on average should have a higher score than bad chairs.
- Important: After running
scoreror modifying the input chair data, you need to empty thenew_chair_bmp,new_chair_obj, andranked_chair_objfolders before runningallor the jupyter notebook. Not doing so may lead to unexpected behaviour.
Download the LeChairs scorer from here.
Requirements:
- Python 3.*
- LeChairs
- Modified versions of the LeChairs training and evaluation scripts are already included in the repo
- Trimesh
- Installation:
pip3 install trimesh- show() requires pyglet:
pip3 install pyglet - trimesh.registration package requires rtree
pip3 install rtree,sudo apt install python3-rtree
- Installation:
- Run
pip3 install -r requirementsto install the needed pip requirements