diff --git a/cache.json b/cache.json index c50061b66105c5dec25bebb4d123a1627afaa39c..9d7384f29b7f11e63a1fc3c9ad576ddd4bab2b9e 100644 --- a/cache.json +++ b/cache.json @@ -31,17 +31,73 @@ "modelspec.license": "CreativeML Open RAIL++-M License", "modelspec.hash_sha256": "0x1a77d21bebc4b4de78c474a90cb74dc0d2217caf4061971dbfa75ad406b75d81" } + }, + "checkpoint/_Counterfeit-V3.0/CounterfeitV30_v30.safetensors": { + "mtime": 1696641984.524125, + "value": {} + }, + "checkpoint/AnyLoRA_-_Checkpoint/anyloraCheckpoint_bakedvaeBlessedFp16.safetensors": { + "mtime": 1696642008.7320116, + "value": {} + }, + "checkpoint/Cetus-Mix/cetusMix_Whalefall2.safetensors": { + "mtime": 1696641888.6285746, + "value": {} + }, + "checkpoint/ChilloutMix/chilloutmix_NiPrunedFp16Fix.safetensors": { + "mtime": 1696641710.993409, + "value": {} + }, + "checkpoint/majicMIX_realistic_\u9ea6\u6a58\u5199\u5b9e/majicmixRealistic_v7.safetensors": { + "mtime": 1696641770.4531295, + "value": {} + }, + "checkpoint/MeinaMix/meinamix_meinaV11.safetensors": { + "mtime": 1696641806.8009586, + "value": { + "format": "pt", + "sd_merge_recipe": { + "type": "webui", + "primary_model_hash": null, + "secondary_model_hash": null, + "tertiary_model_hash": null, + "interp_method": "No interpolation", + "multiplier": 0.3, + "save_as_half": true, + "custom_name": "Meina V11 beta 1 - baked VAE", + "config_source": 3, + "bake_in_vae": "kl-f8-anime2.ckpt", + "discard_weights": "", + "is_inpainting": false, + "is_instruct_pix2pix": false + }, + "sd_merge_models": { + "b56e11d5ab71bd839ef9bde3c149894354edde3e06de63976ef697323d30da25": { + "name": "Meina V11 beta 1 raw pruned.safetensors", + "legacy_hash": "795a2579", + "sd_merge_recipe": null + } + } + } } }, "hashes": { "checkpoint/sd_xl_base_1.0.safetensors": { "mtime": 1690358783.0, "sha256": "31e35c80fc4829d14f90153f4c74cd59c90b779f6afe05a74cd6120b893f7e5b" + }, + "checkpoint/SDv1-5.ckpt": { + "mtime": 1680365789.0, + "sha256": "4c86efd062ea772972dd068c3870773f1fd9a37ba9a288ee79ec848448ce7785" + }, + "checkpoint/_Counterfeit-V3.0/CounterfeitV30_v30.safetensors": { + "mtime": 1696641984.524125, + "sha256": "cbfba64e662370f59d4aa2aa69bf16749fce93846ccce20506aee5df01169859" } }, "extensions-git": { "sd-webui-controlnet": { - "mtime": 1696639946.3017046, + "mtime": 1696642645.3770268, "value": { "remote": "https://github.com/Mikubill/sd-webui-controlnet.git", "commit_date": 1695406428, @@ -169,6 +225,26 @@ "commit_hash": "3d9eedbbf0d585207f97d5b21e42f32c0042df70", "version": "3d9eedbb" } + }, + "sd-webui-roop": { + "mtime": 1696640688.1462173, + "value": { + "remote": "https://github.com/s0md3v/sd-webui-roop", + "commit_date": 1696620295, + "branch": "main", + "commit_hash": "9a16e72823f6b6b96be1cb874570048a34885831", + "version": "9a16e728" + } + }, + "sd-webui-reactor": { + "mtime": 1696640726.4580371, + "value": { + "remote": "https://github.com/Gourieff/sd-webui-reactor", + "commit_date": 1696511529, + "branch": "main", + "commit_hash": "0070cea333bac6fcfb635d633845bc5f579c824a", + "version": "0070cea3" + } } } } \ No newline at end of file diff --git a/config.json b/config.json index d6e2028d215f98d6ab272a6fae129898a8f04210..46fb0f8537f8d0dfe92925653660f19b31247272 100644 --- a/config.json +++ b/config.json @@ -84,7 +84,7 @@ "training_enable_tensorboard": false, "training_tensorboard_save_images": false, "training_tensorboard_flush_every": 120, - "sd_model_checkpoint": "sd_xl_base_1.0.safetensors [31e35c80fc]", + "sd_model_checkpoint": "_Counterfeit-V3.0/CounterfeitV30_v30.safetensors [cbfba64e66]", "sd_checkpoints_limit": 1, "sd_checkpoints_keep_in_cpu": true, "sd_checkpoint_cache": 0, @@ -161,7 +161,7 @@ "textual_inversion_add_hashes_to_infotext": true, "sd_hypernetwork": "None", "localization": "None", - "gradio_theme": "Default", + "gradio_theme": "NoCrypt/miku", "gradio_themes_cache": true, "gallery_height": "", "return_grid": true, @@ -231,7 +231,7 @@ "disabled_extensions": [], "disable_all_extensions": "none", "restore_config_state_file": "", - "sd_checkpoint_hash": "31e35c80fc4829d14f90153f4c74cd59c90b779f6afe05a74cd6120b893f7e5b", + "sd_checkpoint_hash": "cbfba64e662370f59d4aa2aa69bf16749fce93846ccce20506aee5df01169859", "ldsr_steps": 100, "ldsr_cached": false, "SCUNET_tile": 256, @@ -277,5 +277,70 @@ "controlnet_increment_seed_during_batch": false, "controlnet_disable_control_type": false, "controlnet_disable_openpose_edit": false, - "controlnet_ignore_noninpaint_mask": false + "controlnet_ignore_noninpaint_mask": false, + "tac_tagFile": "danbooru.csv", + "tac_active": true, + "tac_activeIn.txt2img": true, + "tac_activeIn.img2img": true, + "tac_activeIn.negativePrompts": true, + "tac_activeIn.thirdParty": true, + "tac_activeIn.modelList": "", + "tac_activeIn.modelListMode": "Blacklist", + "tac_slidingPopup": true, + "tac_maxResults": 5.0, + "tac_showAllResults": false, + "tac_resultStepLength": 100.0, + "tac_delayTime": 100.0, + "tac_useWildcards": true, + "tac_sortWildcardResults": true, + "tac_useEmbeddings": true, + "tac_includeEmbeddingsInNormalResults": false, + "tac_useHypernetworks": true, + "tac_useLoras": true, + "tac_useLycos": true, + "tac_showWikiLinks": false, + "tac_showExtraNetworkPreviews": true, + "tac_modelSortOrder": "Name", + "tac_replaceUnderscores": true, + "tac_escapeParentheses": true, + "tac_appendComma": true, + "tac_appendSpace": true, + "tac_alwaysSpaceAtEnd": true, + "tac_modelKeywordCompletion": "Never", + "tac_modelKeywordLocation": "Start of prompt", + "tac_wildcardCompletionMode": "To next folder level", + "tac_alias.searchByAlias": true, + "tac_alias.onlyShowAlias": false, + "tac_translation.translationFile": "None", + "tac_translation.oldFormat": false, + "tac_translation.searchByTranslation": true, + "tac_translation.liveTranslation": false, + "tac_extra.extraFile": "extra-quality-tags.csv", + "tac_extra.addMode": "Insert before", + "tac_chantFile": "demo-chants.json", + "tac_keymap": "{\n \"MoveUp\": \"ArrowUp\",\n \"MoveDown\": \"ArrowDown\",\n \"JumpUp\": \"PageUp\",\n \"JumpDown\": \"PageDown\",\n \"JumpToStart\": \"Home\",\n \"JumpToEnd\": \"End\",\n \"ChooseSelected\": \"Enter\",\n \"ChooseFirstOrSelected\": \"Tab\",\n \"Close\": \"Escape\"\n}", + "tac_colormap": "{\n \"danbooru\": {\n \"-1\": [\"red\", \"maroon\"],\n \"0\": [\"lightblue\", \"dodgerblue\"],\n \"1\": [\"indianred\", \"firebrick\"],\n \"3\": [\"violet\", \"darkorchid\"],\n \"4\": [\"lightgreen\", \"darkgreen\"],\n \"5\": [\"orange\", \"darkorange\"]\n },\n \"e621\": {\n \"-1\": [\"red\", \"maroon\"],\n \"0\": [\"lightblue\", \"dodgerblue\"],\n \"1\": [\"gold\", \"goldenrod\"],\n \"3\": [\"violet\", \"darkorchid\"],\n \"4\": [\"lightgreen\", \"darkgreen\"],\n \"5\": [\"tomato\", \"darksalmon\"],\n \"6\": [\"red\", \"maroon\"],\n \"7\": [\"whitesmoke\", \"black\"],\n \"8\": [\"seagreen\", \"darkseagreen\"]\n }\n}", + "tac_refreshTempFiles": "Refresh TAC temp files", + "ad_max_models": 2, + "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", + "ad_bbox_sortby": "None", + "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, + "arh_show_min_width_or_height": false, + "arh_min_width_or_height": 1024, + "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%)" } \ No newline at end of file diff --git a/extensions/batchlinks-webui/scripts/__pycache__/batchlinks-downloader.cpython-310.pyc b/extensions/batchlinks-webui/scripts/__pycache__/batchlinks-downloader.cpython-310.pyc index ea3e802f3e4eb3c8eea66e11fba91e9073473638..bf77034f50011e619c4338b37a7415ae818deac9 100644 Binary files a/extensions/batchlinks-webui/scripts/__pycache__/batchlinks-downloader.cpython-310.pyc and b/extensions/batchlinks-webui/scripts/__pycache__/batchlinks-downloader.cpython-310.pyc differ diff --git a/extensions/sd-webui-controlnet/models/dpt_beit_base_384.pt b/extensions/sd-webui-controlnet/models/dpt_beit_base_384.pt new file mode 100644 index 0000000000000000000000000000000000000000..96cc2887b377faf5fdcfce51cce4dd32c90ffe51 --- /dev/null +++ b/extensions/sd-webui-controlnet/models/dpt_beit_base_384.pt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b8ae0dd5ac6e80d7fa8ab4d4a370b75a3094d7ca110e20596ec5f817a238900f +size 478198027 diff --git a/extensions/sd-webui-controlnet/models/dpt_beit_large_384.pt b/extensions/sd-webui-controlnet/models/dpt_beit_large_384.pt new file mode 100644 index 0000000000000000000000000000000000000000..8812415ab390793fa954fe11d84b808f3cf4b81e --- /dev/null +++ b/extensions/sd-webui-controlnet/models/dpt_beit_large_384.pt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9a86e82345dee25004eeacbc25db11fae827d32cd6939a9056eb7db6ef895413 +size 1441465011 diff --git a/extensions/sd-webui-controlnet/models/dpt_beit_large_512.pt b/extensions/sd-webui-controlnet/models/dpt_beit_large_512.pt new file mode 100644 index 0000000000000000000000000000000000000000..d0ba03bbbfc8a66275439ca5ac7a4897a0833c14 --- /dev/null +++ b/extensions/sd-webui-controlnet/models/dpt_beit_large_512.pt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9e9e900747e9e8b3112df716979219836a27716277b3d0dc53889cbba8b82328 +size 1581966003 diff --git a/extensions/sd-webui-controlnet/models/dpt_hybrid-midas-501f0c75.pt b/extensions/sd-webui-controlnet/models/dpt_hybrid-midas-501f0c75.pt new file mode 100644 index 0000000000000000000000000000000000000000..a54fd8ca8d59181d9343d79eb3f6deb6c5319eba --- /dev/null +++ b/extensions/sd-webui-controlnet/models/dpt_hybrid-midas-501f0c75.pt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:501f0c75b3bca7daec6b3682c5054c09b366765aef6fa3a09d03a5cb4b230853 +size 492757791 diff --git a/extensions/sd-webui-controlnet/models/dpt_hybrid_384.pt b/extensions/sd-webui-controlnet/models/dpt_hybrid_384.pt new file mode 100644 index 0000000000000000000000000000000000000000..a54fd8ca8d59181d9343d79eb3f6deb6c5319eba --- /dev/null +++ b/extensions/sd-webui-controlnet/models/dpt_hybrid_384.pt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:501f0c75b3bca7daec6b3682c5054c09b366765aef6fa3a09d03a5cb4b230853 +size 492757791 diff --git a/extensions/sd-webui-controlnet/models/dpt_large-midas-2f21e586.pt b/extensions/sd-webui-controlnet/models/dpt_large-midas-2f21e586.pt new file mode 100644 index 0000000000000000000000000000000000000000..fffd5567befc05b4717ad4d1d652f3edbea94654 --- /dev/null +++ b/extensions/sd-webui-controlnet/models/dpt_large-midas-2f21e586.pt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2f21e586477d90cb9624c7eef5df7891edca49a1c4795ee2cb631fd4daa6ca69 +size 1376378527 diff --git a/extensions/sd-webui-controlnet/models/dpt_large_384.pt b/extensions/sd-webui-controlnet/models/dpt_large_384.pt new file mode 100644 index 0000000000000000000000000000000000000000..fffd5567befc05b4717ad4d1d652f3edbea94654 --- /dev/null +++ b/extensions/sd-webui-controlnet/models/dpt_large_384.pt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2f21e586477d90cb9624c7eef5df7891edca49a1c4795ee2cb631fd4daa6ca69 +size 1376378527 diff --git a/extensions/sd-webui-controlnet/models/dpt_levit_224.pt b/extensions/sd-webui-controlnet/models/dpt_levit_224.pt new file mode 100644 index 0000000000000000000000000000000000000000..eaa14fe8053d89afe51faf10a5e1f3ed6144a3ea --- /dev/null +++ b/extensions/sd-webui-controlnet/models/dpt_levit_224.pt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8c96acd998ac972c55a4ce6f8f84a967a18d66120123a5aa2ca201cb10c525f0 +size 204521887 diff --git a/extensions/sd-webui-controlnet/models/dpt_next_vit_large_384.pt b/extensions/sd-webui-controlnet/models/dpt_next_vit_large_384.pt new file mode 100644 index 0000000000000000000000000000000000000000..a33a1affbd52f92510e4a170a2a8b3833644867a --- /dev/null +++ b/extensions/sd-webui-controlnet/models/dpt_next_vit_large_384.pt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b905dccc74678249e9df82a7124f3b1ef12e11036f94e78e3a519171b44b8f73 +size 289745661 diff --git a/extensions/sd-webui-controlnet/models/dpt_swin2_base_384.pt b/extensions/sd-webui-controlnet/models/dpt_swin2_base_384.pt new file mode 100644 index 0000000000000000000000000000000000000000..810752dba480a063076f7862ca405acd6ec59e3e --- /dev/null +++ b/extensions/sd-webui-controlnet/models/dpt_swin2_base_384.pt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e43b5f1e6f3442ea7ada269a8bfa49e29f4da5bac8c8d8e5927fa843f3c03028 +size 436259527 diff --git a/extensions/sd-webui-controlnet/models/dpt_swin2_large_384.pt b/extensions/sd-webui-controlnet/models/dpt_swin2_large_384.pt new file mode 100644 index 0000000000000000000000000000000000000000..92f68cea85f507aa9e2fcc8cb40d7485bfe23e3f --- /dev/null +++ b/extensions/sd-webui-controlnet/models/dpt_swin2_large_384.pt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8820c77a09e6b1d4bf2bcf71d1f52509239aa07c5f51709d8eee95c8775d5ec8 +size 880390791 diff --git a/extensions/sd-webui-controlnet/models/dpt_swin2_tiny_256.pt b/extensions/sd-webui-controlnet/models/dpt_swin2_tiny_256.pt new file mode 100644 index 0000000000000000000000000000000000000000..100429788272cceaf7884f57b78d8d846df669b3 --- /dev/null +++ b/extensions/sd-webui-controlnet/models/dpt_swin2_tiny_256.pt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0a859caa18be4bf9375e87dc6b684f6e83dc45b2dc13d8c8b89f6acb2a17a2c5 +size 172162911 diff --git a/extensions/sd-webui-controlnet/models/dpt_swin_large_384.pt b/extensions/sd-webui-controlnet/models/dpt_swin_large_384.pt new file mode 100644 index 0000000000000000000000000000000000000000..c3d09aa450b9c69fb8096eba210a8a4bfd784003 --- /dev/null +++ b/extensions/sd-webui-controlnet/models/dpt_swin_large_384.pt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bcdc0258b28774dfcc986c2dc4ed6ef67a66950220644575446eac9a1d422013 +size 867404101 diff --git a/extensions/sd-webui-controlnet/models/facenet.pth b/extensions/sd-webui-controlnet/models/facenet.pth new file mode 100644 index 0000000000000000000000000000000000000000..ccfac27ffec2f25eb02dad5f52512872eb3b53e1 --- /dev/null +++ b/extensions/sd-webui-controlnet/models/facenet.pth @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8beb52e548624ffcc4aed12af7aee7dcbfaeea420c75609fee999fe7add79d43 +size 153718792 diff --git a/extensions/sd-webui-controlnet/models/faster_rcnn_r50_fpn_1x_coco_20200130-047c8118.pth b/extensions/sd-webui-controlnet/models/faster_rcnn_r50_fpn_1x_coco_20200130-047c8118.pth new file mode 100644 index 0000000000000000000000000000000000000000..fbdd2e26cc16db3c55149dad743e001aba4198d8 --- /dev/null +++ b/extensions/sd-webui-controlnet/models/faster_rcnn_r50_fpn_1x_coco_20200130-047c8118.pth @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:047c8118fc5ca88ba5ae1fab72f2cd6b070501fe3af2f3cba5cfa9a89b44b03e +size 167287506 diff --git a/extensions/sd-webui-controlnet/models/hand_pose_model.pth b/extensions/sd-webui-controlnet/models/hand_pose_model.pth new file mode 100644 index 0000000000000000000000000000000000000000..f23ccf3413cc8ac8581a82338a3037bc10d573f0 --- /dev/null +++ b/extensions/sd-webui-controlnet/models/hand_pose_model.pth @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b76b00d1750901abd07b9f9d8c98cc3385b8fe834a26d4b4f0aad439e75fc600 +size 147341049 diff --git a/extensions/sd-webui-controlnet/models/hrnet_w48_coco_256x192-b9e0b3ab_20200708.pth b/extensions/sd-webui-controlnet/models/hrnet_w48_coco_256x192-b9e0b3ab_20200708.pth new file mode 100644 index 0000000000000000000000000000000000000000..82305ce1d60cb3e434afd3c4cfd95f52af5e8f7a --- /dev/null +++ b/extensions/sd-webui-controlnet/models/hrnet_w48_coco_256x192-b9e0b3ab_20200708.pth @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b9e0b3ab0439cb68e166c7543e59d2587cd8d7e9acf5ea62a8378eeb82fb50e5 +size 255011654 diff --git a/extensions/sd-webui-controlnet/models/latest_net_G.pth b/extensions/sd-webui-controlnet/models/latest_net_G.pth new file mode 100644 index 0000000000000000000000000000000000000000..ee5f3b784875ec322d4b71c7979bac7b0476481e --- /dev/null +++ b/extensions/sd-webui-controlnet/models/latest_net_G.pth @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9dc754be4e844d40136399d5fc2cef12fe22ff4f0620a75fa1a58d49dd87167a +size 390184744 diff --git a/extensions/sd-webui-controlnet/models/midas_v21_384.pt b/extensions/sd-webui-controlnet/models/midas_v21_384.pt new file mode 100644 index 0000000000000000000000000000000000000000..67fadc2c6f1dc3ff65f34816bc2939d696c6210d --- /dev/null +++ b/extensions/sd-webui-controlnet/models/midas_v21_384.pt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f6b980704cfd7259c7cc2b058c2f160159c55e84b3b6c08331b4156a84629f70 +size 422509849 diff --git a/extensions/sd-webui-controlnet/models/midas_v21_small_256.pt b/extensions/sd-webui-controlnet/models/midas_v21_small_256.pt new file mode 100644 index 0000000000000000000000000000000000000000..07a353c814826c19cef7626c7b00f4575d7b6129 --- /dev/null +++ b/extensions/sd-webui-controlnet/models/midas_v21_small_256.pt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:70d6b9c891758c67f974a6097fb0c608c7ee67fb81ac3e5588847d5596d56fca +size 85761505 diff --git a/extensions/sd-webui-controlnet/models/mlsd_large_512_fp32.pth b/extensions/sd-webui-controlnet/models/mlsd_large_512_fp32.pth new file mode 100644 index 0000000000000000000000000000000000000000..7e00f54f47838ca7697555699c50dfa3e99880b5 --- /dev/null +++ b/extensions/sd-webui-controlnet/models/mlsd_large_512_fp32.pth @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5696f168eb2c30d4374bbfd45436f7415bb4d88da29bea97eea0101520fba082 +size 6341481 diff --git a/extensions/sd-webui-controlnet/models/netG.pth b/extensions/sd-webui-controlnet/models/netG.pth new file mode 100644 index 0000000000000000000000000000000000000000..56225a51dcd5ffc354c4704cb4fffba23666e18e --- /dev/null +++ b/extensions/sd-webui-controlnet/models/netG.pth @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ccabdcc3f5cf3c07cf65d58776acb21df7dfda825cdc70c9766a93fd62bfc488 +size 217631959 diff --git a/extensions/sd-webui-controlnet/models/network-bsds500.pth b/extensions/sd-webui-controlnet/models/network-bsds500.pth new file mode 100644 index 0000000000000000000000000000000000000000..36cff8560c17530f48cbb9a43c6e9a0d6f704af3 --- /dev/null +++ b/extensions/sd-webui-controlnet/models/network-bsds500.pth @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:58a858782f5fa3e0ca3dc92e7a1a609add93987d77be3dfa54f8f8419d881a94 +size 58871680 diff --git a/extensions/sd-webui-controlnet/models/res101.pth b/extensions/sd-webui-controlnet/models/res101.pth new file mode 100644 index 0000000000000000000000000000000000000000..32751be2e1b22f4db8d6e8b68a51108063c043e6 --- /dev/null +++ b/extensions/sd-webui-controlnet/models/res101.pth @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1d696b2ef3e8336b057d0c15bc82d2fecef821bfebe5ef9d7671a5ec5dde520b +size 530760553 diff --git a/extensions/sd-webui-controlnet/models/scannet.pt b/extensions/sd-webui-controlnet/models/scannet.pt new file mode 100644 index 0000000000000000000000000000000000000000..75da596b86156077c5a93b82cb4a2da45caeb185 --- /dev/null +++ b/extensions/sd-webui-controlnet/models/scannet.pt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:03dbf1600c51ee3d45c29f77b77bf1a3b7a24c3452dba62a4ae658f37330c209 +size 290767728 diff --git a/extensions/sd-webui-controlnet/models/sk_model.pth b/extensions/sd-webui-controlnet/models/sk_model.pth new file mode 100644 index 0000000000000000000000000000000000000000..7cf07cb6b07cfb90850895d6db9c5816a736b097 --- /dev/null +++ b/extensions/sd-webui-controlnet/models/sk_model.pth @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c686ced2a666b4850b4bb6ccf0748031c3eda9f822de73a34b8979970d90f0c6 +size 17173511 diff --git a/extensions/sd-webui-controlnet/models/sk_model2.pth b/extensions/sd-webui-controlnet/models/sk_model2.pth new file mode 100644 index 0000000000000000000000000000000000000000..20bdda49983cb7d896cb27060d5292b0b3879376 --- /dev/null +++ b/extensions/sd-webui-controlnet/models/sk_model2.pth @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:30a534781061f34e83bb9406b4335da4ff2616c95d22a585c1245aa8363e74e0 +size 17173511 diff --git a/extensions/sd-webui-controlnet/models/t2iadapter_canny-fp16.pth b/extensions/sd-webui-controlnet/models/t2iadapter_canny-fp16.pth new file mode 100644 index 0000000000000000000000000000000000000000..01cf956e10656f111da78340013d7d354f7a176b --- /dev/null +++ b/extensions/sd-webui-controlnet/models/t2iadapter_canny-fp16.pth @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3fb35d666889f622f7c499c5c11a8e94dabd9231029a13a5efd736364e76a987 +size 308013107 diff --git a/extensions/sd-webui-controlnet/models/t2iadapter_canny_sd15v2.pth b/extensions/sd-webui-controlnet/models/t2iadapter_canny_sd15v2.pth new file mode 100644 index 0000000000000000000000000000000000000000..cd8655e46d3357e00cbe0eea59a84f7fcb7a134f --- /dev/null +++ b/extensions/sd-webui-controlnet/models/t2iadapter_canny_sd15v2.pth @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a5ec162813b3997a925d39dc546ff696c42f877fec55ef2e6afa3a4aa642018e +size 308015219 diff --git a/extensions/sd-webui-controlnet/models/t2iadapter_color-fp16.pth b/extensions/sd-webui-controlnet/models/t2iadapter_color-fp16.pth new file mode 100644 index 0000000000000000000000000000000000000000..bd05ea3480769abb5e92451b30a31af9b7af18b7 --- /dev/null +++ b/extensions/sd-webui-controlnet/models/t2iadapter_color-fp16.pth @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3ea46a3d2f26023179a8daccb2259a198e992044570d2f9bd18e412d479fd591 +size 74780341 diff --git a/extensions/sd-webui-controlnet/models/t2iadapter_depth-fp16.pth b/extensions/sd-webui-controlnet/models/t2iadapter_depth-fp16.pth new file mode 100644 index 0000000000000000000000000000000000000000..aeb25f2247850d76bbc61ca77c25e71077a2621a --- /dev/null +++ b/extensions/sd-webui-controlnet/models/t2iadapter_depth-fp16.pth @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6adc765d71cbd07567688a9320add25db9a0758eef2e3b6897cbca71e1cf9d36 +size 309487667 diff --git a/extensions/sd-webui-controlnet/models/t2iadapter_depth_sd15v2.pth b/extensions/sd-webui-controlnet/models/t2iadapter_depth_sd15v2.pth new file mode 100644 index 0000000000000000000000000000000000000000..97e2753a390b58c4686b114b64d5aa747f6d8e64 --- /dev/null +++ b/extensions/sd-webui-controlnet/models/t2iadapter_depth_sd15v2.pth @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dec4a100ed622e8818c441a28d7bcef129fcd7bde5a3cd7ecc208ddc19cfc764 +size 309489779 diff --git a/extensions/sd-webui-controlnet/models/t2iadapter_keypose-fp16.pth b/extensions/sd-webui-controlnet/models/t2iadapter_keypose-fp16.pth new file mode 100644 index 0000000000000000000000000000000000000000..838f7b1066d7106b7dd3f90c5c134e798bbe64ab --- /dev/null +++ b/extensions/sd-webui-controlnet/models/t2iadapter_keypose-fp16.pth @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:edca0cef5eb32feba66c8e0524d996204b87a19eace640d27826d04229d17d7e +size 309487667 diff --git a/extensions/sd-webui-controlnet/models/t2iadapter_openpose-fp16.pth b/extensions/sd-webui-controlnet/models/t2iadapter_openpose-fp16.pth new file mode 100644 index 0000000000000000000000000000000000000000..316f6c509865e713899078c757c07e19a1183595 --- /dev/null +++ b/extensions/sd-webui-controlnet/models/t2iadapter_openpose-fp16.pth @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f8d8027cbeae188dcae57b7475243b7dec20f2620c3c0fe7778319c56bf1ec6b +size 309487667 diff --git a/extensions/sd-webui-controlnet/models/t2iadapter_seg-fp16.pth b/extensions/sd-webui-controlnet/models/t2iadapter_seg-fp16.pth new file mode 100644 index 0000000000000000000000000000000000000000..f1033a956541a4d758ea61f58d1bd18c3bdd987d --- /dev/null +++ b/extensions/sd-webui-controlnet/models/t2iadapter_seg-fp16.pth @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c01a17ecd473e3e375cea152c1e4135274f7113a495be35909b497d65b87713a +size 309487667 diff --git a/extensions/sd-webui-controlnet/models/t2iadapter_sketch-fp16.pth b/extensions/sd-webui-controlnet/models/t2iadapter_sketch-fp16.pth new file mode 100644 index 0000000000000000000000000000000000000000..16eee33d08ea401e5c387f13c1f15a5760b1a8e8 --- /dev/null +++ b/extensions/sd-webui-controlnet/models/t2iadapter_sketch-fp16.pth @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e006de134c9db86d1d44e6f13783e0846a78879afa3bd6f73feb3d7f6a5715b1 +size 308013107 diff --git a/extensions/sd-webui-controlnet/models/t2iadapter_sketch_sd15v2.pth b/extensions/sd-webui-controlnet/models/t2iadapter_sketch_sd15v2.pth new file mode 100644 index 0000000000000000000000000000000000000000..68298b9df582f3d430413377be557d502f24898e --- /dev/null +++ b/extensions/sd-webui-controlnet/models/t2iadapter_sketch_sd15v2.pth @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8757c9e8ea0689b97257dc530172325b8215aa4e97df7c91c1a8d4e7265b894c +size 308015219 diff --git a/extensions/sd-webui-controlnet/models/t2iadapter_style-fp16.pth b/extensions/sd-webui-controlnet/models/t2iadapter_style-fp16.pth new file mode 100644 index 0000000000000000000000000000000000000000..e12a85c3939994265faa36fd36d9480efab7d6c9 --- /dev/null +++ b/extensions/sd-webui-controlnet/models/t2iadapter_style-fp16.pth @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b41febaddb32c4338272b9ad78b7d2b2584749ca5750d6b1d972766eb2fb731b +size 154363687 diff --git a/extensions/sd-webui-controlnet/models/t2iadapter_zoedepth_sd15v1.pth b/extensions/sd-webui-controlnet/models/t2iadapter_zoedepth_sd15v1.pth new file mode 100644 index 0000000000000000000000000000000000000000..391e6643b4693e254450b9cdc19a68d8f317c73b --- /dev/null +++ b/extensions/sd-webui-controlnet/models/t2iadapter_zoedepth_sd15v1.pth @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0acb308082f394df7732f2841767a2d19e17bf4c33f35c6296047d4850fe8450 +size 309489779 diff --git a/extensions/sd-webui-controlnet/models/table5_pidinet.pth b/extensions/sd-webui-controlnet/models/table5_pidinet.pth new file mode 100644 index 0000000000000000000000000000000000000000..1ceba1de87e7bb3c81961b80acbb3a106ca249c0 --- /dev/null +++ b/extensions/sd-webui-controlnet/models/table5_pidinet.pth @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:80860ac267258b5f27486e0ef152a211d0b08120f62aeb185a050acc30da486c +size 2871148 diff --git a/extensions/sd-webui-controlnet/models/upernet_global_small.pth b/extensions/sd-webui-controlnet/models/upernet_global_small.pth new file mode 100644 index 0000000000000000000000000000000000000000..88e019bbe64cbca0662ca839794e9dffb60f2ac5 --- /dev/null +++ b/extensions/sd-webui-controlnet/models/upernet_global_small.pth @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bebfa1264c10381e389d8065056baaadbdadee8ddc6e36770d1ec339dc84d970 +size 206313115 diff --git a/extensions/sd-webui-infinite-image-browsing/iib.db b/extensions/sd-webui-infinite-image-browsing/iib.db index b4f233b848130063c31f04fa7350ce668824ab0c..f2741ff36680d6a371f0598e8a5e5a78e6029f16 100644 Binary files a/extensions/sd-webui-infinite-image-browsing/iib.db and b/extensions/sd-webui-infinite-image-browsing/iib.db differ diff --git a/extensions/sd-webui-reactor/.github/ISSUE_TEMPLATE/bug_report.yml b/extensions/sd-webui-reactor/.github/ISSUE_TEMPLATE/bug_report.yml new file mode 100644 index 0000000000000000000000000000000000000000..4b2908a1a2176a87dc5a5001d3222585d36e46b6 --- /dev/null +++ b/extensions/sd-webui-reactor/.github/ISSUE_TEMPLATE/bug_report.yml @@ -0,0 +1,58 @@ +name: Bug Report +description: You think somethings is broken +labels: ["bug", "new"] + +body: + - type: checkboxes + attributes: + label: First, confirm + description: Make sure you use the latest version of the ReActor extension and you have already searched to see if an issue already exists for the bug you encountered before you create a new Issue. + options: + - label: I have read the [instruction](https://github.com/Gourieff/sd-webui-reactor/blob/main/README.md) carefully + required: true + - label: I have searched the existing issues + required: true + - label: I have updated the extension to the latest version + required: true + - type: markdown + attributes: + value: | + *Please fill this form with as much information as possible and *provide screenshots if possible** + - type: textarea + id: what-did + attributes: + label: What happened? + description: Tell what happened in a very clear and simple way + validations: + required: true + - type: textarea + id: steps + attributes: + label: Steps to reproduce the problem + description: Please provide with precise step by step instructions on how to reproduce the bug + value: | + 1. Go to .... + 2. Press .... + 3. ... + validations: + required: true + - type: textarea + id: sysinfo + attributes: + label: Sysinfo + description: Describe your platform. OS, browser, GPU, what SD WebUI you use, what version and what extensions are also enabled. If you use A1111 you can generate "System info file" (Settings -> Sysinfo) and put it here. + validations: + required: true + - type: textarea + id: logs + attributes: + label: Relevant console log + description: Please provide cmd/terminal logs from the moment you started UI to the momemt you got an error. This will be automatically formatted into code, so no need for backticks. + render: Shell + validations: + required: true + - type: textarea + id: misc + attributes: + label: Additional information + description: Please provide with any relevant additional info or context. diff --git a/extensions/sd-webui-reactor/.github/ISSUE_TEMPLATE/config.yml b/extensions/sd-webui-reactor/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 0000000000000000000000000000000000000000..53d8e3449910aaaf88d08d527a57921a1b10305d --- /dev/null +++ b/extensions/sd-webui-reactor/.github/ISSUE_TEMPLATE/config.yml @@ -0,0 +1,5 @@ +blank_issues_enabled: false +contact_links: + - name: ReActor Extension Community Support + url: https://github.com/Gourieff/sd-webui-reactor/discussions + about: Please ask and answer questions here. diff --git a/extensions/sd-webui-reactor/.github/ISSUE_TEMPLATE/feature_request.yml b/extensions/sd-webui-reactor/.github/ISSUE_TEMPLATE/feature_request.yml new file mode 100644 index 0000000000000000000000000000000000000000..674577cf107e708fff09801b5f7efffe47d44d35 --- /dev/null +++ b/extensions/sd-webui-reactor/.github/ISSUE_TEMPLATE/feature_request.yml @@ -0,0 +1,16 @@ +name: Feature request +description: Suggest an idea for this project +title: "[Feature]: " +labels: ["enhancement", "new"] + +body: + - type: textarea + id: description + attributes: + label: Feature description + description: Describe the feature in a clear and simple way + value: + - type: markdown + attributes: + value: | + The best way to propose an idea is to start a new discussion via the [Discussions](https://github.com/Gourieff/sd-webui-reactor/discussions) section (choose the "Idea" category) diff --git a/extensions/sd-webui-reactor/.gitignore b/extensions/sd-webui-reactor/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..792ad62810e973b88b107091957500c5d0ef9193 --- /dev/null +++ b/extensions/sd-webui-reactor/.gitignore @@ -0,0 +1,9 @@ +__pycache__/ +*.py[cod] +*$py.class +*.pyc + +.vscode/ + +example +toDo.txt diff --git a/extensions/sd-webui-reactor/API.md b/extensions/sd-webui-reactor/API.md new file mode 100644 index 0000000000000000000000000000000000000000..e5f6be501ff8b79d530e5cc81fa36f7c062989f8 --- /dev/null +++ b/extensions/sd-webui-reactor/API.md @@ -0,0 +1,71 @@ +#
+
+ 
+
+ |
+
+ for Any GPU
+
+ + + NVIDIA / AMD / Intel + + |
+
+
+ for NVIDIA GPU
+ + + 8Gb VRAM or more + + + |
+
+
+
+ + + Support This Project + + + |
+ + ReActor is an extension for Stable Diffusion WebUI that allows a very easy and accurate face-replacement (face swap) in images. Based on ReActor-UI. + | +
+
+ + + Donate to This Project + + + |
+
+
+## Installation
+
+[Automatic1111](#a1111) | [Vladmandic SD.Next](#sdnext) | [Google Colab SD WebUI](#colab)
+
+If you use [AUTOMATIC1111 web-ui](https://github.com/AUTOMATIC1111/stable-diffusion-webui/):
+
+1. (For Windows Users):
+ - Install **Visual Studio 2022** (Community version, for example - you need this step to build some of dependencies):
+ https://visualstudio.microsoft.com/downloads/
+ - OR only **VS C++ Build Tools** (if you don't need the whole Visual Studio) and select "Desktop Development with C++" under "Workloads -> Desktop & Mobile":
+ https://visualstudio.microsoft.com/visual-cpp-build-tools/
+ - OR if you don't want to install VS or VS C++ BT - follow [this steps (sec. VIII)](#insightfacebuild)
+2. In web-ui, go to the "Extensions" tab and use this URL `https://github.com/Gourieff/sd-webui-reactor` in the "Install from URL" tab and click "Install"
+3. Please, wait for several minutes until the installation process will be finished
+4. Check the last message in your SD-WebUI Console:
+* If you see the message "--- PLEASE, RESTART the Server! ---" - so, do it, stop the Server (CTRL+C or CMD+C) and start it again - or just go to the "Installed" tab (*if you have any other Roop-based extension enabled - disable it, otherwise this extension won't work*), click "Apply and restart UI"
+* If you see the message "Done!", just go to the "Installed" tab (*if you have any other Roop-based extension enabled - disable it, otherwise this extension won't work*), click "Apply and restart UI" - or you can just simply reload the UI
+5. Enjoy!
+
+If you use [SD.Next](https://github.com/vladmandic/automatic):
+
+1. Close (stop) your SD WebUI Server if it's running
+2. (For Windows Users) See the [1st step](#a1111) for Automatic1111 (if you followed [this steps (sec. VIII)](#insightfacebuild) instead - go to the Step 5)
+3. Go to (Windows)`automatic\venv\Scripts` or (MacOS/Linux)`automatic/venv/bin`, run Terminal or Console (cmd) for that folder and type `activate`
+4. Run `pip install insightface==0.7.3`
+5. Run SD.Next, go to the "Extensions" tab and use this URL `https://github.com/Gourieff/sd-webui-reactor` in the "Install from URL" tab and click "Install"
+6. Please, wait for several minutes until the installation process will be finished
+7. Check the last message in your SD.Next Console:
+* If you see the message "--- PLEASE, RESTART the Server! ---" - so, do it, stop the Server (CTRL+C or CMD+C) and start it again - or just go to the "Installed" tab (*if you have any other Roop-based extension enabled - disable it, otherwise this extension won't work*), click "Restart the UI"
+8. Stop SD.Next, go to the `automatic\extensions\sd-webui-reactor` directory - if you see there `models\insightface` folder with the file `inswapper_128.onnx`, just move the file to the `automatic\models\insightface` folder
+9. Run your SD.Next WebUI and enjoy!
+
+If you use [Cagliostro Colab UI](https://github.com/Linaqruf/sd-notebook-collection):
+
+1. In active WebUI, go to the "Extensions" tab and use this URL `https://github.com/Gourieff/sd-webui-reactor` in the "Install from URL" tab and click "Install"
+2. Please, wait for several minutes until the installation process will be finished
+3. When you see the message "--- PLEASE, RESTART the Server! ---" (in your Colab Notebook Start UI section "Start Cagliostro Colab UI") - just go to the "Installed" tab and click "Apply and restart UI" (*if you have any other Roop-based extension enabled - disable it before restart, otherwise this extension won't work*)
+4. Enjoy!
+
+## Features
+
+- Very fast and accurate **face replacement (face swap)** in images
+- **Multiple faces support**
+- **Gender detection**
+- Ability to **save original images** (made before swapping)
+- **Face restoration** of a swapped face
+- **Upscaling** of a resulting image
+- Ability to set the **Postprocessing order**
+- **100% compatibility** with different **SD WebUIs**: Automatic1111, SD.Next, Cagliostro Colab UI
+- **Fast performance** even with CPU, ReActor for SD WebUI is absolutely not picky about how powerful your GPU is
+- **[API](/API.md) support**: both SD WebUI built-in and external (via POST/GET requests)
+- **ComfyUI [support](https://github.com/Gourieff/comfyui-reactor-node)**
+- **Mac M1/M2 [support](https://github.com/Gourieff/sd-webui-reactor/issues/42)**
+- Console **log level control**
+- **NSFW filter free** (this extension is aimed at highly developed intellectual people, not at perverts; our society must be oriented on its way towards the highest standards, not the lowest - this is the essence of development and evolution; so, my position is - that mature-minded people are clever enough to understand for themselves what is good and what is bad and take full responsibility for personal actions; for others - no "filters" will help until they do understand how Universe works)
+
+## Usage
+
+> Using this software you are agree with [disclaimer](#disclaimer)
+
+1. Under "ReActor" drop-down menu, import an image containing a face;
+2. Turn on the "Enable" checkbox;
+3. That's it, now the generated result will have the face you selected.
+
+
+
+### Face Indexes
+
+ReActor detects faces in images in the following order:
+
+*The old logic was the opposite (Upscale -> then Restore), resulting in worse face quality (and big texture differences) after upscaling.*
+
+### There are multiple faces in result
+Select the face numbers you wish to swap using the "Comma separated face number(s)" option for swap-source and result images. You can use different index order.
+
+
+### ~~The result is totally black~~
+~~This means NSFW filter detected that your image is NSFW.~~
+
+
+
+### Img2Img
+
+You can choose to activate the swap on the source image or on the generated image, or on both using the checkboxes. Activating on source image allows you to start from a given base and apply the diffusion process to it.
+
+ReActor works with Inpainting - but only the masked part will be swapped.
+- Click 'Apply and restart UI'
+
+Alternative solutions:
+- https://github.com/Gourieff/sd-webui-reactor/issues/3#issuecomment-1615919243
+- https://github.com/Gourieff/sd-webui-reactor/issues/39#issuecomment-1666559134 (can be actual, if you use Vladmandic SD.Next)
+
+### **IV. "AttributeError: 'FaceSwapScript' object has no attribute 'enable'"**
+
+You need to disable the "SD-CN-Animation" extension (or perhaps some another that causes the conflict)
+
+### **V. "INVALID_PROTOBUF : Load model from <...>\models\insightface\inswapper_128.onnx failed:Protobuf parsing failed" OR "AttributeError: 'NoneType' object has no attribute 'get'" OR "AttributeError: 'FaceSwapScript' object has no attribute 'save_original'"**
+
+This error may occur if there's smth wrong with the model file `inswapper_128.onnx`
+
+Try to download it manually from [here](https://github.com/facefusion/facefusion-assets/releases/download/models/inswapper_128.onnx)
+and put it to the `stable-diffusion-webui\models\insightface` replacing existing one
+
+### **VI. "ValueError: This ORT build has ['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'] enabled" OR "ValueError: This ORT build has ['AzureExecutionProvider', 'CPUExecutionProvider'] enabled"**
+
+1. Close (stop) your SD WebUI Server if it's running
+2. Go to the (Windows)`venv\Lib\site-packages` or (MacOS/Linux)`venv/lib/python3.10/site-packages` and see if there are any folders with names start from "~" (for example "~rotobuf"), delete them
+3. Go to the (Windows)`venv\Scripts` or (MacOS/Linux)`venv/bin` run Terminal or Console (cmd) there and type `activate`
+4. Then:
+- `python -m pip install -U pip`
+- `pip uninstall -y onnx onnxruntime onnxruntime-gpu onnxruntime-silicon onnxruntime-extensions`
+- `pip install onnx==1.14.1 onnxruntime==1.15.1`
+
+If it didn't help - it seems that you have another extension reinstalling `onnxruntime` when SD WebUI checks requirements. Please see your extensions list. If you find there "WD14 tagger" - try to disable it and then follow the steps above once again. This extension causes reinstalling of `onnxruntime` to `onnxruntime-gpu` or `onnxruntime==1.16.0` every time SD WebUI runs.
+
+ 
+
+ |
+
+ для любых GPU
+
+ + + NVIDIA / AMD / Intel + + |
+
+
+ для GPU NVIDIA
+ + + 8Гб VRAM или более + + + |
+
+
+
+ + + Поддержать проект + + + |
+ + ReActor это расширение для Stable Diffusion WebUI, которое позволяет делать простую и точную замену лиц на изображениях. Сделано на основе ReActor-UI. + | +
+
+ + + Помочь проекту + + + |
+
+
+
+
+## Установка
+
+[Automatic1111](#a1111) | [Vladmandic SD.Next](#sdnext) | [Google Colab SD WebUI](#colab)
+
+Если вы используете [AUTOMATIC1111 Web-UI](https://github.com/AUTOMATIC1111/stable-diffusion-webui/):
+
+1. (Для пользователей Windows):
+ - Установите **Visual Studio 2022** (Например, версию Community - этот шаг нужен для правильной компиляции библиотеки Insightface):
+ https://visualstudio.microsoft.com/downloads/
+ - ИЛИ только **VS C++ Build Tools** (если вам не нужен весь пакет Visual Studio), выберите "Desktop Development with C++" в разделе "Workloads -> Desktop & Mobile":
+ https://visualstudio.microsoft.com/visual-cpp-build-tools/
+ - ИЛИ если же вы не хотите устанавливать что-либо из вышеуказанного - выполните [следующие шаги (пункт VIII)](#insightfacebuild)
+2. Внутри SD Web-UI перейдите во вкладку "Extensions" и вставьте ссылку `https://github.com/Gourieff/sd-webui-reactor` в "Install from URL" и нажмите "Install"
+3. Пожалуйста, подождите несколько минут, пока процесс установки полностью не завершится
+4. Проверьте последнее сообщение в консоли SD-WebUI:
+* Если вы видите "--- PLEASE, RESTART the Server! ---" - остановите Сервер (CTRL+C или CMD+C) и запустите его заново - ИЛИ же перейдите во вкладку "Installed" (*если у вас имееются какие-либо другие расширение, основанные на Roop или клонах ReActor - отключите их, иначе данное расширение может не работать*), нажмите "Apply and restart UI"
+* Если вы видите "Done!", перейдите во вкладку "Installed" (*если у вас имееются какие-либо другие расширение, основанные на Roop или клонах ReActor - отключите их, иначе данное расширение может не работать*), нажмите "Apply and restart UI" - или же просто перезагрузите UI, нажав на "Reload UI"
+5. Готово!
+
+Если вы используете [SD.Next](https://github.com/vladmandic/automatic):
+
+1. Закройте (остановите) SD WebUI Сервер, если он запущен
+2. (Для пользователей Windows) Смотрите [Шаг 1](#a1111) для Automatic1111 (если же вы следовали [данным шагам (пункт VIII)](#insightfacebuild) вместо этого - переходите к Шагу 5)
+3. Перейдите в (Windows)`automatic\venv\Scripts` или (MacOS/Linux)`automatic/venv/bin`, запустите Терминал или Консоль (cmd) для данной папки и выполните `activate`
+4. Выполните `pip install insightface==0.7.3`
+5. Запустите SD.Next, перейдите во вкладку "Extensions", вставьте эту ссылку `https://github.com/Gourieff/sd-webui-reactor` в "Install from URL" и нажмите "Install"
+6. Пожалуйста, подождите несколько минут, пока процесс установки полностью не завершится
+7. Проверьте последнее сообщение в консоли SD.Next:
+* Если вы видите "--- PLEASE, RESTART the Server! ---" - остановите Сервер (CTRL+C или CMD+C) и запустите его заново - ИЛИ же перейдите во вкладку "Installed" (*если у вас имееются какие-либо другие расширение, основанные на Roop или клонах ReActor - отключите их, иначе данное расширение может не работать*), нажмите "Restart the UI"
+8. Остановите Сервер SD.Next, перейдите в директорию `automatic\extensions\sd-webui-reactor` - если вы видите там папку `models\insightface` с файлом `inswapper_128.onnx` внутри, переместите его в папку `automatic\models\insightface`
+9. Готово, можете запустить SD.Next WebUI!
+
+Если вы используете [Cagliostro Colab UI](https://github.com/Linaqruf/sd-notebook-collection):
+
+1. В активном WebUI, перейдите во вкладку "Extensions", вставьте ссылку `https://github.com/Gourieff/sd-webui-reactor` в "Install from URL" и нажмите "Install"
+2. Пожалуйста, подождите некоторое время, пока процесс установки полностью не завершится
+3. Когда вы увидите сообщение "--- PLEASE, RESTART the Server! ---" (в секции "Start UI" вашего ноутбука "Start Cagliostro Colab UI") - перейдите во вкладку "Installed" и нажмите "Apply and restart UI" (*если у вас имееются какие-либо другие расширение, основанные на Roop или клонах ReActor - отключите их, иначе данное расширение может не работать*)
+4. Готово!
+
+
+
+## Возможности
+
+- Быстрая и точна **замена лиц (faceswap)** на изображении
+- **Поддержка нескольких лиц**
+- **Определение пола**
+- Функция **сохранения оригинального изображения** (сгенерированного до замены лица)
+- **Восстановление лица** после замены
+- **Увеличение размера** полученного изображения
+- Возможность задать **порядок постобработки**
+- **100% совместимость** с разными **SD WebUI**: Automatic1111, SD.Next, Cagliostro Colab UI
+- **Отличная производительность** даже с использованием ЦПУ, ReActor для SD WebUI абсолютно не требователен к мощности вашей видеокарты
+- **Поддержка [API](/API.md)**: как встроенного в SD WebUI, так и внешнего (через POST/GET запросы)
+- **[Поддержка](https://github.com/Gourieff/comfyui-reactor-node) ComfyUI**
+- **[Поддержка](https://github.com/Gourieff/sd-webui-reactor/issues/42) компьютеров Mac M1/M2**
+- **Регулировка уровня логов** консоли
+- **Без NSFW фильтров** (данное расширение адресовано высокоразвитым интеллектуальным людям, а не извращенцам; наше общество должно быть ориентировано на своём пути на высшие стандарты, а не на низшие - в этом состоит суть развития и эволюции человеческого общества; поэтому, моя позиция такова - что зрелые умом люди достаточно разумны, чтобы понимать, что есть хорошо, а что плохо и нести полную ответственность за собственные действия; для прочих - никакие "фильтры" не помогут, пока эти люди сами не поймут, как работает Вселенная)
+
+
+
+## Использование
+
+> Используя данное программное обеспечение, вы соглашаетесь с [ответственностью](#disclaimer)
+
+1. В раскрывающимся меню "ReActor" импортируйте изображение, содержащее лицо;
+2. Установите флажок "Enable";
+3. Готово, теперь результат будет иметь то лицо, которое вы выбрали.
+
+
+
+### Индексы Лиц (Face Indexes)
+
+ReActor определяет лица на изображении в следующей последовательности:
+
+*Прежняя логика была противоположенной (Upscale -> затем Restore), что приводило к более худшему качеству изображения лица (а также к значительной разнице текстур) после увеличения.*
+
+### Результат имеет несколько лиц
+Выберите номера лиц, которые нужно поменять, используя поля "Comma separated face number(s)" для исходного изображения лица и для результата. Можно устанавливать любой, необходимый вам, порядок лиц.
+
+
+### ~~Результат получился чёрным~~
+~~Это значит, что сработал NSFW фильтр.~~
+
+
+
+### Img2Img
+
+Используйте эту вкладку, чтобы заменить лицо на уже готовом изображении (флажок "Swap in source image") или на сгенерированном на основе готового (флажок "Swap in generated image").
+
+Inpainting также работает, но замена лица происходит только в области маски.
+- Нажмите 'Apply and restart UI'
+
+Альтернативные решения:
+- https://github.com/Gourieff/sd-webui-reactor/issues/3#issuecomment-1615919243
+- https://github.com/Gourieff/sd-webui-reactor/issues/39#issuecomment-1666559134 (актуально для Vladmandic SD.Next)
+
+### **IV. "AttributeError: 'FaceSwapScript' object has no attribute 'enable'"**
+
+Отключите расширение "SD-CN-Animation" (или какое-либо другое, вызывающее конфликт)
+
+### **V. "INVALID_PROTOBUF : Load model from <...>\models\insightface\inswapper_128.onnx failed:Protobuf parsing failed" ИЛИ "AttributeError: 'NoneType' object has no attribute 'get'" ИЛИ "AttributeError: 'FaceSwapScript' object has no attribute 'save_original'"**
+
+Эта ошибка появляется, если что-то не так с файлом модели `inswapper_128.onnx`.
+
+Скачайте вручную по ссылке [here](https://github.com/facefusion/facefusion-assets/releases/download/models/inswapper_128.onnx)
+и сохраните в директорию `stable-diffusion-webui\models\insightface`, заменив имеющийся файл.
+
+### **VI. "ValueError: This ORT build has ['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'] enabled" ИЛИ "ValueError: This ORT build has ['AzureExecutionProvider', 'CPUExecutionProvider'] enabled"**
+
+1. Закройте (остановите) SD WebUI Сервер, если он запущен
+2. Перейдите в (Windows)`venv\Lib\site-packages` или (MacOS/Linux)`venv/lib/python3.10/site-packages` и посмотрите, если там папки с именам, начинающимися на "~" (например, "~rotobuf"), удалите их
+3. Перейдите в (Windows)`venv\Scripts` или (MacOS/Linux)`venv/bin`, откройте Терминал или Консоль (cmd) и выполните `activate`
+4. Затем:
+- `python -m pip install -U pip`
+- `pip uninstall -y onnx onnxruntime onnxruntime-gpu onnxruntime-silicon onnxruntime-extensions`
+- `pip install onnx==1.14.1 onnxruntime==1.15.1`
+
+Если это не помогло - значит какое-то другое расширение переустанавливает `onnxruntime` всякий раз, когда SD WebUI проверяет требования пакетов. Внимательно посмотрите список активных расширений. Если видите там "WD14 tagger" - попробуйте отключить его и ещё раз выполнить шаги выше. Это расширение вызывает переустановку `onnxruntime` на `onnxruntime-gpu` или `onnxruntime==1.16.0` при каждом запуске SD WebUI.