Skip to main content

ReTexture dataset toolkit for generation and analysis

Project description

retexture

using blender to augment 3d model textures

Installation

  1. clone the repo (more instructions later)
  2. pip install -r requirements.txt

Installing blender

  • MacOS: brew install blender
  • Unix: apt-get install blender

Install via script

see ./install.sh

Dataset Setup

place all models in datasets/models and place textures in datasets/textures like so:

datasets
├── models
│   ├── bird1.dae
│   ├── bird_duck.dae
│   ├── bird_duck2.dae
│   ├── bird_eagle.dae
│   ├── bird_raven.dae
│   ├── butterfly.dae
│   ├── butterfly1.dae
│   ...
├── datasets/textures
│   ├── _fish_bass
│   │   ├── Sketchy_Lines_Wavy_45_A.jpg
│   │   ├── __Chalk_1.jpg
│   │   ├── __Sketchy_Scales_1.jpg
│   │   ├── __Wavy_Lines_45deg_A_1.jpg
│   │   ├── material_1.jpg
│   │   ├── material_2.jpg
│   │   ├── material_3.jpg
│   │   └── material_5.jpg
│   ├── bird_duck
│   │   └── mallard_male1.jpg
│   ├── bird_duck2
│   │   └── Color_000.JPG
│   ...

Run

./run.sh

TODO:

  • ./run.sh <config>

NOTES

gpu rendering does not work (easily)

  • in the current state, a black image is created
  • blender provides lower level gpu support... see docs

external libraries arediscouraged

  • blender uses its own python distro & environment
  • used sys.path.insert as a workaround
  • custom packages do not work with blender (TBD)

argparse conflicts with blender commandline arguments

  • hydra also conflicts
  • might be better to nix the configurations or read statically from a config.yaml

memory required increases with job runtime

  • maybe blender keeps a history of all operations?
  • consider splitting jobs into batches

Problems

  • bounding box centering doesnt work

Project details


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.0.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

retexture-0.1.0-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

Details for the file retexture-0.1.0.tar.gz.

File metadata

  • Download URL: retexture-0.1.0.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.6

File hashes

Hashes for retexture-0.1.0.tar.gz
Algorithm Hash digest
SHA256 809fa70eccda418218fd4444e21e7bd11190c0a2ac3dc5f499bd79dd7ec894fe
MD5 697d88d6bdbece0a29e9a2382f17f717
BLAKE2b-256 bc831c55c02bcc69ecc68b0d27ace214effeb2224d801326302d000b8f72fda3

See more details on using hashes here.

File details

Details for the file retexture-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: retexture-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.6

File hashes

Hashes for retexture-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dc9d77eb99cd96c27ccd82e121ebad730e4fb6e8693429bde22e63f520c2ec02
MD5 08bade109a937f4319e99a748ac73b9e
BLAKE2b-256 f4975b0432635dd4044fa34ab0da5d784d0c4f28b59f719e7219f6624efc86c8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page