darth-d
A simple to use image generator based on OpenAIs DALL-E
A simple to use image generator based on OpenAIs DALL-E 2/3. It comes as napari plugin and has a Python interface. You need an OpenAI API KEY to use it.
Using some of the functions on scientific images could be seen as scientific misconduct. Handle these functions with care.
Usage¶
From Python¶
You can generate images from text prompts in Python like this (see this notebool).
from darth_d import create
image = create("an image of a cat")
image
You can also vary images (see this notebook):
from darth_d import vary
output_image = vary(input_image)
Replacing regions in images is also possible. Note: Using this function on scientific images could be seen as scientific misconduct. Handle this function with care.
In Napari¶
To generate images in Napari, click the Tools > Generate > Image
menu. You can for example enter the prompt
"a professional comic with white background showing a cat having an idea. the idea is visualized using a light bulb.
Installation¶
pip install darth-d
If you want to use it from napari, please also install napari and the tools menu:
mamba install napari pyqt napari-tools-menu -c conda-forge
Similar tools and plugins¶
- https://github.com/kephale/napari-stable-diffusion
- https://github.com/seankmartin/napari-stable-diffusion
Feedback welcome!¶
The darth-d
is developed in the open because we believe in the open source community. Feel free to drop feedback as github issue or via image.sc
Contributing¶
Contributions are very welcome.
License¶
Distributed under the terms of the BSD-3 license, "darth-d" is free and open source software
Supported data:
- Information not submitted
Plugin type:
GitHub activity:
- Stars: 0
- Forks: 0
- Issues + PRs: 1