bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 75쪽 중 65쪽
ple loras.</td><td></td><td>true</td></tr><tr><td>negative_prompt</td><td><code>string</code></td><td>The negative prompt for image transformation.</td><td>(worst quality, low quality:1.4),(malformed hands:1.4),(poorly drawn hands:1.4),(mutated fingers:1.4),(extra limbs:1.35),(poorly drawn face:1.4),bad leg,strange leg, poor eyes, full screen of face</td><td>false</td></tr><tr><td>mask_blur</td><td><code>integer</code></td><td>Mask blur refers to the feathering of a mask (from edges to inside the mask), adjusted between 0-64. A smaller value results in sharper edges. Default to 4</td><td>4</td><td>false</td></tr><tr><td>inpainting_fill</td><td><code>integer</code></td><td>Choose the fill content in mask: 0 - fill, 1 - original, 2 - latent noise, 3 - latent nothing</td><td>1</td><td>false</td></tr><tr><td>inpainting_mask_invert</td><td><code>integer</code></td><td>0 - Inpaint masked region, 1 - Inpaint not masked region</td><td>0</td><td>false</td></tr><tr><td>sampler</td><td><code>string</code></td><td>Sampler for diffusion model inference</td><td>DPM++ 2M Karras</td><td>false</td></tr><tr><td>steps</td><td><code>integer</code></td><td>Steps for sampler to step whle sampling</td><td>25</td><td>false</td></tr><tr><td>cfg_scale</td><td><code>number</code></td><td>Classifier Free Guidance Scale - how strongly the image should conform to prompt - lower values produce more creative results. Default to 7.</td><td>7.0</td><td>false</td></tr><tr><td>seed</td><td><code>integer</code></td><td>Random seed for generation process. -1 means random seed</td><td>-1</td><td>false</td></tr><tr><td>clip_skip</td><td><code>integer</code></td><td>Early stopping parameter for CLIP model; 1 is stop at last layer as usual, 2 is stop at penultimate layer, etc.</td><td>1</td><td>false</td></tr><tr><td>denoising_strength</td><td><code>number</code></td><td>Strength of image transfomation during inpainting precess. High means more influence during transformation</td><td>0.7</td><td>false</td></tr></tbody></table>
**Output Parameters**
| Name | Type | Description | File Type |
| ---- | -------- | ------------------------------------------------------------------------------------------------------------ | --------- |
| url | `string` | The url of generated image, stored in the cloud. Only temporarily effective, will be cleared in a few hours. | `image` |
**Output Example**
{% tabs %}
{% tab title="success" %}
{% code fullWidth="false" %}
```json
{
"url": "https://image.myshell.ai/image/chat/embed_obj/40295/20240423/2f1f812747e6468b959ea7dde217b78b.jpg"
}
```
{% endcode %}
{% endtab %}
{% tab title="fail" %}
{% code fullWidth="false" %}
```json
throw a Http error.
```
{% endcode %}
{% endtab %}
{% endtabs %}
## Detailed Guidelines
* **inpaint**
* Main parameter:
* `image` : The input image, can be a url or base64 sting. Any size
* `mask`: The correspond mask, can be a url or base64 sting. 1 means the masked region
* `mask_blur` : Mask blur refers to the feathering of a mask (from edges to inside the mask), adjusted between 0-64. A smaller value results in sharper edges. Default to 4
* `inpainting_fill` : Choose the fill content in mask: 0 - fill, 1 - original, 2 - latent noise, 3 - latent nothing. Default to 1
* `inpainting_mask_invert`: 0 - Inpaint masked region, 1 - Inpaint not masked region
* `denoising_strength`: Strength of image transfomation during inpainting precess. High means more influence during transformation
# Stable Diffusion Recommend
Given a description, recommend Stable Diffusion models and loras
## Try it in the Widget Center
Click this [url](https://app.myshell.ai/robot-workshop/widget/1782389093624786944) to try this widget and copy the Pro Config template.
## Usage
### Recommend Stable diffusion models
**Input Parameters**
<table><thead><tr><th>Name</th><th>Type</th><th>Description</th><th>Default</th><th data-type="checkbox">Required</th></tr></thead><tbody><tr><td>prompt</td><td><code>string</code></td><td>The description of your desired image: briefly describe the subject and setting of your image, along with any desired artistic style, and whatever you what</td><td></td><td>false</td></tr></tbody></table>
**Output Parameters**
| Name | Type | Description | File Type |
| --------- | -------- | -------------------------------------------------------------------------------------------------- | --------- |
| response | `string` | The recommended stable diffusion models come with information and demo pictures, as well as loras. | |
| raw\_info | `array` | The raw information of the recommended stable diffusion models. | |
**Output Example**
{% tabs %}
{% tab title="success" %}
{% code fullWidth="false" %}
```json
{
{
"raw_info": [
{
"base_model": "SD 1.5",
"demoPictureLora": "",
"demo_picture_lora": "https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/be49568e-943f-4c60-a2f8-3d27cb575854/width=1024/be49568e-943f-4c60-a2f8-3d27cb575854.jpeg",
"description": "The stable diffusion model generates a wide variety of images with a style that can range from simple prompts like \"A female soccer player\" to more complex prompts, showcasing compatibility with LoRAs and producing high-quality results even before upscaling.",
"loras": "",
"model_version_id": "66857",
"name": "FantasticChix-HR",
"official_demo_picture": "https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/06efa61a-2cab-48ba-980a-12246bbd6518/width=450/751232.jpeg",
"prompt": "An adorable 13 year old female wearing a witch outfit and witch hat reading an old book with (magic potions:1.2) and magical items on table in an (alchemy laboratory)"
},
{
"base_model": "SD 1.5",
"demoPictureLora": "",
"demo_picture_lora": "https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/30c1223e-dee3-442d-a79b-14390c55e762/width=1024/30c1223e-dee3-442d-a79b-14390c55e762.jpeg",
"description": "This stable diffusion model excels at generating high-resolution female portraits with a focus on capturing the essence of girls in a visually appealing manner.",
"loras": "",
"model_version_id": "77225",
"name": "Real Goofball",
"official_demo_picture": "https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/06161f7e-38b0-4cce-a5b8-6a8a07b772cb/width=450/866029.jpeg",
"prompt": "(masterpiece, top quality, best quality, official art, beautiful and aesthetic:1.2), (1girl:1.3), (fractal art:1.3),"
}
],
"response": "Here are summaries of the two stable diffusion models along with my personal recommendation:\n\n1. **FantasticChix-HR**\n - **Description:** This model generates a wide variety of images with a style that can range from simple to complex prompts. It is compatible with LoRAs and produces high-quality results even before upscaling.\n - **Base Model:** SD 1.5\n - **Prompt:** An adorable 13-year-old female wearing a witch outfit and witch hat reading an old book with magic potions and magical items on a table in an alchemy laboratory.\n - **Official Demo Picture:** [View Demo Picture](https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/06efa61a-2cab-48ba-980a-12246bbd6518/width=450/751232.jpeg)\n\n2. **Real Goofball**\n - **Description:** This model excels at generating high-resolution female portraits with a focus on capturing the essence of girls in a visually appealing manner.\n - **Base Model:** SD 1.5\n - **Prompt:** (masterpiece, top quality, best quality, official art, beautiful and aesthetic), (1girl), (fractal art)\n - **Official Demo Picture:** [View Demo Picture](https://image.civitai.com/xG1nkqKTMzGDvpLrqFT7WA/06161f7e-38b0-4cce-a5b8-6a8a07b772cb/width=450/866029.jpeg)\n\n**Personal Recommendation:** Both models offer unique strengths in generating high-quality images, with FantasticChix-HR being versatile in producing a wide range of styles and Real Goofball focusing on high-resolution female portraits. Depending on your specific needs, you can choose the model that aligns best with the type of images you aim to create."
}
}
```
{% endcode %}
{% endtab %}
{% endtabs %}
## Detailed Guidelines
# Stable Diffusion Transform
Transform images using the specified model ID from Civitai. With the given prompt and model, enable to transform the image based on the initial image.
## Try it in the Widget Center
Click this [url](https://app.myshell.ai/robot-workshop/widget/1782389162088411136) to try this widget and copy the Pro Config template.
## Usage
Transform images using the specified model ID from Civitai. With the provided prompt and model, enable the transformation of images based on the initial image.
**Input Parameters**
<table><thead><tr><th>Name</th><th>Type</th><th>Description</th><th>Default</th><th data-type="checkbox">Required</th></tr></thead><tbody><tr><td>image</td><td><code>string</code></td><td>The input image, can be a url or base64 sting</td><td></td><td>true</td></tr><tr><td>model</td><td><code>string</code></td><td>The model id from civitai (SD1.5, SDXL 1.0, PlaygroundV2). How to get it? Click on a model page on civitai, and copy the series number within the download link.</td><td>64094</td><td>true</td></tr><tr><td>prompt</td><td><code>string</code></td><td>The text prompt for image transformation. Add lora? add < lora:$id:$weight > to your prompt. `$id` is the series number and `$weight` is the lora weight you want (always set to 1.0). You can use multiple loras.</td><td></td><td>true</td></tr><tr><td>negative_prompt</td><td><code>string</code></td><td>The negative prompt for image transformation.</td><td>(worst quality, low quality:1.4),(malformed hands:1.4),(poorly drawn hands:1.4),(mutated fingers:1.4),(extra limbs:1.35),(poorly drawn face:1.4),bad leg,strange leg, poor eyes, full screen of face</td><td>false</td></tr><tr><td>sampler</td><td><code>string</code></td><td>Sampler for diffusion model inference</td><td>DPM++ 2M</td><td>false</td></tr><tr><td>resize_mode</td><td><code>string</code></td><td>Four modes for output shape calculation: (1) Keep: keep original shape, (2) Certain: based on input width/length (divisible by 32), (3,4) min/max ratio: keep aspect ratio, the resize factor is the min/max of (h/H, w/W).</td><td>certain</td><td>false</td></tr><tr><td>height</td><td><code>integer</code></td><td>Height of the transformed images</td><td>512</td><td>false</td></tr><tr><td>width</td><td><code>integer</code></td><td>Width of the transformed images</td><td>512</td><td>false</td></tr><tr><td>steps</td><td><code>integer</code></td><td>Steps for sampler to step whle sampling</td><td>25</td><td>false</td></tr><tr><td>cfg_scale</td><td><code>number</code></td><td>Classifier Free Guidance Scale - how strongly the image should conform to prompt - lower values produce more creative results. Default to 7.</td><td>7.0</td><td>false</td></tr><tr><td>seed</td><td><code>integer</code></td><td>Random seed for generation process. -1 means random seed</td><td>-1</td><td>false</td></tr><tr><td>clip_skip</td><td><code>integer</code></td><td>Early stopping parameter for CLIP model; 1 is stop at last layer as usual, 2 is stop at penultimate layer, etc.</td><td>1</td><td>false</td></tr><tr><td>denoising_strength</td><td><code>number</code></td><td>Strength of image transfomation during hires transform. High means more influence during transformation</td><td>0.7</td><td>false</td></tr></tbody></table>
**Output Parameters**
| Name | Type | Description | File Type |
| ---- | -------- | ------------------------------------------------------------------------------------------------------------ | --------- |
| url | `string` | The url of generated image, stored in the cloud. Only temporarily effective, will be cleared in a few hours. | `image` |
**Output Example**
{% tabs %}
{% tab title="success" %}
{% code fullWidth="false" %}
```json
{
"url": "https://image.myshell.ai/image/chat/embed_obj/40295/20240423/098f3f68bc2b4c42bb742add9efb2a2e.jpg"
}
```
{% endcode %}
{% endtab %}
{% tab title="fail" %}
{% code fullWidth="false" %}
```json
throw a Http error.
```
{% endcode %}
{% endtab %}
{% endtabs %}
## Detailed Guidelines
* **Transform**
* Usage: Transform the initial image's size and style while preserving most of the original content.
\*(prompt: two dogs running in the rain.)
The first image is the input init image, we transform the size and style in the following two images.\*
<figure><img src="https://content.gitbook.com/content/ltA4oqsKoJ26g4ArBpEA/blobs/yWnQrJvdlq3E23uyigNT/transform_init_image.jpg" alt=""><figcaption></figcaption></figure>
<figure><img src="https://content.gitbook.com/content/ltA4oqsKoJ26g4ArBpEA/blobs/zQR9AsiEV9CRGAsG8z3y/transform_image.jpg" alt=""><figcaption></figcaption></figure>
<figure><img src="https://content.gitbook.com/content/ltA4oqsKoJ26g4ArBpEA/blobs/ISVuZdidwwcwKzjvc967/transform_image_2.jpg" alt=""><figcaption></figcaption></figure>
* Main parameter:
* `image` : The input image, can be a url. Any size
* `model & prompt` : Same as stable diffusion generation usage.
* `denoising_strength`: Strength of image transfomation during hires transform. High means more influence during transformation
# Stable Diffusion Upscale
Upscale the initial image to given shape. You can choose to restore the face within the image by turn up the visibility of gfpgan and codeformer (with upscaling\_resize\_ratio to 1)
## Try it in the Widget Center
Click this [url](https://app.myshell.ai/robot-workshop/widget/1782696079298846720) to try this widget and copy the Pro Config template.
## Usage
Scale up the original image to the specified shape. You can opt to restore the face within the image by increasing the visibility of GFPGAN and Codeformer.
**Input Parameters**
<table><thead><tr><th>Name</th><th>Type</th><th>Description</th><th>Default</th><th data-type="checkbox">Required</th></tr></thead><tbody><tr><td>image</td><td><code>string</code></td><td>The input image, can be a url or base64 sting</td><td></td><td>true</td></tr><tr><td>resize_mode</td><td><code>integer</code></td><td>Sets the resize mode: 0 to upscale by upscaling_resize amount, 1 to upscale up to upscaling_resize_h x upscaling_resize_w.</td><td>0</td><td>false</td></tr><tr><td>gfpgan_visibility</td><td><code>number</code></td><td>Sets the visibility of GFPGAN, values should be between 0 and 1. Use for face restoring</td><td>0</td><td>false</td></tr><tr><td>codeformer_visibility</td><td><code>number</code></td><td>Sets the visibility of CodeFormer, values should be between 0 and 1. Use for face restoring</td><td>0</td><td>false</td></tr><tr><td>codeformer_weight</td><td><code>number</code></td><td>Sets the weight of CodeFormer, values should be between 0 and 1. Use for face restoring</td><td>0</td><td>false</td></tr><tr><td>upscaling_resize_ratio</td><td><code>number</code></td><td>By how much to upscale the image, only used when resize_mode=0.</td><td>2</td><td>false</td></tr><tr><td>upscaling_resize_w</td><td><code>integer</code></td><td>Target width for the upscaler to hit. Only used when resize_mode=1.</td><td>512</td><td>false</td></tr><tr><td>upscaling_resize_h</td><td><code>integer</code></td><td>Target height for the upscaler to hit. Only used when resize_mode=1.</td><td>512</td><td>false</td></tr><tr><td>upscaler_1</td><td><code>string</code></td><td>The name of the main upscaler to use</td><td>ESRGAN_4x</td><td>false</td></tr><tr><td>upscaler_2</td><td><code>string</code></td><td>The name of the secondary upscaler to use. Set to 'None' for quick upscale. The result will be a fusion of two model, decided by `extras_upscaler_2_visibility`.</td><td>None</td><td>false</td></tr><tr><td>extras_upscaler_2_visibility</td><td><code>number</code></td><td>Sets the visibility of secondary upscaler, values should be between 0 and 1.</td><td>0</td><td>false</td></tr><tr><td>upscale_first</td><td><code>boolean</code></td><td>Should the upscaler run before restoring faces?</td><td>False</td><td>false</td></tr></tbody></table>
**Output Parameters**
| Name | Type | Description | File Type |
| ---- | -------- | ------------------------------------------------------------------------------------------------------------ | --------- |
| url | `string` | The url of generated image, stored in the cloud. Only temporarily effective, will be cleared in a few hours. | `image` |
**Output Example**
{% tabs %}
{% tab title="success" %}
{% code fullWidth="false" %}
```json
{
"url": "https://image.myshell.ai/image/chat/embed_obj/40295/20240423/29381f8ee23144a69e88a64fa8232fca.jpg"
}
```
{% endcode %}
{% endtab %}
{% tab title="fail" %}
{% code fullWidth="false" %}
```json
throw a Http error.
```
{% endcode %}
{% endtab %}
{% endtabs %}
## Detailed Guidelines
* **Upscale (SuperResolution)**
* Main parameter:
* `image` : The input image, can be a url or base64 sting. Any size
* `resize_mode`: Sets the resize mode: 0 to upscale by upscaling\_resize amount, 1 to upscale up to upscaling\_resize\_h x upscaling\_resize\_w.
* `upscaling_resize_ratio` : By how much to upscale the image, only used when resize\_mode=0.
* `upscaling_resize_w & upscaling_resize_h`: Target width/height for the upscaler to hit. Only used when resize\_mode=1. Change the ratio of with/height will casuing a center crop of generated images
* `upscaler_1` : The name of the main upscaler to use, choose `["None", "Lanczos", "Nearest", "ESRGAN_4x", "LDSR", "R-ESRGAN 4x+", "R-ESRGAN 4x+ Anime6B", "ScuNET GAN", "ScuNET PSNR", "SwinIR 4x"]`
* `upscaler_2`: The name of the secondary upscaler to use. Set to 'None' to disable. The result will be a fusion of two model, decided by `extras_upscaler_2_visibility`
* `extras_upscaler_2_visibility`: Sets the visibility of secondary upscaler, values should be between 0 and 1. The result will be `final = (1-α) image_a + α image_b`
* Other functional parameter:
* `gfpgan_visibility` : Sets the visibility of GFPGAN, values should be between 0 and 1. Use for face restoring. 0 for disabled. The result will be a fusion addition
* `codeformer_visibility && codeformer_weight` : Sets the visibility and weight of CodeFormer, values should be between 0 and 1. Use for face restoring. The result will be a fusion addition
* `upscale_first` : Should the upscaler run before restoring faces? default to False
# Stable Diffusion with 6 fixed category
Lazy version of Stabel Diffusion with Civitai. Generate images with rough 6 category. Free you from choosing model in civitai. You can freely control parameters such as prompt, size, etc
## Try it in the Widget Center
Click this [url](https://app.myshell.ai/robot-workshop/widget/1779862424125534208) to try this widget and copy the Pro Config template.
## Usage
Feeling too lazy to pick a model ID from Civitai? Give our pre-selected SD\&LORAS a try. Effortless version of Stable Diffusion with Civitai. Produce images across approximately 6 categories. Eliminates the need to select a model in Civitai. You have the freedom to adjust parameters like prompt, size, and more.
**Input Parameters**
<table><thead><tr><th>Name</th><th>Type</th><th>Description</th><th>Default</th><th data-type="checkbox">Required</th></tr></thead><tbody><tr><td>category</td><td><code>string</code></td><td>Lazy to choose model id from civitai? try use our pre-picked sd&loras</td><td>Realistic & Photorealistic</td><td>true</td></tr><tr><td>prompt</td><td><code>string</code></td><td>The text prompt for image generation. Add lora? add `` to your prompt. `$id` is the series number and `$weight` is the lora weight you want (always set to 1.0). You can use multiple loras.</td><td></td><td>true</td></tr><tr><td>negative_prompt</td><td><code>string</code></td><td>The negative prompt for image generation.</td><td>(worst quality, low quality:1.4),(malformed hands:1.4),(poorly drawn hands:1.4),(mutated fingers:1.4),(extra limbs:1.35),(poorly drawn face:1.4),bad leg,strange leg, poor eyes, full screen of face</td><td>false</td></tr><tr><td>sampler</td><td><code>string</code></td><td>Sampler for diffusion model inference프로젝트로 돌아가기