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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file text2hologram-0.1.1.tar.gz
.
File metadata
- Download URL: text2hologram-0.1.1.tar.gz
- Upload date:
- Size: 9.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9559b5da9e79969708de71ebd9d3fcb187b048c9ce0360545816f5a5472c2f77 |
|
MD5 | 12335b569fe23e7257a1b126fc46791c |
|
BLAKE2b-256 | 563c7b3669b52ac958caa06e7805d7af4d7ed3fdecb4401821e91cd8476dd4e9 |
File details
Details for the file text2hologram-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: text2hologram-0.1.1-py3-none-any.whl
- Upload date:
- Size: 10.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e2d3dc7f830980564c92c467b2366661c0af1d6cbc24a53894b5c40b1d08c5a |
|
MD5 | 013ca653e077f69c368ed81e91ad940f |
|
BLAKE2b-256 | a0a6768cf5cb61bc3c2c6c61f58be140865376580dabdec7cb2144fd94098c2e |