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.56k stars 279 forks source link

Script x/y/z plot not working as expected with reactor #437

Open 1manfactory opened 7 months ago

1manfactory commented 7 months ago

First, confirm

What happened?

I created a 10x10 grid with different values for Code Former weight and Restore Face visibility. The face is replaced as expected. But I don't see any differences. It seems the values of script x/y/z plot are not used.

image

xyz_grid-0000-3074624573

Steps to reproduce the problem

Prompt: bobblehead beautiful woman with black hair,

Populate x/y/z plot values:

Reactor Code Former Weight: 0,0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1

Reactor Face Visibily: 0,0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1

Sysinfo

{ "Platform": "Windows-10-10.0.22631-SP0", "Python": "3.10.6", "Version": "v1.9.3", "Commit": "1c0a0c4c26f78c32095ebc7f8af82f5c04fca8c0", "Script path": "C:\sd.webui\webui", "Data path": "C:\sd.webui\webui", "Extensions dir": "C:\sd.webui\webui\extensions", "Checksum": "32790a31f0ca160dc0adfb2870a60cbc330efb005fd658dc016f8eee0704d5d8", "Commandline": [ "launch.py", "--no-half-vae" ], "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.4.131\r", "cuda_module_loading": "LAZY", "nvidia_driver_version": "551.78", "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": [], "CPU": { "model": "Intel64 Family 6 Model 167 Stepping 1, GenuineIntel", "count logical": 16, "count physical": 8 }, "RAM": { "total": "32GB", "used": "15GB", "free": "17GB" }, "Extensions": [ { "name": "DWPose", "path": "C:\sd.webui\webui\extensions\DWPose", "version": "3dca5db7", "branch": "onnx", "remote": "https://github.com/IDEA-Research/DWPose" }, { "name": "adetailer", "path": "C:\sd.webui\webui\extensions\adetailer", "version": "1edd5888", "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": "deforum-for-automatic1111-webui", "path": "C:\sd.webui\webui\extensions\deforum-for-automatic1111-webui", "version": "32242685", "branch": "automatic1111-webui", "remote": "https://github.com/deforum-art/deforum-for-automatic1111-webui.git" }, { "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-animatediff", "path": "C:\sd.webui\webui\extensions\sd-webui-animatediff", "version": "44d2f992", "branch": "master", "remote": "https://github.com/continue-revolution/sd-webui-animatediff.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": "b2284af5", "branch": "main", "remote": "https://github.com/Mikubill/sd-webui-controlnet.git" }, { "name": "sd-webui-facefusion", "path": "C:\sd.webui\webui\extensions\sd-webui-facefusion", "version": "57a743da", "branch": "main", "remote": "https://github.com/diffus-me/sd-webui-facefusion" }, { "name": "sd-webui-infinite-image-browsing", "path": "C:\sd.webui\webui\extensions\sd-webui-infinite-image-browsing", "version": "cadbe81c", "branch": "main", "remote": "https://github.com/zanllp/sd-webui-infinite-image-browsing.git" }, { "name": "sd-webui-mov2mov", "path": "C:\sd.webui\webui\extensions\sd-webui-mov2mov", "version": "e4e96e78", "branch": "master", "remote": "https://github.com/Scholar01/sd-webui-mov2mov.git" }, { "name": "sd-webui-prompt-all-in-one", "path": "C:\sd.webui\webui\extensions\sd-webui-prompt-all-in-one", "version": "eb924ba5", "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": "d2e78be2", "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": "stable-diffusion-webui-prompt-travel", "path": "C:\sd.webui\webui\extensions\stable-diffusion-webui-prompt-travel", "version": "9c532f34", "branch": "main", "remote": "https://github.com/Kahsolt/stable-diffusion-webui-prompt-travel.git" } ], "Inactive extensions": [ { "name": "Config-Presets", "path": "C:\sd.webui\webui\extensions\Config-Presets", "version": "45782006", "branch": "main", "remote": "https://github.com/Zyin055/Config-Presets" }, { "name": "SD-CN-Animation", "path": "C:\sd.webui\webui\extensions\SD-CN-Animation", "version": "4f07b5e6", "branch": "main", "remote": "https://github.com/volotat/SD-CN-Animation.git" }, { "name": "TemporalKit", "path": "C:\sd.webui\webui\extensions\TemporalKit", "version": "f46d255c", "branch": "main", "remote": "https://github.com/CiaraStrawberry/TemporalKit" }, { "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": "facechain", "path": "C:\sd.webui\webui\extensions\facechain", "version": "2f6119f4", "branch": "main", "remote": "https://github.com/modelscope/facechain.git" }, { "name": "sd-webui-state-manager", "path": "C:\sd.webui\webui\extensions\sd-webui-state-manager", "version": "2af62ecd", "branch": "main", "remote": "https://github.com/SenshiSentou/sd-webui-state-manager" }, { "name": "sd_dreambooth_extension", "path": "C:\sd.webui\webui\extensions\sd_dreambooth_extension", "version": "45a12fe5", "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": "--no-half-vae", "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": "realisticVisionV60B1_v51VAE.safetensors [ef76aa2332]", "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": true, "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": "Automatic", "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": 1, "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": true, "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", "SD-CN-Animation", "TemporalKit", "a-person-mask-generator", "facechain", "sd-webui-state-manager", "sd_dreambooth_extension", "stable-diffusion-webui-depthmap-script" ], "disable_all_extensions": "none", "restore_config_state_file": "", "sd_checkpoint_hash": "ef76aa2332635f4352463343beec9c5aae3bd107a73c0fd7221abbbcf8bd5470", "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": true, "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, "statemanager_save_location": "Browser's Indexed DB", "statemanager_save_file_location": "history.txt", "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": "C:\sd.webui\system\python\lib\site-packages\imageio_ffmpeg\binaries\ffmpeg-win64-v4.2.2.exe", "deforum_ffmpeg_crf": 17, "deforum_ffmpeg_preset": "slow", "deforum_debug_mode_enabled": false, "deforum_save_gen_info_as_srt": false, "deforum_embed_srt": false, "deforum_save_gen_info_as_srt_params": [ "Noise Schedule" ], "deforum_preview": "Off", "deforum_preview_interval_frames": 100, "mov2mov_outpath_samples": "outputs/mov2mov-images", "mov2mov_output_dir": "outputs/mov2mov-videos", "def_img_cfg": "1.5", "animatediff_model_path": "", "animatediff_default_save_formats": [ "GIF", "PNG" ], "animatediff_save_to_custom": true, "animatediff_frame_extract_path": "", "animatediff_frame_extract_remove": false, "animatediff_default_frame_extract_method": "ffmpeg", "animatediff_optimize_gif_palette": false, "animatediff_optimize_gif_gifsicle": false, "animatediff_mp4_crf": 23, "animatediff_mp4_preset": "", "animatediff_mp4_tune": "", "animatediff_webp_quality": 80, "animatediff_webp_lossless": false, "animatediff_s3_enable": false, "animatediff_s3_host": "", "animatediff_s3_port": "", "animatediff_s3_access_key": "", "animatediff_s3_secret_key": "", "animatediff_s3_storge_bucket": "", "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_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": 86.85985064506531, "records": { "initial startup": 0.019788265228271484, "prepare environment/checks": 0.010140180587768555, "prepare environment/git version info": 0.04190325736999512, "prepare environment/torch GPU test": 2.000178337097168, "prepare environment/clone repositores": 0.3525865077972412, "prepare environment/run extensions installers/adetailer": 0.26747894287109375, "prepare environment/run extensions installers/clip-interrogator-ext": 9.251769065856934, "prepare environment/run extensions installers/deforum-for-automatic1111-webui": 0.32251572608947754, "prepare environment/run extensions installers/DWPose": 0.0002448558807373047, "prepare environment/run extensions installers/openpose-editor": 0.0, "prepare environment/run extensions installers/sd-extension-system-info": 0.3994572162628174, "prepare environment/run extensions installers/sd-webui-animatediff": 0.0, "prepare environment/run extensions installers/sd-webui-aspect-ratio-helper": 0.001046895980834961, "prepare environment/run extensions installers/sd-webui-controlnet": 3.924992322921753, "prepare environment/run extensions installers/sd-webui-facefusion": 15.747241497039795, "prepare environment/run extensions installers/sd-webui-infinite-image-browsing": 0.5215857028961182, "prepare environment/run extensions installers/sd-webui-mov2mov": 0.2726900577545166, "prepare environment/run extensions installers/sd-webui-prompt-all-in-one": 0.284285306930542, "prepare environment/run extensions installers/sd-webui-reactor": 2.4564716815948486, "prepare environment/run extensions installers/sd-webui-roop": 13.886563539505005, "prepare environment/run extensions installers/stable-diffusion-webui-prompt-travel": 0.3269801139831543, "prepare environment/run extensions installers": 47.66332292556763, "prepare environment": 50.10095763206482, "launcher": 0.0023431777954101562, "import torch": 3.617413282394409, "import gradio": 1.1401844024658203, "setup paths": 7.943158149719238, "import ldm": 0.006540775299072266, "import sgm": 0.0, "initialize shared": 0.2491457462310791, "other imports": 0.5439445972442627, "opts onchange": 0.0, "setup SD model": 0.0, "setup codeformer": 0.01692938804626465, "setup gfpgan": 0.06250572204589844, "set samplers": 0.0, "list extensions": 0.011529684066772461, "restore config state file": 0.0, "list SD models": 0.11910343170166016, "list localizations": 0.0010335445404052734, "load scripts/custom_code.py": 0.008971691131591797, "load scripts/img2imgalt.py": 0.0010113716125488281, "load scripts/loopback.py": 0.0009474754333496094, "load scripts/outpainting_mk_2.py": 0.0, "load scripts/poor_mans_outpainting.py": 0.0012235641479492188, "load scripts/postprocessing_codeformer.py": 0.001009225845336914, "load scripts/postprocessing_gfpgan.py": 0.0, "load scripts/postprocessing_upscale.py": 0.0009849071502685547, "load scripts/prompt_matrix.py": 0.0, "load scripts/prompts_from_file.py": 0.0011434555053710938, "load scripts/sd_upscale.py": 0.0, "load scripts/xyz_grid.py": 0.0019948482513427734, "load scripts/ldsr_model.py": 0.1622605323791504, "load scripts/lora_script.py": 0.24895238876342773, "load scripts/scunet_model.py": 0.036957740783691406, "load scripts/swinir_model.py": 0.03928089141845703, "load scripts/hotkey_config.py": 0.0010313987731933594, "load scripts/extra_options_section.py": 0.0010023117065429688, "load scripts/hypertile_script.py": 0.06872057914733887, "load scripts/hypertile_xyz.py": 0.0013341903686523438, "load scripts/postprocessing_autosized_crop.py": 0.0006258487701416016, "load scripts/postprocessing_caption.py": 0.00067138671875, "load scripts/postprocessing_create_flipped_copies.py": 0.0007395744323730469, "load scripts/postprocessing_focal_crop.py": 0.003812074661254883, "load scripts/postprocessing_split_oversized.py": 0.0003223419189453125, "load scripts/soft_inpainting.py": 0.001001596450805664, "load scripts/!adetailer.py": 1.4618067741394043, "load scripts/clip_interrogator_ext.py": 0.11351704597473145, "load scripts/deforum.py": 0.16133427619934082, "load scripts/deforum_api.py": 0.001310110092163086, "load scripts/deforum_api_models.py": 0.003994464874267578, "load scripts/deforum_extend_paths.py": 0.001234292984008789, "load scripts/main.py": 0.12874102592468262, "load scripts/system-info.py": 0.08796286582946777, "load scripts/animatediff.py": 0.1464700698852539, "load scripts/animatediff_freeinit.py": 0.0, "load scripts/animatediff_i2ibatch.py": 0.0, "load scripts/animatediff_infotext.py": 0.0, "load scripts/animatediff_infv2v.py": 0.0, "load scripts/animatediff_latent.py": 0.0, "load scripts/animatediff_logger.py": 0.0, "load scripts/animatediff_mm.py": 0.01604008674621582, "load scripts/animatediff_output.py": 0.0, "load scripts/animatediff_prompt.py": 0.0010249614715576172, "load scripts/animatediff_settings.py": 0.0009696483612060547, "load scripts/animatediff_ui.py": 0.0, "load scripts/animatediff_utils.py": 0.0009963512420654297, "load scripts/animatediff_xyz.py": 0.0009970664978027344, "load scripts/sd_webui_aspect_ratio_helper.py": 0.11868906021118164, "load scripts/adapter.py": 0.0012085437774658203, "load scripts/api.py": 0.35341882705688477, "load scripts/batch_hijack.py": 0.001955270767211914, "load scripts/cldm.py": 0.0012884140014648438, "load scripts/controlnet.py": 0.2525041103363037, "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.0, "load scripts/controlnet_sparsectrl.py": 0.0, "load scripts/controlnet_version.py": 0.0, "load scripts/enums.py": 0.0, "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/supported_preprocessor.py": 0.0, "load scripts/utils.py": 0.012684822082519531, "load scripts/xyz_grid_support.py": 0.0, "load scripts/facefusion_ui.py": 0.6796598434448242, "load scripts/iib_setup.py": 0.13194680213928223, "load scripts/m2m_config.py": 0.0008749961853027344, "load scripts/m2m_hook.py": 0.0, "load scripts/m2m_ui.py": 0.07467961311340332, "load scripts/m2m_util.py": 0.0, "load scripts/module_ui_extensions.py": 0.0, "load scripts/mov2mov.py": 0.0, "load scripts/movie_editor.py": 0.0, "load scripts/on_app_started.py": 0.07497191429138184, "load scripts/console_log_patch.py": 0.007757425308227539, "load scripts/reactor_api.py": 0.07810068130493164, "load scripts/reactor_faceswap.py": 0.0057048797607421875, "load scripts/reactor_globals.py": 0.0, "load scripts/reactor_helpers.py": 0.0011658668518066406, "load scripts/reactor_logger.py": 0.000743865966796875, "load scripts/reactor_swapper.py": 0.0016813278198242188, "load scripts/reactor_version.py": 0.0005919933319091797, "load scripts/reactor_xyz.py": 0.0, "load scripts/cimage.py": 0.0, "load scripts/faceswap.py": 0.000997304916381836, "load scripts/roop_logging.py": 0.0, "load scripts/roop_version.py": 0.0013813972473144531, "load scripts/swapper.py": 0.001270294189453125, "load scripts/controlnet_travel.py": 0.1576828956604004, "load scripts/prompt_travel.py": 0.001993894577026367, "load scripts/comments.py": 0.052567243576049805, "load scripts/refiner.py": 0.004171133041381836, "load scripts/sampler.py": 0.0, "load scripts/seed.py": 0.0, "load scripts": 4.730090856552124, "load upscalers": 0.003027200698852539, "refresh VAE": 0.001995563507080078, "refresh textual inversion templates": 0.0, "scripts list_optimizers": 0.0011544227600097656, "scripts list_unets": 0.0, "reload hypernetworks": 0.001033782958984375, "initialize extra networks": 0.010708093643188477, "scripts before_ui_callback": 0.002020597457885742, "create ui": 7.099437713623047, "gradio launch": 2.589031457901001, "add APIs": 0.006114006042480469, "app_started_callback/lora_script.py": 0.0009980201721191406, "app_started_callback/!adetailer.py": 0.0, "app_started_callback/clip_interrogator_ext.py": 0.0, "app_started_callback/system-info.py": 0.003989458084106445, "app_started_callback/api.py": 0.0049915313720703125, "app_started_callback/iib_setup.py": 0.03758716583251953, "app_started_callback/on_app_started.py": 8.56289529800415, "app_started_callback/reactor_api.py": 0.0030241012573242188, "app_started_callback": 8.61348557472229 } }, "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", "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", "av==12.0.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", "diskcache==5.6.3", "distro==1.9.0", "dm-tree==0.1.8", "dsine==2024.3.23", "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", "ffmpeg-python==0.2.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", "geffnet==1.0.2", "gfpgan==1.3.8", "gitdb==4.0.11", "gitpython==3.1.32", "glob2==0.5", "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", "numexpr==2.10.0", "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-avif-plugin==1.4.3", "pillow==9.5.0", "pims==0.6.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", "scenedetect==0.6.3", "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", "slicerator==1.1.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.29", "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

10:28:58 - ReActor - STATUS - Working: source face index [0], target face index [0]| 2400/2420 [13:09<00:04,  4.59it/s]
10:28:58 - ReActor - STATUS - Using Loaded Source Face Model: babe1.safetensors
10:28:58 - ReActor - STATUS - Analyzing Target Image...
10:28:59 - ReActor - STATUS - Detecting Source Face, Index = 0
10:28:59 - ReActor - STATUS - Detected: -36- y.o. Female
10:28:59 - ReActor - STATUS - Detecting Target Face, Index = 0
10:28:59 - ReActor - STATUS - Detected: -22- y.o. Female
10:28:59 - ReActor - STATUS - Swapping Source into Target
10:28:59 - ReActor - STATUS - Restoring the face with CodeFormer (weight: 0.9)
100%|██████████████████████████████████████████████████████████████████████████████████| 20/20 [00:04<00:00,  4.56it/s]
10:29:04 - ReActor - STATUS - Working: source face index [0], target face index [0]| 2420/2420 [13:16<00:00,  4.58it/s]
10:29:04 - ReActor - STATUS - Using Loaded Source Face Model: babe2.safetensors
10:29:04 - ReActor - STATUS - Analyzing Target Image...
10:29:05 - ReActor - STATUS - Detecting Source Face, Index = 0
10:29:05 - ReActor - STATUS - Detected: -36- y.o. Female
10:29:05 - ReActor - STATUS - Detecting Target Face, Index = 0
10:29:05 - ReActor - STATUS - Detected: -22- y.o. Female
10:29:05 - ReActor - STATUS - Swapping Source into Target
10:29:06 - ReActor - STATUS - Restoring the face with CodeFormer (weight: 1.0)

Additional information

No response

Gourieff commented 6 months ago

You can see another example here https://github.com/Gourieff/sd-webui-reactor/issues/395#issuecomment-2103381509 where the difference between 0, 0.5 and 1 is more obvious So CodeFormer works fine ReActor uses the SD WebUI's built-in CodeFormer module and if it works in SD WebUI - it works in ReActor as well