Generating an Image
Text to image generation
For the pixray module, the simplest case for generation looks like this:
Now, what did the code do?
The first line imported pixray, which was added to the system path previously during installation.
Then, it reset its settings, clearing any previous settings, if any.
We generate all settings, including defaults, in a namespace, which can be saved and used to initialize pixray again. (WARNING: this actually does not do this, and apply_settings actually modifies globals oof ouch)
Now with settings
, we can initialize pixray's session (global) settings, and run pixray based on them.
By default, the WxH for an image is 384x208, and it runs for 250 iterations on VQGAN. Expected output may look like this:
Last updated