Darth-D
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
Metadata
Release files for darth-d 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| darth-d-0.4.0.tar.gz | 8.4 kB | Without provenance | Details for darth-d-0.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| darth_d-0.4.0-py3-none-any.whl | Python 3 | none | any | Details for darth_d-0.4.0-py3-none-any.whl |
Total release size: 17.5 kB
Release files / darth-d-0.4.0.tar.gz
| Download URL | darth-d-0.4.0.tar.gz |
|---|---|
| Size | 8.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4003422b4315c98406cd8b9b4e02dd2e6dd894eabec1e93325d797561f95e18f
|
|
BLAKE2b-256 checksum How to use checksums |
b88b43b94d21cff011cb59ae0f3dcc311531683edc822bfc6255de9e9cc490e7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|
Release files / darth_d-0.4.0-py3-none-any.whl
| Download URL | darth_d-0.4.0-py3-none-any.whl |
|---|---|
| Size | 9.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f7e31f3cdb5f41c7763e5cea8ff31718b33dbf49c910c836276a897a7333df03
|
|
BLAKE2b-256 checksum How to use checksums |
992df852998375527457c6bd557b2601dd427a475bda688b372da320ecc9013b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|
Security for darth-d 0.4.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.