Gourieff / sd-webui-reactor

Fast and Simple Face Swap Extension for StableDiffusion WebUI (A1111 SD WebUI, SD WebUI Forge, SD.Next, Cagliostro)
GNU Affero General Public License v3.0
2.17k stars 235 forks source link

Tiled upscale infinite loop with exponential steps using ReActor Upscale set to x1 #431

Open Norio0 opened 3 weeks ago

Norio0 commented 3 weeks ago

First, confirm

What happened?

When upscaling using ReActor, Scale by 1, the tiled upscale operation is performed. This will immediately be followed by the tiled upscale operation again, and again with more than 10x the operation steps each time. Until the operation runs out of memory.

Setting "Scale by" to anything above 1 will not cause the issue.

Unsure if this is an issue with SD Web UI, or ReActor. However, I have combed through all settings and extensions to ensure tiling settings are turned off for everything. Issue persists regardless.

Steps to reproduce the problem

Issue starting with Stable-Diffusion-webui version 1.9.1 to 1.9.3 Using Txt2Img, Img2Img, or Extras Using source image, face model, or folder In ReActor Upscale tab, set "Upscale by" to 1 Issue will happen with any upscaler model chosen, except for "Nearest" and "Lanczos"

Sysinfo

{ "Platform": "Windows-10-10.0.19045-SP0", "Python": "3.10.9", "Version": "v1.9.3", "Commit": "1c0a0c4c26f78c32095ebc7f8af82f5c04fca8c0", "Script path": "D:\stable-diffusion-webui", "Data path": "D:\stable-diffusion-webui", "Extensions dir": "D:\stable-diffusion-webui\extensions", "Checksum": "f8b3dfa86a2b05eb3c85ff5ef9a4c4411d64df8158d351c610561ab8d3b0fc6a", "Commandline": [ "launch.py", "--xformers", "--listen", "--api", "--allow-code", "--disable-safe-unpickle", "--enable-insecure-extension-access" ], "Torch env info": { "torch_version": "2.1.2+cu121", "is_debug_build": "False", "cuda_compiled_version": "12.1", "gcc_version": null, "clang_version": null, "cmake_version": null, "os": "Microsoft Windows 10 Home", "libc_version": "N/A", "python_version": "3.10.9 (tags/v3.10.9:1dd9be6, Dec 6 2022, 20:01:21) [MSC v.1934 64 bit (AMD64)] (64-bit runtime)", "python_platform": "Windows-10-10.0.19045-SP0", "is_cuda_available": "True", "cuda_runtime_version": "11.8.89\r", "cuda_module_loading": "LAZY", "nvidia_driver_version": "552.12", "nvidia_gpu_models": "GPU 0: NVIDIA GeForce RTX 3090", "cudnn_version": null, "pip_version": "pip3", "pip_packages": [ "numpy==1.26.2", "open-clip-torch==2.20.0", "pytorch-lightning==1.9.4", "torch==2.1.2+cu121", "torchdiffeq==0.2.3", "torchmetrics==1.3.1", "torchsde==0.2.6", "torchvision==0.16.2+cu121" ], "conda_packages": null, "hip_compiled_version": "N/A", "hip_runtime_version": "N/A", "miopen_runtime_version": "N/A", "caching_allocator_config": "", "is_xnnpack_available": "True", "cpu_info": [ "Architecture=9", "CurrentClockSpeed=3792", "DeviceID=CPU0", "Family=198", "L2CacheSize=2048", "L2CacheSpeed=", "Manufacturer=GenuineIntel", "MaxClockSpeed=3792", "Name=Intel(R) Core(TM) i7-10700K CPU @ 3.80GHz", "ProcessorType=3", "Revision=" ] }, "CPU": { "model": "Intel64 Family 6 Model 165 Stepping 5, GenuineIntel", "count logical": 16, "count physical": 8 }, "RAM": { "total": "32GB", "used": "9GB", "free": "23GB" }, "Environment": { "COMMANDLINE_ARGS": "--xformers --listen --api --allow-code --disable-safe-unpickle --enable-insecure-extension-access", "GRADIO_ANALYTICS_ENABLED": "False" }, "Config": { "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": true, "save_txt": false, "save_images_before_face_restoration": false, "save_images_before_highres_fix": false, "save_images_before_color_correction": false, "jpeg_quality": 80, "export_for_4chan": true, "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": 144, "ESRGAN_tile_overlap": 8, "realesrgan_enabled_models": [ "R-ESRGAN 4x+", "R-ESRGAN 4x+ Anime6B" ], "upscaler_for_img2img": "None", "face_restoration_model": "CodeFormer", "code_former_weight": 0.8, "face_restoration_unload": true, "show_warnings": true, "memmon_poll_rate": 8, "samples_log_stdout": false, "multiple_tqdm": true, "print_hypernet_extra": false, "unload_models_when_training": true, "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": true, "training_tensorboard_save_images": false, "training_tensorboard_flush_every": 120, "sd_model_checkpoint": "socababesTurboXL_v12Hybrid.safetensors [924da13ca2]", "sd_checkpoint_cache": 0, "sd_vae_checkpoint_cache": 0, "sd_vae": "None", "sd_vae_as_default": false, "inpainting_mask_weight": 1.0, "initial_noise_multiplier": 1.0, "img2img_color_correction": false, "img2img_fix_steps": false, "img2img_background_color": "#ffffffff", "enable_quantization": false, "enable_emphasis": true, "enable_batch_seeds": true, "comma_padding_backtrack": 20, "CLIP_stop_at_last_layers": 1, "upcast_attn": true, "use_old_emphasis_implementation": false, "use_old_karras_scheduler_sigmas": 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, "sd_hypernetwork": "None", "return_grid": true, "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": false, "font": "", "js_modal_lightbox": true, "js_modal_lightbox_initially_zoomed": true, "show_progress_in_title": false, "samplers_in_dropdown": true, "dimensions_and_batch_together": true, "keyedit_precision_attention": 0.1, "keyedit_precision_extra": 0.05, "quicksettings": "sd_model_checkpoint", "ui_reorder": "inpaint, sampler, checkboxes, hires_fix, dimensions, cfg, seed, batch, override_settings, scripts", "ui_extra_networks_tab_reorder": "", "localization": "None", "show_progressbar": false, "live_previews_enable": false, "show_progress_grid": true, "show_progress_every_n_steps": -1, "show_progress_type": "Full", "live_preview_content": "Combined", "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": 31337, "always_discard_next_to_last_sigma": false, "postprocessing_enable_in_main_ui": [], "postprocessing_operation_order": [], "upscaling_max_images_in_cache": 5, "disabled_extensions": [ "OneButtonPrompt", "SadTalker", "UnivAICharGen", "a1111-sd-webui-tagcomplete", "adetailer", "ebsynth_utility", "facechain", "model_preset_manager", "openpose-editor", "posex", "sd-canvas-editor", "sd-civitai-browser-plus", "sd-dynamic-prompts", "sd-extension-steps-animation", "sd-model-downloader", "sd-webui-3d-open-pose-editor", "sd-webui-EasyPhoto", "sd-webui-additional-networks", "sd-webui-facefusion", "sd-webui-inpaint-anything", "sd-webui-openpose-editor", "sd-webui-riffusion", "sd-webui-runtime-block-merge", "sd-webui-supermerger", "sd-webui-txt-img-to-3d-model", "sd_dreambooth_extension", "sdweb-merge-block-weighted-gui", "stable-diffusion-webui-aesthetic-image-scorer", "stable-diffusion-webui-conditioning-highres-fix", "stable-diffusion-webui-daam", "stable-diffusion-webui-dataset-tag-editor", "stable-diffusion-webui-instruct-pix2pix", "stable-diffusion-webui-model-toolkit", "unprompted" ], "sd_checkpoint_hash": "924da13ca26719eace3ba556a6fdafc822ee1e6d9064b8aaa5d0320b53e2c269", "ldsr_steps": 100, "ldsr_cached": false, "SWIN_tile": 192, "SWIN_tile_overlap": 8, "sd_lora": "None", "lora_apply_to_outputs": false, "dp_ignore_whitespace": false, "dp_write_raw_template": false, "dp_write_prompts_to_file": false, "tac_tagFile": "None", "tac_active": true, "tac_activeIn.txt2img": true, "tac_activeIn.img2img": true, "tac_activeIn.negativePrompts": true, "tac_activeIn.thirdParty": true, "tac_activeIn.modelList": "", "tac_activeIn.modelListMode": "Blacklist", "tac_maxResults": 5.0, "tac_showAllResults": true, "tac_resultStepLength": 100.0, "tac_delayTime": 100.0, "tac_useWildcards": true, "tac_useEmbeddings": true, "tac_useHypernetworks": true, "tac_useLoras": true, "tac_showWikiLinks": false, "tac_replaceUnderscores": true, "tac_escapeParentheses": true, "tac_appendComma": true, "tac_alias.searchByAlias": true, "tac_alias.onlyShowAlias": false, "tac_translation.translationFile": "None", "tac_translation.oldFormat": false, "tac_translation.searchByTranslation": true, "tac_extra.extraFile": "None", "tac_extra.onlyAliasExtraFile": false, "additional_networks_extra_lora_path": "", "additional_networks_sort_models_by": "path name", "additional_networks_reverse_sort_order": false, "additional_networks_model_name_filter": "", "additional_networks_xy_grid_model_metadata": "", "additional_networks_hash_thread_count": 1.0, "additional_networks_back_up_model_when_saving": true, "additional_networks_show_only_safetensors": false, "additional_networks_show_only_models_with_metadata": "disabled", "additional_networks_max_top_tags": 20.0, "additional_networks_max_dataset_folders": 20.0, "control_net_model_config": "D:\stable-diffusion-webui\extensions\sd-webui-controlnet\models\cldm_v15.yaml", "control_net_models_path": "", "control_net_transfer_control": true, "control_net_no_detectmap": false, "control_net_only_midctrl_hires": true, "tac_extra.addMode": "Insert before", "control_net_control_transfer": false, "control_net_allow_script_control": true, "img_downscale_threshold": 4.0, "target_side_length": 4000.0, "no_dpmpp_sde_batch_determinism": true, "control_net_model_adapter_config": "D:\stable-diffusion-webui\extensions\sd-webui-controlnet\models\sketch_adapter_v14.yaml", "control_net_detectedmap_dir": "D:\stable-diffusion-webui\extensions\sd-webui-controlnet\detected_maps", "control_net_max_models_num": 3, "control_net_model_cache_size": 2, "control_net_detectmap_autosaving": false, "control_net_skip_img2img_processing": false, "control_net_monocular_depth_optim": true, "control_net_only_mid_control": false, "control_net_cfg_based_guidance": true, "outdir_ip2p_samples": "outputs/ip2p-images", "def_img_cfg": "1.5", "def_txt_cfg": "7.5", "def_steps": "20", "def_sampler": "0", "def_out_batches": "1", "def_batch_dir": "outputs/ip2p-batch", "save_mask": false, "save_mask_composite": false, "webp_lossless": false, "img_max_size_mp": 200.0, "extra_networks_card_width": 0.0, "extra_networks_card_height": 0.0, "extra_networks_add_text_separator": " ", "return_mask": false, "return_mask_composite": false, "hidden_tabs": [], "uni_pc_variant": "bh2", "uni_pc_skip_type": "time_uniform", "uni_pc_order": 3, "uni_pc_lower_order_final": true, "tac_slidingPopup": true, "disable_all_extensions": "none", "promptgen_names": "AUTOMATIC/promptgen-lexart, AUTOMATIC/promptgen-majinai-safe, AUTOMATIC/promptgen-majinai-unsafe", "promptgen_device": "gpu", "restore_config_state_file": "", "save_init_img": false, "outdir_init_images": "outputs/init-images", "SCUNET_tile": 256, "SCUNET_tile_overlap": 8, "randn_source": "GPU", "dont_fix_second_order_samplers_schedule": false, "keyedit_delimiters": ".,\/!?%^*;:{}=`~()", "gradio_theme": "Default", "s_min_uncond": 0, "tac_useLycos": true, "tac_keymap": "{\n \"MoveUp\": \"ArrowUp\",\n \"MoveDown\": \"ArrowDown\",\n \"JumpUp\": \"PageUp\",\n \"JumpDown\": \"PageDown\",\n \"JumpToStart\": \"Home\",\n \"JumpToEnd\": \"End\",\n \"ChooseSelected\": \"Enter\",\n \"ChooseFirstOrSelected\": \"Tab\",\n \"Close\": \"Escape\"\n}", "tac_colormap": "{\n \"danbooru\": {\n \"-1\": [\"red\", \"maroon\"],\n \"0\": [\"lightblue\", \"dodgerblue\"],\n \"1\": [\"indianred\", \"firebrick\"],\n \"3\": [\"violet\", \"darkorchid\"],\n \"4\": [\"lightgreen\", \"darkgreen\"],\n \"5\": [\"orange\", \"darkorange\"]\n },\n \"e621\": {\n \"-1\": [\"red\", \"maroon\"],\n \"0\": [\"lightblue\", \"dodgerblue\"],\n \"1\": [\"gold\", \"goldenrod\"],\n \"3\": [\"violet\", \"darkorchid\"],\n \"4\": [\"lightgreen\", \"darkgreen\"],\n \"5\": [\"tomato\", \"darksalmon\"],\n \"6\": [\"red\", \"maroon\"],\n \"7\": [\"whitesmoke\", \"black\"],\n \"8\": [\"seagreen\", \"darkseagreen\"]\n }\n}", "deforum_keep_3d_models_in_vram": false, "deforum_enable_persistent_settings": false, "deforum_persistent_settings_path": "models/Deforum/deforum_persistent_settings.txt", "deforum_ffmpeg_location": "D:\stable-diffusion-webui\venv\lib\site-packages\imageio_ffmpeg\binaries\ffmpeg-win64-v4.2.2.exe", "deforum_ffmpeg_crf": 17, "deforum_ffmpeg_preset": "slow", "deforum_debug_mode_enabled": true, "deforum_save_gen_info_as_srt": false, "deforum_save_gen_info_as_srt_params": [ "Noise Schedule" ], "control_net_modules_path": "", "control_net_sync_field_args": false, "controlnet_show_batch_images_in_ui": false, "controlnet_increment_seed_during_batch": false, "quicksettings_list": [ "sd_model_checkpoint", "CLIP_stop_at_last_layers", "sd_vae" ], "lora_functional": false, "lora_preferred_name": "Alias from file", "js_modal_lightbox_gamepad": true, "js_modal_lightbox_gamepad_repeat": 250.0, "add_version_to_infotext": true, "tac_chantFile": "demo-chants.json", "list_hidden_files": true, "cross_attention_optimization": "Automatic", "token_merging_ratio": 0, "token_merging_ratio_img2img": 0, "token_merging_ratio_hr": 0, "extra_networks_show_hidden_directories": true, "extra_networks_hidden_models": "When searched", "lora_add_hashes_to_infotext": true, "img2img_editor_height": 720, "ui_tab_order": [], "hires_fix_show_sampler": false, "hires_fix_show_prompts": false, "live_previews_image_format": "png", "tac_translation.liveTranslation": false, "tac_refreshTempFiles": "Refresh TAC temp files", "ad_max_models": 4, "ad_save_previews": false, "ad_save_images_before": false, "ad_only_seleted_scripts": true, "ad_script_names": "dynamic_prompting,dynamic_thresholding,wildcard_recursive,wildcards", "ad_bbox_sortby": "Position (left to right)", "deforum_embed_srt": false, "controlnet_disable_control_type": false, "controlnet_disable_openpose_edit": false, "regprp_debug": false, "regprp_hidepmask": false, "dataset_editor_image_columns": 6.0, "dataset_editor_max_res": 0.0, "dataset_editor_use_temp_files": false, "dataset_editor_use_raw_clip_token": true, "ui_reorder_list": [ "inpaint", "sampler", "checkboxes", "hires_fix", "dimensions", "cfg", "seed", "batch", "override_settings", "scripts" ], "sd_vae_overrides_per_model_preferences": true, "grid_zip_filename_pattern": "", "grid_text_active_color": "#000000", "grid_text_inactive_color": "#999999", "grid_background_color": "#ffffff", "save_incomplete_images": false, "face_restoration": false, "auto_launch_browser": "Local", "show_gradio_deprecation_warnings": true, "disable_mmap_load_safetensors": false, "hide_ldm_prints": true, "api_enable_requests": true, "api_forbid_local_requests": true, "api_useragent": "", "sd_checkpoints_limit": 1, "sd_checkpoints_keep_in_cpu": true, "sd_unet": "Automatic", "tiling": false, "hires_fix_refiner_pass": "second pass", "sdxl_crop_top": 0.0, "sdxl_crop_left": 0.0, "sdxl_refiner_low_aesthetic_score": 2.5, "sdxl_refiner_high_aesthetic_score": 6.0, "auto_vae_precision": true, "sd_vae_encode_method": "Full", "sd_vae_decode_method": "Full", "img2img_extra_noise": 0, "img2img_sketch_default_brush_color": "#ffffff", "img2img_inpaint_mask_brush_color": "#ffffff", "img2img_inpaint_sketch_default_brush_color": "#ffffff", "pad_cond_uncond": true, "persistent_cond_cache": true, "batch_cond_uncond": true, "hires_fix_use_firstpass_conds": false, "use_old_scheduling": false, "extra_networks_card_text_scale": 1, "extra_networks_card_show_desc": true, "textual_inversion_print_at_load": false, "textual_inversion_add_hashes_to_infotext": true, "lora_show_all": false, "lora_hide_unknown_for_versions": [], "lora_in_memory_limit": 0, "gradio_themes_cache": true, "gallery_height": "", "keyedit_move": true, "disable_token_counters": false, "extra_options_txt2img": [], "extra_options_img2img": [], "extra_options_cols": 1, "extra_options_accordion": false, "add_user_name_to_info": false, "infotext_styles": "Apply if any", "live_preview_allow_lowvram_full": false, "live_preview_fast_interrupt": false, "s_tmax": 0, "k_sched_type": "Automatic", "sigma_min": 0.0, "sigma_max": 0.0, "rho": 0.0, "sgm_noise_multiplier": false, "canvas_hotkey_zoom": "Alt", "canvas_hotkey_adjust": "Ctrl", "canvas_hotkey_move": "F", "canvas_hotkey_fullscreen": "S", "canvas_hotkey_reset": "R", "canvas_hotkey_overlap": "O", "canvas_show_tooltip": true, "canvas_auto_expand": true, "canvas_blur_prompt": false, "canvas_disabled_functions": [ "Overlap" ], "tac_sortWildcardResults": true, "tac_showExtraNetworkPreviews": true, "tac_appendSpace": true, "tac_alwaysSpaceAtEnd": true, "tac_modelKeywordCompletion": "Never", "tac_wildcardCompletionMode": "To next folder level", "deforum_preview": "Off", "deforum_preview_interval_frames": 100, "openpose3d_use_online_version": false, "control_net_inpaint_blur_sigma": 7, "control_net_no_high_res_fix": false, "controlnet_ignore_noninpaint_mask": false, "ais_exif_pnginfo_group": [], "ais_windows_tag_group": [], "ais_windows_category_group": [], "ais_generation_params_text_group": [], "ais_force_cpu": false, "tac_includeEmbeddingsInNormalResults": false, "tac_modelSortOrder": "Name", "tac_modelKeywordLocation": "Start of prompt", "control_net_unit_count": 3, "animatediff_model_path": "D:\stable-diffusion-webui\extensions\sd-webui-animatediff\model", "animatediff_optimize_gif_palette": false, "animatediff_optimize_gif_gifsicle": false, "animatediff_webp_quality": 80, "animatediff_webp_lossless": false, "animatediff_save_to_custom": false, "animatediff_xformers": "Optimize attention layers with xformers", "hypertile_enable_unet": false, "hypertile_enable_unet_secondpass": false, "hypertile_max_depth_unet": 3, "hypertile_max_tile_unet": 256, "hypertile_swap_size_unet": 3, "hypertile_enable_vae": false, "hypertile_max_depth_vae": 3, "hypertile_max_tile_vae": 128, "hypertile_swap_size_vae": 3, "easyphoto_cache_model": true, "animatediff_mp4_crf": 23, "animatediff_mp4_preset": "", "animatediff_mp4_tune": "", "animatediff_s3_enable": false, "animatediff_s3_host": "", "animatediff_s3_port": "", "animatediff_s3_access_key": "", "animatediff_s3_secret_key": "", "animatediff_s3_storge_bucket": "", "save_images_replace_action": "Replace", "notification_audio": true, "notification_volume": 100, "extra_networks_dir_button_function": false, "extra_networks_card_order_field": "Path", "extra_networks_card_order": "Ascending", "img2img_batch_show_results_limit": 32, "add_vae_name_to_info": true, "add_vae_hash_to_info": true, "infotext_skip_pasting": [], "js_live_preview_in_modal_lightbox": false, "keyedit_delimiters_whitespace": [ "Tab", "Carriage Return", "Line Feed" ], "compact_prompt_box": false, "sd_checkpoint_dropdown_use_short": false, "txt2img_settings_accordion": false, "img2img_settings_accordion": false, "enable_console_prompts": false, "dump_stacks_on_signal": false, "postprocessing_existing_caption_action": "Ignore", "controlnet_crop_upscale_script_only": false, "animatediff_disable_lcm": false, "mov2mov_outpath_samples": "outputs/mov2mov-images", "mov2mov_output_dir": "outputs/mov2mov-videos", "ad_extra_models_dir": "", "ad_same_seed_for_each_tap": false, "controlnet_disable_photopea_edit": false, "controlnet_photopea_warning": true, "model_toolkit_fix_clip": false, "model_toolkit_autoprune": false, "sadtalker_result_dir": "D:\stable-diffusion-webui\outputs\SadTalker", "easyphoto_check_hash": true, "controlnet_clip_detector_on_cpu": false, "animatediff_default_save_formats": [ "GIF", "PNG" ], "hotshot_xl_model_path": "extensions\Hotshot-XL-Automatic1111\model", "txtimg_to_3d_model_output_format": "obj", "txtimg_to_3d_model_output_prefix": "mesh", "SWIN_torch_compile": true, "animatediff_frame_extract_path": "GIF", "animatediff_frame_extract_remove": false, "use_aria2": true, "disable_dns": false, "show_log": false, "split_aria2": 64, "aria2_flags": "", "unpack_zip": false, "save_api_info": false, "auto_save_all_img": false, "custom_api_key": "", "hide_early_access": true, "use_LORA": true, "dot_subfolders": true, "use_local_html": false, "local_path_in_html": false, "page_header": false, "video_playback": true, "individual_meta_btn": true, "model_desc_to_json": true, "image_location": "", "sub_image_location": true, "save_to_custom": false, "custom_civitai_proxy": "", "cabundle_path_proxy": "", "disable_sll_proxy": false, "insert_sub_1": false, "insert_sub_2": false, "insert_sub_3": false, "insert_sub_4": false, "insert_sub_5": false, "insert_sub_6": false, "insert_sub_7": false, "insert_sub_8": false, "insert_sub_9": false, "insert_sub_10": false, "insert_sub_11": false, "insert_sub_12": false, "insert_sub_13": false, "insert_sub_14": false, "Checkpoint_subfolder": "None", "LORA_LoCon_subfolder": "None", "TextualInversion_subfolder": "None", "Poses_subfolder": "None", "Controlnet_subfolder": "None", "Hypernetwork_subfolder": "None", "MotionModule_subfolder": "None", "SWINIR_upscale_subfolder": "None", "REALESRGAN_upscale_subfolder": "None", "GFPGAN_upscale_subfolder": "None", "BSRGAN_upscale_subfolder": "None", "ESRGAN_upscale_subfolder": "None", "VAE_subfolder": "None", "AestheticGradient_subfolder": "None", "Wildcards_subfolder": "None", "Workflows_subfolder": "None", "Other_subfolder": "None", "animatediff_default_frame_extract_method": "ffmpeg", "auto_backcompat": true, "use_downcasted_alpha_bar": false, "extra_networks_card_description_is_html": false, "extra_networks_tree_view_default_enabled": false, "lora_not_found_warning_console": false, "lora_not_found_gradio_warning": false, "pad_cond_uncond_v0": false, "fp8_storage": "Disable", "cache_fp16_weight": false, "sd_noise_schedule": "Default", "emphasis": "Original", "enable_prompt_comments": true, "auto_vae_precision_bfloat16": false, "overlay_inpaint": true, "sd_webui_modal_lightbox_icon_opacity": 1, "sd_webui_modal_lightbox_toolbar_opacity": 0.9, "open_dir_button_choice": "Subdirectory", "include_styles_into_token_counters": true, "interrupt_after_current": true, "enable_upscale_progressbar": true, "dat_enabled_models": [ "DAT x2", "DAT x3", "DAT x4" ], "DAT_tile": 144, "DAT_tile_overlap": 8, "canvas_hotkey_shrink_brush": "Q", "canvas_hotkey_grow_brush": "W", "ch_civiai_api_key": "", "ch_dl_lyco_to_lora": false, "ch_open_url_with_js": true, "ch_hide_buttons": [], "ch_always_display": false, "ch_max_size_preview": true, "ch_download_examples": false, "ch_nsfw_threshold": "XXX", "ch_dl_webui_metadata": true, "ch_proxy": "", "refiner_switch_by_sample_steps": false, "extra_networks_tree_view_style": "Dirs", "extra_networks_tree_view_default_width": 180.0, "enable_reloading_ui_scripts": false, "prioritized_callbacks_app_started": [], "prioritized_callbacks_model_loaded": [], "prioritized_callbacks_ui_tabs": [], "prioritized_callbacks_ui_settings": [], "prioritized_callbacks_cfg_denoiser": [], "prioritized_callbacks_after_component": [], "prioritized_callbacks_infotext_pasted": [], "prioritized_callbacks_script_unloaded": [], "prioritized_callbacks_before_ui": [], "prioritized_callbacks_on_reload": [], "prioritized_callbacks_list_optimizers": [], "prioritized_callbacks_before_token_counter": [], "prioritized_callbacks_script_before_process": [], "prioritized_callbacks_script_process": [], "prioritized_callbacks_script_before_process_batch": [], "prioritized_callbacks_script_process_batch": [], "prioritized_callbacks_script_postprocess": [], "prioritized_callbacks_script_postprocess_batch": [], "prioritized_callbacks_script_postprocess_batch_list": [], "prioritized_callbacks_script_post_sample": [], "prioritized_callbacks_script_on_mask_blend": [], "prioritized_callbacks_script_postprocess_image": [], "prioritized_callbacks_script_postprocess_maskoverlay": [], "prioritized_callbacks_script_after_component": [], "postprocessing_disable_in_extras": [], "set_scale_by_when_changing_upscaler": false, "controlnet_control_type_dropdown": false }, "Startup": { "total": 29.316263675689697, "records": { "initial startup": 0.018000364303588867, "prepare environment/checks": 0.009002685546875, "prepare environment/git version info": 0.0560002326965332, "prepare environment/torch GPU test": 1.780074119567871, "prepare environment/clone repositores": 0.1710033416748047, "prepare environment/run extensions installers/Config-Presets": 0.0010001659393310547, "prepare environment/run extensions installers/deforum": 0.15100598335266113, "prepare environment/run extensions installers/gif2gif": 0.0, "prepare environment/run extensions installers/Hotshot-XL-Automatic1111": 0.35803985595703125, "prepare environment/run extensions installers/multidiffusion-upscaler-for-automatic1111": 0.0, "prepare environment/run extensions installers/sd-webui-controlnet": 0.15298104286193848, "prepare environment/run extensions installers/sd-webui-infinite-image-browsing": 0.36101365089416504, "prepare environment/run extensions installers/sd-webui-mov2mov": 0.1580066680908203, "prepare environment/run extensions installers/sd-webui-reactor": 2.0200796127319336, "prepare environment/run extensions installers/sd-webui-refiner": 0.0, "prepare environment/run extensions installers/sd-webui-regional-prompter": 0.0, "prepare environment/run extensions installers/sd-webui-video-extras-tab": 0.1520068645477295, "prepare environment/run extensions installers/sd_smartprocess": 2.732107162475586, "prepare environment/run extensions installers/Stable-Diffusion-Webui-Civitai-Helper": 0.0, "prepare environment/run extensions installers/stable-diffusion-webui-dumpunet": 0.0, "prepare environment/run extensions installers/stable-diffusion-webui-promptgen": 0.0, "prepare environment/run extensions installers/TemporalKit": 0.1540064811706543, "prepare environment/run extensions installers/ultimate-upscale-for-automatic1111": 0.0, "prepare environment/run extensions installers": 6.240247488021851, "prepare environment": 8.288328409194946, "launcher": 0.0010008811950683594, "import torch": 4.0901899337768555, "import gradio": 1.220057487487793, "setup paths": 6.021304130554199, "import ldm": 0.003999948501586914, "import sgm": 0.0, "initialize shared": 0.2189788818359375, "other imports": 0.4680485725402832, "opts onchange": 0.0, "setup SD model": 0.0010001659393310547, "setup codeformer": 0.0, "setup gfpgan": 0.009999275207519531, "set samplers": 0.0, "list extensions": 0.008003711700439453, "restore config state file": 0.0, "list SD models": 0.03999924659729004, "list localizations": 0.0010001659393310547, "load scripts/custom_code.py": 0.010000228881835938, "load scripts/img2imgalt.py": 0.0, "load scripts/loopback.py": 0.0009999275207519531, "load scripts/outpainting_mk_2.py": 0.0, "load scripts/poor_mans_outpainting.py": 0.0, "load scripts/postprocessing_codeformer.py": 0.0, "load scripts/postprocessing_gfpgan.py": 0.0009715557098388672, "load scripts/postprocessing_upscale.py": 0.0, "load scripts/prompt_matrix.py": 0.0, "load scripts/prompts_from_file.py": 0.0, "load scripts/sd_upscale.py": 0.0, "load scripts/xyz_grid.py": 0.002028226852416992, "load scripts/ldsr_model.py": 0.2560102939605713, "load scripts/lora_script.py": 0.20900797843933105, "load scripts/scunet_model.py": 0.025001049041748047, "load scripts/swinir_model.py": 0.023001432418823242, "load scripts/hotkey_config.py": 0.0, "load scripts/extra_options_section.py": 0.0, "load scripts/hypertile_script.py": 0.05100512504577637, "load scripts/hypertile_xyz.py": 0.0, "load scripts/postprocessing_autosized_crop.py": 0.17000269889831543, "load scripts/postprocessing_caption.py": 0.0010037422180175781, "load scripts/postprocessing_create_flipped_copies.py": 0.0, "load scripts/postprocessing_focal_crop.py": 0.001996755599975586, "load scripts/postprocessing_split_oversized.py": 0.0, "load scripts/soft_inpainting.py": 0.0, "load scripts/config_presets.py": 0.0, "load scripts/hotshot_xl.py": 0.13500547409057617, "load scripts/hotshot_xl_model_controller.py": 0.0010001659393310547, "load scripts/hotshot_xl_output.py": 0.0, "load scripts/hotshot_xl_ui.py": 0.0, "load scripts/civitai_helper.py": 0.0630025863647461, "load scripts/Berry_Method.py": 0.18097662925720215, "load scripts/Ebsynth_Processing.py": 0.003000020980834961, "load scripts/TemporalKitImg2ImgTab.py": 0.0, "load scripts/berry_utility.py": 0.0009999275207519531, "load scripts/optical_flow_raft.py": 0.08100295066833496, "load scripts/optical_flow_simple.py": 0.0, "load scripts/sd-TemporalKit-UI.py": 0.002000570297241211, "load scripts/stable_diffusion_processing.py": 0.0010001659393310547, "load scripts/deforum.py": 0.11000537872314453, "load scripts/deforum_api.py": 0.00099945068359375, "load scripts/deforum_api_models.py": 0.003000020980834961, "load scripts/deforum_extend_paths.py": 0.0, "load scripts/gif2gif.py": 0.0010001659393310547, "load scripts/tilediffusion.py": 0.004000186920166016, "load scripts/tileglobal.py": 0.0009999275207519531, "load scripts/tilevae.py": 0.0010001659393310547, "load scripts/adapter.py": 0.0, "load scripts/api.py": 0.21503853797912598, "load scripts/batch_hijack.py": 0.0009996891021728516, "load scripts/cldm.py": 0.0, "load scripts/controlnet.py": 0.17300677299499512, "load scripts/controlnet_diffusers.py": 0.0, "load scripts/controlnet_lllite.py": 0.0, "load scripts/controlnet_lora.py": 0.0, "load scripts/controlnet_model_guess.py": 0.0010042190551757812, "load scripts/controlnet_sparsectrl.py": 0.0, "load scripts/controlnet_version.py": 0.0, "load scripts/enums.py": 0.0009996891021728516, "load scripts/external_code.py": 0.0009970664978027344, "load scripts/global_state.py": 0.0, "load scripts/hook.py": 0.0, "load scripts/infotext.py": 0.0010037422180175781, "load scripts/logging.py": 0.0, "load scripts/lvminthin.py": 0.0, "load scripts/movie2movie.py": 0.0009953975677490234, "load scripts/supported_preprocessor.py": 0.0010008811950683594, "load scripts/utils.py": 0.0, "load scripts/xyz_grid_support.py": 0.0, "load scripts/iib_setup.py": 0.07300186157226562, "load scripts/m2m_config.py": 0.0, "load scripts/m2m_hook.py": 0.0, "load scripts/m2m_ui.py": 0.002000093460083008, "load scripts/m2m_util.py": 0.0, "load scripts/module_ui_extensions.py": 0.002000093460083008, "load scripts/mov2mov.py": 0.0030014514923095703, "load scripts/movie_editor.py": 0.0, "load scripts/console_log_patch.py": 0.17797565460205078, "load scripts/reactor_api.py": 0.11904263496398926, "load scripts/reactor_faceswap.py": 0.012963294982910156, "load scripts/reactor_globals.py": 0.0, "load scripts/reactor_helpers.py": 0.0009996891021728516, "load scripts/reactor_logger.py": 0.0, "load scripts/reactor_swapper.py": 0.002000093460083008, "load scripts/reactor_version.py": 0.0, "load scripts/reactor_xyz.py": 0.0, "load scripts/refiner.py": 0.0019998550415039062, "load scripts/attention.py": 0.0, "load scripts/latent.py": 0.004000663757324219, "load scripts/regions.py": 0.0, "load scripts/rp.py": 0.03703141212463379, "load scripts/rps.py": 0.0009965896606445312, "load scripts/video_extras_tab.py": 0.06100654602050781, "load scripts/main.py": 0.07900261878967285, "load scripts/dumpunet.py": 0.015002965927124023, "load scripts/promptgen.py": 0.08697056770324707, "load scripts/ultimate-upscale.py": 0.0010004043579101562, "load scripts/comments.py": 0.0260007381439209, "load scripts/sampler.py": 0.0, "load scripts/seed.py": 0.0, "load scripts": 2.441066026687622, "load upscalers": 0.003000020980834961, "refresh VAE": 0.0020003318786621094, "refresh textual inversion templates": 0.0, "scripts list_optimizers": 0.0009996891021728516, "scripts list_unets": 0.0, "reload hypernetworks": 0.0009999275207519531, "initialize extra networks": 0.0160369873046875, "scripts before_ui_callback": 0.0029997825622558594, "create ui": 1.2320160865783691, "gradio launch": 4.315167427062988, "add APIs": 0.8800640106201172, "app_started_callback/lora_script.py": 0.0010008811950683594, "app_started_callback/api.py": 0.0030007362365722656, "app_started_callback/iib_setup.py": 0.057974815368652344, "app_started_callback/reactor_api.py": 0.0020263195037841797, "app_started_callback": 0.06400275230407715 } }, "Packages": [ "absl-py==2.1.0", "accelerate==0.21.0", "addict==2.4.0", "aenum==3.1.15", "aiofiles==23.2.1", "aiohttp==3.9.3", "aiosignal==1.3.1", "albumentations==1.4.3", "altair==5.2.0", "antlr4-python3-runtime==4.9.3", "anyio==3.7.1", "asttokens==2.4.1", "astunparse==1.6.3", "async-timeout==4.0.3", "attrs==23.2.0", "audioread==3.0.1", "av==11.0.0", "backcall==0.2.0", "basicsr==1.4.2", "beautifulsoup4==4.12.3", "blendmodes==2022", "cachetools==5.3.3", "certifi==2024.2.2", "cffi==1.16.0", "chardet==5.2.0", "charset-normalizer==3.3.2", "clean-fid==0.1.35", "click==8.1.7", "clip==1.0", "colorama==0.4.6", "coloredlogs==15.0.1", "colorlog==6.8.2", "contourpy==1.2.0", "cssselect2==0.7.0", "cycler==0.12.1", "cython==3.0.8", "decorator==5.1.1", "deprecation==2.1.0", "depth-anything==2024.1.22.0", "diffusers==0.21.4", "diskcache==5.6.3", "dm-tree==0.1.8", "dsine==2024.3.23", "easydict==1.13", "einops==0.4.1", "embreex==2.17.7.post4", "exceptiongroup==1.2.0", "executing==2.0.1", "face-alignment==1.3.5", "facexlib==0.3.0", "fairscale==0.4.13", "fake-useragent==1.5.0", "fastapi==0.94.0", "ffmpeg-python==0.2.0", "ffmpy==0.3.2", "filelock==3.13.1", "filterpy==1.4.5", "flatbuffers==23.5.26", "fonttools==4.49.0", "frozenlist==1.4.1", "fsspec==2024.2.0", "ftfy==6.1.3", "future==1.0.0", "fvcore==0.1.5.post20221221", "gast==0.5.4", "gdown==5.1.0", "geffnet==1.0.2", "gfpgan==1.3.8", "gitdb==4.0.11", "gitpython==3.1.32", "glob2==0.5", "google-auth-oauthlib==1.2.0", "google-auth==2.28.1", "google-pasta==0.2.0", "gradio-client==0.5.0", "gradio==3.41.2", "grpcio==1.62.0", "h11==0.12.0", "h5py==3.10.0", "handrefinerportable==2024.2.12.0", "httpcore==0.15.0", "httpx==0.24.1", "huggingface-hub==0.21.3", "humanfriendly==10.0", "idna==3.6", "imageio-ffmpeg==0.4.9", "imageio==2.34.0", "importlib-metadata==7.0.1", "importlib-resources==6.1.2", "inflection==0.5.1", "insightface==0.7.3", "iopath==0.1.9", "ipython==8.6.0", "jax==0.4.25", "jedi==0.19.1", "jinja2==3.1.3", "joblib==1.3.2", "jsonmerge==1.8.0", "jsonschema-specifications==2023.12.1", "jsonschema==4.21.1", "keras==2.15.0", "kiwisolver==1.4.5", "kornia==0.6.7", "lark==1.1.2", "lazy-loader==0.3", "libclang==16.0.6", "librosa==0.9.2", "lightning-utilities==0.10.1", "llvmlite==0.42.0", "lmdb==1.4.1", "lxml==5.1.0", "mapbox-earcut==1.0.1", "markdown-it-py==3.0.0", "markdown==3.5.2", "markupsafe==2.1.5", "matplotlib-inline==0.1.6", "matplotlib==3.8.3", "mdurl==0.1.2", "mediapipe==0.10.10", "ml-dtypes==0.2.0", "moviepy==0.2.3.2", "mpmath==1.3.0", "msgpack==1.0.8", "multidict==6.0.5", "namex==0.0.7", "networkx==3.2.1", "numba==0.59.0", "numexpr==2.9.0", "numpy==1.26.2", "oauthlib==3.2.2", "omegaconf==2.2.3", "onnx==1.15.0", "onnxruntime-gpu==1.17.1", "onnxruntime==1.17.1", "open-clip-torch==2.20.0", "opencv-contrib-python==4.9.0.80", "opencv-python-headless==4.9.0.80", "opencv-python==4.9.0.80", "opennsfw2==0.13.7", "opt-einsum==3.3.0", "orjson==3.9.15", "packaging==23.2", "pandas==2.2.1", "parso==0.8.3", "pickleshare==0.7.5", "piexif==1.1.3", "pillow-avif-plugin==1.4.3", "pillow==9.5.0", "pims==0.6.0", "pip==24.0", "platformdirs==4.2.0", "pooch==1.8.1", "portalocker==2.8.2", "prettytable==3.10.0", "prompt-toolkit==3.0.43", "protobuf==3.20.3", "psutil==5.9.5", "pure-eval==0.2.2", "py-cpuinfo==9.0.0", "pyasn1-modules==0.3.0", "pyasn1==0.5.1", "pycollada==0.8", "pycparser==2.21", "pydantic==1.10.14", "pydub==0.25.1", "pygments==2.17.2", "pyparsing==3.1.1", "pyreadline3==3.4.1", "pysocks==1.7.1", "python-dateutil==2.9.0.post0", "python-dotenv==1.0.1", "python-multipart==0.0.9", "pytorch-lightning==1.9.4", "pytz==2024.1", "pywavelets==1.5.0", "pywin32==306", "pyyaml==6.0.1", "qudida==0.0.4", "realesrgan==0.3.0", "referencing==0.33.0", "regex==2023.12.25", "reportlab==4.1.0", "requests-oauthlib==1.3.1", "requests==2.31.0", "resampy==0.4.3", "resize-right==0.0.2", "rich==13.7.1", "rpds-py==0.18.0", "rsa==4.9", "rtree==1.2.0", "safetensors==0.4.2", "scenedetect==0.6.2", "scikit-image==0.21.0", "scikit-learn==1.4.1.post1", "scipy==1.12.0", "seaborn==0.12.1", "semantic-version==2.10.0", "send2trash==1.8.2", "sentencepiece==0.2.0", "setuptools==65.5.0", "shapely==2.0.3", "six==1.16.0", "slicerator==1.1.0", "smmap==5.0.1", "sniffio==1.3.1", "sounddevice==0.4.6", "soundfile==0.12.1", "soupsieve==2.5", "soxr==0.3.7", "spandrel==0.1.6", "stack-data==0.6.3", "starlette==0.26.1", "svg.path==6.3", "svglib==1.5.1", "sympy==1.12", "tabulate==0.9.0", "tb-nightly==2.17.0a20240304", "tensorboard-data-server==0.7.2", "tensorboard==2.15.2", "tensorflow-estimator==2.15.0", "tensorflow-intel==2.15.0", "tensorflow-io-gcs-filesystem==0.31.0", "tensorflow==2.15.0", "termcolor==2.4.0", "thop==0.1.1.post2209072238", "threadpoolctl==3.3.0", "tifffile==2024.2.12", "timm==0.9.16", "tinycss2==1.2.1", "tokenizers==0.13.3", "tomesd==0.1.3", "tomli==2.0.1", "toolz==0.12.1", "torch==2.1.2+cu121", "torchdiffeq==0.2.3", "torchmetrics==1.3.1", "torchsde==0.2.6", "torchvision==0.16.2+cu121", "tqdm==4.66.2", "traitlets==5.14.1", "trampoline==0.1.2", "transformers==4.30.2", "trimesh==4.1.7", "typing-extensions==4.10.0", "tzdata==2024.1", "ultralytics==8.1.29", "urllib3==2.2.1", "uvicorn==0.27.1", "vhacdx==0.0.5", "wcwidth==0.2.13", "webencodings==0.5.1", "websockets==11.0.3", "werkzeug==3.0.1", "wheel==0.42.0", "wrapt==1.14.1", "xatlas==0.0.9", "xformers==0.0.23.post1", "xxhash==3.4.1", "yacs==0.1.8", "yapf==0.40.2", "yarl==1.9.4", "zipp==3.17.0", "zipunicode==1.1.1" ] }

