Closed AbslanX closed 10 months ago
You should update ReActor to latest version
i pulled the latest version and am still seeing the same error:
** Error running postprocess_image: E:\Stable\stable-diffusion-webui\extensions\sd-webui-reactor\scripts\reactor_faceswap.py Traceback (most recent call last): File "E:\Stable\stable-diffusion-webui\modules\scripts.py", line 774, in postprocess_image script.postprocess_image(p, pp, script_args) File "E:\Stable\stable-diffusion-webui\extensions\sd-webui-reactor\scripts\reactor_faceswap.py", line 376, in postprocess_image result, output, swapped = swap_face( File "E:\Stable\stable-diffusion-webui\extensions\sd-webui-reactor\scripts\reactor_swapper.py", line 581, in swap_face result_image, output, swapped = operate(source_img,target_img,target_img_orig,model,source_faces_index,faces_index,source_faces,target_faces,gender_source,gender_target,source_face,wrong_gender,source_age,source_gender,output,swapped,mask_face,entire_mask_image,enhancement_options) File "E:\Stable\stable-diffusion-webui\extensions\sd-webui-reactor\scripts\reactor_swapper.py", line 714, in operate result_image = enhance_image(result_image, enhancement_options) File "E:\Stable\stable-diffusion-webui\extensions\sd-webui-reactor\scripts\reactor_swapper.py", line 188, in enhance_image result_image = restore_face(result_image, enhancement_options) File "E:\Stable\stable-diffusion-webui\extensions\sd-webui-reactor\scripts\reactor_swapper.py", line 148, in restore_face numpy_image = gfpgan_model.gfpgan_fix_faces(numpy_image) File "E:\Stable\stable-diffusion-webui\modules\gfpgan_model.py", line 60, in gfpgan_fix_faces model = gfpgann() File "E:\Stable\stable-diffusion-webui\modules\gfpgan_model.py", line 38, in gfpgann latest_file = max(gfp_models, key=os.path.getctime) ValueError: max() arg is an empty sequence
I updated to cuda 12.1 and got the latest cudann for 12.1 and am still seeing the same error above. I tried removing the venv folder from auto 1111 and cleared the cache and reinstalled all packages. I'm attaching the latest sysinfo:
{ "Platform": "Windows-10-10.0.22621-SP0", "Python": "3.10.6", "Version": "v1.7.0", "Commit": "cf2772fab0af5573da775e7437e6acdca424f26e", "Script path": "E:\Stable\stable-diffusion-webui", "Data path": "E:\Stable\stable-diffusion-webui", "Extensions dir": "E:\Stable\stable-diffusion-webui\extensions", "Checksum": "cc9fcddcd4bfa1fd89bf2d2c7be764f033396426c0945000d6134c8525ac286b", "Commandline": [ "launch.py", "--autolaunch", "--theme", "dark", "--xformers" ], "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": null, "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.22621-SP0", "is_cuda_available": "True", "cuda_runtime_version": "12.1.66\r", "cuda_module_loading": "LAZY", "nvidia_driver_version": "531.14", "nvidia_gpu_models": "GPU 0: NVIDIA GeForce RTX 4090", "cudnn_version": "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\bin\cudnn_ops_train64_8.dll", "pip_version": "pip3", "pip_packages": [ "numpy==1.23.5", "open-clip-torch==2.20.0", "pytorch-lightning==1.9.4", "torch==2.0.1+cu118", "torchdiffeq==0.2.3", "torchmetrics==1.2.1", "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=4701", "DeviceID=CPU0", "Family=107", "L2CacheSize=12288", "L2CacheSpeed=", "Manufacturer=AuthenticAMD", "MaxClockSpeed=4701", "Name=AMD Ryzen 9 7900X 12-Core Processor ", "ProcessorType=3", "Revision=24834" ] }, "Exceptions": [ { "exception": "max() arg is an empty sequence", "traceback": [ [ "E:\Stable\stable-diffusion-webui\modules\scripts.py, line 774, postprocess_image", "script.postprocess_image(p, pp, *script_args)" ], [ "E:\Stable\stable-diffusion-webui\extensions\sd-webui-reactor\scripts\reactor_faceswap.py, line 376, postprocess_image", "result, output, swapped = swap_face(" ], [ "E:\Stable\stable-diffusion-webui\extensions\sd-webui-reactor\scripts\reactor_swapper.py, line 581, swap_face", "result_image, output, swapped = operate(source_img,target_img,target_img_orig,model,source_faces_index,faces_index,source_faces,target_faces,gender_source,gender_target,source_face,wrong_gender,source_age,source_gender,output,swapped,mask_face,entire_mask_image,enhancement_options)" ], [ "E:\Stable\stable-diffusion-webui\extensions\sd-webui-reactor\scripts\reactor_swapper.py, line 714, operate", "result_image = enhance_image(result_image, enhancement_options)" ], [ "E:\Stable\stable-diffusion-webui\extensions\sd-webui-reactor\scripts\reactor_swapper.py, line 188, enhance_image", "result_image = restore_face(result_image, enhancement_options)" ], [ "E:\Stable\stable-diffusion-webui\extensions\sd-webui-reactor\scripts\reactor_swapper.py, line 148, restore_face", "numpy_image = gfpgan_model.gfpgan_fix_faces(numpy_image)" ], [ "E:\Stable\stable-diffusion-webui\modules\gfpgan_model.py, line 60, gfpgan_fix_faces", "model = gfpgann()" ], [ "E:\Stable\stable-diffusion-webui\modules\gfpgan_model.py, line 38, gfpgann", "latest_file = max(gfp_models, key=os.path.getctime)" ] ] } ], "CPU": { "model": "AMD64 Family 25 Model 97 Stepping 2, AuthenticAMD", "count logical": 24, "count physical": 12 }, "RAM": { "total": "64GB", "used": "14GB", "free": "49GB" }, "Extensions": [ { "name": "adetailer", "path": "E:\Stable\stable-diffusion-webui\extensions\adetailer", "version": "261f9c1e", "branch": "main", "remote": "https://github.com/Bing-su/adetailer.git" }, { "name": "sd-civitai-browser-plus", "path": "E:\Stable\stable-diffusion-webui\extensions\sd-civitai-browser-plus", "version": "a5cdb79f", "branch": "main", "remote": "https://github.com/BlafKing/sd-civitai-browser-plus.git" }, { "name": "sd-webui-additional-networks", "path": "E:\Stable\stable-diffusion-webui\extensions\sd-webui-additional-networks", "version": "e9f3d622", "branch": "main", "remote": "https://github.com/kohya-ss/sd-webui-additional-networks.git" }, { "name": "sd-webui-controlnet", "path": "E:\Stable\stable-diffusion-webui\extensions\sd-webui-controlnet", "version": "01e4574d", "branch": "main", "remote": "https://github.com/Mikubill/sd-webui-controlnet.git" }, { "name": "sd-webui-infinite-image-browsing", "path": "E:\Stable\stable-diffusion-webui\extensions\sd-webui-infinite-image-browsing", "version": "fed7cf41", "branch": "main", "remote": "https://github.com/zanllp/sd-webui-infinite-image-browsing.git" }, { "name": "sd-webui-reactor", "path": "E:\Stable\stable-diffusion-webui\extensions\sd-webui-reactor", "version": "805a0cae", "branch": "main", "remote": "https://github.com/Gourieff/sd-webui-reactor" } ], "Inactive extensions": [ { "name": "sd-webui-facefusion", "path": "E:\Stable\stable-diffusion-webui\extensions\sd-webui-facefusion", "version": "2ee00309", "branch": "main", "remote": "https://github.com/diffus-me/sd-webui-facefusion.git" } ], "Environment": { "COMMANDLINE_ARGS": " --autolaunch --theme dark --xformers ", "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": "cirrostratus_v10.safetensors [5b4c5dfccf]", "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": "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.0, "img2img_extra_noise": 0.0, "img2img_color_correction": false, "img2img_fix_steps": false, "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" ], "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": [ "sd-webui-facefusion" ], "disable_all_extensions": "none", "restore_config_state_file": "", "sd_checkpoint_hash": "5b4c5dfccf83039b046249c1cf0af38c8c73e7ac27108d49a5f3d7980ef39f64", "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, "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, "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, "control_net_detectedmap_dir": "detected_maps", "control_net_models_path": "", "control_net_modules_path": "", "control_net_unit_count": 3, "control_net_model_cache_size": 1, "control_net_inpaint_blur_sigma": 7, "control_net_no_high_res_fix": false, "control_net_no_detectmap": false, "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_ignore_noninpaint_mask": false, "use_aria2": true, "disable_dns": false, "show_log": false, "split_aria2": 64, "aria2_flags": "", "insert_sub": true, "dot_subfolders": true, "use_LORA": false, "unpack_zip": false, "hide_early_access": true, "custom_api_key": "", "page_header": false, "update_log": true, "video_playback": true, "image_location": "", "sub_image_location": true, "Checkpoint_subfolder": "None", "LORA_subfolder": "None", "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" }, "Startup": { "total": 459.1958317756653, "records": { "initial startup": 0.001003265380859375, "prepare environment/checks": 0.006602287292480469, "prepare environment/git version info": 0.037305593490600586, "prepare environment/install torch": 267.25713777542114, "prepare environment/torch GPU test": 2.1184771060943604, "prepare environment/install clip": 2.668529987335205, "prepare environment/install open_clip": 3.665302038192749, "prepare environment/install xformers": 10.017648935317993, "prepare environment/clone repositores": 0.1134636402130127, "prepare environment/install CodeFormer requirements": 24.657283306121826, "prepare environment/install requirements": 55.124619483947754, "prepare environment/run extensions installers/adetailer": 17.49102759361267, "prepare environment/run extensions installers/sd-civitai-browser-plus": 4.456949234008789, "prepare environment/run extensions installers/sd-webui-additional-networks": 0.0010402202606201172, "prepare environment/run extensions installers/sd-webui-controlnet": 9.665262699127197, "prepare environment/run extensions installers/sd-webui-infinite-image-browsing": 3.3046791553497314, "prepare environment/run extensions installers/sd-webui-reactor": 49.433210134506226, "prepare environment/run extensions installers": 84.35216903686523, "prepare environment": 450.01853919029236, "launcher": 0.0020008087158203125, "import torch": 2.7521378993988037, "import gradio": 0.9934148788452148, "setup paths": 0.8910222053527832, "import ldm": 0.0050013065338134766, "import sgm": 0.0, "initialize shared": 0.19807648658752441, "other imports": 0.691990852355957, "opts onchange": 0.0, "setup SD model": 0.0030002593994140625, "setup codeformer": 0.21207904815673828, "setup gfpgan": 0.019004344940185547, "set samplers": 0.0, "list extensions": 0.003000974655151367, "restore config state file": 0.0, "list SD models": 0.0020003318786621094, "list localizations": 0.0, "load scripts/custom_code.py": 0.010001897811889648, "load scripts/img2imgalt.py": 0.0, "load scripts/loopback.py": 0.0010006427764892578, "load scripts/outpainting_mk_2.py": 0.0, "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.0009999275207519531, "load scripts/postprocessing_focal_crop.py": 0.0, "load scripts/postprocessing_gfpgan.py": 0.0, "load scripts/postprocessing_split_oversized.py": 0.0010006427764892578, "load scripts/postprocessing_upscale.py": 0.0, "load scripts/processing_autosized_crop.py": 0.0, "load scripts/prompt_matrix.py": 0.0, "load scripts/prompts_from_file.py": 0.0010001659393310547, "load scripts/sd_upscale.py": 0.0, "load scripts/xyz_grid.py": 0.0010001659393310547, "load scripts/ldsr_model.py": 1.116419792175293, "load scripts/lora_script.py": 0.07101702690124512, "load scripts/scunet_model.py": 0.014003515243530273, "load scripts/swinir_model.py": 0.01200246810913086, "load scripts/hotkey_config.py": 0.0, "load scripts/extra_options_section.py": 0.0, "load scripts/hypertile_script.py": 0.02500605583190918, "load scripts/hypertile_xyz.py": 0.0, "load scripts/!adetailer.py": 0.31743764877319336, "load scripts/civitai_api.py": 0.020004749298095703, "load scripts/civitai_download.py": 0.0010001659393310547, "load scripts/civitai_file_manage.py": 0.0, "load scripts/civitai_global.py": 0.0010001659393310547, "load scripts/civitai_gui.py": 0.028380155563354492, "load scripts/additional_networks.py": 0.056032657623291016, "load scripts/addnet_xyz_grid_support.py": 0.0, "load scripts/lora_compvis.py": 0.0010001659393310547, "load scripts/metadata_editor.py": 0.0, "load scripts/model_util.py": 0.004001140594482422, "load scripts/safetensors_hack.py": 0.0, "load scripts/util.py": 0.0010001659393310547, "load scripts/adapter.py": 0.0, "load scripts/api.py": 0.16724610328674316, "load scripts/batch_hijack.py": 0.0, "load scripts/cldm.py": 0.0010001659393310547, "load scripts/controlmodel_ipadapter.py": 0.0, "load scripts/controlnet.py": 0.057013750076293945, "load scripts/controlnet_diffusers.py": 0.0, "load scripts/controlnet_lllite.py": 0.0010001659393310547, "load scripts/controlnet_lora.py": 0.0, "load scripts/controlnet_model_guess.py": 0.0, "load scripts/controlnet_version.py": 0.0009999275207519531, "load scripts/enums.py": 0.0, "load scripts/external_code.py": 0.0, "load scripts/global_state.py": 0.0010004043579101562, "load scripts/hook.py": 0.0, "load scripts/infotext.py": 0.0, "load scripts/logging.py": 0.0010006427764892578, "load scripts/lvminthin.py": 0.0, "load scripts/movie2movie.py": 0.0, "load scripts/processor.py": 0.0009996891021728516, "load scripts/utils.py": 0.0, "load scripts/xyz_grid_support.py": 0.0, "load scripts/iib_setup.py": 0.04301023483276367, "load scripts/console_log_patch.py": 0.42223072052001953, "load scripts/reactor_api.py": 0.0980231761932373, "load scripts/reactor_faceswap.py": 0.0030007362365722656, "load scripts/reactor_globals.py": 0.0010004043579101562, "load scripts/reactor_helpers.py": 0.0, "load scripts/reactor_logger.py": 0.0, "load scripts/reactor_swapper.py": 0.0010001659393310547, "load scripts/reactor_version.py": 0.0, "load scripts/refiner.py": 0.0010001659393310547, "load scripts/seed.py": 0.0, "load scripts": 2.4828357696533203, "load upscalers": 0.003000497817993164, "refresh VAE": 0.0010008811950683594, "refresh textual inversion templates": 0.0, "scripts list_optimizers": 0.0010001659393310547, "scripts list_unets": 0.0, "reload hypernetworks": 0.004057168960571289, "initialize extra networks": 0.00909423828125, "scripts before_ui_callback": 0.0010356903076171875, "create ui": 0.7009968757629395, "gradio launch": 0.1867356300354004, "add APIs": 0.003301382064819336, "app_started_callback/lora_script.py": 0.0013120174407958984, "app_started_callback/api.py": 0.0010006427764892578, "app_started_callback/iib_setup.py": 0.007188558578491211, "app_started_callback/reactor_api.py": 0.0010004043579101562, "app_started_callback": 0.010501623153686523 } }, "Packages": [ "absl-py==2.0.0", "accelerate==0.21.0", "addict==2.4.0", "aenum==3.1.15", "aiofiles==23.2.1", "aiohttp==3.9.1", "aiosignal==1.3.1", "albumentations==1.3.1", "altair==5.2.0", "antlr4-python3-runtime==4.9.3", "anyio==3.7.1", "async-timeout==4.0.3", "attrs==23.1.0", "basicsr==1.4.2", "beautifulsoup4==4.12.2", "blendmodes==2022", "cachetools==5.3.2", "certifi==2023.11.17", "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", "contourpy==1.2.0", "cssselect2==0.7.0", "cycler==0.12.1", "cython==3.0.7", "deprecation==2.1.0", "dill==0.3.7", "easydict==1.11", "einops==0.4.1", "exceptiongroup==1.2.0", "facexlib==0.3.0", "fake-useragent==1.4.0", "fastapi==0.94.0", "ffmpy==0.3.1", "filelock==3.13.1", "filterpy==1.4.5", "flatbuffers==23.5.26", "fonttools==4.47.0", "frozenlist==1.4.1", "fsspec==2023.12.2", "ftfy==6.1.3", "future==0.18.3", "fvcore==0.1.5.post20221221", "gdown==4.7.1", "gfpgan==1.3.8", "gitdb==4.0.11", "gitpython==3.1.32", "google-auth-oauthlib==1.2.0", "google-auth==2.25.2", "gradio-client==0.5.0", "gradio==3.41.2", "grpcio==1.60.0", "h11==0.12.0", "httpcore==0.15.0", "httpx==0.24.1", "huggingface-hub==0.20.1", "humanfriendly==10.0", "idna==3.6", "imageio==2.33.1", "importlib-metadata==7.0.0", "importlib-resources==6.1.1", "inflection==0.5.1", "insightface==0.7.3", "iopath==0.1.9", "jinja2==3.1.2", "joblib==1.3.2", "jsonmerge==1.8.0", "jsonschema-specifications==2023.11.2", "jsonschema==4.20.0", "kiwisolver==1.4.5", "kornia==0.6.7", "lark==1.1.2", "lazy-loader==0.3", "lightning-utilities==0.10.0", "llvmlite==0.41.1", "lmdb==1.4.1", "lpips==0.1.4", "lxml==4.9.4", "markdown-it-py==3.0.0", "markdown==3.5.1", "markupsafe==2.1.3", "matplotlib==3.8.2", "mdurl==0.1.2", "mediapipe==0.10.9", "mpmath==1.3.0", "multidict==6.0.4", "networkx==3.2.1", "numba==0.58.1", "numpy==1.23.5", "oauthlib==3.2.2", "omegaconf==2.2.3", "onnx==1.15.0", "onnxruntime-gpu==1.16.3", "open-clip-torch==2.20.0", "opencv-contrib-python==4.8.1.78", "opencv-python-headless==4.8.1.78", "opencv-python==4.8.1.78", "orjson==3.9.10", "packaging==23.2", "pandas==2.1.4", "piexif==1.1.3", "pillow==9.5.0", "pip==22.2.1", "platformdirs==4.1.0", "portalocker==2.8.2", "prettytable==3.9.0", "protobuf==4.25.1", "psutil==5.9.5", "py-cpuinfo==9.0.0", "pyasn1-modules==0.3.0", "pyasn1==0.5.1", "pycparser==2.21", "pydantic==1.10.13", "pydub==0.25.1", "pyfunctional==1.4.3", "pygments==2.17.2", "pyparsing==3.1.1", "pyreadline3==3.4.1", "pysocks==1.7.1", "python-dateutil==2.8.2", "python-dotenv==1.0.0", "python-multipart==0.0.6", "pytorch-lightning==1.9.4", "pytz==2023.3.post1", "pywavelets==1.5.0", "pywin32==306", "pyyaml==6.0.1", "qudida==0.0.4", "realesrgan==0.3.0", "referencing==0.32.0", "regex==2023.10.3", "reportlab==4.0.8", "requests-oauthlib==1.3.1", "requests==2.31.0", "resize-right==0.0.2", "rich==13.7.0", "rpds-py==0.15.2", "rsa==4.9", "safetensors==0.3.1", "scikit-image==0.21.0", "scikit-learn==1.3.2", "scipy==1.11.4", "seaborn==0.13.0", "semantic-version==2.10.0", "send2trash==1.8.2", "sentencepiece==0.1.99", "setuptools==63.2.0", "six==1.16.0", "smmap==5.0.1", "sniffio==1.3.0", "sounddevice==0.4.6", "soupsieve==2.5", "starlette==0.26.1", "svglib==1.5.1", "sympy==1.12", "tabulate==0.9.0", "tb-nightly==2.16.0a20231221", "tensorboard-data-server==0.7.2", "termcolor==2.4.0", "tf-keras-nightly==2.16.0.dev2023122010", "thop==0.1.1.post2209072238", "threadpoolctl==3.2.0", "tifffile==2023.12.9", "timm==0.9.2", "tinycss2==1.2.1", "tokenizers==0.13.3", "tomesd==0.1.3", "tomli==2.0.1", "toolz==0.12.0", "torch==2.0.1+cu118", "torchdiffeq==0.2.3", "torchmetrics==1.2.1", "torchsde==0.2.6", "torchvision==0.15.2+cu118", "tqdm==4.66.1", "trampoline==0.1.2", "transformers==4.30.2", "typing-extensions==4.9.0", "tzdata==2023.3", "ultralytics==8.0.228", "urllib3==2.1.0", "uvicorn==0.25.0", "wcwidth==0.2.12", "webencodings==0.5.1", "websockets==11.0.3", "werkzeug==3.0.1", "xformers==0.0.20", "yacs==0.1.8", "yapf==0.40.2", "yarl==1.9.4", "zipp==3.17.0", "zipunicode==1.1.1" ] }
I also have the same issue.
OMG the fix is super-weird. I have analyzed the code and found that in the file modules/gfpgan_model.py
in function gfpgann()
they verify the GFPGAN model filename to have GFPGAN in it:
if 'GFPGAN' in os.path.basename(item):
This means that there SHOULD be a model in the models/GFPGAN folder with appropriate name. So, the fix is easy:
download the model file GFPGANv1.4.pth and put it into the models/GFPGAN
folder and you'll be good.
OMG the fix is super-weird. I have analyzed the code and found that in the file
modules/gfpgan_model.py
in functiongfpgann()
天哪,修复程序非常奇怪。我分析了代码,发现在函数gfpgann()
中的文件modules/gfpgan_model.py
they verify the GFPGAN model filename to have GFPGAN in it:他们验证 GFPGAN 模型文件名中是否包含 GFPGAN:if 'GFPGAN' in os.path.basename(item):
This means that there SHOULD be a model in the models/GFPGAN folder with appropriate name. So, the fix is easy:这意味着 models/GFPGAN 文件夹中应该有一个具有适当名称的模型。因此,修复方法很简单: download the model file GFPGANv1.4.pth and put it into themodels/GFPGAN
folder and you'll be good.下载模型文件GFPGANv1.4.pth,放到文件夹里models/GFPGAN
,就好了。
Thank you very much. Following your method, I have successfully fixed the error
First, confirm
What happened?
Running Reactor. When using gfpgann, face does not swap.
Steps to reproduce the problem
Sysinfo
Windows 11, Chrome, RTX 4090, Automatic 1111.
{ "Platform": "Windows-10-10.0.22621-SP0", "Python": "3.10.6", "Version": "v1.7.0", "Commit": "cf2772fab0af5573da775e7437e6acdca424f26e", "Script path": "E:\Stable\stable-diffusion-webui", "Data path": "E:\Stable\stable-diffusion-webui", "Extensions dir": "E:\Stable\stable-diffusion-webui\extensions", "Checksum": "ab6d90574d2efa1a21970ba69958358a6cb3245e488395894eb158f88202d24c", "Commandline": [ "launch.py", "--autolaunch", "--theme", "dark", "--xformers" ], "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": null, "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.22621-SP0", "is_cuda_available": "True", "cuda_runtime_version": null, "cuda_module_loading": "LAZY", "nvidia_driver_version": "546.01", "nvidia_gpu_models": "GPU 0: NVIDIA GeForce RTX 4090", "cudnn_version": null, "pip_version": "pip3", "pip_packages": [ "numpy==1.23.5", "open-clip-torch==2.20.0", "pytorch-lightning==1.9.4", "torch==2.0.1+cu118", "torchdiffeq==0.2.3", "torchmetrics==1.2.1", "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=4701", "DeviceID=CPU0", "Family=107", "L2CacheSize=12288", "L2CacheSpeed=", "Manufacturer=AuthenticAMD", "MaxClockSpeed=4701", "Name=AMD Ryzen 9 7900X 12-Core Processor ", "ProcessorType=3", "Revision=24834" ] }, "Exceptions": [ { "exception": "max() arg is an empty sequence", "traceback": [ [ "E:\Stable\stable-diffusion-webui\modules\scripts.py, line 774, postprocess_image", "script.postprocess_image(p, pp, *script_args)" ], [ "E:\Stable\stable-diffusion-webui\extensions\sd-webui-reactor\scripts\reactor_faceswap.py, line 373, postprocess_image", "result, output, swapped = swap_face(" ], [ "E:\Stable\stable-diffusion-webui\extensions\sd-webui-reactor\scripts\reactor_swapper.py, line 578, swap_face", "result_image, output, swapped = operate(source_img,target_img,target_img_orig,model,source_faces_index,faces_index,source_faces,target_faces,gender_source,gender_target,source_face,wrong_gender,source_age,source_gender,output,swapped,mask_face,entire_mask_image,enhancement_options)" ], [ "E:\Stable\stable-diffusion-webui\extensions\sd-webui-reactor\scripts\reactor_swapper.py, line 711, operate", "result_image = enhance_image(result_image, enhancement_options)" ], [ "E:\Stable\stable-diffusion-webui\extensions\sd-webui-reactor\scripts\reactor_swapper.py, line 185, enhance_image", "result_image = restore_face(result_image, enhancement_options)" ], [ "E:\Stable\stable-diffusion-webui\extensions\sd-webui-reactor\scripts\reactor_swapper.py, line 146, restore_face", "numpy_image = enhancement_options.face_restorer.restore(numpy_image)" ], [ "E:\Stable\stable-diffusion-webui\modules\gfpgan_model.py, line 121, restore", "return gfpgan_fix_faces(np_image)" ], [ "E:\Stable\stable-diffusion-webui\modules\gfpgan_model.py, line 60, gfpgan_fix_faces", "model = gfpgann()" ], [ "E:\Stable\stable-diffusion-webui\modules\gfpgan_model.py, line 38, gfpgann", "latest_file = max(gfp_models, key=os.path.getctime)" ] ] } ], "CPU": { "model": "AMD64 Family 25 Model 97 Stepping 2, AuthenticAMD", "count logical": 24, "count physical": 12 }, "RAM": { "total": "64GB", "used": "11GB", "free": "53GB" }, "Extensions": [ { "name": "adetailer", "path": "E:\Stable\stable-diffusion-webui\extensions\adetailer", "version": "261f9c1e", "branch": "main", "remote": "https://github.com/Bing-su/adetailer.git" }, { "name": "sd-civitai-browser-plus", "path": "E:\Stable\stable-diffusion-webui\extensions\sd-civitai-browser-plus", "version": "b4590855", "branch": "main", "remote": "https://github.com/BlafKing/sd-civitai-browser-plus.git" }, { "name": "sd-webui-additional-networks", "path": "E:\Stable\stable-diffusion-webui\extensions\sd-webui-additional-networks", "version": "e9f3d622", "branch": "main", "remote": "https://github.com/kohya-ss/sd-webui-additional-networks.git" }, { "name": "sd-webui-controlnet", "path": "E:\Stable\stable-diffusion-webui\extensions\sd-webui-controlnet", "version": "10bd9b25", "branch": "main", "remote": "https://github.com/Mikubill/sd-webui-controlnet.git" }, { "name": "sd-webui-infinite-image-browsing", "path": "E:\Stable\stable-diffusion-webui\extensions\sd-webui-infinite-image-browsing", "version": "8466b570", "branch": "main", "remote": "https://github.com/zanllp/sd-webui-infinite-image-browsing.git" }, { "name": "sd-webui-reactor", "path": "E:\Stable\stable-diffusion-webui\extensions\sd-webui-reactor", "version": "3b50def4", "branch": "main", "remote": "https://github.com/Gourieff/sd-webui-reactor" } ], "Inactive extensions": [ { "name": "sd-webui-facefusion", "path": "E:\Stable\stable-diffusion-webui\extensions\sd-webui-facefusion", "version": "2ee00309", "branch": "main", "remote": "https://github.com/diffus-me/sd-webui-facefusion.git" } ], "Environment": { "COMMANDLINE_ARGS": " --autolaunch --theme dark --xformers ", "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": "cirrostratus_v10.safetensors [5b4c5dfccf]", "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": "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.0, "img2img_extra_noise": 0.0, "img2img_color_correction": false, "img2img_fix_steps": false, "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" ], "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": [ "sd-webui-facefusion" ], "disable_all_extensions": "none", "restore_config_state_file": "", "sd_checkpoint_hash": "5b4c5dfccf83039b046249c1cf0af38c8c73e7ac27108d49a5f3d7980ef39f64", "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, "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, "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, "control_net_detectedmap_dir": "detected_maps", "control_net_models_path": "", "control_net_modules_path": "", "control_net_unit_count": 3, "control_net_model_cache_size": 1, "control_net_inpaint_blur_sigma": 7, "control_net_no_high_res_fix": false, "control_net_no_detectmap": false, "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_ignore_noninpaint_mask": false, "use_aria2": true, "disable_dns": false, "show_log": false, "split_aria2": 64, "aria2_flags": "", "insert_sub": true, "dot_subfolders": true, "use_LORA": false, "unpack_zip": false, "hide_early_access": true, "custom_api_key": "", "page_header": false, "update_log": true, "video_playback": true, "image_location": "", "sub_image_location": true, "Checkpoint_subfolder": "None", "LORA_subfolder": "None", "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" }, "Startup": { "total": 16.048137426376343, "records": { "initial startup": 0.030007123947143555, "prepare environment/checks": 0.0050008296966552734, "prepare environment/git version info": 0.03600883483886719, "prepare environment/torch GPU test": 1.3082866668701172, "prepare environment/clone repositores": 0.11303019523620605, "prepare environment/run extensions installers/adetailer": 0.12302923202514648, "prepare environment/run extensions installers/sd-civitai-browser-plus": 0.11802792549133301, "prepare environment/run extensions installers/sd-webui-additional-networks": 0.0, "prepare environment/run extensions installers/sd-webui-controlnet": 0.33808135986328125, "prepare environment/run extensions installers/sd-webui-infinite-image-browsing": 0.34708690643310547, "prepare environment/run extensions installers/sd-webui-reactor": 1.5537188053131104, "prepare environment/run extensions installers": 2.4799442291259766, "prepare environment": 3.9672765731811523, "launcher": 0.0010001659393310547, "import torch": 2.4535813331604004, "import gradio": 0.7513351440429688, "setup paths": 5.4089930057525635, "import ldm": 0.005001068115234375, "import sgm": 0.0, "initialize shared": 0.16506004333496094, "other imports": 0.39211249351501465, "opts onchange": 0.0, "setup SD model": 0.0030002593994140625, "setup codeformer": 0.08908939361572266, "setup gfpgan": 0.017004013061523438, "set samplers": 0.0, "list extensions": 0.003000497817993164, "restore config state file": 0.0, "list SD models": 0.0010001659393310547, "list localizations": 0.0010004043579101562, "load scripts/custom_code.py": 0.00800180435180664, "load scripts/img2imgalt.py": 0.0, "load scripts/loopback.py": 0.0010006427764892578, "load scripts/outpainting_mk_2.py": 0.0, "load scripts/poor_mans_outpainting.py": 0.0, "load scripts/postprocessing_caption.py": 0.0, "load scripts/postprocessing_codeformer.py": 0.0010001659393310547, "load scripts/postprocessing_create_flipped_copies.py": 0.0, "load scripts/postprocessing_focal_crop.py": 0.0, "load scripts/postprocessing_gfpgan.py": 0.0009999275207519531, "load scripts/postprocessing_split_oversized.py": 0.0, "load scripts/postprocessing_upscale.py": 0.0, "load scripts/processing_autosized_crop.py": 0.0, "load scripts/prompt_matrix.py": 0.0, "load scripts/prompts_from_file.py": 0.0010001659393310547, "load scripts/sd_upscale.py": 0.0, "load scripts/xyz_grid.py": 0.0010006427764892578, "load scripts/ldsr_model.py": 0.3030717372894287, "load scripts/lora_script.py": 0.1051630973815918, "load scripts/scunet_model.py": 0.01700425148010254, "load scripts/swinir_model.py": 0.01400303840637207, "load scripts/hotkey_config.py": 0.0, "load scripts/extra_options_section.py": 0.0010004043579101562, "load scripts/hypertile_script.py": 0.030007123947143555, "load scripts/hypertile_xyz.py": 0.0, "load scripts/!adetailer.py": 0.23593759536743164, "load scripts/civitai_api.py": 0.02376532554626465, "load scripts/civitai_download.py": 0.0010280609130859375, "load scripts/civitai_file_manage.py": 0.0010907649993896484, "load scripts/civitai_global.py": 0.0010204315185546875, "load scripts/civitai_gui.py": 0.03799772262573242, "load scripts/additional_networks.py": 0.06760215759277344, "load scripts/addnet_xyz_grid_support.py": 0.0, "load scripts/lora_compvis.py": 0.0, "load scripts/metadata_editor.py": 0.0010001659393310547, "load scripts/model_util.py": 0.003816843032836914, "load scripts/safetensors_hack.py": 0.0, "load scripts/util.py": 0.0010001659393310547, "load scripts/adapter.py": 0.0, "load scripts/api.py": 0.19104576110839844, "load scripts/batch_hijack.py": 0.0010004043579101562, "load scripts/cldm.py": 0.0, "load scripts/controlmodel_ipadapter.py": 0.0, "load scripts/controlnet.py": 0.12512803077697754, "load scripts/controlnet_diffusers.py": 0.0010423660278320312, "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_version.py": 0.0010001659393310547, "load scripts/enums.py": 0.0, "load scripts/external_code.py": 0.0, "load scripts/global_state.py": 0.0013270378112792969, "load scripts/hook.py": 0.0, "load scripts/infotext.py": 0.0011212825775146484, "load scripts/logging.py": 0.0, "load scripts/lvminthin.py": 0.0, "load scripts/movie2movie.py": 0.0, "load scripts/processor.py": 0.0010356903076171875, "load scripts/utils.py": 0.0, "load scripts/xyz_grid_support.py": 0.0010213851928710938, "load scripts/iib_setup.py": 0.06820368766784668, "load scripts/console_log_patch.py": 0.43813538551330566, "load scripts/reactor_api.py": 0.09595346450805664, "load scripts/reactor_faceswap.py": 0.003000497817993164, "load scripts/reactor_globals.py": 0.0, "load scripts/reactor_helpers.py": 0.0, "load scripts/reactor_logger.py": 0.0010004043579101562, "load scripts/reactor_swapper.py": 0.0, "load scripts/reactor_version.py": 0.0, "load scripts/refiner.py": 0.0010006427764892578, "load scripts/seed.py": 0.0, "load scripts": 1.7885284423828125, "load upscalers": 0.003000974655151367, "refresh VAE": 0.0009996891021728516, "refresh textual inversion templates": 0.0, "scripts list_optimizers": 0.0010004043579101562, "scripts list_unets": 0.0, "reload hypernetworks": 0.003000497817993164, "initialize extra networks": 0.009002685546875, "scripts before_ui_callback": 0.0009992122650146484, "create ui": 0.5953373908996582, "gradio launch": 0.36852192878723145, "add APIs": 0.004001617431640625, "app_started_callback/lora_script.py": 0.0, "app_started_callback/api.py": 0.0009989738464355469, "app_started_callback/iib_setup.py": 0.008290529251098633, "app_started_callback/reactor_api.py": 0.0009992122650146484, "app_started_callback": 0.010288715362548828 } }, "Packages": [ "-rotobuf==4.25.1", "absl-py==2.0.0", "accelerate==0.21.0", "addict==2.4.0", "aenum==3.1.15", "aiofiles==23.2.1", "aiohttp==3.9.1", "aiosignal==1.3.1", "albumentations==1.3.1", "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.1.0", "basicsr==1.4.2", "beautifulsoup4==4.12.2", "blendmodes==2022", "cachetools==5.3.2", "certifi==2023.11.17", "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", "contourpy==1.2.0", "cssselect2==0.7.0", "cycler==0.12.1", "cython==3.0.6", "deprecation==2.1.0", "dill==0.3.7", "dm-tree==0.1.8", "easydict==1.11", "einops==0.4.1", "exceptiongroup==1.2.0", "facexlib==0.3.0", "fake-useragent==1.4.0", "fastapi==0.94.0", "ffmpy==0.3.1", "filelock==3.13.1", "filetype==1.2.0", "filterpy==1.4.5", "flatbuffers==23.5.26", "fonttools==4.47.0", "frozenlist==1.4.1", "fsspec==2023.12.2", "ftfy==6.1.3", "future==0.18.3", "fvcore==0.1.5.post20221221", "gast==0.5.4", "gdown==4.7.1", "gfpgan==1.3.8", "gitdb==4.0.11", "gitpython==3.1.32", "google-auth-oauthlib==1.2.0", "google-auth==2.25.2", "google-pasta==0.2.0", "gradio-client==0.5.0", "gradio==3.41.2", "grpcio==1.60.0", "h11==0.12.0", "h5py==3.10.0", "httpcore==0.15.0", "httpx==0.24.1", "huggingface-hub==0.19.4", "humanfriendly==10.0", "idna==3.6", "imageio==2.33.1", "importlib-metadata==7.0.0", "importlib-resources==6.1.1", "inflection==0.5.1", "insightface==0.7.3", "iopath==0.1.9", "jinja2==3.1.2", "joblib==1.3.2", "jsonmerge==1.8.0", "jsonschema-specifications==2023.11.2", "jsonschema==4.20.0", "keras-core==0.1.7", "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.0", "llvmlite==0.41.1", "lmdb==1.4.1", "lpips==0.1.4", "lxml==4.9.3", "markdown-it-py==3.0.0", "markdown==3.5.1", "markupsafe==2.1.3", "matplotlib==3.8.2", "mdurl==0.1.2", "mediapipe==0.10.9", "ml-dtypes==0.2.0", "mpmath==1.3.0", "multidict==6.0.4", "namex==0.0.7", "networkx==3.2.1", "numba==0.58.1", "numpy==1.23.5", "oauthlib==3.2.2", "omegaconf==2.2.3", "onnx==1.15.0", "onnxruntime-gpu==1.16.3", "open-clip-torch==2.20.0", "opencv-contrib-python==4.8.1.78", "opencv-python-headless==4.8.1.78", "opencv-python==4.8.1.78", "opennsfw2==0.12.1", "opt-einsum==3.3.0", "orjson==3.9.10", "packaging==23.2", "pandas==2.1.4", "piexif==1.1.3", "pillow==9.5.0", "pip==22.2.1", "platformdirs==4.1.0", "portalocker==2.8.2", "prettytable==3.9.0", "protobuf==3.20.3", "psutil==5.9.5", "py-cpuinfo==9.0.0", "pyasn1-modules==0.3.0", "pyasn1==0.5.1", "pycparser==2.21", "pydantic==1.10.13", "pydub==0.25.1", "pyfunctional==1.4.3", "pygments==2.17.2", "pyparsing==3.1.1", "pyreadline3==3.4.1", "pysocks==1.7.1", "python-dateutil==2.8.2", "python-dotenv==1.0.0", "python-multipart==0.0.6", "pytorch-lightning==1.9.4", "pytz==2023.3.post1", "pywavelets==1.5.0", "pywin32==306", "pyyaml==6.0.1", "qudida==0.0.4", "realesrgan==0.3.0", "referencing==0.32.0", "regex==2023.10.3", "reportlab==4.0.8", "requests-oauthlib==1.3.1", "requests==2.31.0", "resize-right==0.0.2", "rich==13.7.0", "rpds-py==0.15.2", "rsa==4.9", "safetensors==0.3.1", "scikit-image==0.21.0", "scikit-learn==1.3.2", "scipy==1.11.4", "seaborn==0.13.0", "semantic-version==2.10.0", "send2trash==1.8.2", "sentencepiece==0.1.99", "setuptools==63.2.0", "six==1.16.0", "smmap==5.0.1", "sniffio==1.3.0", "sounddevice==0.4.6", "soupsieve==2.5", "starlette==0.26.1", "svglib==1.5.1", "sympy==1.12", "tabulate==0.9.0", "tb-nightly==2.16.0a20231218", "tensorboard-data-server==0.7.2", "tensorboard==2.15.1", "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", "tf-keras-nightly==2.16.0.dev2023121810", "thop==0.1.1.post2209072238", "threadpoolctl==3.2.0", "tifffile==2023.12.9", "timm==0.9.2", "tinycss2==1.2.1", "tokenizers==0.13.3", "tomesd==0.1.3", "tomli==2.0.1", "toolz==0.12.0", "torch==2.0.1+cu118", "torchdiffeq==0.2.3", "torchmetrics==1.2.1", "torchsde==0.2.6", "torchvision==0.15.2+cu118", "tqdm==4.66.1", "trampoline==0.1.2", "transformers==4.30.2", "typing-extensions==4.9.0", "tzdata==2023.3", "ultralytics==8.0.227", "urllib3==2.1.0", "uvicorn==0.24.0.post1", "wcwidth==0.2.12", "webencodings==0.5.1", "websockets==11.0.3", "werkzeug==3.0.1", "wheel==0.42.0", "wrapt==1.14.1", "xformers==0.0.20", "yacs==0.1.8", "yapf==0.40.2", "yarl==1.9.4", "zipp==3.17.0", "zipunicode==1.1.1" ] }
Relevant console log
Additional information
No response