{ "info": { "author": "SimLeek", "author_email": "josh.miklos@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: Implementation :: PyPy" ], "description": "# TorchRender\n\nA library for testing and debugging graphics algorithms with torch. Or just graphics, though that may be slow depending on the GPU.\n\n## Examples\n\nThe current best way to see how to use this library is by looking through the examples and tests.\n\n### Conways's Game of Life + Color\n\n![Running Example](https://thumbs.gfycat.com/GrotesqueComposedIndigobunting-size_restricted.gif)\n\n[This example](https://github.com/SimLeek/TorchRender/blob/master/examples/interactive_test_pixel_shader.py) adds interaction between colors of different pixels to Conway's game of life. This doesn't really require a pixel shader, and could be done on normal pytorch, but the scrolling I added after the video above demonstrates a very simple usage for a pixel shader:\n\n```python\ndef conway(frame, coords, finished):\n ...\n \n trans = np.zeros_like(coords)\n trans[0, ...] = np.ones(trans.shape[1:])\n frame[coords] = array[coords+trans]\n```\n\nHere, we're adding 1 to a dimensions of 'coords' which is a tensor holding the locations of each pixel and color. This shifts the entire image by one pixel. If we did something more complicated based on the values of the coordinates, we could add more complicated shaders, like barrel distortions.\n\n## Installation\n\ntorchrender is distributed on [PyPI](https://pypi.org) as a universal\nwheel and is available on Linux/macOS and Windows and supports\nPython 3.5+ and PyPy.\n\n```bash\n$ pip install torchrender\n```\n\n## License\n\ntorchrender is distributed under the terms of the\n[MIT License](https://choosealicense.com/licenses/mit>).", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/SimLeek/torchrender", "keywords": "pytorch,shaders", "license": "MIT", "maintainer": "SimLeek", "maintainer_email": "josh.miklos@gmail.com", "name": "torchrender", "package_url": "https://pypi.org/project/torchrender/", "platform": "", "project_url": "https://pypi.org/project/torchrender/", "project_urls": { "Homepage": "https://github.com/SimLeek/torchrender" }, "release_url": "https://pypi.org/project/torchrender/0.0.2/", "requires_dist": null, "requires_python": "", "summary": "", "version": "0.0.2" }, "last_serial": 4923194, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "a15d532e0b5d94fdb20c2f5181ca239f", "sha256": "f63f37f0495f7d9bdd982eb632eb5ba4c850c88288272a11ec889ab2bbcc4709" }, "downloads": -1, "filename": "torchrender-0.0.1.tar.gz", "has_sig": false, "md5_digest": "a15d532e0b5d94fdb20c2f5181ca239f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4608, "upload_time": "2019-03-02T04:52:49", "url": "https://files.pythonhosted.org/packages/d4/21/24a0d40ec681fd3f333e8f4ed5d92e600aa10815a7aae90aa061836eb3bb/torchrender-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "575c08f9c0ba0d2b0708189612cc1109", "sha256": "6e30464c0428f15cb538d1611f843c8a2437635bfa41fd033bb34423531d04f1" }, "downloads": -1, "filename": "torchrender-0.0.2.tar.gz", "has_sig": false, "md5_digest": "575c08f9c0ba0d2b0708189612cc1109", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5151, "upload_time": "2019-03-11T00:55:00", "url": "https://files.pythonhosted.org/packages/12/4e/144abde2e0ae4b044c74146ca03d9fa991cd1ddd5f676f45ca3560e6dae2/torchrender-0.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "575c08f9c0ba0d2b0708189612cc1109", "sha256": "6e30464c0428f15cb538d1611f843c8a2437635bfa41fd033bb34423531d04f1" }, "downloads": -1, "filename": "torchrender-0.0.2.tar.gz", "has_sig": false, "md5_digest": "575c08f9c0ba0d2b0708189612cc1109", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5151, "upload_time": "2019-03-11T00:55:00", "url": "https://files.pythonhosted.org/packages/12/4e/144abde2e0ae4b044c74146ca03d9fa991cd1ddd5f676f45ca3560e6dae2/torchrender-0.0.2.tar.gz" } ] }