Relevant console log

Total progress: 100%|████████████████████████████████████████████████████████████████████| 4/4 [00:21<00:00,  5.32s/it]
100%|████████████████████████████████████████████████████████████████████████████████████| 4/4 [00:03<00:00,  1.14it/s]
15:18:55 - ReActor - STATUS - Working: source face index [0], target face index [0]██████| 4/4 [00:02<00:00,  1.32it/s]
15:18:55 - ReActor - STATUS - Using Loaded Source Face Model: DavidTennant.safetensors
15:18:55 - ReActor - STATUS - Analyzing Target Image...
15:18:56 - ReActor - STATUS - Detecting Source Face, Index = 0
15:18:56 - ReActor - STATUS - Detected: -47- y.o. Male
15:18:56 - ReActor - STATUS - Detecting Target Face, Index = 0
15:18:56 - ReActor - STATUS - Detected: -51- y.o. Male
15:18:56 - ReActor - STATUS - Swapping Source into Target
15:18:56 - ReActor - STATUS - Restoring the face with CodeFormer (weight: 0.9)
15:18:57 - ReActor - STATUS - Upscaling with RealisticRescaler 4x scale = 1
tiled upscale: 100%|███████████████████████████████████████████████████████████████████| 63/63 [00:03<00:00, 16.00it/s]
tiled upscale: 100%|█████████████████████████████████████████████████████████████████| 900/900 [00:56<00:00, 15.99it/s]
tiled upscale:   3%|█▊                                                             | 408/14014 [00:25<14:13, 15.94it/s]
15:20:28 - ReActor - STATUS - Stopped by User
Total progress: 100%|████████████████████████████████████████████████████████████████████| 4/4 [01:36<00:00, 24.22s/it]
Total progress: 100%|████████████████████████████████████████████████████████████████████| 4/4 [01:36<00:00,  1.32it/s]

Additional information

No response

joaquingrech commented 3 weeks ago

I have the same issue, Upscaling is taking forever to load now. Any clue as to what did this?

Gourieff commented 3 weeks ago

ReActor has nothing to do with this guys I think smth is wrong with the Upscaler module of A1111 Since 1.9.1 we get an infinite upscaling when we set Scale by 1 and choose any upscale model (which requires to perform tiling)

Norio0 commented 3 weeks ago

ReActor has nothing to do with this guys I think smth is wrong with the Upscaler module of A1111 Since 1.9.1 we get an infinite upscaling when we set Scale by 1 and choose any upscale model (which requires to perform tiling)

You're right. Preforming a regular upscale on an image within the Extras tab results in the same issues when set to scale by 1.

I found this fix within webui issues which cleared the problem for me in both ReActor and other upscaling areas: https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/14738#issuecomment-1911459931

Gourieff commented 3 weeks ago

Yes, and in 1.9.x this commit is the very reason of the infinite upscaling: https://github.com/AUTOMATIC1111/stable-diffusion-webui/commit/9d4fdc45d3c4b9431551fd53de64a67726dcbd64