3. Download the stable-diffusion-webui repository, for example by running `git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git`.
3. Download the stable-diffusion-webui repository, for example by running `git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git`.
4. Place stable diffusion checkpoint (`model.ckpt`) in the `models/Stable-diffusion` directory (see [dependencies](https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Dependencies) for where to get it).
4. Run `webui-user.bat` from Windows Explorer as normal, non-administrator, user.
5. Run `webui-user.bat` from Windows Explorer as normal, non-administrator, user.
"DDIM":"Denoising Diffusion Implicit Models - best at inpainting",
"DDIM":"Denoising Diffusion Implicit Models - best at inpainting",
"DPM adaptive":"Ignores step count - uses a number of steps determined by the CFG and resolution",
"DPM adaptive":"Ignores step count - uses a number of steps determined by the CFG and resolution",
"Batch count":"How many batches of images to create",
"Batch count":"How many batches of images to create (has no impact on generation performance or VRAM usage)",
"Batch size":"How many image to create in a single batch",
"Batch size":"How many image to create in a single batch (increases generation performance at cost of higher VRAM usage)",
"CFG Scale":"Classifier Free Guidance Scale - how strongly the image should conform to prompt - lower values produce more creative results",
"CFG Scale":"Classifier Free Guidance Scale - how strongly the image should conform to prompt - lower values produce more creative results",
"Seed":"A value that determines the output of random number generator - if you create an image with same parameters and seed as another image, you'll get the same result",
"Seed":"A value that determines the output of random number generator - if you create an image with same parameters and seed as another image, you'll get the same result",
"\u{1f3b2}\ufe0f":"Set seed to -1, which will cause a new random number to be used every time",
"\u{1f3b2}\ufe0f":"Set seed to -1, which will cause a new random number to be used every time",
parser.add_argument("--ui-settings-file",type=str,help="filename to use for ui settings",default=os.path.join(data_path,'config.json'))
parser.add_argument("--ui-settings-file",type=str,help="filename to use for ui settings",default=os.path.join(data_path,'config.json'))
parser.add_argument("--gradio-debug",action='store_true',help="launch gradio with --debug option")
parser.add_argument("--gradio-debug",action='store_true',help="launch gradio with --debug option")
parser.add_argument("--gradio-auth",type=str,help='set gradio authentication like "username:password"; or comma-delimit multiple like "u1:p1,u2:p2,u3:p3"',default=None)
parser.add_argument("--gradio-auth",type=str,help='set gradio authentication like "username:password"; or comma-delimit multiple like "u1:p1,u2:p2,u3:p3"',default=None)
parser.add_argument("--gradio-auth-path",type=str,help='set gradio authentication file path ex. "/path/to/auth/file" same auth format as --gradio-auth',default=None)
parser.add_argument("--gradio-img2img-tool",type=str,help='does not do anything')
parser.add_argument("--gradio-img2img-tool",type=str,help='does not do anything')
parser.add_argument("--gradio-inpaint-tool",type=str,help="does not do anything")
parser.add_argument("--gradio-inpaint-tool",type=str,help="does not do anything")
parser.add_argument("--opt-channelslast",action='store_true',help="change memory type for stable diffusion to channels last")
parser.add_argument("--opt-channelslast",action='store_true',help="change memory type for stable diffusion to channels last")
...
@@ -107,6 +108,7 @@ parser.add_argument("--server-name", type=str, help="Sets hostname of server", d
...
@@ -107,6 +108,7 @@ parser.add_argument("--server-name", type=str, help="Sets hostname of server", d
parser.add_argument("--skip-version-check",action='store_true',help="Do not check versions of torch and xformers")
parser.add_argument("--skip-version-check",action='store_true',help="Do not check versions of torch and xformers")
parser.add_argument("--no-hashing",action='store_true',help="disable sha256 hashing of checkpoints to help loading performance",default=False)
parser.add_argument("--no-hashing",action='store_true',help="disable sha256 hashing of checkpoints to help loading performance",default=False)
parser.add_argument("--no-download-sd-model",action='store_true',help="don't download SD1.5 model even if no model is found in --ckpt-dir",default=False)
"save_images_before_highres_fix":OptionInfo(False,"Save a copy of image before applying highres fix."),
"save_images_before_highres_fix":OptionInfo(False,"Save a copy of image before applying highres fix."),
"save_images_before_color_correction":OptionInfo(False,"Save a copy of image before applying color correction to img2img results"),
"save_images_before_color_correction":OptionInfo(False,"Save a copy of image before applying color correction to img2img results"),
"jpeg_quality":OptionInfo(80,"Quality for saved jpeg images",gr.Slider,{"minimum":1,"maximum":100,"step":1}),
"jpeg_quality":OptionInfo(80,"Quality for saved jpeg images",gr.Slider,{"minimum":1,"maximum":100,"step":1}),
"export_for_4chan":OptionInfo(True,"If PNG image is larger than 4MB or any dimension is larger than 4000, downscale and save copy as JPG"),
"export_for_4chan":OptionInfo(True,"If the saved image file size is above the limit, or its either width or height are above the limit, save a downscaled copy as JPG"),
"img_downscale_threshold":OptionInfo(4.0,"File size limit for the above option, MB",gr.Number),
"target_side_length":OptionInfo(4000,"Width/height limit for the above option, in pixels",gr.Number),
"use_original_name_batch":OptionInfo(True,"Use original name for output filename during batch process in extras tab"),
"use_original_name_batch":OptionInfo(True,"Use original name for output filename during batch process in extras tab"),
"use_upscaler_name_as_suffix":OptionInfo(False,"Use upscaler name as filename suffix in the extras tab"),
"use_upscaler_name_as_suffix":OptionInfo(False,"Use upscaler name as filename suffix in the extras tab"),
"use_old_emphasis_implementation":OptionInfo(False,"Use old emphasis implementation. Can be useful to reproduce old seeds."),
"use_old_emphasis_implementation":OptionInfo(False,"Use old emphasis implementation. Can be useful to reproduce old seeds."),
"use_old_karras_scheduler_sigmas":OptionInfo(False,"Use old karras scheduler sigmas (0.1 to 10)."),
"use_old_karras_scheduler_sigmas":OptionInfo(False,"Use old karras scheduler sigmas (0.1 to 10)."),
"no_dpmpp_sde_batch_determinism":OptionInfo(False,"Do not make DPM++ SDE deterministic across different batch sizes."),
"use_old_hires_fix_width_height":OptionInfo(False,"For hires fix, use width/height sliders to set final resolution rather than first pass (disables Upscale by, Resize width/height to)."),
"use_old_hires_fix_width_height":OptionInfo(False,"For hires fix, use width/height sliders to set final resolution rather than first pass (disables Upscale by, Resize width/height to)."),
create_image_every=gr.Number(label='Save an image to log directory every N steps, 0 to disable',value=500,precision=0,elem_id="train_create_image_every")
create_image_every=gr.Number(label='Save an image to log directory every N steps, 0 to disable',value=500,precision=0,elem_id="train_create_image_every")
save_embedding_every=gr.Number(label='Save a copy of embedding to log directory every N steps, 0 to disable',value=500,precision=0,elem_id="train_save_embedding_every")
save_embedding_every=gr.Number(label='Save a copy of embedding to log directory every N steps, 0 to disable',value=500,precision=0,elem_id="train_save_embedding_every")
use_weight=gr.Checkbox(label="Use PNG alpha channel as loss weight",value=False,elem_id="use_weight")
save_image_with_stored_embedding=gr.Checkbox(label='Save images with embedding in PNG chunks',value=True,elem_id="train_save_image_with_stored_embedding")
save_image_with_stored_embedding=gr.Checkbox(label='Save images with embedding in PNG chunks',value=True,elem_id="train_save_image_with_stored_embedding")
preview_from_txt2img=gr.Checkbox(label='Read parameters (prompt, etc...) from txt2img tab when making previews',value=False,elem_id="train_preview_from_txt2img")
preview_from_txt2img=gr.Checkbox(label='Read parameters (prompt, etc...) from txt2img tab when making previews',value=False,elem_id="train_preview_from_txt2img")