Skip to main content

Generate holograms from text

Project description

text2hologram

text2hologram is a Python package designed to generate holograms from text. It's built on top of the odak, timm, transformers, diffusers, accelerate, and torch libraries.

text2hologram supports Python 3.9 and above.

The project's source code is available here.

Installation

To install the package, use the following pip command:

pip install text2hologram

Usage

You can use the package from the command line with the text2hologram command.

Here is a simple usage example:

text2hologram --device 'cuda' --outputdir './output'

The command above checks the device first,and then ask for a text input. generates a hologram from the input text using GPU and saves the output in the './output' directory.

Here's a brief description of each option:

  • --device : Computation device to use. Can be 'cpu' or 'cuda'.
  • --outputdir : Directory to save output files.
  • --inference_steps : Inference steps to generate an image. A higher number of inference steps will result in a more accurate and detailed image, but increase the computational cost and time required.

See more settings in config.json. All settings are named in a self-explanatory manner.

License

text2hologram is licensed under the MIT license. The terms of the license can be found in the LICENSE file.

Contact

For any questions or feedback, you are welcome to reach out to Pengze Li at linsonng@163.com.

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

text2hologram-0.1.5.2.tar.gz (13.4 kB view details)

Uploaded Source

Built Distribution

text2hologram-0.1.5.2-py3-none-any.whl (15.3 kB view details)

Uploaded Python 3

File details

Details for the file text2hologram-0.1.5.2.tar.gz.

File metadata

  • Download URL: text2hologram-0.1.5.2.tar.gz
  • Upload date:
  • Size: 13.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.3

File hashes

Hashes for text2hologram-0.1.5.2.tar.gz
Algorithm Hash digest
SHA256 3ffca74ea13bdf228d7c20531cb67de77827962ff37f0b305f045e9be0542ed0
MD5 fc1c0102e88f503116137e8ffae5c951
BLAKE2b-256 0f82223a67fa8e1c5c5744b7aeb7e442b9ebf3d34de8eba3db3b9000475ae3fb

See more details on using hashes here.

File details

Details for the file text2hologram-0.1.5.2-py3-none-any.whl.

File metadata

File hashes

Hashes for text2hologram-0.1.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 68734975a96b195bc7dcfd2543317be9c1d2d26715feb833acf67220b89ef5e3
MD5 f00008910ad65c0e86693914940014da
BLAKE2b-256 9483a5dc1d34df2cbd7e8e400b3c0894c241e0c1ff5ca487ea6bbb68936c2e81

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