{
  "name": "napari-stable-diffusion",
  "display_name": "Stable Diffusion",
  "visibility": "public",
  "icon": "",
  "categories": [],
  "schema_version": "0.2.1",
  "on_activate": null,
  "on_deactivate": null,
  "contributions": {
    "commands": [
      {
        "id": "napari-stable-diffusion.make_qwidget",
        "title": "Stable Diffusion: Text to Image",
        "python_name": "napari_stable_diffusion._widget:StableDiffusionWidget",
        "short_title": null,
        "category": null,
        "icon": null,
        "enablement": null
      },
      {
        "id": "napari-stable-diffusion.make_img2img_qwidget",
        "title": "Stable Diffusion: Image to Image",
        "python_name": "napari_stable_diffusion._widget_img2img:StableDiffusionImg2ImgWidget",
        "short_title": null,
        "category": null,
        "icon": null,
        "enablement": null
      },
      {
        "id": "napari-stable-diffusion.make_inpaint_qwidget",
        "title": "Stable Diffusion: Inpaint",
        "python_name": "napari_stable_diffusion._widget_inpaint:StableDiffusionInpaintWidget",
        "short_title": null,
        "category": null,
        "icon": null,
        "enablement": null
      }
    ],
    "readers": null,
    "writers": null,
    "widgets": [
      {
        "command": "napari-stable-diffusion.make_qwidget",
        "display_name": "Text to Image",
        "autogenerate": false
      },
      {
        "command": "napari-stable-diffusion.make_img2img_qwidget",
        "display_name": "Image to Image",
        "autogenerate": false
      },
      {
        "command": "napari-stable-diffusion.make_inpaint_qwidget",
        "display_name": "Inpainting",
        "autogenerate": false
      }
    ],
    "sample_data": null,
    "themes": null,
    "menus": {},
    "submenus": null,
    "keybindings": null,
    "configuration": []
  },
  "package_metadata": {
    "metadata_version": "2.1",
    "name": "napari-stable-diffusion",
    "version": "0.1.1",
    "dynamic": null,
    "platform": null,
    "supported_platform": null,
    "summary": "A demo of stable diffusion in napari",
    "description": "# napari-stable-diffusion\n\n[![License BSD-3](https://img.shields.io/pypi/l/napari-stable-diffusion.svg?color=green)](https://github.com/kephale/napari-stable-diffusion/raw/main/LICENSE)\n[![PyPI](https://img.shields.io/pypi/v/napari-stable-diffusion.svg?color=green)](https://pypi.org/project/napari-stable-diffusion)\n[![Python Version](https://img.shields.io/pypi/pyversions/napari-stable-diffusion.svg?color=green)](https://python.org)\n[![tests](https://github.com/kephale/napari-stable-diffusion/workflows/tests/badge.svg)](https://github.com/kephale/napari-stable-diffusion/actions)\n[![codecov](https://codecov.io/gh/kephale/napari-stable-diffusion/branch/main/graph/badge.svg)](https://codecov.io/gh/kephale/napari-stable-diffusion)\n[![napari hub](https://img.shields.io/endpoint?url=https://api.napari-hub.org/shields/napari-stable-diffusion)](https://napari-hub.org/plugins/napari-stable-diffusion)\n\nA demo of stable diffusion in napari.\n\n----------------------------------\n\nThis [napari] plugin was generated with [Cookiecutter] using [@napari]'s [cookiecutter-napari-plugin] template.\n\n![demo image of napari-stable-diffusion of the prompt \"a unicorn and a dinosaur eating cookies and drinking tea\"](https://github.com/kephale/napari-stable-diffusion/raw/main/napari_stable_diffusion_demo.png)\n\n<!--\nDon't miss the full getting started guide to set up your new package:\nhttps://github.com/napari/cookiecutter-napari-plugin#getting-started\n\nand review the napari docs for plugin developers:\nhttps://napari.org/stable/plugins/index.html\n-->\n\n## Installation\n\nYou can install `napari-stable-diffusion` via [pip]:\n\n    pip install napari-stable-diffusion\n\nTo install latest development version :\n\n    pip install git+https://github.com/kephale/napari-stable-diffusion.git\n\nYou will also need to sign up with HuggingFace and [generate an access\ntoken](https://huggingface.co/docs/hub/security-tokens) to get access to the\nStable Diffusion model we use.\n\nWhen you have generated your access token you can either permanently\nset the `HF_TOKEN_SD` environment variable in your `.bashrc` or whichever file\nyour OS uses, or you can include it on the command line\n\n```\nHF_TOKEN_SD=\"hf_aaaAaaaasdadsadsaoaoaoasoidijo\" napari\n```\n\nFor more information on the Stable Diffusion model itself, please see https://huggingface.co/CompVis/stable-diffusion-v1-4.\n\n### Apple M1 specific instructions\n\nTo utilize the M1 GPU, the nightly version of PyTorch needs to be\ninstalled. Consider using `conda` or `mamba` like this:\n\n```\nmamba create -c pytorch-nightly -n napari-stable-diffusion python=3.9 pip pyqt pytorch torchvision\npip install git+https://github.com/kephale/napari-stable-diffusion.git\n```\n\n## Next steps\n\n- Image 2 Image support\n- Inpainting support\n\n## Contributing\n\nContributions are very welcome. Tests can be run with [tox], please ensure\nthe coverage at least stays the same before you submit a pull request.\n\n## License\n\nDistributed under the terms of the [BSD-3] license,\n\"napari-stable-diffusion\" is free and open source software\n\n## Issues\n\nIf you encounter any problems, please [file an issue] along with a detailed description.\n\n[napari]: https://github.com/napari/napari\n[Cookiecutter]: https://github.com/audreyr/cookiecutter\n[@napari]: https://github.com/napari\n[MIT]: http://opensource.org/licenses/MIT\n[BSD-3]: http://opensource.org/licenses/BSD-3-Clause\n[GNU GPL v3.0]: http://www.gnu.org/licenses/gpl-3.0.txt\n[GNU LGPL v3.0]: http://www.gnu.org/licenses/lgpl-3.0.txt\n[Apache Software License 2.0]: http://www.apache.org/licenses/LICENSE-2.0\n[Mozilla Public License 2.0]: https://www.mozilla.org/media/MPL/2.0/index.txt\n[cookiecutter-napari-plugin]: https://github.com/napari/cookiecutter-napari-plugin\n\n[file an issue]: https://github.com/kephale/napari-stable-diffusion/issues\n\n[napari]: https://github.com/napari/napari\n[tox]: https://tox.readthedocs.io/en/latest/\n[pip]: https://pypi.org/project/pip/\n[PyPI]: https://pypi.org/\n",
    "description_content_type": "text/markdown",
    "keywords": null,
    "home_page": "https://github.com/kephale/napari-stable-diffusion",
    "download_url": null,
    "author": "Kyle Harrington",
    "author_email": "napari@kyleharrington.com",
    "maintainer": null,
    "maintainer_email": null,
    "license": "BSD-3-Clause",
    "classifier": [
      "Development Status :: 2 - Pre-Alpha",
      "Framework :: napari",
      "Intended Audience :: Developers",
      "License :: OSI Approved :: BSD License",
      "Operating System :: OS Independent",
      "Programming Language :: Python",
      "Programming Language :: Python :: 3",
      "Programming Language :: Python :: 3 :: Only",
      "Programming Language :: Python :: 3.8",
      "Programming Language :: Python :: 3.9",
      "Programming Language :: Python :: 3.10",
      "Topic :: Scientific/Engineering :: Image Processing"
    ],
    "requires_dist": [
      "napari",
      "napari-plugin-engine (>=0.1.4)",
      "numpy",
      "magicgui",
      "qtpy",
      "diffusers",
      "transformers",
      "torch",
      "tox ; extra == 'testing'",
      "pytest ; extra == 'testing'",
      "pytest-cov ; extra == 'testing'",
      "pytest-qt ; extra == 'testing'",
      "napari ; extra == 'testing'",
      "pyqt5 ; extra == 'testing'"
    ],
    "requires_python": ">=3.8",
    "requires_external": null,
    "project_url": [
      "Bug Tracker, https://github.com/kephale/napari-stable-diffusion/issues",
      "Documentation, https://github.com/kephale/napari-stable-diffusion#README.md",
      "Source Code, https://github.com/kephale/napari-stable-diffusion",
      "User Support, https://github.com/kephale/napari-stable-diffusion/issues"
    ],
    "provides_extra": [
      "testing"
    ],
    "provides_dist": null,
    "obsoletes_dist": null
  },
  "npe1_shim": false
}