Skip to content

Commit 09cd847

Browse files
committed
update README
1 parent 2f9641c commit 09cd847

File tree

2 files changed

+70
-3
lines changed
  • inference/generativeai/llm-workshop/lab12-hosting-controlnet-models-on-sagemaker

2 files changed

+70
-3
lines changed
Lines changed: 70 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,74 @@
11
# stable-diffusion-webui-api
22

3-
This repo shows how to use stable-diffusion-webui to build Amazon SageMaker Docker image for inference and training job and how to generate images based on the combination with Stable-diffusion models and ControlNet / Lora models.
3+
## Overview
44

5-
You will find 2 Jupyter Notebooks: 1 for sync ControlNet / Lora inference, and 1 for async ControlNet / Lora inference.
5+
In this notebook, we explore how to build generative fill application and host Stable Diffusion/ ControlNet / segment anything models on SageMaker asynchronous endpoint using BYOC (Bring-your-own-container).
66

7-
Note: Amazon Web Services has no control or authority over the third-party generative AI service referenced in this Workshop, and does not make any representations or warranties that the third-party generative AI service is secure, virus-free, operational, or compatible with your production environment and standards. You are responsible for making your own independent assessment of the content provided in this Workshop, and take measures to ensure that you comply with your own specific quality control practices and standards, and the local rules, laws, regulations, licenses and terms of use that apply to you, your content, and the third-party generative AI service referenced in this Workshop. The content of this Workshop: (a) is for informational purposes only, (b) represents current Amazon Web Services product offerings and practices, which are subject to change without notice, and (c) does not create any commitments or assurances from Beijing Sinnet Technology Co., Ltd. (“Sinnet”), Ningxia Western Cloud Data Technology Co., Ltd. (“NWCD”), Amazon Connect Technology Services (Beijing) Co., Ltd. (“Amazon”), or their respective affiliates, suppliers or licensors. Amazon Web Services’ content, products or services are provided “as is” without warranties, representations, or conditions of any kind, whether express or implied. The responsibilities and liabilities of Sinnet, NWCD or Amazon to their respective customers are controlled by the applicable customer agreements.
7+
You will find 2 Jupyter Notebooks: 1 for running with Amazon SageMaker Studio and 1 for running with Amazon SageMaker Notebook.
8+
9+
## IAM role recommendations:
10+
11+
1) Running with Amazon SageMaker Studio
12+
13+
* Permissions policies
14+
15+
```
16+
AmazonSageMakerFullAccess
17+
AWSCodeBuildAdminAccess
18+
IAMFullAccess
19+
```
20+
21+
* Trusted entities
22+
23+
```
24+
{
25+
"Version": "2012-10-17",
26+
"Statement": [
27+
{
28+
"Effect": "Allow",
29+
"Principal": {
30+
"Service": [
31+
"sagemaker.amazonaws.com",
32+
"codebuild.amazonaws.com"
33+
]
34+
},
35+
"Action": "sts:AssumeRole"
36+
}
37+
]
38+
}
39+
```
40+
41+
2) Running with Amazon SageMaker Notebook
42+
43+
* Permission Policies
44+
45+
```
46+
AmazonEC2ContainerRegistryFullAccess
47+
AmazonSageMakerFullAccess
48+
```
49+
50+
* Trusted entities
51+
52+
```
53+
{
54+
"Version": "2012-10-17",
55+
"Statement": [
56+
{
57+
"Effect": "Allow",
58+
"Principal": {
59+
"Service": [
60+
"ecs.amazonaws.com",
61+
"sagemaker.amazonaws.com"
62+
]
63+
},
64+
"Action": "sts:AssumeRole"
65+
}
66+
]
67+
}
68+
```
69+
70+
Note:
71+
72+
1. You may need to adjust IAM roles definition to achieve fine grained access control.
73+
74+
2. Amazon Web Services has no control or authority over the third-party generative AI service referenced in this Workshop, and does not make any representations or warranties that the third-party generative AI service is secure, virus-free, operational, or compatible with your production environment and standards. You are responsible for making your own independent assessment of the content provided in this Workshop, and take measures to ensure that you comply with your own specific quality control practices and standards, and the local rules, laws, regulations, licenses and terms of use that apply to you, your content, and the third-party generative AI service referenced in this Workshop. The content of this Workshop: (a) is for informational purposes only, (b) represents current Amazon Web Services product offerings and practices, which are subject to change without notice, and (c) does not create any commitments or assurances from Beijing Sinnet Technology Co., Ltd. (“Sinnet”), Ningxia Western Cloud Data Technology Co., Ltd. (“NWCD”), Amazon Connect Technology Services (Beijing) Co., Ltd. (“Amazon”), or their respective affiliates, suppliers or licensors. Amazon Web Services’ content, products or services are provided “as is” without warranties, representations, or conditions of any kind, whether express or implied. The responsibilities and liabilities of Sinnet, NWCD or Amazon to their respective customers are controlled by the applicable customer agreements.

0 commit comments

Comments
 (0)