Skip to main content

Darth-D

License PyPI Python Version tests codecov Development Status napari hub

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

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)

Source distribution for darth-d 0.4.0
File Size Uploaded
darth-d-0.4.0.tar.gz 8.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for darth-d 0.4.0
File Interpreter ABI Platform
darth_d-0.4.0-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.4.0 This release

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page