ReTexture dataset toolkit for generation and analysis
Project description
retexture
ReTexture dataset toolkit for generation and analysis
Installation
- clone the repo
git clone "https://github.com/mhyatt000/retexture" pip install -e .
Installing blender
- MacOS:
brew install blender - Unix:
apt-get install blender
Install Blender via script
see retexture/scripts/setup/install_blender.sh
Dataset Setup
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
│ ...
Config Setup
Run
python -m retexture run
NOTES and Design Choices
Blender is incompatible with external python libraries
- Blender uses its own distribution of Python
- does not allow changes to site packages (without weird hacks)
- ie: using
sys.path.appendas a workaround
- ie: using
Argparse conflicts with blender commandline arguments
Solution:
blender -b -P <script.py> -- <args>
GPU rendering seems to cause problems
- 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
Memory required increases with job runtime
- Blender keeps a history of all operations
Solution:
- Render jobs are split into batches
- Master script spins off Blender processes with the child script
Known Problems
- Bounding box centering fails occasionally
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
retexture-0.1.1.tar.gz
(4.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file retexture-0.1.1.tar.gz.
File metadata
- Download URL: retexture-0.1.1.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1f75baa83bbb7c5182a4cdd3b64ca6dafac6a7af815bdb97f661eed00dce8c5b
|
|
| MD5 |
74ce297133c90118348a5db6f99a521d
|
|
| BLAKE2b-256 |
1456cc2333f5aa0d4dcb29f2609ecbc8123ef782b8c6125b9771a12268ce9f18
|
File details
Details for the file retexture-0.1.1-py3-none-any.whl.
File metadata
- Download URL: retexture-0.1.1-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a26a9712fce488501481241e0376489027b4767f6c943cd2a6bedfa502bb8a9b
|
|
| MD5 |
b0cd1723a1c2eca9021ead1577a7706e
|
|
| BLAKE2b-256 |
4850b139e1980d7f79d77c59f392d45704431d20caa970d4ba2ae27d74b378a8
|