Skip to main content

A simple to use image generator based on OpenAIs DALL-E

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

darth-d-0.4.0.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

darth_d-0.4.0-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file darth-d-0.4.0.tar.gz.

File metadata

  • Download URL: darth-d-0.4.0.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for darth-d-0.4.0.tar.gz
Algorithm Hash digest
SHA256 4003422b4315c98406cd8b9b4e02dd2e6dd894eabec1e93325d797561f95e18f
MD5 e6c196ca6eb3ee859c77fa8470beacd3
BLAKE2b-256 b88b43b94d21cff011cb59ae0f3dcc311531683edc822bfc6255de9e9cc490e7

See more details on using hashes here.

File details

Details for the file darth_d-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: darth_d-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for darth_d-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f7e31f3cdb5f41c7763e5cea8ff31718b33dbf49c910c836276a897a7333df03
MD5 f93a0c80d22a9486e4dba7f00db876d2
BLAKE2b-256 992df852998375527457c6bd557b2601dd427a475bda688b372da320ecc9013b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page