retexture


Nameretexture JSON
Version 0.1.0 PyPI version JSON
download
home_pagehttps://github.com/mhyatt000/retexture
SummaryReTexture dataset toolkit for generation and analysis
upload_time2023-12-06 20:46:54
maintainer
docs_urlNone
authorMatt Hyatt
requires_python>=3.8
licenseMIT License Copyright (c) 2023 Matthew Hyatt Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords keyword1 keyword2
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # retexture
using blender to augment 3d model textures

<table>
  <tr>
    <td><img src="assets/output1.gif" alt="" width="400"/></td>
    <td><img src="assets/output2.gif" alt="" width="400"/></td>
  </tr>
  <tr>
    <td><img src="assets/output3.gif" alt="" width="400"/></td>
    <td><img src="assets/output4.gif" alt="" width="400"/></td>
  </tr>
</table>

## 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](https://docs.blender.org/api/current/gpu.html)

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

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/mhyatt000/retexture",
    "name": "retexture",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "",
    "keywords": "keyword1,keyword2",
    "author": "Matt Hyatt",
    "author_email": "Matthew Hyatt <mhyatt000@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/bc/83/1c55c02bcc69ecc68b0d27ace214effeb2224d801326302d000b8f72fda3/retexture-0.1.0.tar.gz",
    "platform": null,
    "description": "# retexture\nusing blender to augment 3d model textures\n\n<table>\n  <tr>\n    <td><img src=\"assets/output1.gif\" alt=\"\" width=\"400\"/></td>\n    <td><img src=\"assets/output2.gif\" alt=\"\" width=\"400\"/></td>\n  </tr>\n  <tr>\n    <td><img src=\"assets/output3.gif\" alt=\"\" width=\"400\"/></td>\n    <td><img src=\"assets/output4.gif\" alt=\"\" width=\"400\"/></td>\n  </tr>\n</table>\n\n## Installation\n\n1. clone the repo (more instructions later)\n2. `pip install -r requirements.txt`\n\n### Installing blender\n\n* MacOS: `brew install blender`\n* Unix: `apt-get install blender`\n\n### Install via script\n\nsee `./install.sh`\n\n## Dataset Setup\n\nplace all models in `datasets/models` and place textures in `datasets/textures` like so:\n\n```\ndatasets\n\u251c\u2500\u2500 models\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 bird1.dae\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 bird_duck.dae\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 bird_duck2.dae\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 bird_eagle.dae\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 bird_raven.dae\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 butterfly.dae\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 butterfly1.dae\n\u2502\u00a0\u00a0 ...\n\u251c\u2500\u2500 datasets/textures\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 _fish_bass\n\u2502\u00a0\u00a0 \u2502\u00a0\u00a0 \u251c\u2500\u2500 Sketchy_Lines_Wavy_45_A.jpg\n\u2502\u00a0\u00a0 \u2502\u00a0\u00a0 \u251c\u2500\u2500 __Chalk_1.jpg\n\u2502\u00a0\u00a0 \u2502\u00a0\u00a0 \u251c\u2500\u2500 __Sketchy_Scales_1.jpg\n\u2502\u00a0\u00a0 \u2502\u00a0\u00a0 \u251c\u2500\u2500 __Wavy_Lines_45deg_A_1.jpg\n\u2502\u00a0\u00a0 \u2502\u00a0\u00a0 \u251c\u2500\u2500 material_1.jpg\n\u2502\u00a0\u00a0 \u2502\u00a0\u00a0 \u251c\u2500\u2500 material_2.jpg\n\u2502\u00a0\u00a0 \u2502\u00a0\u00a0 \u251c\u2500\u2500 material_3.jpg\n\u2502\u00a0\u00a0 \u2502\u00a0\u00a0 \u2514\u2500\u2500 material_5.jpg\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 bird_duck\n\u2502\u00a0\u00a0 \u2502\u00a0\u00a0 \u2514\u2500\u2500 mallard_male1.jpg\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 bird_duck2\n\u2502\u00a0\u00a0 \u2502\u00a0\u00a0 \u2514\u2500\u2500 Color_000.JPG\n\u2502\u00a0\u00a0 ...\n```\n\n## Run\n\n`./run.sh`\n\nTODO:\n* `./run.sh <config>`\n\n## NOTES\n\ngpu rendering does not work (easily)\n* in the current state, a black image is created\n* blender provides lower level gpu support... see [docs](https://docs.blender.org/api/current/gpu.html)\n\nexternal libraries arediscouraged\n* blender uses its own python distro & environment\n* used sys.path.insert as a workaround\n* custom packages do not work with blender (TBD)\n\nargparse conflicts with blender commandline arguments\n* hydra also conflicts\n* might be better to nix the configurations or read statically from a config.yaml\n\nmemory required increases with job runtime\n* maybe blender keeps a history of all operations?\n* consider splitting jobs into batches\n\n## Problems\n\n- bounding box centering doesnt work\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) 2023 Matthew Hyatt  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
    "summary": "ReTexture dataset toolkit for generation and analysis",
    "version": "0.1.0",
    "project_urls": {
        "Homepage": "https://github.com/mhyatt000/retexture"
    },
    "split_keywords": [
        "keyword1",
        "keyword2"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f4975b0432635dd4044fa34ab0da5d784d0c4f28b59f719e7219f6624efc86c8",
                "md5": "08bade109a937f4319e99a748ac73b9e",
                "sha256": "dc9d77eb99cd96c27ccd82e121ebad730e4fb6e8693429bde22e63f520c2ec02"
            },
            "downloads": -1,
            "filename": "retexture-0.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "08bade109a937f4319e99a748ac73b9e",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 8262,
            "upload_time": "2023-12-06T20:46:50",
            "upload_time_iso_8601": "2023-12-06T20:46:50.664425Z",
            "url": "https://files.pythonhosted.org/packages/f4/97/5b0432635dd4044fa34ab0da5d784d0c4f28b59f719e7219f6624efc86c8/retexture-0.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "bc831c55c02bcc69ecc68b0d27ace214effeb2224d801326302d000b8f72fda3",
                "md5": "697d88d6bdbece0a29e9a2382f17f717",
                "sha256": "809fa70eccda418218fd4444e21e7bd11190c0a2ac3dc5f499bd79dd7ec894fe"
            },
            "downloads": -1,
            "filename": "retexture-0.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "697d88d6bdbece0a29e9a2382f17f717",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 8390,
            "upload_time": "2023-12-06T20:46:54",
            "upload_time_iso_8601": "2023-12-06T20:46:54.894066Z",
            "url": "https://files.pythonhosted.org/packages/bc/83/1c55c02bcc69ecc68b0d27ace214effeb2224d801326302d000b8f72fda3/retexture-0.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-12-06 20:46:54",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "mhyatt000",
    "github_project": "retexture",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "retexture"
}
        
Elapsed time: 0.14641s