Skip to main content

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.

Release files for text2hologram 0.1.5.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for text2hologram 0.1.5.3
File Size Uploaded
text2hologram-0.1.5.3.tar.gz 13.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for text2hologram 0.1.5.3
File Interpreter ABI Platform
text2hologram-0.1.5.3-py3-none-any.whl Python 3 none any Details

Total release size: 28.6 kB

Release files / text2hologram-0.1.5.3.tar.gz

Download URL text2hologram-0.1.5.3.tar.gz
Size 13.3 kB
Tags Source
SHA-256 checksum
How to use checksums
6d0ae9f413b74ac52b7afd13ba7c449657e88de80f8bafefe06ddb07ef576a17
BLAKE2b-256 checksum
How to use checksums
29b33d7d51b9f0913ca9036c67f2d9962867299c0990ebfbb61d0b4001fa1e06
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.3

Release files / text2hologram-0.1.5.3-py3-none-any.whl

Download URL text2hologram-0.1.5.3-py3-none-any.whl
Size 15.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
44cbc803db882184245262b82ba3c3cf149d896e8d26854e996239d390cbe734
BLAKE2b-256 checksum
How to use checksums
caa25b35fff4c0835871b18be1d346a8d84090cd15f1f864b54fdccca2dbefbe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.3

Release history Release notifications | RSS feed

This release

0.1.5.3 This release

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

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