forked from AUTOMATIC1111/stable-diffusion-webui
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'portrai' into portrai-macos-experimental
- Loading branch information
Showing
7 changed files
with
288 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,158 @@ | ||
{ | ||
"samples_save": true, | ||
"samples_format": "png", | ||
"samples_filename_pattern": "", | ||
"save_images_add_number": true, | ||
"grid_save": true, | ||
"grid_format": "png", | ||
"grid_extended_filename": false, | ||
"grid_only_if_multiple": true, | ||
"grid_prevent_empty_spots": false, | ||
"n_rows": -1, | ||
"enable_pnginfo": false, | ||
"save_txt": false, | ||
"save_images_before_face_restoration": false, | ||
"save_images_before_highres_fix": false, | ||
"save_images_before_color_correction": false, | ||
"save_mask": false, | ||
"save_mask_composite": false, | ||
"jpeg_quality": 80, | ||
"webp_lossless": false, | ||
"export_for_4chan": true, | ||
"img_downscale_threshold": 4.0, | ||
"target_side_length": 4000, | ||
"img_max_size_mp": 200, | ||
"use_original_name_batch": true, | ||
"use_upscaler_name_as_suffix": false, | ||
"save_selected_only": true, | ||
"do_not_add_watermark": false, | ||
"temp_dir": "", | ||
"clean_temp_dir_at_start": false, | ||
"outdir_samples": "", | ||
"outdir_txt2img_samples": "outputs/txt2img-images", | ||
"outdir_img2img_samples": "outputs/img2img-images", | ||
"outdir_extras_samples": "outputs/extras-images", | ||
"outdir_grids": "", | ||
"outdir_txt2img_grids": "outputs/txt2img-grids", | ||
"outdir_img2img_grids": "outputs/img2img-grids", | ||
"outdir_save": "log/images", | ||
"save_to_dirs": true, | ||
"grid_save_to_dirs": true, | ||
"use_save_to_dirs_for_ui": false, | ||
"directories_filename_pattern": "[date]", | ||
"directories_max_prompt_words": 8, | ||
"ESRGAN_tile": 192, | ||
"ESRGAN_tile_overlap": 8, | ||
"realesrgan_enabled_models": [ | ||
"R-ESRGAN 4x+", | ||
"R-ESRGAN 4x+ Anime6B" | ||
], | ||
"upscaler_for_img2img": null, | ||
"face_restoration_model": "CodeFormer", | ||
"code_former_weight": 0.5, | ||
"face_restoration_unload": false, | ||
"show_warnings": false, | ||
"memmon_poll_rate": 8, | ||
"samples_log_stdout": false, | ||
"multiple_tqdm": true, | ||
"print_hypernet_extra": false, | ||
"unload_models_when_training": false, | ||
"pin_memory": false, | ||
"save_optimizer_state": false, | ||
"save_training_settings_to_txt": true, | ||
"dataset_filename_word_regex": "", | ||
"dataset_filename_join_string": " ", | ||
"training_image_repeats_per_epoch": 1, | ||
"training_write_csv_every": 500, | ||
"training_xattention_optimizations": false, | ||
"training_enable_tensorboard": false, | ||
"training_tensorboard_save_images": false, | ||
"training_tensorboard_flush_every": 120, | ||
"sd_model_checkpoint": "deliberate_v2.safetensors [9aba26abdf]", | ||
"sd_checkpoint_cache": 0, | ||
"sd_vae_checkpoint_cache": 0, | ||
"sd_vae": "Automatic", | ||
"sd_vae_as_default": true, | ||
"inpainting_mask_weight": 1.0, | ||
"initial_noise_multiplier": 1.0, | ||
"img2img_color_correction": false, | ||
"img2img_fix_steps": false, | ||
"img2img_background_color": "#ffffff", | ||
"enable_quantization": false, | ||
"enable_emphasis": true, | ||
"enable_batch_seeds": true, | ||
"comma_padding_backtrack": 20, | ||
"CLIP_stop_at_last_layers": 1, | ||
"upcast_attn": false, | ||
"use_old_emphasis_implementation": false, | ||
"use_old_karras_scheduler_sigmas": false, | ||
"no_dpmpp_sde_batch_determinism": false, | ||
"use_old_hires_fix_width_height": false, | ||
"interrogate_keep_models_in_memory": false, | ||
"interrogate_return_ranks": false, | ||
"interrogate_clip_num_beams": 1, | ||
"interrogate_clip_min_length": 24, | ||
"interrogate_clip_max_length": 48, | ||
"interrogate_clip_dict_limit": 1500, | ||
"interrogate_clip_skip_categories": [], | ||
"interrogate_deepbooru_score_threshold": 0.5, | ||
"deepbooru_sort_alpha": true, | ||
"deepbooru_use_spaces": false, | ||
"deepbooru_escape": true, | ||
"deepbooru_filter_tags": "", | ||
"extra_networks_default_view": "cards", | ||
"extra_networks_default_multiplier": 1.0, | ||
"extra_networks_card_width": 0, | ||
"extra_networks_card_height": 0, | ||
"extra_networks_add_text_separator": " ", | ||
"sd_hypernetwork": "None", | ||
"return_grid": true, | ||
"return_mask": false, | ||
"return_mask_composite": false, | ||
"do_not_show_images": false, | ||
"add_model_hash_to_info": true, | ||
"add_model_name_to_info": true, | ||
"disable_weights_auto_swap": true, | ||
"send_seed": true, | ||
"send_size": true, | ||
"font": "", | ||
"js_modal_lightbox": true, | ||
"js_modal_lightbox_initially_zoomed": true, | ||
"show_progress_in_title": true, | ||
"samplers_in_dropdown": true, | ||
"dimensions_and_batch_together": true, | ||
"keyedit_precision_attention": 0.1, | ||
"keyedit_precision_extra": 0.05, | ||
"quicksettings": "sd_model_checkpoint", | ||
"hidden_tabs": [], | ||
"ui_reorder": "inpaint, sampler, checkboxes, hires_fix, dimensions, cfg, seed, batch, override_settings, scripts", | ||
"ui_extra_networks_tab_reorder": "", | ||
"localization": "None", | ||
"show_progressbar": true, | ||
"live_previews_enable": true, | ||
"show_progress_grid": true, | ||
"show_progress_every_n_steps": 4, | ||
"show_progress_type": "Approx NN", | ||
"live_preview_content": "Prompt", | ||
"live_preview_refresh_period": 1000, | ||
"hide_samplers": [], | ||
"eta_ddim": 0.0, | ||
"eta_ancestral": 1.0, | ||
"ddim_discretize": "uniform", | ||
"s_churn": 0.0, | ||
"s_tmin": 0.0, | ||
"s_noise": 1.0, | ||
"eta_noise_seed_delta": 0, | ||
"always_discard_next_to_last_sigma": false, | ||
"uni_pc_variant": "bh1", | ||
"uni_pc_skip_type": "time_uniform", | ||
"uni_pc_order": 3, | ||
"uni_pc_lower_order_final": true, | ||
"postprocessing_enable_in_main_ui": [], | ||
"postprocessing_operation_order": [], | ||
"upscaling_max_images_in_cache": 5, | ||
"disabled_extensions": [], | ||
"disable_all_extensions": "none", | ||
"sd_checkpoint_hash": "9aba26abdfcd46073e0a1d42027a3a3bcc969f562d58a03637bf0a0ded6586c9", | ||
"restore_config_state_file": "" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import time | ||
|
||
current_task = None | ||
pending_tasks = {} | ||
finished_tasks = [] | ||
recorded_results = [] | ||
recorded_results_limit = 2 | ||
|
||
def start_task(id_task): | ||
global current_task | ||
|
||
current_task = id_task | ||
pending_tasks.pop(id_task, None) | ||
|
||
def finish_task(id_task): | ||
global current_task | ||
|
||
if current_task == id_task: | ||
current_task = None | ||
|
||
finished_tasks.append(id_task) | ||
if len(finished_tasks) > 16: | ||
finished_tasks.pop(0) | ||
|
||
def cancel_task(id_task): | ||
global current_task | ||
|
||
if current_task == id_task: | ||
current_task = None | ||
|
||
pending_tasks.pop(id_task, None) | ||
|
||
def record_results(id_task, res): | ||
recorded_results.append((id_task, res)) | ||
if len(recorded_results) > recorded_results_limit: | ||
recorded_results.pop(0) | ||
|
||
|
||
def add_task_to_queue(id_job): | ||
pending_tasks[id_job] = time.time() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.