Instructions to use js100v110v120/stable-diffusion-webui with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use js100v110v120/stable-diffusion-webui with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("js100v110v120/stable-diffusion-webui", dtype="auto") - Notebooks
- Google Colab
- Kaggle
Commit ·
4ef8efe
1
Parent(s): c9d5440
add files
Browse files- config.json +172 -0
- config.yaml +70 -0
config.json
ADDED
|
@@ -0,0 +1,172 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"samples_save": true,
|
| 3 |
+
"samples_format": "png",
|
| 4 |
+
"samples_filename_pattern": "",
|
| 5 |
+
"save_images_add_number": true,
|
| 6 |
+
"grid_save": true,
|
| 7 |
+
"grid_format": "png",
|
| 8 |
+
"grid_extended_filename": false,
|
| 9 |
+
"grid_only_if_multiple": true,
|
| 10 |
+
"grid_prevent_empty_spots": false,
|
| 11 |
+
"n_rows": -1,
|
| 12 |
+
"enable_pnginfo": true,
|
| 13 |
+
"save_txt": false,
|
| 14 |
+
"save_images_before_face_restoration": false,
|
| 15 |
+
"save_images_before_highres_fix": false,
|
| 16 |
+
"save_images_before_color_correction": false,
|
| 17 |
+
"jpeg_quality": 80,
|
| 18 |
+
"webp_lossless": false,
|
| 19 |
+
"export_for_4chan": true,
|
| 20 |
+
"img_downscale_threshold": 4.0,
|
| 21 |
+
"target_side_length": 4000,
|
| 22 |
+
"img_max_size_mp": 200,
|
| 23 |
+
"use_original_name_batch": true,
|
| 24 |
+
"use_upscaler_name_as_suffix": false,
|
| 25 |
+
"save_selected_only": true,
|
| 26 |
+
"do_not_add_watermark": false,
|
| 27 |
+
"temp_dir": "",
|
| 28 |
+
"clean_temp_dir_at_start": false,
|
| 29 |
+
"outdir_samples": "/content/drive/MyDrive/outputs",
|
| 30 |
+
"outdir_txt2img_samples": "outputs/txt2img-images",
|
| 31 |
+
"outdir_img2img_samples": "outputs/img2img-images",
|
| 32 |
+
"outdir_extras_samples": "outputs/extras-images",
|
| 33 |
+
"outdir_grids": "",
|
| 34 |
+
"outdir_txt2img_grids": "outputs/txt2img-grids",
|
| 35 |
+
"outdir_img2img_grids": "outputs/img2img-grids",
|
| 36 |
+
"outdir_save": "log/images",
|
| 37 |
+
"save_to_dirs": true,
|
| 38 |
+
"grid_save_to_dirs": true,
|
| 39 |
+
"use_save_to_dirs_for_ui": false,
|
| 40 |
+
"directories_filename_pattern": "[date]",
|
| 41 |
+
"directories_max_prompt_words": 8,
|
| 42 |
+
"ESRGAN_tile": 192,
|
| 43 |
+
"ESRGAN_tile_overlap": 8,
|
| 44 |
+
"realesrgan_enabled_models": [
|
| 45 |
+
"R-ESRGAN 4x+",
|
| 46 |
+
"R-ESRGAN 4x+ Anime6B"
|
| 47 |
+
],
|
| 48 |
+
"upscaler_for_img2img": null,
|
| 49 |
+
"face_restoration_model": "CodeFormer",
|
| 50 |
+
"code_former_weight": 0.5,
|
| 51 |
+
"face_restoration_unload": false,
|
| 52 |
+
"show_warnings": false,
|
| 53 |
+
"memmon_poll_rate": 8,
|
| 54 |
+
"samples_log_stdout": false,
|
| 55 |
+
"multiple_tqdm": true,
|
| 56 |
+
"print_hypernet_extra": false,
|
| 57 |
+
"unload_models_when_training": false,
|
| 58 |
+
"pin_memory": false,
|
| 59 |
+
"save_optimizer_state": false,
|
| 60 |
+
"save_training_settings_to_txt": true,
|
| 61 |
+
"dataset_filename_word_regex": "",
|
| 62 |
+
"dataset_filename_join_string": " ",
|
| 63 |
+
"training_image_repeats_per_epoch": 1,
|
| 64 |
+
"training_write_csv_every": 500,
|
| 65 |
+
"training_xattention_optimizations": false,
|
| 66 |
+
"training_enable_tensorboard": false,
|
| 67 |
+
"training_tensorboard_save_images": false,
|
| 68 |
+
"training_tensorboard_flush_every": 120,
|
| 69 |
+
"sd_model_checkpoint": "chilloutmix_NiPrunedFp32Fix.safetensors [fc2511737a]",
|
| 70 |
+
"sd_checkpoint_cache": 0,
|
| 71 |
+
"sd_vae_checkpoint_cache": 0,
|
| 72 |
+
"sd_vae": "Automatic",
|
| 73 |
+
"sd_vae_as_default": true,
|
| 74 |
+
"inpainting_mask_weight": 1.0,
|
| 75 |
+
"initial_noise_multiplier": 1.0,
|
| 76 |
+
"img2img_color_correction": false,
|
| 77 |
+
"img2img_fix_steps": false,
|
| 78 |
+
"img2img_background_color": "#ffffff",
|
| 79 |
+
"enable_quantization": false,
|
| 80 |
+
"enable_emphasis": true,
|
| 81 |
+
"enable_batch_seeds": true,
|
| 82 |
+
"comma_padding_backtrack": 20,
|
| 83 |
+
"CLIP_stop_at_last_layers": 2,
|
| 84 |
+
"upcast_attn": false,
|
| 85 |
+
"use_old_emphasis_implementation": false,
|
| 86 |
+
"use_old_karras_scheduler_sigmas": false,
|
| 87 |
+
"no_dpmpp_sde_batch_determinism": false,
|
| 88 |
+
"use_old_hires_fix_width_height": false,
|
| 89 |
+
"interrogate_keep_models_in_memory": false,
|
| 90 |
+
"interrogate_return_ranks": false,
|
| 91 |
+
"interrogate_clip_num_beams": 1,
|
| 92 |
+
"interrogate_clip_min_length": 24,
|
| 93 |
+
"interrogate_clip_max_length": 48,
|
| 94 |
+
"interrogate_clip_dict_limit": 1500,
|
| 95 |
+
"interrogate_clip_skip_categories": [],
|
| 96 |
+
"interrogate_deepbooru_score_threshold": 0.5,
|
| 97 |
+
"deepbooru_sort_alpha": true,
|
| 98 |
+
"deepbooru_use_spaces": false,
|
| 99 |
+
"deepbooru_escape": true,
|
| 100 |
+
"deepbooru_filter_tags": "",
|
| 101 |
+
"extra_networks_default_view": "cards",
|
| 102 |
+
"extra_networks_default_multiplier": 1.0,
|
| 103 |
+
"extra_networks_add_text_separator": " ",
|
| 104 |
+
"sd_hypernetwork": "None",
|
| 105 |
+
"return_grid": true,
|
| 106 |
+
"do_not_show_images": false,
|
| 107 |
+
"add_model_hash_to_info": true,
|
| 108 |
+
"add_model_name_to_info": true,
|
| 109 |
+
"disable_weights_auto_swap": true,
|
| 110 |
+
"send_seed": true,
|
| 111 |
+
"send_size": true,
|
| 112 |
+
"font": "",
|
| 113 |
+
"js_modal_lightbox": true,
|
| 114 |
+
"js_modal_lightbox_initially_zoomed": true,
|
| 115 |
+
"show_progress_in_title": true,
|
| 116 |
+
"samplers_in_dropdown": true,
|
| 117 |
+
"dimensions_and_batch_together": true,
|
| 118 |
+
"keyedit_precision_attention": 0.1,
|
| 119 |
+
"keyedit_precision_extra": 0.05,
|
| 120 |
+
"quicksettings": "sd_model_checkpoint",
|
| 121 |
+
"hidden_tabs": [],
|
| 122 |
+
"ui_reorder": "inpaint, sampler, checkboxes, hires_fix, dimensions, cfg, seed, batch, override_settings, scripts",
|
| 123 |
+
"ui_extra_networks_tab_reorder": "",
|
| 124 |
+
"localization": "chinese-english",
|
| 125 |
+
"show_progressbar": true,
|
| 126 |
+
"live_previews_enable": true,
|
| 127 |
+
"show_progress_grid": true,
|
| 128 |
+
"show_progress_every_n_steps": 10,
|
| 129 |
+
"show_progress_type": "Approx NN",
|
| 130 |
+
"live_preview_content": "Prompt",
|
| 131 |
+
"live_preview_refresh_period": 1000,
|
| 132 |
+
"hide_samplers": [],
|
| 133 |
+
"eta_ddim": 0.0,
|
| 134 |
+
"eta_ancestral": 1.0,
|
| 135 |
+
"ddim_discretize": "uniform",
|
| 136 |
+
"s_churn": 0.0,
|
| 137 |
+
"s_tmin": 0.0,
|
| 138 |
+
"s_noise": 1.0,
|
| 139 |
+
"eta_noise_seed_delta": 0,
|
| 140 |
+
"always_discard_next_to_last_sigma": false,
|
| 141 |
+
"uni_pc_variant": "bh1",
|
| 142 |
+
"uni_pc_skip_type": "time_uniform",
|
| 143 |
+
"uni_pc_order": 3,
|
| 144 |
+
"uni_pc_lower_order_final": true,
|
| 145 |
+
"postprocessing_enable_in_main_ui": [],
|
| 146 |
+
"postprocessing_operation_order": [],
|
| 147 |
+
"upscaling_max_images_in_cache": 5,
|
| 148 |
+
"disabled_extensions": [],
|
| 149 |
+
"sd_checkpoint_hash": "fc2511737a54c5e80b89ab03e0ab4b98d051ab187f92860f3cd664dc9d08b271",
|
| 150 |
+
"ldsr_steps": 100,
|
| 151 |
+
"ldsr_cached": false,
|
| 152 |
+
"SWIN_tile": 192,
|
| 153 |
+
"SWIN_tile_overlap": 8,
|
| 154 |
+
"sd_lora": "None",
|
| 155 |
+
"lora_apply_to_outputs": false,
|
| 156 |
+
"control_net_model_config": "models/cldm_v15.yaml",
|
| 157 |
+
"control_net_model_adapter_config": "models/sketch_adapter_v14.yaml",
|
| 158 |
+
"control_net_detectedmap_dir": "detected_maps",
|
| 159 |
+
"control_net_models_path": "",
|
| 160 |
+
"control_net_max_models_num": 1,
|
| 161 |
+
"control_net_model_cache_size": 1,
|
| 162 |
+
"control_net_control_transfer": false,
|
| 163 |
+
"control_net_no_detectmap": false,
|
| 164 |
+
"control_net_detectmap_autosaving": false,
|
| 165 |
+
"control_net_only_midctrl_hires": true,
|
| 166 |
+
"control_net_allow_script_control": false,
|
| 167 |
+
"control_net_skip_img2img_processing": false,
|
| 168 |
+
"control_net_monocular_depth_optim": false,
|
| 169 |
+
"control_net_only_mid_control": false,
|
| 170 |
+
"control_net_cfg_based_guidance": false,
|
| 171 |
+
"control_net_sync_field_args": false
|
| 172 |
+
}
|
config.yaml
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
model:
|
| 2 |
+
base_learning_rate: 1.0e-04
|
| 3 |
+
target: ldm.models.diffusion.ddpm.LatentDiffusion
|
| 4 |
+
params:
|
| 5 |
+
linear_start: 0.00085
|
| 6 |
+
linear_end: 0.0120
|
| 7 |
+
num_timesteps_cond: 1
|
| 8 |
+
log_every_t: 200
|
| 9 |
+
timesteps: 1000
|
| 10 |
+
first_stage_key: "jpg"
|
| 11 |
+
cond_stage_key: "txt"
|
| 12 |
+
image_size: 64
|
| 13 |
+
channels: 4
|
| 14 |
+
cond_stage_trainable: false # Note: different from the one we trained before
|
| 15 |
+
conditioning_key: crossattn
|
| 16 |
+
monitor: val/loss_simple_ema
|
| 17 |
+
scale_factor: 0.18215
|
| 18 |
+
use_ema: False
|
| 19 |
+
|
| 20 |
+
scheduler_config: # 10000 warmup steps
|
| 21 |
+
target: ldm.lr_scheduler.LambdaLinearScheduler
|
| 22 |
+
params:
|
| 23 |
+
warm_up_steps: [ 10000 ]
|
| 24 |
+
cycle_lengths: [ 10000000000000 ] # incredibly large number to prevent corner cases
|
| 25 |
+
f_start: [ 1.e-6 ]
|
| 26 |
+
f_max: [ 1. ]
|
| 27 |
+
f_min: [ 1. ]
|
| 28 |
+
|
| 29 |
+
unet_config:
|
| 30 |
+
target: ldm.modules.diffusionmodules.openaimodel.UNetModel
|
| 31 |
+
params:
|
| 32 |
+
image_size: 32 # unused
|
| 33 |
+
in_channels: 4
|
| 34 |
+
out_channels: 4
|
| 35 |
+
model_channels: 320
|
| 36 |
+
attention_resolutions: [ 4, 2, 1 ]
|
| 37 |
+
num_res_blocks: 2
|
| 38 |
+
channel_mult: [ 1, 2, 4, 4 ]
|
| 39 |
+
num_heads: 8
|
| 40 |
+
use_spatial_transformer: True
|
| 41 |
+
transformer_depth: 1
|
| 42 |
+
context_dim: 768
|
| 43 |
+
use_checkpoint: True
|
| 44 |
+
legacy: False
|
| 45 |
+
|
| 46 |
+
first_stage_config:
|
| 47 |
+
target: ldm.models.autoencoder.AutoencoderKL
|
| 48 |
+
params:
|
| 49 |
+
embed_dim: 4
|
| 50 |
+
monitor: val/rec_loss
|
| 51 |
+
ddconfig:
|
| 52 |
+
double_z: true
|
| 53 |
+
z_channels: 4
|
| 54 |
+
resolution: 512
|
| 55 |
+
in_channels: 3
|
| 56 |
+
out_ch: 3
|
| 57 |
+
ch: 128
|
| 58 |
+
ch_mult:
|
| 59 |
+
- 1
|
| 60 |
+
- 2
|
| 61 |
+
- 4
|
| 62 |
+
- 4
|
| 63 |
+
num_res_blocks: 2
|
| 64 |
+
attn_resolutions: []
|
| 65 |
+
dropout: 0.0
|
| 66 |
+
lossconfig:
|
| 67 |
+
target: torch.nn.Identity
|
| 68 |
+
|
| 69 |
+
cond_stage_config:
|
| 70 |
+
target: ldm.modules.encoders.modules.FrozenCLIPEmbedder
|