Skip to content
This repository has been archived by the owner on Apr 16, 2024. It is now read-only.

Commit

Permalink
Update SXDLv0.8 references to SDXLv1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewfrench committed Apr 1, 2024
1 parent a0685cd commit 283aabb
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ model_driver = BedrockStableDiffusionImageGenerationModelDriver(

driver = AmazonBedrockImageGenerationDriver(
image_generation_model_driver=model_driver,
model="stability.stable-diffusion-xl-v0",
model="stability.stable-diffusion-xl-v1",
)

engine = PromptImageGenerationEngine(image_generation_driver=driver)
Expand Down
10 changes: 5 additions & 5 deletions docs/griptape-framework/engines/image-generation-engines.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ from griptape.rules import Ruleset, Rule
# Create a driver configured to use Stable Diffusion via Bedrock.
driver = AmazonBedrockImageGenerationDriver(
image_generation_model_driver=BedrockStableDiffusionImageGenerationModelDriver(),
model="stability.stable-diffusion-xl-v0",
model="stability.stable-diffusion-xl-v1",
)

# Create an engine configured to use the driver.
Expand Down Expand Up @@ -52,7 +52,7 @@ from griptape.drivers import AmazonBedrockImageGenerationDriver, \
# Create a driver configured to use Stable Diffusion via Bedrock.
driver = AmazonBedrockImageGenerationDriver(
image_generation_model_driver=BedrockStableDiffusionImageGenerationModelDriver(),
model="stability.stable-diffusion-xl-v0",
model="stability.stable-diffusion-xl-v1",
)

# Create an engine configured to use the driver.
Expand All @@ -78,7 +78,7 @@ from griptape.loaders import ImageLoader
# Create a driver configured to use Stable Diffusion via Bedrock.
driver = AmazonBedrockImageGenerationDriver(
image_generation_model_driver=BedrockStableDiffusionImageGenerationModelDriver(),
model="stability.stable-diffusion-xl-v0",
model="stability.stable-diffusion-xl-v1",
)

# Create an engine configured to use the driver.
Expand Down Expand Up @@ -109,7 +109,7 @@ from griptape.loaders import ImageLoader
# Create a driver configured to use Stable Diffusion via Bedrock.
driver = AmazonBedrockImageGenerationDriver(
image_generation_model_driver=BedrockStableDiffusionImageGenerationModelDriver(),
model="stability.stable-diffusion-xl-v0",
model="stability.stable-diffusion-xl-v1",
)

# Create an engine configured to use the driver.
Expand Down Expand Up @@ -143,7 +143,7 @@ from griptape.loaders import ImageLoader
# Create a driver configured to use Stable Diffusion via Bedrock.
driver = AmazonBedrockImageGenerationDriver(
image_generation_model_driver=BedrockStableDiffusionImageGenerationModelDriver(),
model="stability.stable-diffusion-xl-v0",
model="stability.stable-diffusion-xl-v1",
)

# Create an engine configured to use the driver.
Expand Down
6 changes: 3 additions & 3 deletions docs/griptape-framework/structures/tasks.md
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ from griptape.structures import Pipeline
# Create a driver configured to use Stable Diffusion via Bedrock.
driver = AmazonBedrockImageGenerationDriver(
image_generation_model_driver=BedrockStableDiffusionImageGenerationModelDriver(),
model="stability.stable-diffusion-xl-v0",
model="stability.stable-diffusion-xl-v1",
)

# Create an engine configured to use the driver.
Expand Down Expand Up @@ -549,7 +549,7 @@ from griptape.structures import Pipeline
# Create a driver configured to use Stable Diffusion via Bedrock.
driver = AmazonBedrockImageGenerationDriver(
image_generation_model_driver=BedrockStableDiffusionImageGenerationModelDriver(),
model="stability.stable-diffusion-xl-v0",
model="stability.stable-diffusion-xl-v1",
)

# Create an engine configured to use the driver.
Expand Down Expand Up @@ -595,7 +595,7 @@ from griptape.structures import Pipeline
# Create a driver configured to use Stable Diffusion via Bedrock.
driver = AmazonBedrockImageGenerationDriver(
image_generation_model_driver=BedrockStableDiffusionImageGenerationModelDriver(),
model="stability.stable-diffusion-xl-v0",
model="stability.stable-diffusion-xl-v1",
)

# Create an engine configured to use the driver.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ from griptape.tools import InpaintingImageGenerationClient
# Create a driver configured to use Stable Diffusion via Bedrock.
driver = AmazonBedrockImageGenerationDriver(
image_generation_model_driver=BedrockStableDiffusionImageGenerationModelDriver(),
model="stability.stable-diffusion-xl-v0",
model="stability.stable-diffusion-xl-v1",
)

# Create an engine configured to use the driver.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ from griptape.tools import OutpaintingImageGenerationClient
# Create a driver configured to use Stable Diffusion via Bedrock.
driver = AmazonBedrockImageGenerationDriver(
image_generation_model_driver=BedrockStableDiffusionImageGenerationModelDriver(),
model="stability.stable-diffusion-xl-v0",
model="stability.stable-diffusion-xl-v1",
)

# Create an engine configured to use the driver.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ from griptape.tools import PromptImageGenerationClient
# Create a driver configured to use Stable Diffusion via Bedrock.
driver = AmazonBedrockImageGenerationDriver(
image_generation_model_driver=BedrockStableDiffusionImageGenerationModelDriver(),
model="stability.stable-diffusion-xl-v0",
model="stability.stable-diffusion-xl-v1",
)

# Create an engine configured to use the driver.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ driver = AmazonBedrockImageGenerationDriver(
image_generation_model_driver=BedrockStableDiffusionImageGenerationModelDriver(
style_preset="pixel-art",
),
model="stability.stable-diffusion-xl-v0",
model="stability.stable-diffusion-xl-v1",
)

# Create an engine configured to use the driver.
Expand Down Expand Up @@ -50,7 +50,7 @@ driver = AmazonBedrockImageGenerationDriver(
image_generation_model_driver=BedrockStableDiffusionImageGenerationModelDriver(
style_preset="pixel-art",
),
model="stability.stable-diffusion-xl-v0",
model="stability.stable-diffusion-xl-v1",
)

# Create an prompt image generation engine configured to use the driver.
Expand Down

0 comments on commit 283aabb

Please sign in to comment.