Generate dreambooth image

From UBot Studio
(Difference between revisions)
Jump to: navigation, search
(Created page with "'''generate dreambooth image''' command generates an image based on a text prompt using the Stability API and saves it to a file. == Parameters == '''File Name:''' The name...")
 
(Parameters)
 
(One intermediate revision by one user not shown)
Line 1: Line 1:
'''generate dreambooth image''' command generates an image based on a text prompt using the Stability API and saves it to a file.
+
'''generate dreambooth image''' is a command that generates an image based on a text prompt using the Stability API and saves it to a file.
  
== Parameters ==
+
This command is intended to take a human-readable text prompt and process it using a specified Dreambooth engine, resulting in an artificial image which is then saved to a local file.
  
'''File Name:''' The name of the file to save the generated image to.
+
== Parameters ==
  
'''Text Prompt:''' The text prompt that the command will use to generate the image.
+
'''File Name:''' The name of the file to which the generated image will be saved. Include the extension in the file name (For example, "output.png").
  
'''Engine Name:''' (Optional) The name of the image generation engine to use. Default is "Stable Diffusion XL Beta v2.2.2".
+
'''Text Prompt:''' The prompt text is used to generate the image. This should be a concise, human-readable statement or description.
  
'''Height:''' (Optional) The height of the generated image in pixels. Default is 512.
+
'''Engine Name:''' (Optional) This specifies the name of the Dreambooth engine that will process the text prompt. Default is "Stable Diffusion XL Beta v2.2.2".
  
'''Width:''' (Optional) The width of the generated image in pixels. Default is 512.
+
'''Height:''' (Optional) The height of the generated image in pixels. Default value is 512.
 +
 
 +
'''Width:''' (Optional) The width of the generated image in pixels. Default value is 512.
  
 
== Example ==
 
== Example ==
 
 
<pre>
 
<pre>
 
connect to dreambooth("your dreambooth api key")
 
connect to dreambooth("your dreambooth api key")
generate dreambooth image("myImage.jpg", "A city skyline at sunset", "Stable Diffusion XL Beta v2.2.2", 512, 512)
+
generate dreambooth image("dream.png", "A futuristic city skyline at sunset", "Stable Diffusion XL Beta v2.2.2", 1024, 1024)
 
</pre>
 
</pre>
  
In this script, we first connect to the Dreambooth API with the '''connect to dreambooth''' command. "your dreambooth api key" should be replaced with your actual API key.
+
Remember to replace "your dreambooth api key" with your actual Dreambooth API key. This script will generate an image of a "futuristic city skyline at sunset" using the "Stable Diffusion XL Beta v2.2.2" engine and save it as a 1024x1024 pixel image named "dream.png".
 
+
Then we use the '''generate dreambooth image''' command to generate an image of "A city skyline at sunset", using the "Stable Diffusion XL Beta v2.2.2" engine, and a size of 512 pixels high and broad. The image is saved as "myImage.jpg". If successful, this script will create a new file called "myImage.jpg" in your project file's directory.
+

Latest revision as of 03:13, 4 July 2023

generate dreambooth image is a command that generates an image based on a text prompt using the Stability API and saves it to a file.

This command is intended to take a human-readable text prompt and process it using a specified Dreambooth engine, resulting in an artificial image which is then saved to a local file.

[edit] Parameters

File Name: The name of the file to which the generated image will be saved. Include the extension in the file name (For example, "output.png").

Text Prompt: The prompt text is used to generate the image. This should be a concise, human-readable statement or description.

Engine Name: (Optional) This specifies the name of the Dreambooth engine that will process the text prompt. Default is "Stable Diffusion XL Beta v2.2.2".

Height: (Optional) The height of the generated image in pixels. Default value is 512.

Width: (Optional) The width of the generated image in pixels. Default value is 512.

[edit] Example

connect to dreambooth("your dreambooth api key")
generate dreambooth image("dream.png", "A futuristic city skyline at sunset", "Stable Diffusion XL Beta v2.2.2", 1024, 1024)

Remember to replace "your dreambooth api key" with your actual Dreambooth API key. This script will generate an image of a "futuristic city skyline at sunset" using the "Stable Diffusion XL Beta v2.2.2" engine and save it as a 1024x1024 pixel image named "dream.png".

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox