Skip to main content

retexture

ReTexture dataset toolkit for generation and analysis

Installation

  1. clone the repo git clone "https://github.com/mhyatt000/retexture"
  2. 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

see configs/base.yaml

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.append as a workaround

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

Metadata

Release files for retexture 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for retexture 0.1.1
File Size Uploaded Provenance Actions
retexture-0.1.1.tar.gz 4.7 kB Without provenance Details for retexture-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for retexture 0.1.1
File Interpreter ABI Platform Actions
retexture-0.1.1-py3-none-any.whl Python 3 none any Details for retexture-0.1.1-py3-none-any.whl

Total release size: 10.0 kB

Release files / retexture-0.1.1.tar.gz

Download URL retexture-0.1.1.tar.gz
Size 4.7 kB
Tags Source
SHA-256 checksum
How to use checksums
1f75baa83bbb7c5182a4cdd3b64ca6dafac6a7af815bdb97f661eed00dce8c5b
BLAKE2b-256 checksum
How to use checksums
1456cc2333f5aa0d4dcb29f2609ecbc8123ef782b8c6125b9771a12268ce9f18
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.6

Release files / retexture-0.1.1-py3-none-any.whl

Download URL retexture-0.1.1-py3-none-any.whl
Size 5.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a26a9712fce488501481241e0376489027b4767f6c943cd2a6bedfa502bb8a9b
BLAKE2b-256 checksum
How to use checksums
4850b139e1980d7f79d77c59f392d45704431d20caa970d4ba2ae27d74b378a8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.6

Security for retexture 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page