From 9764387b8d57ce166e40aa5ac5c6b019500c03a2 Mon Sep 17 00:00:00 2001 From: Jason DINKEL Date: Tue, 22 Aug 2023 12:24:43 +0200 Subject: [PATCH] Update README.md Revise markdown content: Clarify image prompting, correct typos, grammar, improve structure, and enhance pattern descriptions. --- 05_Image/README.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/05_Image/README.md b/05_Image/README.md index 845712a2..cfbb5d42 100644 --- a/05_Image/README.md +++ b/05_Image/README.md @@ -2,18 +2,18 @@ ### Overview -Image generation can be a tidious task for artists, designers and content creators who illustrate their thoughts with the help of images. With the help of Foundation Models (FM) this tidious task can be streamlined to just a single line of text that expresses the thought of the artist, FMs can be used for creating realistic and artistic images of various subjects, environments, and scenes from language prompts. +Image generation can be a tedious task for artists, designers and content creators who illustrate their thoughts with the help of images. With the help of Foundation Models (FMs) this tedious task can be streamlined to just a single line of text that expresses the thoughts of the artist, FMs can be used for creating realistic and artistic images of various subjects, environments, and scenes from language prompts. -In this lab we will explore how to use a foundation model available with Amazon Bedrock to generate images as well as modify existing images. +In this lab we will explore how to use a foundation model available in Amazon Bedrock to generate images as well as modify existing images. ### Image prompting -Writing a good prompt can sometime be an art. It is often difficult to predict whether a certain prompt will yield a satisfactory image with a given model. However, there are certain templates that have been observed to work. Broadly, a prompt can be roughly broken down into three pieces: (i) type of image (photograph/sketch/painting etc.), (ii) description (subject/object/environment/scene etc.) and (iii) the style of the image (realistic/artistic/type of art etc.). You can change each of the three parts individually to generate variations of an image. Adjectives have been known to play a significant role in the image generation process. Also, adding more details help in the generation process.To generate a realistic image, you can use phrases such as “a photo of”, “a photograph of”, “realistic” or “hyper realistic”. +Writing a good prompt can sometimes be an art. It is often difficult to predict whether a certain prompt will yield a satisfactory image with a given model. However, there are certain templates that have been observed to work. Broadly speaking, a prompt can be roughly broken down into three pieces: (i) type of image (photograph/sketch/painting etc.), (ii) description (subject/object/environment/scene etc.) and (iii) the style of the image (realistic/artistic/type of art etc.). You can change each of the three parts individually, to generate variations of an image. Adjectives have been known to play a significant role in the image generation process. Also, adding more details help in the generation process.To generate a realistic image, you can use phrases such as “a photo of”, “a photograph of”, “realistic” or “hyper realistic”. -To generate images by artists you can use phrases like “by Pablo Piccaso” or “oil painting by Rembrandt” or “landscape art by Frederic Edwin Church” or “pencil drawing by Albrecht Dürer”. You can also combine different artists as well. To generate artistic image by category, you can add the art category in the prompt such as “lion on a beach, abstract”. Some other categories include “oil painting”, “pencil drawing, “pop art”, “digital art”, “anime”, “cartoon”, “futurism”, “watercolor”, “manga” etc. You can also include details such as lighting or camera lens such as 35mm wide lens or 85mm wide lens and details about the framing (portrait/landscape/close up etc.). +To generate images by artists you can use phrases like “by Pablo Picasso” or “oil painting by Rembrandt” or “landscape art by Frederic Edwin Church” or “pencil drawing by Albrecht Dürer”. You can also combine different artists as well. To generate artistic image by category, you can add the art category in the prompt such as “lion on a beach, abstract”. Some other categories include “oil painting”, “pencil drawing", “pop art”, “digital art”, “anime”, “cartoon”, “futurism”, “watercolor”, “manga” etc. You can also include details such as lighting or camera lens, such as 35mm wide lens or 85mm wide lens and details about the framing (portrait/landscape/close up etc.). -Note that model generates different images even if same prompt is given multiple times. So, you can generate multiple images and select the image that suits your application best. +Note that the model generates different images even if same prompt is given multiple times. So, you can generate multiple images and select the image that suits your application best. ## Foundation Model @@ -29,18 +29,18 @@ The workings can be explained with this architecture: ## Target Audience -Marketing companies, agencies, web-designers, and general companies can take advantage on this feature to generate brand new images, from scratch. +Marketing companies, agencies, web-designers, and general companies can take advantage of this feature to generate brand new images, from scratch. ## Patterns -In this workshop, you will be able to learn following patterns on Image Generation using Amazon Bedrock: +In this workshop, you will be able to learn about Image Generation using Amazon Bedrock starting with text or image input: 1. [Text to Image](./Bedrock%20Stable%20Diffusion%20XL.ipynb) ![Text to Image](./images/71-txt-2-img.png) -2. [Image to Image (In-paiting)](./Bedrock%20Stable%20Diffusion%20XL.ipynb) +2. [Image to Image (In-painting)](./Bedrock%20Stable%20Diffusion%20XL.ipynb) ![Text to Image](./images/72-img-2-img.png) ## Helper -To facilitate image generation there is a utility class `Bedrock` implementation under `/utils/bedrock.py`. This helps you to generate images easily. +To facilitate image generation, there is a utility class `Bedrock` implementation in `/utils/bedrock.py`. This helps you to generate images easily. -You can also explore different `style_preset` options [here](https://platform.stability.ai/docs/features/animation/parameters#available-styles). \ No newline at end of file +You can also explore different `style_preset` options [here](https://platform.stability.ai/docs/features/animation/parameters#available-styles).