ReTexture dataset toolkit for generation and analysis
- clone the repo
git clone "https://github.com/mhyatt000/retexture"
pip install -e .
- MacOS:
brew install blender
- Unix:
apt-get install blender
see retexture/scripts/setup/install_blender.sh
place all models in datasets/models
and place textures in datasets/textures
like so:
datasets
├── models
│ ├── bird1.dae
│ ├── butterfly1.dae
│ ...
├── datasets/textures
│ ├── bird1.jpg
│ ├── butterfly1.png
│ ...
python -m retexture run
- Blender uses its own distribution of Python
- does not allow changes to site packages (without weird hacks)
- ie: using
sys.path.append
as a workaround
- ie: using
Solution:
blender -b -P <script.py> -- <args>
- Yields a black image
- could be due to external servers having limited GUI
- could be due to problems with the GPU and CUDA compatible libraries
- Blender provides lower level gpu support... see Blender Official Docs
- Blender keeps a history of all operations
Solution:
- Render jobs are split into batches
- Master script spins off Blender processes with the child script
- Bounding box centering fails occasionally