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

CodeFormer Weight (Fidelity) has no effect #395

Open 1manfactory opened 2 months ago

1manfactory commented 2 months ago

First, confirm

What happened?

I LOVE reactor and use it every day for work.

But I can make setting CodeFormer Weight (Fidelity) work.

I tried values 0.1 to 0.9. But the images generated are completely the same.

Steps to reproduce the problem

Changes settings in CodeFormer Weight (Fidelity) and generate new image.

Face is swapped (as expected) but look the same, no matter what values I input

Sysinfo

{ "Platform": "Windows-10-10.0.22631-SP0", "Python": "3.10.6", "Version": "v1.8.0", "Commit": "bef51aed032c0aaa5cfd80445bc4cf0d85b408b5", "Script path": "C:\sd.webui\webui", "Data path": "C:\sd.webui\webui", "Extensions dir": "C:\sd.webui\webui\extensions", "Checksum": "344d9d2be9b8b921e5ff1b8a08a6bb7a5c3da89cfcae66871dd7be9a05507a5c", "Commandline": [ "launch.py", "--xformers", "--listen", "--enable-insecure-extension-access" ], "Torch env info": { "torch_version": "2.0.1+cu118", "is_debug_build": "False", "cuda_compiled_version": "11.8", "gcc_version": null, "clang_version": null, "cmake_version": "version 3.28.3", "os": "Microsoft Windows 11 Pro", "libc_version": "N/A", "python_version": "3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)] (64-bit runtime)", "python_platform": "Windows-10-10.0.22631-SP0", "is_cuda_available": "True", "cuda_runtime_version": "12.3.107\r", "cuda_module_loading": "LAZY", "nvidia_driver_version": "551.76", "nvidia_gpu_models": "GPU 0: NVIDIA GeForce RTX 3060", "cudnn_version": null, "pip_version": "pip3", "pip_packages": [ "numpy==1.26.2", "open-clip-torch==2.20.0", "pytorch-lightning==1.9.4", "pytorch_optimizer==2.12.0", "torch==2.0.1+cu118", "torchdiffeq==0.2.3", "torchmetrics==1.3.0.post0", "torchsde==0.2.6", "torchvision==0.15.2+cu118" ], "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=2496", "DeviceID=CPU0", "Family=1", "L2CacheSize=4096", "L2CacheSpeed=", "Manufacturer=GenuineIntel", "MaxClockSpeed=2496", "Name=11th Gen Intel(R) Core(TM) i7-11700F @ 2.50GHz", "ProcessorType=3", "Revision=" ] }, "Exceptions": [ { "exception": "A tensor with all NaNs was produced in VAE. This could be because there's not enough precision to represent the picture. Try adding --no-half-vae commandline argument to fix this. Use --disable-nan-check commandline argument to disable this check.", "traceback": [ [ "C:\sd.webui\webui\modules\processing.py, line 637, decode_latent_batch", "devices.test_for_nans(sample, \"vae\")" ], [ "C:\sd.webui\webui\modules\devices.py, line 255, test_for_nans", "raise NansException(message)" ] ] } ], "CPU": { "model": "Intel64 Family 6 Model 167 Stepping 1, GenuineIntel", "count logical": 16, "count physical": 8 }, "RAM": { "total": "32GB", "used": "22GB", "free": "9GB" }, "Extensions": [ { "name": "DWPose", "path": "C:\sd.webui\webui\extensions\DWPose", "version": "3dca5db7", "branch": "onnx", "remote": "https://github.com/IDEA-Research/DWPose" }, { "name": "a-person-mask-generator", "path": "C:\sd.webui\webui\extensions\a-person-mask-generator", "version": "99709cf9", "branch": "main", "remote": "https://github.com/djbielejeski/a-person-mask-generator.git" }, { "name": "adetailer", "path": "C:\sd.webui\webui\extensions\adetailer", "version": "3f1d1b97", "branch": "main", "remote": "https://github.com/Bing-su/adetailer.git" }, { "name": "clip-interrogator-ext", "path": "C:\sd.webui\webui\extensions\clip-interrogator-ext", "version": "0f1a4591", "branch": "main", "remote": "https://github.com/pharmapsychotic/clip-interrogator-ext" }, { "name": "openpose-editor", "path": "C:\sd.webui\webui\extensions\openpose-editor", "version": "c9357715", "branch": "master", "remote": "https://github.com/fkunn1326/openpose-editor" }, { "name": "sd-extension-system-info", "path": "C:\sd.webui\webui\extensions\sd-extension-system-info", "version": "363d4417", "branch": "main", "remote": "https://github.com/vladmandic/sd-extension-system-info.git" }, { "name": "sd-webui-aspect-ratio-helper", "path": "C:\sd.webui\webui\extensions\sd-webui-aspect-ratio-helper", "version": "99fcf9b0", "branch": "main", "remote": "https://github.com/thomasasfk/sd-webui-aspect-ratio-helper.git" }, { "name": "sd-webui-controlnet", "path": "C:\sd.webui\webui\extensions\sd-webui-controlnet", "version": "aa2aa812", "branch": "main", "remote": "https://github.com/Mikubill/sd-webui-controlnet.git" }, { "name": "sd-webui-infinite-image-browsing", "path": "C:\sd.webui\webui\extensions\sd-webui-infinite-image-browsing", "version": "6efef975", "branch": "main", "remote": "https://github.com/zanllp/sd-webui-infinite-image-browsing.git" }, { "name": "sd-webui-prompt-all-in-one", "path": "C:\sd.webui\webui\extensions\sd-webui-prompt-all-in-one", "version": "90bc20f3", "branch": "main", "remote": "https://github.com/Physton/sd-webui-prompt-all-in-one" }, { "name": "sd-webui-reactor", "path": "C:\sd.webui\webui\extensions\sd-webui-reactor", "version": "0185d7a2", "branch": "main", "remote": "https://github.com/Gourieff/sd-webui-reactor.git" }, { "name": "sd-webui-roop", "path": "C:\sd.webui\webui\extensions\sd-webui-roop", "version": "868f7d1b", "branch": "main", "remote": "https://github.com/s0md3v/sd-webui-roop" }, { "name": "sd-webui-state-manager", "path": "C:\sd.webui\webui\extensions\sd-webui-state-manager", "version": "25100eb9", "branch": "main", "remote": "https://github.com/SenshiSentou/sd-webui-state-manager" } ], "Inactive extensions": [ { "name": "Config-Presets", "path": "C:\sd.webui\webui\extensions\Config-Presets", "version": "d6b54327", "branch": "main", "remote": "https://github.com/Zyin055/Config-Presets" }, { "name": "facechain", "path": "C:\sd.webui\webui\extensions\facechain", "version": "ba6f6d92", "branch": "main", "remote": "https://github.com/modelscope/facechain.git" }, { "name": "sd_dreambooth_extension", "path": "C:\sd.webui\webui\extensions\sd_dreambooth_extension", "version": "30bfbc28", "branch": "main", "remote": "https://github.com/d8ahazard/sd_dreambooth_extension.git" }, { "name": "stable-diffusion-webui-depthmap-script", "path": "C:\sd.webui\webui\extensions\stable-diffusion-webui-depthmap-script", "version": "7a3a7820", "branch": "main", "remote": "https://github.com/thygate/stable-diffusion-webui-depthmap-script.git" } ], "Environment": { "COMMANDLINE_ARGS": "--xformers --listen --enable-insecure-extension-access", "GRADIO_ANALYTICS_ENABLED": "False" }, "Config": { "samples_save": true, "samples_format": "png", "samples_filename_pattern": "", "save_images_add_number": true, "save_images_replace_action": "Replace", "grid_save": true, "grid_format": "png", "grid_extended_filename": false, "grid_only_if_multiple": true, "grid_prevent_empty_spots": false, "grid_zip_filename_pattern": "", "n_rows": -1, "font": "", "grid_text_active_color": "#000000", "grid_text_inactive_color": "#999999", "grid_background_color": "#ffffff", "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, "save_init_img": false, "temp_dir": "", "clean_temp_dir_at_start": false, "save_incomplete_images": false, "notification_audio": true, "notification_volume": 100, "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", "outdir_init_images": "outputs/init-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": false, "face_restoration_model": "CodeFormer", "code_former_weight": 0.5, "face_restoration_unload": false, "auto_launch_browser": "Local", "enable_console_prompts": false, "show_warnings": false, "show_gradio_deprecation_warnings": true, "memmon_poll_rate": 8, "samples_log_stdout": false, "multiple_tqdm": true, "print_hypernet_extra": false, "list_hidden_files": true, "disable_mmap_load_safetensors": false, "hide_ldm_prints": true, "dump_stacks_on_signal": false, "api_enable_requests": true, "api_forbid_local_requests": true, "api_useragent": "", "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": "sdxl\afroditexlNudePeople_20Bkdvae.safetensors [8557e300af]", "sd_checkpoints_limit": 1, "sd_checkpoints_keep_in_cpu": true, "sd_checkpoint_cache": 0, "sd_unet": "Automatic", "enable_quantization": false, "enable_emphasis": true, "enable_batch_seeds": true, "comma_padding_backtrack": 20, "CLIP_stop_at_last_layers": 1, "upcast_attn": false, "randn_source": "GPU", "tiling": false, "hires_fix_refiner_pass": "second pass", "sdxl_crop_top": 0, "sdxl_crop_left": 0, "sdxl_refiner_low_aesthetic_score": 2.5, "sdxl_refiner_high_aesthetic_score": 6.0, "sd_vae_checkpoint_cache": 0, "sd_vae": "None", "sd_vae_overrides_per_model_preferences": true, "auto_vae_precision": true, "sd_vae_encode_method": "Full", "sd_vae_decode_method": "Full", "inpainting_mask_weight": 1.0, "initial_noise_multiplier": 0, "img2img_extra_noise": 0.0, "img2img_color_correction": false, "img2img_fix_steps": true, "img2img_background_color": "#ffffff", "img2img_editor_height": 720, "img2img_sketch_default_brush_color": "#ffffff", "img2img_inpaint_mask_brush_color": "#ffffff", "img2img_inpaint_sketch_default_brush_color": "#ffffff", "return_mask": false, "return_mask_composite": false, "img2img_batch_show_results_limit": 32, "cross_attention_optimization": "Automatic", "s_min_uncond": 0.0, "token_merging_ratio": 0.0, "token_merging_ratio_img2img": 0.0, "token_merging_ratio_hr": 0.0, "pad_cond_uncond": false, "persistent_cond_cache": true, "batch_cond_uncond": true, "use_old_emphasis_implementation": false, "use_old_karras_scheduler_sigmas": false, "no_dpmpp_sde_batch_determinism": false, "use_old_hires_fix_width_height": false, "dont_fix_second_order_samplers_schedule": false, "hires_fix_use_firstpass_conds": false, "use_old_scheduling": 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": true, "deepbooru_escape": true, "deepbooru_filter_tags": "", "extra_networks_show_hidden_directories": true, "extra_networks_dir_button_function": false, "extra_networks_hidden_models": "When searched", "extra_networks_default_multiplier": 1.0, "extra_networks_card_width": 0, "extra_networks_card_height": 0, "extra_networks_card_text_scale": 1.0, "extra_networks_card_show_desc": true, "extra_networks_card_order_field": "Path", "extra_networks_card_order": "Ascending", "extra_networks_add_text_separator": " ", "ui_extra_networks_tab_reorder": "", "textual_inversion_print_at_load": false, "textual_inversion_add_hashes_to_infotext": true, "sd_hypernetwork": "None", "keyedit_precision_attention": 0.1, "keyedit_precision_extra": 0.05, "keyedit_delimiters": ".,\/!?%^*;:{}=`~() ", "keyedit_delimiters_whitespace": [ "Tab", "Carriage Return", "Line Feed" ], "keyedit_move": true, "disable_token_counters": false, "return_grid": true, "do_not_show_images": false, "js_modal_lightbox": true, "js_modal_lightbox_initially_zoomed": true, "js_modal_lightbox_gamepad": false, "js_modal_lightbox_gamepad_repeat": 250, "gallery_height": "", "compact_prompt_box": false, "samplers_in_dropdown": true, "dimensions_and_batch_together": true, "sd_checkpoint_dropdown_use_short": false, "hires_fix_show_sampler": false, "hires_fix_show_prompts": false, "txt2img_settings_accordion": false, "img2img_settings_accordion": false, "localization": "None", "quicksettings_list": [ "sd_model_checkpoint", "CLIP_stop_at_last_layers", "sd_vae", "initial_noise_multiplier", "img2img_color_correction" ], "ui_tab_order": [], "hidden_tabs": [], "ui_reorder_list": [], "gradio_theme": "Default", "gradio_themes_cache": true, "show_progress_in_title": true, "send_seed": true, "send_size": true, "enable_pnginfo": true, "save_txt": false, "add_model_name_to_info": true, "add_model_hash_to_info": true, "add_vae_name_to_info": true, "add_vae_hash_to_info": true, "add_user_name_to_info": false, "add_version_to_infotext": true, "disable_weights_auto_swap": true, "infotext_skip_pasting": [], "infotext_styles": "Apply if any", "show_progressbar": true, "live_previews_enable": true, "live_previews_image_format": "png", "show_progress_grid": true, "show_progress_every_n_steps": 10, "show_progress_type": "Approx NN", "live_preview_allow_lowvram_full": false, "live_preview_content": "Prompt", "live_preview_refresh_period": 1000, "live_preview_fast_interrupt": false, "js_live_preview_in_modal_lightbox": false, "hide_samplers": [], "eta_ddim": 0.0, "eta_ancestral": 1.0, "ddim_discretize": "uniform", "s_churn": 0.0, "s_tmin": 0.0, "s_tmax": 0.0, "s_noise": 1.0, "k_sched_type": "Automatic", "sigma_min": 0.0, "sigma_max": 0.0, "rho": 0.0, "eta_noise_seed_delta": 0, "always_discard_next_to_last_sigma": false, "sgm_noise_multiplier": 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, "postprocessing_existing_caption_action": "Ignore", "disabled_extensions": [ "Config-Presets", "facechain", "sd_dreambooth_extension", "stable-diffusion-webui-depthmap-script" ], "disable_all_extensions": "none", "restore_config_state_file": "", "sd_checkpoint_hash": "8557e300af29960913822546f876960b9b5eab33a5a581d28171c9055405d0a9", "ldsr_steps": 100, "ldsr_cached": false, "SCUNET_tile": 256, "SCUNET_tile_overlap": 8, "SWIN_tile": 192, "SWIN_tile_overlap": 8, "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, "lora_functional": false, "sd_lora": "None", "lora_preferred_name": "Alias from file", "lora_add_hashes_to_infotext": true, "lora_show_all": false, "lora_hide_unknown_for_versions": [], "lora_in_memory_limit": 0, "extra_options_txt2img": [], "extra_options_img2img": [], "extra_options_cols": 1, "extra_options_accordion": 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" ], "ad_max_models": 2, "ad_extra_models_dir": "", "ad_save_previews": false, "ad_save_images_before": false, "ad_only_seleted_scripts": true, "ad_script_names": "dynamic_prompting,dynamic_thresholding,wildcard_recursive,wildcards,lora_block_weight,negpip", "ad_bbox_sortby": "None", "ad_same_seed_for_each_tap": false, "image_browser_active_tabs": "txt2img, img2img, txt2img-grids, img2img-grids, Extras, Favorites, Others, All, Maintenance", "image_browser_hidden_components": [], "image_browser_with_subdirs": true, "image_browser_preload": false, "image_browser_copy_image": false, "image_browser_delete_message": true, "image_browser_txt_files": true, "image_browser_debug_level": "0 - none", "image_browser_delete_recycle": true, "image_browser_scan_exif": true, "image_browser_mod_shift": false, "image_browser_mod_ctrl_shift": false, "image_browser_ranking_pnginfo": false, "image_browser_page_columns": 6, "image_browser_page_rows": 6, "image_browser_pages_perload": 20, "image_browser_height_auto": false, "image_browser_use_thumbnail": false, "image_browser_thumbnail_size": 200, "image_browser_thumbnail_crop": false, "image_browser_swipe": false, "image_browser_img_tooltips": true, "image_browser_show_progress": true, "image_browser_info_add": false, "image_browser_video_pos": "Above", "image_browser_video_x": 640, "image_browser_video_y": 640, "control_net_detectedmap_dir": "detected_maps", "control_net_models_path": "", "control_net_modules_path": "", "control_net_unit_count": 3, "control_net_model_cache_size": 2, "control_net_inpaint_blur_sigma": 7, "control_net_no_detectmap": true, "control_net_detectmap_autosaving": false, "control_net_allow_script_control": false, "control_net_sync_field_args": true, "controlnet_show_batch_images_in_ui": false, "controlnet_increment_seed_during_batch": false, "controlnet_disable_openpose_edit": false, "controlnet_disable_photopea_edit": false, "controlnet_photopea_warning": true, "controlnet_ignore_noninpaint_mask": false, "controlnet_clip_detector_on_cpu": false, "additional_networks_extra_lora_path": "", "additional_networks_sort_models_by": "name", "additional_networks_reverse_sort_order": false, "additional_networks_model_name_filter": "", "additional_networks_xy_grid_model_metadata": "", "additional_networks_hash_thread_count": 1, "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, "additional_networks_max_dataset_folders": 20, "depthmap_script_keepmodels": false, "depthmap_script_boost_rmax": 1600, "depthmap_script_marigold_ensembles": 5, "depthmap_script_marigold_steps": 10, "depthmap_script_save_ply": false, "depthmap_script_show_3d": true, "depthmap_script_show_3d_inpaint": true, "depthmap_script_mesh_maxsize": 2048, "depthmap_script_gen_heatmap_from_ui": false, "depthmap_script_extra_stereomodes": false, "arh_javascript_aspect_ratio_show": true, "arh_javascript_aspect_ratio": "1:1, 3:2, 4:3, 5:4, 16:9", "arh_ui_javascript_selection_method": "Aspect Ratios Dropdown", "arh_hide_accordion_by_default": true, "arh_expand_by_default": false, "arh_ui_component_order_key": "MaxDimensionScaler, MinDimensionScaler, PredefinedAspectRatioButtons, PredefinedPercentageButtons", "arh_show_max_width_or_height": false, "arh_max_width_or_height": 1024.0, "arh_show_min_width_or_height": false, "arh_min_width_or_height": 1024.0, "arh_show_predefined_aspect_ratios": false, "arh_predefined_aspect_ratio_use_max_dim": false, "arh_predefined_aspect_ratios": "1:1, 4:3, 16:9, 9:16, 21:9", "arh_show_predefined_percentages": false, "arh_predefined_percentages": "25, 50, 75, 125, 150, 175, 200", "arh_predefined_percentages_display_key": "Incremental/decremental percentage (-50%, +50%)", "SWIN_torch_compile": false, "use_downcasted_alpha_bar": true, "auto_backcompat": true, "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": 192, "DAT_tile_overlap": 8, "canvas_hotkey_shrink_brush": "Q", "canvas_hotkey_grow_brush": "W", "restorer_visibility": 1.0, "codeformer_weight": 1.0 }, "Startup": { "total": 65.23425626754761, "records": { "initial startup": 0.05478310585021973, "prepare environment/checks": 0.01514434814453125, "prepare environment/git version info": 0.18653321266174316, "prepare environment/torch GPU test": 4.353591680526733, "prepare environment/clone repositores": 0.21119284629821777, "prepare environment/run extensions installers/a-person-mask-generator": 0.18165230751037598, "prepare environment/run extensions installers/adetailer": 0.23602533340454102, "prepare environment/run extensions installers/clip-interrogator-ext": 17.854969263076782, "prepare environment/run extensions installers/DWPose": 0.0, "prepare environment/run extensions installers/openpose-editor": 0.0, "prepare environment/run extensions installers/sd-extension-system-info": 0.14873957633972168, "prepare environment/run extensions installers/sd-webui-aspect-ratio-helper": 0.0, "prepare environment/run extensions installers/sd-webui-controlnet": 5.8873467445373535, "prepare environment/run extensions installers/sd-webui-infinite-image-browsing": 0.3045198917388916, "prepare environment/run extensions installers/sd-webui-prompt-all-in-one": 0.1787714958190918, "prepare environment/run extensions installers/sd-webui-reactor": 1.8258569240570068, "prepare environment/run extensions installers/sd-webui-roop": 3.480264186859131, "prepare environment/run extensions installers/sd-webui-state-manager": 0.0005502700805664062, "prepare environment/run extensions installers": 30.098862886428833, "prepare environment": 35.246256828308105, "launcher": 0.0033402442932128906, "import torch": 3.446789026260376, "import gradio": 1.4567434787750244, "setup paths": 7.123515605926514, "import ldm": 0.009770393371582031, "import sgm": 0.0, "initialize shared": 0.2536449432373047, "other imports": 0.9195482730865479, "opts onchange": 0.007035255432128906, "setup SD model": 0.0, "setup codeformer": 0.002118349075317383, "setup gfpgan": 0.028184175491333008, "set samplers": 0.0, "list extensions": 0.0023949146270751953, "restore config state file": 0.0, "list SD models": 0.49521660804748535, "list localizations": 0.0010399818420410156, "load scripts/custom_code.py": 0.015821218490600586, "load scripts/img2imgalt.py": 0.0, "load scripts/loopback.py": 0.0, "load scripts/outpainting_mk_2.py": 0.005560874938964844, "load scripts/poor_mans_outpainting.py": 0.0, "load scripts/postprocessing_caption.py": 0.0, "load scripts/postprocessing_codeformer.py": 0.0, "load scripts/postprocessing_create_flipped_copies.py": 0.0, "load scripts/postprocessing_focal_crop.py": 0.0, "load scripts/postprocessing_gfpgan.py": 0.0, "load scripts/postprocessing_split_oversized.py": 0.0, "load scripts/postprocessing_upscale.py": 0.00977778434753418, "load scripts/processing_autosized_crop.py": 0.0008141994476318359, "load scripts/prompt_matrix.py": 0.0010807514190673828, "load scripts/prompts_from_file.py": 0.001218557357788086, "load scripts/sd_upscale.py": 0.0008673667907714844, "load scripts/xyz_grid.py": 0.0021347999572753906, "load scripts/ldsr_model.py": 0.18615174293518066, "load scripts/lora_script.py": 0.17893552780151367, "load scripts/scunet_model.py": 0.04608583450317383, "load scripts/swinir_model.py": 0.044698476791381836, "load scripts/hotkey_config.py": 0.0, "load scripts/extra_options_section.py": 0.008026123046875, "load scripts/hypertile_script.py": 0.0631563663482666, "load scripts/hypertile_xyz.py": 0.0, "load scripts/soft_inpainting.py": 0.0, "load scripts/a_person_mask_generator.py": 0.9023139476776123, "load scripts/!adetailer.py": 1.524120569229126, "load scripts/clip_interrogator_ext.py": 0.07890439033508301, "load scripts/main.py": 0.14336013793945312, "load scripts/system-info.py": 0.06384515762329102, "load scripts/sd_webui_aspect_ratio_helper.py": 0.10528373718261719, "load scripts/adapter.py": 0.0, "load scripts/api.py": 0.4428098201751709, "load scripts/batch_hijack.py": 0.0, "load scripts/cldm.py": 0.0, "load scripts/controlmodel_ipadapter.py": 0.0, "load scripts/controlnet.py": 0.46209120750427246, "load scripts/controlnet_diffusers.py": 0.0, "load scripts/controlnet_lllite.py": 0.00508427619934082, "load scripts/controlnet_lora.py": 0.0, "load scripts/controlnet_model_guess.py": 0.0, "load scripts/controlnet_sparsectrl.py": 0.0, "load scripts/controlnet_version.py": 0.006158590316772461, "load scripts/enums.py": 0.004638671875, "load scripts/external_code.py": 0.0, "load scripts/global_state.py": 0.0, "load scripts/hook.py": 0.0, "load scripts/infotext.py": 0.0, "load scripts/logging.py": 0.0, "load scripts/lvminthin.py": 0.0, "load scripts/movie2movie.py": 0.0, "load scripts/processor.py": 0.0, "load scripts/utils.py": 0.0, "load scripts/xyz_grid_support.py": 0.0, "load scripts/iib_setup.py": 0.09369659423828125, "load scripts/on_app_started.py": 0.05096268653869629, "load scripts/console_log_patch.py": 1.1213593482971191, "load scripts/reactor_api.py": 0.11429476737976074, "load scripts/reactor_faceswap.py": 0.0135345458984375, "load scripts/reactor_globals.py": 0.0, "load scripts/reactor_helpers.py": 0.0, "load scripts/reactor_logger.py": 0.0, "load scripts/reactor_swapper.py": 0.004540205001831055, "load scripts/reactor_version.py": 0.0, "load scripts/reactor_xyz.py": 0.0, "load scripts/cimage.py": 0.0, "load scripts/faceswap.py": 0.0, "load scripts/roop_logging.py": 0.0, "load scripts/roop_version.py": 0.0, "load scripts/swapper.py": 0.01567387580871582, "load scripts/comments.py": 0.031244754791259766, "load scripts/refiner.py": 0.010013103485107422, "load scripts/seed.py": 0.0, "load scripts": 5.758260011672974, "load upscalers": 0.006068706512451172, "refresh VAE": 0.0, "refresh textual inversion templates": 0.0, "scripts list_optimizers": 0.0, "scripts list_unets": 0.0, "reload hypernetworks": 0.0, "initialize extra networks": 0.07811832427978516, "scripts before_ui_callback": 0.01618480682373047, "create ui": 1.1022772789001465, "gradio launch": 7.113342761993408, "add APIs": 0.007298707962036133, "app_started_callback/lora_script.py": 0.0, "app_started_callback/!adetailer.py": 0.0, "app_started_callback/clip_interrogator_ext.py": 0.0, "app_started_callback/system-info.py": 0.0, "app_started_callback/api.py": 0.00852823257446289, "app_started_callback/iib_setup.py": 0.0019197463989257812, "app_started_callback/on_app_started.py": 2.4728918075561523, "app_started_callback/reactor_api.py": 0.0, "app_started_callback": 2.483339786529541 } }, "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.3.1", "aliyun-python-sdk-alimt==3.2.0", "aliyun-python-sdk-core==2.14.0", "aliyun-python-sdk-kms==2.16.2", "altair==5.2.0", "antlr4-python3-runtime==4.9.3", "anyio==3.7.1", "astunparse==1.6.3", "async-timeout==4.0.3", "attrs==23.2.0", "basicsr==1.4.2", "beautifulsoup4==4.12.3", "bitsandbytes==0.41.2.post2", "blendmodes==2022", "boto3==1.34.33", "botocore==1.34.33", "cachetools==5.3.2", "certifi==2023.7.22", "cffi==1.16.0", "chardet==5.2.0", "charset-normalizer==3.3.2", "clean-fid==0.1.35", "click==8.1.7", "clip-interrogator==0.6.0", "clip==1.0", "colorama==0.4.6", "coloredlogs==15.0.1", "colorlog==6.8.2", "contourpy==1.2.0", "controlnet-aux==0.0.6", "crcmod==1.7", "cryptography==42.0.2", "cssselect2==0.7.0", "cycler==0.12.1", "cython==3.0.8", "datasets==2.16.1", "decorator==4.4.2", "deprecation==2.1.0", "depth-anything==2024.1.22.0", "diffusers==0.25.1", "dill==0.3.8", "discord-webhook==1.3.0", "distro==1.9.0", "dm-tree==0.1.8", "easydict==1.11", "edge-tts==6.1.9", "einops==0.4.1", "embreex==2.17.7.post4", "exceptiongroup==1.2.0", "facexlib==0.3.0", "fastapi==0.94.0", "ffmpy==0.3.1", "filelock==3.13.1", "filterpy==1.4.5", "flatbuffers==23.5.26", "fonttools==4.47.2", "freetype-py==2.4.0", "frozenlist==1.4.1", "fsspec==2023.9.2", "ftfy==6.1.3", "future==0.18.3", "fvcore==0.1.5.post20221221", "gast==0.5.4", "gdown==5.0.1", "gfpgan==1.3.8", "gitdb==4.0.11", "gitpython==3.1.32", "google-auth-oauthlib==1.0.0", "google-auth==2.27.0", "google-pasta==0.2.0", "gradio-client==0.5.0", "gradio==3.41.2", "greenlet==3.0.3", "grpcio==1.60.0", "h11==0.12.0", "h5py==3.10.0", "handrefinerportable==2024.2.12.0", "hsluv==5.0.4", "httpcore==0.15.0", "httpx==0.24.1", "huggingface-hub==0.20.3", "humanfriendly==10.0", "idna==3.6", "ifnude==0.0.3", "imageio-ffmpeg==0.4.9", "imageio==2.33.1", "importlib-metadata==7.0.1", "importlib-resources==6.1.1", "inflection==0.5.1", "insightface==0.7.3", "iopath==0.1.9", "jinja2==3.1.3", "jmespath==0.10.0", "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", "lightning-utilities==0.10.1", "llvmlite==0.41.1", "lmdb==1.4.1", "lpips==0.1.4", "lxml==5.1.0", "mapbox-earcut==1.0.1", "markdown-it-py==3.0.0", "markdown==3.5.2", "markupsafe==2.1.4", "matplotlib==3.8.2", "matrix-client==0.4.0", "mdurl==0.1.2", "mediapipe==0.10.9", "ml-dtypes==0.2.0", "mmdet==2.26.0", "modelscope==1.11.1", "moviepy==1.0.2", "mpmath==1.3.0", "multidict==6.0.4", "multiprocess==0.70.16", "namex==0.0.7", "networkx==3.2.1", "numba==0.58.1", "numpy==1.26.2", "oauthlib==3.2.2", "omegaconf==2.2.3", "onnx==1.14.0", "onnxruntime-gpu==1.17.0", "onnxruntime==1.15.0", "open-clip-torch==2.20.0", "openai==1.10.0", "opencv-contrib-python==4.9.0.80", "opencv-python-headless==4.9.0.80", "opencv-python==4.7.0.72", "opennsfw2==0.13.7", "opt-einsum==3.3.0", "orjson==3.9.12", "oss2==2.18.4", "packaging==23.2", "pandas==2.2.0", "pathos==0.3.2", "piexif==1.1.3", "pillow==9.5.0", "pip==23.3.2", "platformdirs==4.1.0", "pooch==1.8.1", "portalocker==2.8.2", "pox==0.3.4", "ppft==1.7.6.8", "prettytable==3.9.0", "proglog==0.1.10", "protobuf==3.20.3", "psutil==5.9.5", "py-cpuinfo==9.0.0", "pyarrow-hotfix==0.6", "pyarrow==15.0.0", "pyasn1-modules==0.3.0", "pyasn1==0.5.1", "pycocotools==2.0.7", "pycollada==0.8", "pycparser==2.21", "pycryptodome==3.20.0", "pydantic==1.10.14", "pydub==0.25.1", "pyexecjs==1.5.1", "pyfunctional==1.4.3", "pygments==2.17.2", "pymatting==1.1.12", "pyparsing==3.1.1", "pyqt5-qt5==5.15.2", "pyqt5-sip==12.13.0", "pyqt5==5.15.10", "pyreadline3==3.4.1", "pysocks==1.7.1", "python-dateutil==2.8.2", "python-dotenv==1.0.1", "python-multipart==0.0.6", "python-slugify==8.0.1", "pytorch-lightning==1.9.4", "pytorch-optimizer==2.12.0", "pytz==2023.4", "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", "rembg==2.0.54", "reportlab==4.0.9", "requests-oauthlib==1.3.1", "requests==2.31.0", "resize-right==0.0.2", "rich==13.7.0", "rpds-py==0.17.1", "rsa==4.9", "rtree==1.2.0", "s3transfer==0.10.0", "safetensors==0.4.2", "scikit-image==0.21.0", "scikit-learn==1.4.0", "scipy==1.12.0", "seaborn==0.13.2", "semantic-version==2.10.0", "send2trash==1.8.2", "sentencepiece==0.1.99", "setuptools==69.0.3", "shapely==2.0.2", "simplejson==3.19.2", "six==1.16.0", "slugify==0.0.1", "smmap==5.0.1", "sniffio==1.3.0", "sortedcontainers==2.4.0", "sounddevice==0.4.6", "soupsieve==2.5", "spandrel==0.1.6", "sqlalchemy==2.0.27", "starlette==0.26.1", "svg.path==6.3", "svglib==1.5.1", "sympy==1.12", "tabulate==0.9.0", "tb-nightly==2.16.0a20240129", "tensorboard-data-server==0.7.2", "tensorboard==2.13.0", "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", "terminaltables==3.1.10", "text-unidecode==1.3", "tf-keras-nightly==2.16.0.dev2024012910", "thop==0.1.1.post2209072238", "threadpoolctl==3.2.0", "tifffile==2024.1.30", "timm==0.9.2", "tinycss2==1.2.1", "tokenizers==0.13.3", "tomesd==0.1.3", "tomli==2.0.1", "toolz==0.12.1", "torch==2.0.1+cu118", "torchdiffeq==0.2.3", "torchmetrics==1.3.0.post0", "torchsde==0.2.6", "torchvision==0.15.2+cu118", "tqdm==4.66.1", "trampoline==0.1.2", "transformers==4.30.2", "transforms3d==0.4.1", "trimesh==4.1.3", "typing-extensions==4.9.0", "tzdata==2023.4", "ultralytics==8.1.20", "urllib3==2.0.7", "uvicorn==0.27.0.post1", "vhacdx==0.0.5", "vispy==0.14.1", "wcwidth==0.2.13", "webencodings==0.5.1", "websockets==11.0.3", "werkzeug==3.0.1", "wget==3.2", "wheel==0.42.0", "wrapt==1.14.1", "xformers==0.0.20", "xxhash==3.4.1", "yacs==0.1.8", "yapf==0.40.2", "yarl==1.9.4", "zipp==3.17.0" ] }

Relevant console log

Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: v1.8.0
Commit hash: bef51aed032c0aaa5cfd80445bc4cf0d85b408b5
bin C:\sd.webui\system\python\lib\site-packages\bitsandbytes\libbitsandbytes_cuda118.dll
Installing sd-webui-controlnet requirement: changing opencv-python version from 4.7.0.72 to 4.8.0
CUDA 11.8
Requirement already satisfied: insightface==0.7.3 in c:\sd.webui\system\python\lib\site-packages (from -

Additional information

No response

Gourieff commented 2 months ago

And if you use the internal SD WebUI's Codeformer tool (via the Extras tab)? Doesn't it work as well?

FliesQQ commented 1 month ago

And if you use the internal SD WebUI's Codeformer tool (via the Extras tab)? Doesn't it work as well?

In reactor, Weight set 0 to 1 has completely same result. In internal SD WebUI's Codeformer tool (via the Extras tab) Codeformer works correct.

gggitpl commented 1 month ago

Any update on the same question?

kongse commented 1 month ago

Same problem here. It's a very useful option for me.

Gourieff commented 1 week ago

CodeFormer works as it should work, you can see the difference (from 0 to 1) in the example image:

image