horde-engine 2.8.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- horde_engine-2.8.2.dist-info/LICENSE +661 -0
- horde_engine-2.8.2.dist-info/METADATA +991 -0
- horde_engine-2.8.2.dist-info/RECORD +895 -0
- horde_engine-2.8.2.dist-info/WHEEL +5 -0
- horde_engine-2.8.2.dist-info/entry_points.txt +3 -0
- horde_engine-2.8.2.dist-info/top_level.txt +1 -0
- hordelib/__init__.py +12 -0
- hordelib/__pyinstaller.py +10 -0
- hordelib/_comfyui/.gitignore +18 -0
- hordelib/_comfyui/CODEOWNERS +1 -0
- hordelib/_comfyui/LICENSE +674 -0
- hordelib/_comfyui/README.md +224 -0
- hordelib/_comfyui/__pycache__/cuda_malloc.cpython-310.pyc +0 -0
- hordelib/_comfyui/__pycache__/execution.cpython-310.pyc +0 -0
- hordelib/_comfyui/__pycache__/folder_paths.cpython-310.pyc +0 -0
- hordelib/_comfyui/__pycache__/latent_preview.cpython-310.pyc +0 -0
- hordelib/_comfyui/__pycache__/node_helpers.cpython-310.pyc +0 -0
- hordelib/_comfyui/__pycache__/nodes.cpython-310.pyc +0 -0
- hordelib/_comfyui/__pycache__/server.cpython-310.pyc +0 -0
- hordelib/_comfyui/app/__pycache__/app_settings.cpython-310.pyc +0 -0
- hordelib/_comfyui/app/__pycache__/user_manager.cpython-310.pyc +0 -0
- hordelib/_comfyui/app/app_settings.py +54 -0
- hordelib/_comfyui/app/user_manager.py +140 -0
- hordelib/_comfyui/comfy/__pycache__/checkpoint_pickle.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy/__pycache__/cli_args.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy/__pycache__/clip_model.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy/__pycache__/clip_vision.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy/__pycache__/conds.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy/__pycache__/controlnet.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy/__pycache__/diffusers_convert.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy/__pycache__/diffusers_load.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy/__pycache__/gligen.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy/__pycache__/latent_formats.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy/__pycache__/lora.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy/__pycache__/model_base.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy/__pycache__/model_detection.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy/__pycache__/model_management.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy/__pycache__/model_patcher.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy/__pycache__/model_sampling.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy/__pycache__/ops.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy/__pycache__/options.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy/__pycache__/sample.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy/__pycache__/sampler_helpers.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy/__pycache__/samplers.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy/__pycache__/sd.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy/__pycache__/sd1_clip.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy/__pycache__/sd2_clip.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy/__pycache__/sdxl_clip.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy/__pycache__/supported_models.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy/__pycache__/supported_models_base.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy/__pycache__/utils.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy/checkpoint_pickle.py +13 -0
- hordelib/_comfyui/comfy/cldm/__pycache__/cldm.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy/cldm/cldm.py +312 -0
- hordelib/_comfyui/comfy/cli_args.py +136 -0
- hordelib/_comfyui/comfy/clip_config_bigg.json +23 -0
- hordelib/_comfyui/comfy/clip_model.py +194 -0
- hordelib/_comfyui/comfy/clip_vision.py +117 -0
- hordelib/_comfyui/comfy/clip_vision_config_g.json +18 -0
- hordelib/_comfyui/comfy/clip_vision_config_h.json +18 -0
- hordelib/_comfyui/comfy/clip_vision_config_vitl.json +18 -0
- hordelib/_comfyui/comfy/conds.py +78 -0
- hordelib/_comfyui/comfy/controlnet.py +554 -0
- hordelib/_comfyui/comfy/diffusers_convert.py +281 -0
- hordelib/_comfyui/comfy/diffusers_load.py +36 -0
- hordelib/_comfyui/comfy/extra_samplers/__pycache__/uni_pc.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy/extra_samplers/uni_pc.py +875 -0
- hordelib/_comfyui/comfy/gligen.py +343 -0
- hordelib/_comfyui/comfy/k_diffusion/__pycache__/sampling.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy/k_diffusion/__pycache__/utils.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy/k_diffusion/sampling.py +810 -0
- hordelib/_comfyui/comfy/k_diffusion/utils.py +313 -0
- hordelib/_comfyui/comfy/latent_formats.py +104 -0
- hordelib/_comfyui/comfy/ldm/__pycache__/util.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy/ldm/cascade/__pycache__/common.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy/ldm/cascade/__pycache__/controlnet.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy/ldm/cascade/__pycache__/stage_a.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy/ldm/cascade/__pycache__/stage_b.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy/ldm/cascade/__pycache__/stage_c.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy/ldm/cascade/__pycache__/stage_c_coder.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy/ldm/cascade/common.py +161 -0
- hordelib/_comfyui/comfy/ldm/cascade/controlnet.py +93 -0
- hordelib/_comfyui/comfy/ldm/cascade/stage_a.py +255 -0
- hordelib/_comfyui/comfy/ldm/cascade/stage_b.py +257 -0
- hordelib/_comfyui/comfy/ldm/cascade/stage_c.py +274 -0
- hordelib/_comfyui/comfy/ldm/cascade/stage_c_coder.py +95 -0
- hordelib/_comfyui/comfy/ldm/models/__pycache__/autoencoder.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy/ldm/models/autoencoder.py +228 -0
- hordelib/_comfyui/comfy/ldm/modules/__pycache__/attention.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy/ldm/modules/__pycache__/ema.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy/ldm/modules/__pycache__/sub_quadratic_attention.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy/ldm/modules/attention.py +801 -0
- hordelib/_comfyui/comfy/ldm/modules/diffusionmodules/__init__.py +0 -0
- hordelib/_comfyui/comfy/ldm/modules/diffusionmodules/__pycache__/__init__.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy/ldm/modules/diffusionmodules/__pycache__/model.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy/ldm/modules/diffusionmodules/__pycache__/openaimodel.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy/ldm/modules/diffusionmodules/__pycache__/upscaling.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy/ldm/modules/diffusionmodules/__pycache__/util.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy/ldm/modules/diffusionmodules/model.py +651 -0
- hordelib/_comfyui/comfy/ldm/modules/diffusionmodules/openaimodel.py +890 -0
- hordelib/_comfyui/comfy/ldm/modules/diffusionmodules/upscaling.py +85 -0
- hordelib/_comfyui/comfy/ldm/modules/diffusionmodules/util.py +306 -0
- hordelib/_comfyui/comfy/ldm/modules/distributions/__init__.py +0 -0
- hordelib/_comfyui/comfy/ldm/modules/distributions/__pycache__/__init__.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy/ldm/modules/distributions/__pycache__/distributions.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy/ldm/modules/distributions/distributions.py +92 -0
- hordelib/_comfyui/comfy/ldm/modules/ema.py +80 -0
- hordelib/_comfyui/comfy/ldm/modules/encoders/__init__.py +0 -0
- hordelib/_comfyui/comfy/ldm/modules/encoders/__pycache__/__init__.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy/ldm/modules/encoders/__pycache__/noise_aug_modules.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy/ldm/modules/encoders/noise_aug_modules.py +35 -0
- hordelib/_comfyui/comfy/ldm/modules/sub_quadratic_attention.py +274 -0
- hordelib/_comfyui/comfy/ldm/modules/temporal_ae.py +245 -0
- hordelib/_comfyui/comfy/ldm/util.py +197 -0
- hordelib/_comfyui/comfy/lora.py +241 -0
- hordelib/_comfyui/comfy/model_base.py +559 -0
- hordelib/_comfyui/comfy/model_detection.py +383 -0
- hordelib/_comfyui/comfy/model_management.py +877 -0
- hordelib/_comfyui/comfy/model_patcher.py +485 -0
- hordelib/_comfyui/comfy/model_sampling.py +203 -0
- hordelib/_comfyui/comfy/ops.py +163 -0
- hordelib/_comfyui/comfy/options.py +6 -0
- hordelib/_comfyui/comfy/sample.py +44 -0
- hordelib/_comfyui/comfy/sampler_helpers.py +76 -0
- hordelib/_comfyui/comfy/samplers.py +755 -0
- hordelib/_comfyui/comfy/sd.py +626 -0
- hordelib/_comfyui/comfy/sd1_clip.py +521 -0
- hordelib/_comfyui/comfy/sd1_clip_config.json +25 -0
- hordelib/_comfyui/comfy/sd1_tokenizer/merges.txt +48895 -0
- hordelib/_comfyui/comfy/sd1_tokenizer/special_tokens_map.json +24 -0
- hordelib/_comfyui/comfy/sd1_tokenizer/tokenizer_config.json +34 -0
- hordelib/_comfyui/comfy/sd1_tokenizer/vocab.json +49410 -0
- hordelib/_comfyui/comfy/sd2_clip.py +24 -0
- hordelib/_comfyui/comfy/sd2_clip_config.json +23 -0
- hordelib/_comfyui/comfy/sdxl_clip.py +88 -0
- hordelib/_comfyui/comfy/supported_models.py +481 -0
- hordelib/_comfyui/comfy/supported_models_base.py +95 -0
- hordelib/_comfyui/comfy/t2i_adapter/__pycache__/adapter.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy/t2i_adapter/adapter.py +293 -0
- hordelib/_comfyui/comfy/taesd/__pycache__/taesd.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy/taesd/taesd.py +77 -0
- hordelib/_comfyui/comfy/utils.py +483 -0
- hordelib/_comfyui/comfy_extras/__pycache__/nodes_align_your_steps.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy_extras/__pycache__/nodes_canny.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy_extras/__pycache__/nodes_clip_sdxl.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy_extras/__pycache__/nodes_compositing.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy_extras/__pycache__/nodes_cond.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy_extras/__pycache__/nodes_custom_sampler.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy_extras/__pycache__/nodes_differential_diffusion.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy_extras/__pycache__/nodes_freelunch.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy_extras/__pycache__/nodes_hypernetwork.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy_extras/__pycache__/nodes_hypertile.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy_extras/__pycache__/nodes_images.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy_extras/__pycache__/nodes_ip2p.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy_extras/__pycache__/nodes_latent.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy_extras/__pycache__/nodes_mask.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy_extras/__pycache__/nodes_model_advanced.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy_extras/__pycache__/nodes_model_downscale.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy_extras/__pycache__/nodes_model_merging.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy_extras/__pycache__/nodes_model_merging_model_specific.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy_extras/__pycache__/nodes_morphology.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy_extras/__pycache__/nodes_pag.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy_extras/__pycache__/nodes_perpneg.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy_extras/__pycache__/nodes_photomaker.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy_extras/__pycache__/nodes_post_processing.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy_extras/__pycache__/nodes_rebatch.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy_extras/__pycache__/nodes_sag.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy_extras/__pycache__/nodes_sdupscale.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy_extras/__pycache__/nodes_stable3d.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy_extras/__pycache__/nodes_stable_cascade.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy_extras/__pycache__/nodes_tomesd.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy_extras/__pycache__/nodes_upscale_model.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy_extras/__pycache__/nodes_video_model.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy_extras/chainner_models/__init__.py +0 -0
- hordelib/_comfyui/comfy_extras/chainner_models/__pycache__/__init__.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy_extras/chainner_models/__pycache__/model_loading.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy_extras/chainner_models/__pycache__/types.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy_extras/chainner_models/architecture/DAT.py +1182 -0
- hordelib/_comfyui/comfy_extras/chainner_models/architecture/HAT.py +1277 -0
- hordelib/_comfyui/comfy_extras/chainner_models/architecture/LICENSE-DAT +201 -0
- hordelib/_comfyui/comfy_extras/chainner_models/architecture/LICENSE-ESRGAN +201 -0
- hordelib/_comfyui/comfy_extras/chainner_models/architecture/LICENSE-HAT +21 -0
- hordelib/_comfyui/comfy_extras/chainner_models/architecture/LICENSE-RealESRGAN +29 -0
- hordelib/_comfyui/comfy_extras/chainner_models/architecture/LICENSE-SCUNet +201 -0
- hordelib/_comfyui/comfy_extras/chainner_models/architecture/LICENSE-SPSR +201 -0
- hordelib/_comfyui/comfy_extras/chainner_models/architecture/LICENSE-SwiftSRGAN +121 -0
- hordelib/_comfyui/comfy_extras/chainner_models/architecture/LICENSE-Swin2SR +201 -0
- hordelib/_comfyui/comfy_extras/chainner_models/architecture/LICENSE-SwinIR +201 -0
- hordelib/_comfyui/comfy_extras/chainner_models/architecture/LICENSE-lama +201 -0
- hordelib/_comfyui/comfy_extras/chainner_models/architecture/LaMa.py +694 -0
- hordelib/_comfyui/comfy_extras/chainner_models/architecture/OmniSR/ChannelAttention.py +110 -0
- hordelib/_comfyui/comfy_extras/chainner_models/architecture/OmniSR/LICENSE +201 -0
- hordelib/_comfyui/comfy_extras/chainner_models/architecture/OmniSR/OSA.py +577 -0
- hordelib/_comfyui/comfy_extras/chainner_models/architecture/OmniSR/OSAG.py +60 -0
- hordelib/_comfyui/comfy_extras/chainner_models/architecture/OmniSR/OmniSR.py +143 -0
- hordelib/_comfyui/comfy_extras/chainner_models/architecture/OmniSR/__pycache__/OSA.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy_extras/chainner_models/architecture/OmniSR/__pycache__/OSAG.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy_extras/chainner_models/architecture/OmniSR/__pycache__/OmniSR.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy_extras/chainner_models/architecture/OmniSR/__pycache__/esa.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy_extras/chainner_models/architecture/OmniSR/__pycache__/layernorm.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy_extras/chainner_models/architecture/OmniSR/__pycache__/pixelshuffle.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy_extras/chainner_models/architecture/OmniSR/esa.py +294 -0
- hordelib/_comfyui/comfy_extras/chainner_models/architecture/OmniSR/layernorm.py +70 -0
- hordelib/_comfyui/comfy_extras/chainner_models/architecture/OmniSR/pixelshuffle.py +31 -0
- hordelib/_comfyui/comfy_extras/chainner_models/architecture/RRDB.py +296 -0
- hordelib/_comfyui/comfy_extras/chainner_models/architecture/SCUNet.py +455 -0
- hordelib/_comfyui/comfy_extras/chainner_models/architecture/SPSR.py +383 -0
- hordelib/_comfyui/comfy_extras/chainner_models/architecture/SRVGG.py +114 -0
- hordelib/_comfyui/comfy_extras/chainner_models/architecture/SwiftSRGAN.py +161 -0
- hordelib/_comfyui/comfy_extras/chainner_models/architecture/Swin2SR.py +1377 -0
- hordelib/_comfyui/comfy_extras/chainner_models/architecture/SwinIR.py +1224 -0
- hordelib/_comfyui/comfy_extras/chainner_models/architecture/__init__.py +0 -0
- hordelib/_comfyui/comfy_extras/chainner_models/architecture/__pycache__/DAT.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy_extras/chainner_models/architecture/__pycache__/HAT.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy_extras/chainner_models/architecture/__pycache__/LaMa.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy_extras/chainner_models/architecture/__pycache__/RRDB.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy_extras/chainner_models/architecture/__pycache__/SCUNet.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy_extras/chainner_models/architecture/__pycache__/SPSR.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy_extras/chainner_models/architecture/__pycache__/SRVGG.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy_extras/chainner_models/architecture/__pycache__/SwiftSRGAN.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy_extras/chainner_models/architecture/__pycache__/Swin2SR.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy_extras/chainner_models/architecture/__pycache__/SwinIR.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy_extras/chainner_models/architecture/__pycache__/__init__.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy_extras/chainner_models/architecture/__pycache__/block.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy_extras/chainner_models/architecture/block.py +546 -0
- hordelib/_comfyui/comfy_extras/chainner_models/architecture/face/LICENSE-GFPGAN +351 -0
- hordelib/_comfyui/comfy_extras/chainner_models/architecture/face/LICENSE-RestoreFormer +351 -0
- hordelib/_comfyui/comfy_extras/chainner_models/architecture/face/LICENSE-codeformer +35 -0
- hordelib/_comfyui/comfy_extras/chainner_models/architecture/face/__pycache__/codeformer.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy_extras/chainner_models/architecture/face/__pycache__/gfpganv1_clean_arch.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy_extras/chainner_models/architecture/face/__pycache__/restoreformer_arch.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy_extras/chainner_models/architecture/face/__pycache__/stylegan2_clean_arch.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy_extras/chainner_models/architecture/face/arcface_arch.py +265 -0
- hordelib/_comfyui/comfy_extras/chainner_models/architecture/face/codeformer.py +790 -0
- hordelib/_comfyui/comfy_extras/chainner_models/architecture/face/fused_act.py +81 -0
- hordelib/_comfyui/comfy_extras/chainner_models/architecture/face/gfpgan_bilinear_arch.py +389 -0
- hordelib/_comfyui/comfy_extras/chainner_models/architecture/face/gfpganv1_arch.py +566 -0
- hordelib/_comfyui/comfy_extras/chainner_models/architecture/face/gfpganv1_clean_arch.py +370 -0
- hordelib/_comfyui/comfy_extras/chainner_models/architecture/face/restoreformer_arch.py +776 -0
- hordelib/_comfyui/comfy_extras/chainner_models/architecture/face/stylegan2_arch.py +865 -0
- hordelib/_comfyui/comfy_extras/chainner_models/architecture/face/stylegan2_bilinear_arch.py +709 -0
- hordelib/_comfyui/comfy_extras/chainner_models/architecture/face/stylegan2_clean_arch.py +453 -0
- hordelib/_comfyui/comfy_extras/chainner_models/architecture/face/upfirdn2d.py +194 -0
- hordelib/_comfyui/comfy_extras/chainner_models/architecture/timm/LICENSE +201 -0
- hordelib/_comfyui/comfy_extras/chainner_models/architecture/timm/__pycache__/drop.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy_extras/chainner_models/architecture/timm/__pycache__/helpers.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy_extras/chainner_models/architecture/timm/__pycache__/weight_init.cpython-310.pyc +0 -0
- hordelib/_comfyui/comfy_extras/chainner_models/architecture/timm/drop.py +223 -0
- hordelib/_comfyui/comfy_extras/chainner_models/architecture/timm/helpers.py +31 -0
- hordelib/_comfyui/comfy_extras/chainner_models/architecture/timm/weight_init.py +128 -0
- hordelib/_comfyui/comfy_extras/chainner_models/model_loading.py +99 -0
- hordelib/_comfyui/comfy_extras/chainner_models/types.py +69 -0
- hordelib/_comfyui/comfy_extras/nodes_align_your_steps.py +45 -0
- hordelib/_comfyui/comfy_extras/nodes_canny.py +30 -0
- hordelib/_comfyui/comfy_extras/nodes_clip_sdxl.py +56 -0
- hordelib/_comfyui/comfy_extras/nodes_compositing.py +202 -0
- hordelib/_comfyui/comfy_extras/nodes_cond.py +25 -0
- hordelib/_comfyui/comfy_extras/nodes_custom_sampler.py +612 -0
- hordelib/_comfyui/comfy_extras/nodes_differential_diffusion.py +42 -0
- hordelib/_comfyui/comfy_extras/nodes_freelunch.py +113 -0
- hordelib/_comfyui/comfy_extras/nodes_hypernetwork.py +120 -0
- hordelib/_comfyui/comfy_extras/nodes_hypertile.py +83 -0
- hordelib/_comfyui/comfy_extras/nodes_images.py +195 -0
- hordelib/_comfyui/comfy_extras/nodes_ip2p.py +45 -0
- hordelib/_comfyui/comfy_extras/nodes_latent.py +155 -0
- hordelib/_comfyui/comfy_extras/nodes_mask.py +382 -0
- hordelib/_comfyui/comfy_extras/nodes_model_advanced.py +217 -0
- hordelib/_comfyui/comfy_extras/nodes_model_downscale.py +53 -0
- hordelib/_comfyui/comfy_extras/nodes_model_merging.py +339 -0
- hordelib/_comfyui/comfy_extras/nodes_model_merging_model_specific.py +60 -0
- hordelib/_comfyui/comfy_extras/nodes_morphology.py +49 -0
- hordelib/_comfyui/comfy_extras/nodes_pag.py +56 -0
- hordelib/_comfyui/comfy_extras/nodes_perpneg.py +102 -0
- hordelib/_comfyui/comfy_extras/nodes_photomaker.py +187 -0
- hordelib/_comfyui/comfy_extras/nodes_post_processing.py +279 -0
- hordelib/_comfyui/comfy_extras/nodes_rebatch.py +138 -0
- hordelib/_comfyui/comfy_extras/nodes_sag.py +170 -0
- hordelib/_comfyui/comfy_extras/nodes_sdupscale.py +47 -0
- hordelib/_comfyui/comfy_extras/nodes_stable3d.py +143 -0
- hordelib/_comfyui/comfy_extras/nodes_stable_cascade.py +140 -0
- hordelib/_comfyui/comfy_extras/nodes_tomesd.py +177 -0
- hordelib/_comfyui/comfy_extras/nodes_upscale_model.py +71 -0
- hordelib/_comfyui/comfy_extras/nodes_video_model.py +134 -0
- hordelib/_comfyui/comfyui_screenshot.png +0 -0
- hordelib/_comfyui/cuda_malloc.py +90 -0
- hordelib/_comfyui/custom_nodes/__pycache__/websocket_image_save.cpython-310.pyc +0 -0
- hordelib/_comfyui/custom_nodes/example_node.py.example +118 -0
- hordelib/_comfyui/custom_nodes/websocket_image_save.py +45 -0
- hordelib/_comfyui/execution.py +835 -0
- hordelib/_comfyui/extra_model_paths.yaml +4 -0
- hordelib/_comfyui/extra_model_paths.yaml.example +42 -0
- hordelib/_comfyui/folder_paths.py +267 -0
- hordelib/_comfyui/input/example.png +0 -0
- hordelib/_comfyui/latent_preview.py +98 -0
- hordelib/_comfyui/main.py +258 -0
- hordelib/_comfyui/models/checkpoints/put_checkpoints_here +0 -0
- hordelib/_comfyui/models/clip/put_clip_or_text_encoder_models_here +0 -0
- hordelib/_comfyui/models/clip_vision/put_clip_vision_models_here +0 -0
- hordelib/_comfyui/models/configs/anything_v3.yaml +73 -0
- hordelib/_comfyui/models/configs/v1-inference.yaml +70 -0
- hordelib/_comfyui/models/configs/v1-inference_clip_skip_2.yaml +73 -0
- hordelib/_comfyui/models/configs/v1-inference_clip_skip_2_fp16.yaml +74 -0
- hordelib/_comfyui/models/configs/v1-inference_fp16.yaml +71 -0
- hordelib/_comfyui/models/configs/v1-inpainting-inference.yaml +71 -0
- hordelib/_comfyui/models/configs/v2-inference-v.yaml +68 -0
- hordelib/_comfyui/models/configs/v2-inference-v_fp32.yaml +68 -0
- hordelib/_comfyui/models/configs/v2-inference.yaml +67 -0
- hordelib/_comfyui/models/configs/v2-inference_fp32.yaml +67 -0
- hordelib/_comfyui/models/configs/v2-inpainting-inference.yaml +158 -0
- hordelib/_comfyui/models/controlnet/put_controlnets_and_t2i_here +0 -0
- hordelib/_comfyui/models/diffusers/put_diffusers_models_here +0 -0
- hordelib/_comfyui/models/embeddings/put_embeddings_or_textual_inversion_concepts_here +0 -0
- hordelib/_comfyui/models/gligen/put_gligen_models_here +0 -0
- hordelib/_comfyui/models/hypernetworks/put_hypernetworks_here +0 -0
- hordelib/_comfyui/models/loras/put_loras_here +0 -0
- hordelib/_comfyui/models/photomaker/put_photomaker_models_here +0 -0
- hordelib/_comfyui/models/style_models/put_t2i_style_model_here +0 -0
- hordelib/_comfyui/models/unet/put_unet_files_here +0 -0
- hordelib/_comfyui/models/upscale_models/put_esrgan_and_other_upscale_models_here +0 -0
- hordelib/_comfyui/models/vae/put_vae_here +0 -0
- hordelib/_comfyui/models/vae_approx/put_taesd_encoder_pth_and_taesd_decoder_pth_here +0 -0
- hordelib/_comfyui/new_updater.py +35 -0
- hordelib/_comfyui/node_helpers.py +10 -0
- hordelib/_comfyui/nodes.py +1965 -0
- hordelib/_comfyui/notebooks/comfyui_colab.ipynb +329 -0
- hordelib/_comfyui/output/_output_images_will_be_put_here +0 -0
- hordelib/_comfyui/pytest.ini +5 -0
- hordelib/_comfyui/requirements.txt +13 -0
- hordelib/_comfyui/script_examples/basic_api_example.py +120 -0
- hordelib/_comfyui/script_examples/websockets_api_example.py +164 -0
- hordelib/_comfyui/script_examples/websockets_api_example_ws_images.py +159 -0
- hordelib/_comfyui/server.py +646 -0
- hordelib/_comfyui/tests/README.md +29 -0
- hordelib/_comfyui/tests/__init__.py +0 -0
- hordelib/_comfyui/tests/compare/conftest.py +41 -0
- hordelib/_comfyui/tests/compare/test_quality.py +195 -0
- hordelib/_comfyui/tests/conftest.py +36 -0
- hordelib/_comfyui/tests/inference/__init__.py +0 -0
- hordelib/_comfyui/tests/inference/graphs/default_graph_sdxl1_0.json +144 -0
- hordelib/_comfyui/tests/inference/test_inference.py +239 -0
- hordelib/_comfyui/tests-ui/.gitignore +1 -0
- hordelib/_comfyui/tests-ui/afterSetup.js +9 -0
- hordelib/_comfyui/tests-ui/babel.config.json +4 -0
- hordelib/_comfyui/tests-ui/globalSetup.js +14 -0
- hordelib/_comfyui/tests-ui/jest.config.js +11 -0
- hordelib/_comfyui/tests-ui/package-lock.json +5586 -0
- hordelib/_comfyui/tests-ui/package.json +31 -0
- hordelib/_comfyui/tests-ui/setup.js +88 -0
- hordelib/_comfyui/tests-ui/tests/extensions.test.js +196 -0
- hordelib/_comfyui/tests-ui/tests/groupNode.test.js +1005 -0
- hordelib/_comfyui/tests-ui/tests/users.test.js +295 -0
- hordelib/_comfyui/tests-ui/tests/widgetInputs.test.js +557 -0
- hordelib/_comfyui/tests-ui/utils/ezgraph.js +452 -0
- hordelib/_comfyui/tests-ui/utils/index.js +129 -0
- hordelib/_comfyui/tests-ui/utils/litegraph.js +36 -0
- hordelib/_comfyui/tests-ui/utils/nopProxy.js +6 -0
- hordelib/_comfyui/tests-ui/utils/setup.js +81 -0
- hordelib/_comfyui/web/extensions/core/clipspace.js +166 -0
- hordelib/_comfyui/web/extensions/core/colorPalette.js +761 -0
- hordelib/_comfyui/web/extensions/core/contextMenuFilter.js +148 -0
- hordelib/_comfyui/web/extensions/core/dynamicPrompts.js +48 -0
- hordelib/_comfyui/web/extensions/core/editAttention.js +144 -0
- hordelib/_comfyui/web/extensions/core/groupNode.js +1281 -0
- hordelib/_comfyui/web/extensions/core/groupNodeManage.css +149 -0
- hordelib/_comfyui/web/extensions/core/groupNodeManage.js +422 -0
- hordelib/_comfyui/web/extensions/core/groupOptions.js +259 -0
- hordelib/_comfyui/web/extensions/core/invertMenuScrolling.js +36 -0
- hordelib/_comfyui/web/extensions/core/keybinds.js +70 -0
- hordelib/_comfyui/web/extensions/core/linkRenderMode.js +25 -0
- hordelib/_comfyui/web/extensions/core/maskeditor.js +923 -0
- hordelib/_comfyui/web/extensions/core/nodeTemplates.js +412 -0
- hordelib/_comfyui/web/extensions/core/noteNode.js +41 -0
- hordelib/_comfyui/web/extensions/core/rerouteNode.js +274 -0
- hordelib/_comfyui/web/extensions/core/saveImageExtraOutput.js +35 -0
- hordelib/_comfyui/web/extensions/core/simpleTouchSupport.js +102 -0
- hordelib/_comfyui/web/extensions/core/slotDefaults.js +91 -0
- hordelib/_comfyui/web/extensions/core/snapToGrid.js +89 -0
- hordelib/_comfyui/web/extensions/core/undoRedo.js +177 -0
- hordelib/_comfyui/web/extensions/core/uploadImage.js +12 -0
- hordelib/_comfyui/web/extensions/core/widgetInputs.js +800 -0
- hordelib/_comfyui/web/extensions/logging.js.example +55 -0
- hordelib/_comfyui/web/index.html +48 -0
- hordelib/_comfyui/web/jsconfig.json +10 -0
- hordelib/_comfyui/web/lib/litegraph.core.js +14424 -0
- hordelib/_comfyui/web/lib/litegraph.css +693 -0
- hordelib/_comfyui/web/lib/litegraph.extensions.js +21 -0
- hordelib/_comfyui/web/scripts/api.js +422 -0
- hordelib/_comfyui/web/scripts/app.js +2253 -0
- hordelib/_comfyui/web/scripts/defaultGraph.js +119 -0
- hordelib/_comfyui/web/scripts/domWidget.js +326 -0
- hordelib/_comfyui/web/scripts/logging.js +370 -0
- hordelib/_comfyui/web/scripts/pnginfo.js +433 -0
- hordelib/_comfyui/web/scripts/ui/dialog.js +32 -0
- hordelib/_comfyui/web/scripts/ui/draggableList.js +287 -0
- hordelib/_comfyui/web/scripts/ui/imagePreview.js +97 -0
- hordelib/_comfyui/web/scripts/ui/settings.js +317 -0
- hordelib/_comfyui/web/scripts/ui/spinner.css +34 -0
- hordelib/_comfyui/web/scripts/ui/spinner.js +9 -0
- hordelib/_comfyui/web/scripts/ui/toggleSwitch.js +60 -0
- hordelib/_comfyui/web/scripts/ui/userSelection.css +135 -0
- hordelib/_comfyui/web/scripts/ui/userSelection.js +114 -0
- hordelib/_comfyui/web/scripts/ui.js +642 -0
- hordelib/_comfyui/web/scripts/utils.js +88 -0
- hordelib/_comfyui/web/scripts/widgets.js +527 -0
- hordelib/_comfyui/web/style.css +559 -0
- hordelib/_comfyui/web/types/comfy.d.ts +76 -0
- hordelib/_comfyui/web/types/litegraph.d.ts +1506 -0
- hordelib/_comfyui/web/user.css +1 -0
- hordelib/_version.py +16 -0
- hordelib/benchmark.py +252 -0
- hordelib/comfy_horde.py +810 -0
- hordelib/config_path.py +27 -0
- hordelib/consts.py +85 -0
- hordelib/exceptions.py +10 -0
- hordelib/horde.py +1364 -0
- hordelib/initialisation.py +107 -0
- hordelib/install_comfy.py +166 -0
- hordelib/model_database/db_dep.json +98 -0
- hordelib/model_database/db_embeds.json +43 -0
- hordelib/model_database/diffusers.json +31 -0
- hordelib/model_database/med_config.json +21 -0
- hordelib/model_manager/__init__.py +3 -0
- hordelib/model_manager/base.py +756 -0
- hordelib/model_manager/codeformer.py +11 -0
- hordelib/model_manager/compvis.py +50 -0
- hordelib/model_manager/controlnet.py +56 -0
- hordelib/model_manager/diffusers.py +17 -0
- hordelib/model_manager/esrgan.py +15 -0
- hordelib/model_manager/gfpgan.py +15 -0
- hordelib/model_manager/hyper.py +354 -0
- hordelib/model_manager/lora.py +1244 -0
- hordelib/model_manager/safety_checker.py +15 -0
- hordelib/model_manager/ti.py +850 -0
- hordelib/nodes/__init__.py +3 -0
- hordelib/nodes/comfy_controlnet_preprocessors/.gitignore +4 -0
- hordelib/nodes/comfy_controlnet_preprocessors/LICENSE +201 -0
- hordelib/nodes/comfy_controlnet_preprocessors/README.md +91 -0
- hordelib/nodes/comfy_controlnet_preprocessors/__init__.py +364 -0
- hordelib/nodes/comfy_controlnet_preprocessors/binary/__init__.py +15 -0
- hordelib/nodes/comfy_controlnet_preprocessors/canny/__init__.py +6 -0
- hordelib/nodes/comfy_controlnet_preprocessors/color/__init__.py +20 -0
- hordelib/nodes/comfy_controlnet_preprocessors/hed/__init__.py +150 -0
- hordelib/nodes/comfy_controlnet_preprocessors/leres/__init__.py +122 -0
- hordelib/nodes/comfy_controlnet_preprocessors/leres/leres/LICENSE +23 -0
- hordelib/nodes/comfy_controlnet_preprocessors/leres/leres/Resnet.py +199 -0
- hordelib/nodes/comfy_controlnet_preprocessors/leres/leres/Resnext_torch.py +248 -0
- hordelib/nodes/comfy_controlnet_preprocessors/leres/leres/depthmap.py +550 -0
- hordelib/nodes/comfy_controlnet_preprocessors/leres/leres/multi_depth_model_woauxi.py +33 -0
- hordelib/nodes/comfy_controlnet_preprocessors/leres/leres/net_tools.py +51 -0
- hordelib/nodes/comfy_controlnet_preprocessors/leres/leres/network_auxi.py +416 -0
- hordelib/nodes/comfy_controlnet_preprocessors/leres/pix2pix/LICENSE +19 -0
- hordelib/nodes/comfy_controlnet_preprocessors/leres/pix2pix/models/__init__.py +67 -0
- hordelib/nodes/comfy_controlnet_preprocessors/leres/pix2pix/models/base_model.py +244 -0
- hordelib/nodes/comfy_controlnet_preprocessors/leres/pix2pix/models/base_model_hg.py +58 -0
- hordelib/nodes/comfy_controlnet_preprocessors/leres/pix2pix/models/networks.py +623 -0
- hordelib/nodes/comfy_controlnet_preprocessors/leres/pix2pix/models/pix2pix4depth_model.py +155 -0
- hordelib/nodes/comfy_controlnet_preprocessors/leres/pix2pix/options/__init__.py +1 -0
- hordelib/nodes/comfy_controlnet_preprocessors/leres/pix2pix/options/base_options.py +156 -0
- hordelib/nodes/comfy_controlnet_preprocessors/leres/pix2pix/options/test_options.py +22 -0
- hordelib/nodes/comfy_controlnet_preprocessors/leres/pix2pix/util/__init__.py +1 -0
- hordelib/nodes/comfy_controlnet_preprocessors/leres/pix2pix/util/get_data.py +110 -0
- hordelib/nodes/comfy_controlnet_preprocessors/leres/pix2pix/util/guidedfilter.py +47 -0
- hordelib/nodes/comfy_controlnet_preprocessors/leres/pix2pix/util/html.py +86 -0
- hordelib/nodes/comfy_controlnet_preprocessors/leres/pix2pix/util/image_pool.py +54 -0
- hordelib/nodes/comfy_controlnet_preprocessors/leres/pix2pix/util/util.py +105 -0
- hordelib/nodes/comfy_controlnet_preprocessors/leres/pix2pix/util/visualizer.py +166 -0
- hordelib/nodes/comfy_controlnet_preprocessors/midas/__init__.py +39 -0
- hordelib/nodes/comfy_controlnet_preprocessors/midas/api.py +169 -0
- hordelib/nodes/comfy_controlnet_preprocessors/midas/midas/__init__.py +0 -0
- hordelib/nodes/comfy_controlnet_preprocessors/midas/midas/base_model.py +16 -0
- hordelib/nodes/comfy_controlnet_preprocessors/midas/midas/blocks.py +341 -0
- hordelib/nodes/comfy_controlnet_preprocessors/midas/midas/dpt_depth.py +108 -0
- hordelib/nodes/comfy_controlnet_preprocessors/midas/midas/midas_net.py +76 -0
- hordelib/nodes/comfy_controlnet_preprocessors/midas/midas/midas_net_custom.py +128 -0
- hordelib/nodes/comfy_controlnet_preprocessors/midas/midas/transforms.py +234 -0
- hordelib/nodes/comfy_controlnet_preprocessors/midas/midas/vit.py +491 -0
- hordelib/nodes/comfy_controlnet_preprocessors/midas/utils.py +189 -0
- hordelib/nodes/comfy_controlnet_preprocessors/mlsd/__init__.py +41 -0
- hordelib/nodes/comfy_controlnet_preprocessors/mlsd/models/mbv2_mlsd_large.py +292 -0
- hordelib/nodes/comfy_controlnet_preprocessors/mlsd/models/mbv2_mlsd_tiny.py +275 -0
- hordelib/nodes/comfy_controlnet_preprocessors/mlsd/utils.py +581 -0
- hordelib/nodes/comfy_controlnet_preprocessors/mp_face_mesh/__init__.py +156 -0
- hordelib/nodes/comfy_controlnet_preprocessors/mp_pose_hand/__init__.py +106 -0
- hordelib/nodes/comfy_controlnet_preprocessors/openpose/__init__.py +46 -0
- hordelib/nodes/comfy_controlnet_preprocessors/openpose/body.py +207 -0
- hordelib/nodes/comfy_controlnet_preprocessors/openpose/hand.py +71 -0
- hordelib/nodes/comfy_controlnet_preprocessors/openpose/model.py +217 -0
- hordelib/nodes/comfy_controlnet_preprocessors/openpose/util.py +164 -0
- hordelib/nodes/comfy_controlnet_preprocessors/pidinet/__init__.py +41 -0
- hordelib/nodes/comfy_controlnet_preprocessors/pidinet/model.py +638 -0
- hordelib/nodes/comfy_controlnet_preprocessors/requirements.txt +13 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/__init__.py +30 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/configs/_base_/datasets/ade20k.py +54 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/configs/_base_/datasets/chase_db1.py +59 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/configs/_base_/datasets/cityscapes.py +54 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/configs/_base_/datasets/cityscapes_769x769.py +35 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/configs/_base_/datasets/drive.py +59 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/configs/_base_/datasets/hrf.py +59 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/configs/_base_/datasets/pascal_context.py +60 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/configs/_base_/datasets/pascal_context_59.py +60 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/configs/_base_/datasets/pascal_voc12.py +57 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/configs/_base_/datasets/pascal_voc12_aug.py +9 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/configs/_base_/datasets/stare.py +59 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/configs/_base_/default_runtime.py +14 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/configs/_base_/models/ann_r50-d8.py +46 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/configs/_base_/models/apcnet_r50-d8.py +44 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/configs/_base_/models/ccnet_r50-d8.py +44 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/configs/_base_/models/cgnet.py +35 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/configs/_base_/models/danet_r50-d8.py +44 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/configs/_base_/models/deeplabv3_r50-d8.py +44 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/configs/_base_/models/deeplabv3_unet_s5-d16.py +50 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/configs/_base_/models/deeplabv3plus_r50-d8.py +46 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/configs/_base_/models/dmnet_r50-d8.py +44 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/configs/_base_/models/dnl_r50-d8.py +46 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/configs/_base_/models/emanet_r50-d8.py +47 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/configs/_base_/models/encnet_r50-d8.py +48 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/configs/_base_/models/fast_scnn.py +57 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/configs/_base_/models/fcn_hr18.py +52 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/configs/_base_/models/fcn_r50-d8.py +45 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/configs/_base_/models/fcn_unet_s5-d16.py +51 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/configs/_base_/models/fpn_r50.py +36 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/configs/_base_/models/fpn_uniformer.py +35 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/configs/_base_/models/gcnet_r50-d8.py +46 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/configs/_base_/models/lraspp_m-v3-d8.py +25 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/configs/_base_/models/nonlocal_r50-d8.py +46 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/configs/_base_/models/ocrnet_hr18.py +68 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/configs/_base_/models/ocrnet_r50-d8.py +47 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/configs/_base_/models/pointrend_r50.py +56 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/configs/_base_/models/psanet_r50-d8.py +49 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/configs/_base_/models/pspnet_r50-d8.py +44 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/configs/_base_/models/pspnet_unet_s5-d16.py +50 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/configs/_base_/models/upernet_r50.py +44 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/configs/_base_/models/upernet_uniformer.py +43 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/configs/_base_/schedules/schedule_160k.py +9 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/configs/_base_/schedules/schedule_20k.py +9 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/configs/_base_/schedules/schedule_40k.py +9 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/configs/_base_/schedules/schedule_80k.py +9 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/exp/upernet_global_small/config.py +38 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/exp/upernet_global_small/run.sh +10 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/exp/upernet_global_small/test.sh +10 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/exp/upernet_global_small/test_config_g.py +38 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/exp/upernet_global_small/test_config_h32.py +39 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/exp/upernet_global_small/test_config_w32.py +39 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/__init__.py +15 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/arraymisc/__init__.py +4 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/arraymisc/quantization.py +55 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/cnn/__init__.py +41 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/cnn/alexnet.py +61 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/cnn/bricks/__init__.py +35 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/cnn/bricks/activation.py +92 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/cnn/bricks/context_block.py +125 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/cnn/bricks/conv.py +44 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/cnn/bricks/conv2d_adaptive_padding.py +62 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/cnn/bricks/conv_module.py +206 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/cnn/bricks/conv_ws.py +148 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/cnn/bricks/depthwise_separable_conv_module.py +96 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/cnn/bricks/drop.py +64 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/cnn/bricks/generalized_attention.py +412 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/cnn/bricks/hsigmoid.py +34 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/cnn/bricks/hswish.py +29 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/cnn/bricks/non_local.py +306 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/cnn/bricks/norm.py +147 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/cnn/bricks/padding.py +36 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/cnn/bricks/plugin.py +88 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/cnn/bricks/registry.py +17 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/cnn/bricks/scale.py +21 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/cnn/bricks/swish.py +25 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/cnn/bricks/transformer.py +605 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/cnn/bricks/upsample.py +84 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/cnn/bricks/wrappers.py +180 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/cnn/builder.py +29 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/cnn/resnet.py +316 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/cnn/utils/__init__.py +19 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/cnn/utils/flops_counter.py +578 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/cnn/utils/fuse_conv_bn.py +59 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/cnn/utils/sync_bn.py +59 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/cnn/utils/weight_init.py +643 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/cnn/vgg.py +175 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/engine/__init__.py +8 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/engine/test.py +195 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/fileio/__init__.py +11 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/fileio/file_client.py +1127 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/fileio/handlers/__init__.py +7 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/fileio/handlers/base.py +30 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/fileio/handlers/json_handler.py +36 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/fileio/handlers/pickle_handler.py +28 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/fileio/handlers/yaml_handler.py +24 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/fileio/io.py +151 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/fileio/parse.py +97 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/image/__init__.py +28 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/image/colorspace.py +306 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/image/geometric.py +728 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/image/io.py +256 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/image/misc.py +43 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/image/photometric.py +428 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/model_zoo/deprecated.json +6 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/model_zoo/mmcls.json +31 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/model_zoo/open_mmlab.json +50 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/ops/__init__.py +81 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/ops/assign_score_withk.py +123 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/ops/ball_query.py +55 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/ops/bbox.py +72 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/ops/border_align.py +109 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/ops/box_iou_rotated.py +45 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/ops/carafe.py +287 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/ops/cc_attention.py +81 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/ops/contour_expand.py +49 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/ops/corner_pool.py +161 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/ops/correlation.py +196 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/ops/deform_conv.py +406 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/ops/deform_roi_pool.py +204 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/ops/deprecated_wrappers.py +43 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/ops/focal_loss.py +212 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/ops/furthest_point_sample.py +83 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/ops/fused_bias_leakyrelu.py +268 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/ops/gather_points.py +57 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/ops/group_points.py +224 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/ops/info.py +36 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/ops/iou3d.py +85 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/ops/knn.py +77 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/ops/masked_conv.py +111 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/ops/merge_cells.py +149 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/ops/modulated_deform_conv.py +280 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/ops/multi_scale_deform_attn.py +348 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/ops/nms.py +383 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/ops/pixel_group.py +75 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/ops/point_sample.py +317 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/ops/points_in_boxes.py +133 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/ops/points_sampler.py +168 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/ops/psa_mask.py +92 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/ops/roi_align.py +223 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/ops/roi_align_rotated.py +177 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/ops/roi_pool.py +86 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/ops/roiaware_pool3d.py +100 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/ops/roipoint_pool3d.py +77 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/ops/saconv.py +128 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/ops/scatter_points.py +135 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/ops/sync_bn.py +288 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/ops/three_interpolate.py +68 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/ops/three_nn.py +51 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/ops/tin_shift.py +68 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/ops/upfirdn2d.py +320 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/ops/voxelize.py +132 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/parallel/__init__.py +13 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/parallel/_functions.py +79 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/parallel/collate.py +84 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/parallel/data_container.py +89 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/parallel/data_parallel.py +89 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/parallel/distributed.py +105 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/parallel/distributed_deprecated.py +57 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/parallel/registry.py +9 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/parallel/scatter_gather.py +59 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/parallel/utils.py +20 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/runner/__init__.py +47 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/runner/base_module.py +194 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/runner/base_runner.py +515 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/runner/builder.py +22 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/runner/checkpoint.py +670 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/runner/default_constructor.py +43 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/runner/dist_utils.py +164 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/runner/epoch_based_runner.py +172 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/runner/fp16_utils.py +388 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/runner/hooks/__init__.py +29 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/runner/hooks/checkpoint.py +156 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/runner/hooks/closure.py +11 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/runner/hooks/ema.py +89 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/runner/hooks/evaluation.py +492 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/runner/hooks/hook.py +101 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/runner/hooks/iter_timer.py +18 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/runner/hooks/logger/__init__.py +15 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/runner/hooks/logger/base.py +166 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/runner/hooks/logger/dvclive.py +58 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/runner/hooks/logger/mlflow.py +78 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/runner/hooks/logger/neptune.py +82 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/runner/hooks/logger/pavi.py +113 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/runner/hooks/logger/tensorboard.py +49 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/runner/hooks/logger/text.py +235 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/runner/hooks/logger/wandb.py +56 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/runner/hooks/lr_updater.py +615 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/runner/hooks/memory.py +25 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/runner/hooks/momentum_updater.py +421 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/runner/hooks/optimizer.py +457 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/runner/hooks/profiler.py +180 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/runner/hooks/sampler_seed.py +20 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/runner/hooks/sync_buffer.py +22 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/runner/iter_based_runner.py +256 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/runner/log_buffer.py +41 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/runner/optimizer/__init__.py +9 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/runner/optimizer/builder.py +41 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/runner/optimizer/default_constructor.py +245 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/runner/priority.py +60 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/runner/utils.py +92 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/utils/__init__.py +69 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/utils/config.py +649 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/utils/env.py +99 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/utils/ext_loader.py +71 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/utils/logging.py +110 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/utils/misc.py +377 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/utils/parrots_jit.py +41 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/utils/parrots_wrapper.py +107 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/utils/path.py +101 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/utils/progressbar.py +208 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/utils/registry.py +304 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/utils/testing.py +140 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/utils/timer.py +117 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/utils/trace.py +24 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/utils/version_utils.py +90 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/version.py +35 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/video/__init__.py +11 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/video/io.py +310 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/video/optflow.py +248 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/video/processing.py +128 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/visualization/__init__.py +9 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/visualization/color.py +52 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/visualization/image.py +144 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/visualization/optflow.py +109 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv_custom/__init__.py +5 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv_custom/checkpoint.py +477 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/apis/__init__.py +9 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/apis/inference.py +126 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/apis/test.py +216 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/apis/train.py +109 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/core/__init__.py +3 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/core/evaluation/__init__.py +8 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/core/evaluation/class_names.py +458 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/core/evaluation/eval_hooks.py +108 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/core/evaluation/metrics.py +296 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/core/seg/__init__.py +4 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/core/seg/builder.py +9 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/core/seg/sampler/__init__.py +4 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/core/seg/sampler/base_pixel_sampler.py +12 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/core/seg/sampler/ohem_pixel_sampler.py +76 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/core/utils/__init__.py +3 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/core/utils/misc.py +17 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/datasets/__init__.py +19 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/datasets/ade.py +84 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/datasets/builder.py +175 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/datasets/chase_db1.py +27 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/datasets/cityscapes.py +240 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/datasets/custom.py +372 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/datasets/dataset_wrappers.py +50 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/datasets/drive.py +27 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/datasets/hrf.py +27 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/datasets/pascal_context.py +103 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/datasets/pipelines/__init__.py +16 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/datasets/pipelines/compose.py +51 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/datasets/pipelines/formating.py +293 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/datasets/pipelines/loading.py +144 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/datasets/pipelines/test_time_aug.py +118 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/datasets/pipelines/transforms.py +838 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/datasets/stare.py +27 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/datasets/voc.py +29 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/__init__.py +12 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/backbones/__init__.py +17 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/backbones/cgnet.py +360 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/backbones/fast_scnn.py +353 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/backbones/hrnet.py +535 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/backbones/mobilenet_v2.py +182 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/backbones/mobilenet_v3.py +266 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/backbones/resnest.py +299 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/backbones/resnet.py +649 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/backbones/resnext.py +124 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/backbones/unet.py +450 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/backbones/uniformer.py +552 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/backbones/vit.py +442 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/builder.py +44 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/decode_heads/__init__.py +28 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/decode_heads/ann_head.py +259 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/decode_heads/apc_head.py +141 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/decode_heads/aspp_head.py +106 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/decode_heads/cascade_decode_head.py +57 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/decode_heads/cc_head.py +41 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/decode_heads/da_head.py +173 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/decode_heads/decode_head.py +226 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/decode_heads/dm_head.py +136 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/decode_heads/dnl_head.py +125 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/decode_heads/ema_head.py +155 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/decode_heads/enc_head.py +174 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/decode_heads/fcn_head.py +81 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/decode_heads/fpn_head.py +60 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/decode_heads/gc_head.py +41 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/decode_heads/lraspp_head.py +77 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/decode_heads/nl_head.py +46 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/decode_heads/ocr_head.py +124 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/decode_heads/point_head.py +312 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/decode_heads/psa_head.py +186 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/decode_heads/psp_head.py +101 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/decode_heads/sep_aspp_head.py +82 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/decode_heads/sep_fcn_head.py +54 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/decode_heads/uper_head.py +118 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/losses/__init__.py +12 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/losses/accuracy.py +78 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/losses/cross_entropy_loss.py +198 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/losses/dice_loss.py +119 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/losses/lovasz_loss.py +303 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/losses/utils.py +116 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/necks/__init__.py +4 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/necks/fpn.py +210 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/necks/multilevel_neck.py +53 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/segmentors/__init__.py +5 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/segmentors/base.py +255 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/segmentors/cascade_encoder_decoder.py +95 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/segmentors/encoder_decoder.py +275 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/utils/__init__.py +13 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/utils/drop.py +31 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/utils/inverted_residual.py +217 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/utils/make_divisible.py +27 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/utils/res_layer.py +95 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/utils/se_layer.py +60 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/utils/self_attention_block.py +161 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/utils/up_conv_block.py +106 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/utils/weight_init.py +62 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/ops/__init__.py +4 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/ops/encoding.py +74 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/ops/wrappers.py +50 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/utils/__init__.py +4 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/utils/collect_env.py +17 -0
- hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/utils/logger.py +27 -0
- hordelib/nodes/comfy_controlnet_preprocessors/util.py +161 -0
- hordelib/nodes/facerestore/__init__.py +204 -0
- hordelib/nodes/facerestore/facelib/__init__.py +0 -0
- hordelib/nodes/facerestore/facelib/detection/__init__.py +116 -0
- hordelib/nodes/facerestore/facelib/detection/align_trans.py +219 -0
- hordelib/nodes/facerestore/facelib/detection/matlab_cp2tform.py +317 -0
- hordelib/nodes/facerestore/facelib/detection/retinaface/retinaface.py +420 -0
- hordelib/nodes/facerestore/facelib/detection/retinaface/retinaface_net.py +196 -0
- hordelib/nodes/facerestore/facelib/detection/retinaface/retinaface_utils.py +421 -0
- hordelib/nodes/facerestore/facelib/detection/yolov5face/__init__.py +0 -0
- hordelib/nodes/facerestore/facelib/detection/yolov5face/face_detector.py +175 -0
- hordelib/nodes/facerestore/facelib/detection/yolov5face/models/__init__.py +0 -0
- hordelib/nodes/facerestore/facelib/detection/yolov5face/models/common.py +324 -0
- hordelib/nodes/facerestore/facelib/detection/yolov5face/models/experimental.py +52 -0
- hordelib/nodes/facerestore/facelib/detection/yolov5face/models/yolo.py +300 -0
- hordelib/nodes/facerestore/facelib/detection/yolov5face/models/yolov5l.yaml +47 -0
- hordelib/nodes/facerestore/facelib/detection/yolov5face/models/yolov5n.yaml +45 -0
- hordelib/nodes/facerestore/facelib/detection/yolov5face/utils/__init__.py +0 -0
- hordelib/nodes/facerestore/facelib/detection/yolov5face/utils/autoanchor.py +12 -0
- hordelib/nodes/facerestore/facelib/detection/yolov5face/utils/datasets.py +35 -0
- hordelib/nodes/facerestore/facelib/detection/yolov5face/utils/extract_ckpt.py +5 -0
- hordelib/nodes/facerestore/facelib/detection/yolov5face/utils/general.py +271 -0
- hordelib/nodes/facerestore/facelib/detection/yolov5face/utils/torch_utils.py +40 -0
- hordelib/nodes/facerestore/facelib/parsing/__init__.py +28 -0
- hordelib/nodes/facerestore/facelib/parsing/bisenet.py +140 -0
- hordelib/nodes/facerestore/facelib/parsing/parsenet.py +194 -0
- hordelib/nodes/facerestore/facelib/parsing/resnet.py +69 -0
- hordelib/nodes/facerestore/facelib/utils/__init__.py +7 -0
- hordelib/nodes/facerestore/facelib/utils/face_restoration_helper.py +561 -0
- hordelib/nodes/facerestore/facelib/utils/face_utils.py +283 -0
- hordelib/nodes/facerestore/facelib/utils/misc.py +143 -0
- hordelib/nodes/node_controlnet_model_loader.py +35 -0
- hordelib/nodes/node_image_loader.py +42 -0
- hordelib/nodes/node_image_output.py +56 -0
- hordelib/nodes/node_lora_loader.py +73 -0
- hordelib/nodes/node_model_loader.py +147 -0
- hordelib/nodes/node_upscale_model_loader.py +29 -0
- hordelib/pipeline_designs/pipeline_controlnet.json +940 -0
- hordelib/pipeline_designs/pipeline_controlnet_annotator.json +537 -0
- hordelib/pipeline_designs/pipeline_controlnet_hires_fix.json +1085 -0
- hordelib/pipeline_designs/pipeline_image_facefix.json +177 -0
- hordelib/pipeline_designs/pipeline_image_upscale.json +173 -0
- hordelib/pipeline_designs/pipeline_stable_cascade.json +811 -0
- hordelib/pipeline_designs/pipeline_stable_cascade_remix.json +780 -0
- hordelib/pipeline_designs/pipeline_stable_diffusion.json +563 -0
- hordelib/pipeline_designs/pipeline_stable_diffusion_hires_fix.json +756 -0
- hordelib/pipeline_designs/pipeline_stable_diffusion_img2img_mask.json +625 -0
- hordelib/pipeline_designs/pipeline_stable_diffusion_paint.json +581 -0
- hordelib/pipelines/pipeline_controlnet.json +212 -0
- hordelib/pipelines/pipeline_controlnet_annotator.json +110 -0
- hordelib/pipelines/pipeline_controlnet_hires_fix.json +252 -0
- hordelib/pipelines/pipeline_image_facefix.json +39 -0
- hordelib/pipelines/pipeline_image_upscale.json +38 -0
- hordelib/pipelines/pipeline_stable_cascade.json +215 -0
- hordelib/pipelines/pipeline_stable_cascade_remix.json +207 -0
- hordelib/pipelines/pipeline_stable_diffusion.json +127 -0
- hordelib/pipelines/pipeline_stable_diffusion_hires_fix.json +167 -0
- hordelib/pipelines/pipeline_stable_diffusion_img2img_mask.json +140 -0
- hordelib/pipelines/pipeline_stable_diffusion_paint.json +132 -0
- hordelib/preload.py +53 -0
- hordelib/py.typed +0 -0
- hordelib/pyinstaller_hooks/__init__.py +0 -0
- hordelib/pyinstaller_hooks/hook-hordelib.horde.py +53 -0
- hordelib/safety.py +0 -0
- hordelib/safety_checker.py +18 -0
- hordelib/settings.py +149 -0
- hordelib/shared_model_manager.py +229 -0
- hordelib/train.py +384 -0
- hordelib/utils/__init__.py +0 -0
- hordelib/utils/distance.py +333 -0
- hordelib/utils/dynamicprompt.py +26 -0
- hordelib/utils/gpuinfo.py +199 -0
- hordelib/utils/image_utils.py +160 -0
- hordelib/utils/ioredirect.py +160 -0
- hordelib/utils/logger.py +167 -0
- hordelib/utils/sanitizer.py +38 -0
- hordelib/utils/switch.py +12 -0
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
# initialisation.py
|
|
2
|
+
# Initialise hordelib.
|
|
3
|
+
import os
|
|
4
|
+
import shutil
|
|
5
|
+
import sys
|
|
6
|
+
|
|
7
|
+
from loguru import logger
|
|
8
|
+
|
|
9
|
+
from hordelib import install_comfy
|
|
10
|
+
from hordelib.config_path import get_hordelib_path, set_system_path
|
|
11
|
+
from hordelib.consts import (
|
|
12
|
+
COMFYUI_VERSION,
|
|
13
|
+
RELEASE_VERSION,
|
|
14
|
+
)
|
|
15
|
+
from hordelib.utils.logger import HordeLog
|
|
16
|
+
|
|
17
|
+
_is_initialised = False
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
def initialise(
|
|
21
|
+
# model_managers_to_load: dict[MODEL_CATEGORY_NAMES, bool] = DEFAULT_MODEL_MANAGERS,
|
|
22
|
+
*,
|
|
23
|
+
setup_logging: bool | None = True,
|
|
24
|
+
clear_logs=False,
|
|
25
|
+
logging_verbosity=3,
|
|
26
|
+
process_id: int | None = None,
|
|
27
|
+
force_normal_vram_mode: bool = True,
|
|
28
|
+
extra_comfyui_args: list[str] | None = None,
|
|
29
|
+
disable_smart_memory: bool = False,
|
|
30
|
+
):
|
|
31
|
+
"""Initialise hordelib. This is required before using any other hordelib functions.
|
|
32
|
+
|
|
33
|
+
Args:
|
|
34
|
+
setup_logging (bool | None, optional): Whether to use hordelib's loguru logging system. Defaults to True.
|
|
35
|
+
clear_logs (bool, optional): Whether logs should be purged when loading loguru. Defaults to False.
|
|
36
|
+
logging_verbosity (int, optional): The message level of logging. Defaults to 3.
|
|
37
|
+
process_id (int | None, optional): If this is is being used in a child processes, the identifier. \
|
|
38
|
+
Defaults to None.
|
|
39
|
+
force_low_vram (bool, optional): Whether to forcibly disable ComfyUI's high/med vram modes. Defaults to False.
|
|
40
|
+
extra_comfyui_args (list[str] | None, optional): Any additional CLI args for comfyui that should be used. \
|
|
41
|
+
Defaults to None.
|
|
42
|
+
"""
|
|
43
|
+
global _is_initialised
|
|
44
|
+
|
|
45
|
+
# Wipe existing logs if requested
|
|
46
|
+
if clear_logs and os.path.exists("./logs"):
|
|
47
|
+
shutil.rmtree("./logs")
|
|
48
|
+
|
|
49
|
+
if setup_logging is not None:
|
|
50
|
+
# Setup logging if requested
|
|
51
|
+
HordeLog.initialise(
|
|
52
|
+
setup_logging=setup_logging,
|
|
53
|
+
process_id=process_id,
|
|
54
|
+
verbosity_count=logging_verbosity,
|
|
55
|
+
)
|
|
56
|
+
|
|
57
|
+
# If developer mode, don't permit some things
|
|
58
|
+
if not RELEASE_VERSION and " " in str(get_hordelib_path()):
|
|
59
|
+
# Our runtime patching can't handle this
|
|
60
|
+
raise Exception(
|
|
61
|
+
"Do not run this project in developer mode from a path that " "contains spaces in directory names.",
|
|
62
|
+
)
|
|
63
|
+
|
|
64
|
+
# Ensure we have ComfyUI
|
|
65
|
+
logger.debug("Clearing command line args in sys.argv before ComfyUI load")
|
|
66
|
+
sys_arg_bkp = sys.argv.copy()
|
|
67
|
+
sys.argv = sys.argv[:1]
|
|
68
|
+
installer = install_comfy.Installer()
|
|
69
|
+
installer.install(COMFYUI_VERSION)
|
|
70
|
+
|
|
71
|
+
# Modify python path to include comfyui
|
|
72
|
+
set_system_path()
|
|
73
|
+
|
|
74
|
+
import hordelib.comfy_horde
|
|
75
|
+
|
|
76
|
+
hordelib.comfy_horde.do_comfy_import(
|
|
77
|
+
force_normal_vram_mode=force_normal_vram_mode,
|
|
78
|
+
extra_comfyui_args=extra_comfyui_args,
|
|
79
|
+
disable_smart_memory=disable_smart_memory,
|
|
80
|
+
)
|
|
81
|
+
|
|
82
|
+
vram_on_start_free = hordelib.comfy_horde.get_torch_free_vram_mb()
|
|
83
|
+
vram_total = hordelib.comfy_horde.get_torch_total_vram_mb()
|
|
84
|
+
vram_percent_used = round((vram_total - vram_on_start_free) / vram_total * 100, 2)
|
|
85
|
+
message_addendum = "This will almost certainly cause issues. "
|
|
86
|
+
message_addendum += "It is strongly recommended you close other applications before running the worker."
|
|
87
|
+
if vram_on_start_free < 2000:
|
|
88
|
+
logger.warning(f"You have less than 2GB of VRAM free. {message_addendum}")
|
|
89
|
+
|
|
90
|
+
if vram_percent_used > 60:
|
|
91
|
+
logger.warning(f"There was already {vram_percent_used}% of VRAM used on start. {message_addendum}")
|
|
92
|
+
|
|
93
|
+
if vram_total < 4000:
|
|
94
|
+
logger.warning("You have less than 4GB of VRAM total. It is likely that generations will happen very slowly.")
|
|
95
|
+
|
|
96
|
+
# Initialise model manager
|
|
97
|
+
from hordelib.shared_model_manager import SharedModelManager
|
|
98
|
+
|
|
99
|
+
SharedModelManager()
|
|
100
|
+
|
|
101
|
+
sys.argv = sys_arg_bkp
|
|
102
|
+
|
|
103
|
+
_is_initialised = True
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
def is_initialised():
|
|
107
|
+
return _is_initialised
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
# install.py
|
|
2
|
+
# Fetch a specific version of the upstream ComfyUI project
|
|
3
|
+
import os
|
|
4
|
+
import subprocess
|
|
5
|
+
from pathlib import Path
|
|
6
|
+
|
|
7
|
+
from loguru import logger
|
|
8
|
+
|
|
9
|
+
from hordelib.config_path import get_comfyui_path, get_hordelib_path
|
|
10
|
+
from hordelib.consts import RELEASE_VERSION
|
|
11
|
+
|
|
12
|
+
CUSTOM_NODE_YAML = """
|
|
13
|
+
hordelib:
|
|
14
|
+
base_path: ../
|
|
15
|
+
custom_nodes: hordelib/nodes
|
|
16
|
+
"""
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class Installer:
|
|
20
|
+
"""Handles the installation of ComfyUI."""
|
|
21
|
+
|
|
22
|
+
@classmethod
|
|
23
|
+
def get_commit_hash(cls) -> str:
|
|
24
|
+
if RELEASE_VERSION:
|
|
25
|
+
return ""
|
|
26
|
+
head_file = get_comfyui_path() / ".git" / "HEAD"
|
|
27
|
+
if not head_file.exists():
|
|
28
|
+
return "NOT FOUND"
|
|
29
|
+
try:
|
|
30
|
+
with open(head_file) as f:
|
|
31
|
+
head_contents = f.read().strip()
|
|
32
|
+
|
|
33
|
+
if not head_contents.startswith("ref:"):
|
|
34
|
+
return head_contents
|
|
35
|
+
|
|
36
|
+
ref_path = os.path.join(".git", *head_contents[5:].split("/"))
|
|
37
|
+
|
|
38
|
+
with open(ref_path) as f:
|
|
39
|
+
return f.read().strip()
|
|
40
|
+
|
|
41
|
+
except Exception:
|
|
42
|
+
return ""
|
|
43
|
+
|
|
44
|
+
@classmethod
|
|
45
|
+
def _run_get_result(cls, command, directory=None):
|
|
46
|
+
if directory is None:
|
|
47
|
+
directory = get_hordelib_path()
|
|
48
|
+
# Don't if we're a release version
|
|
49
|
+
if RELEASE_VERSION:
|
|
50
|
+
return None
|
|
51
|
+
return subprocess.run(
|
|
52
|
+
command,
|
|
53
|
+
shell=True,
|
|
54
|
+
text=True,
|
|
55
|
+
capture_output=True,
|
|
56
|
+
cwd=str(directory),
|
|
57
|
+
)
|
|
58
|
+
|
|
59
|
+
@classmethod
|
|
60
|
+
def _run(cls, command, directory=None) -> tuple[bool, str] | None:
|
|
61
|
+
if directory is None:
|
|
62
|
+
directory = get_hordelib_path()
|
|
63
|
+
# Don't if we're a release version
|
|
64
|
+
if RELEASE_VERSION:
|
|
65
|
+
return None
|
|
66
|
+
try:
|
|
67
|
+
result = cls._run_get_result(command, str(directory))
|
|
68
|
+
except Exception as Ex:
|
|
69
|
+
logger.error(Ex)
|
|
70
|
+
return None
|
|
71
|
+
if result.returncode:
|
|
72
|
+
logger.error(result.stderr)
|
|
73
|
+
return None
|
|
74
|
+
return (True, result.stdout)
|
|
75
|
+
|
|
76
|
+
@classmethod
|
|
77
|
+
def install(cls, comfy_version: str) -> None:
|
|
78
|
+
# Don't if we're a release version
|
|
79
|
+
if RELEASE_VERSION:
|
|
80
|
+
return
|
|
81
|
+
# Install if ComfyUI is missing completely
|
|
82
|
+
if not get_comfyui_path().exists():
|
|
83
|
+
install_dir = get_comfyui_path().parent
|
|
84
|
+
cls._run(
|
|
85
|
+
"git clone https://github.com/comfyanonymous/ComfyUI.git",
|
|
86
|
+
install_dir,
|
|
87
|
+
)
|
|
88
|
+
cls._run(f"git checkout {comfy_version}", str(get_comfyui_path()))
|
|
89
|
+
# Apply our patches to comfyui
|
|
90
|
+
cls.apply_patch(get_hordelib_path() / "install_comfy.patch")
|
|
91
|
+
return
|
|
92
|
+
|
|
93
|
+
# If it's installed, is it up to date?
|
|
94
|
+
version = cls.get_commit_hash()
|
|
95
|
+
if version == comfy_version:
|
|
96
|
+
# Yes, all done
|
|
97
|
+
return
|
|
98
|
+
|
|
99
|
+
# Update comfyui
|
|
100
|
+
logger.info(
|
|
101
|
+
f"Current ComfyUI version {version[:8]} requires {comfy_version[:8]}",
|
|
102
|
+
)
|
|
103
|
+
cls.reset_comfyui_to_version(comfy_version)
|
|
104
|
+
# Apply our patches to comfyui
|
|
105
|
+
cls.apply_patch(get_hordelib_path() / "install_comfy.patch")
|
|
106
|
+
|
|
107
|
+
@classmethod
|
|
108
|
+
def remove_local_comfyui_changes(cls):
|
|
109
|
+
# Don't if we're a release version
|
|
110
|
+
if RELEASE_VERSION:
|
|
111
|
+
return
|
|
112
|
+
cls._run("git reset --hard", get_comfyui_path())
|
|
113
|
+
cls._run("git clean -fd", get_comfyui_path())
|
|
114
|
+
|
|
115
|
+
@classmethod
|
|
116
|
+
def reset_comfyui_to_version(cls, comfy_version):
|
|
117
|
+
# Don't if we're a release version
|
|
118
|
+
if RELEASE_VERSION:
|
|
119
|
+
return
|
|
120
|
+
# Try hard to ensure we reset everything even if we have been
|
|
121
|
+
# hacking on ComfyUI or are in a weird repo state
|
|
122
|
+
cls.remove_local_comfyui_changes()
|
|
123
|
+
cls._run("git checkout master", get_comfyui_path())
|
|
124
|
+
cls._run("git pull", get_comfyui_path())
|
|
125
|
+
cls._run(f"git checkout {comfy_version}", get_comfyui_path())
|
|
126
|
+
|
|
127
|
+
@classmethod
|
|
128
|
+
def apply_patch(cls, patch_file: Path, skip_dot_patch: bool = True):
|
|
129
|
+
# Don't if we're a release version
|
|
130
|
+
if RELEASE_VERSION:
|
|
131
|
+
return
|
|
132
|
+
if not skip_dot_patch: # FIXME
|
|
133
|
+
# Check if the patch has already been applied
|
|
134
|
+
result = cls._run_get_result(
|
|
135
|
+
f"git apply --check {patch_file}",
|
|
136
|
+
get_comfyui_path(),
|
|
137
|
+
)
|
|
138
|
+
could_apply = not result.returncode
|
|
139
|
+
result = cls._run_get_result(
|
|
140
|
+
f"git apply --reverse --check {patch_file}",
|
|
141
|
+
get_comfyui_path(),
|
|
142
|
+
)
|
|
143
|
+
could_reverse = not result.returncode
|
|
144
|
+
if could_apply:
|
|
145
|
+
# Apply the patch
|
|
146
|
+
logger.info(f"Applying patch {patch_file}")
|
|
147
|
+
result = cls._run_get_result(f"git apply {patch_file}", get_comfyui_path())
|
|
148
|
+
logger.debug(f"{result}")
|
|
149
|
+
elif could_reverse:
|
|
150
|
+
# Patch is already applied, all is well
|
|
151
|
+
logger.info(f"Already applied patch {patch_file}")
|
|
152
|
+
else:
|
|
153
|
+
# Couldn't apply or reverse? That's not so good, but maybe we are partially applied?
|
|
154
|
+
# Reset local changes
|
|
155
|
+
cls.remove_local_comfyui_changes()
|
|
156
|
+
# Try to apply the patch
|
|
157
|
+
logger.info(f"Applying patch {patch_file}")
|
|
158
|
+
result = cls._run_get_result(f"git apply {patch_file}", get_comfyui_path())
|
|
159
|
+
logger.debug(f"{result}")
|
|
160
|
+
if result.returncode:
|
|
161
|
+
logger.error(f"Could not apply patch {patch_file}")
|
|
162
|
+
|
|
163
|
+
# Drop in custom node config
|
|
164
|
+
config_file = os.path.join(get_comfyui_path(), "extra_model_paths.yaml")
|
|
165
|
+
with open(config_file, "w") as outfile:
|
|
166
|
+
outfile.write(CUSTOM_NODE_YAML)
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
{
|
|
2
|
+
"sd-concepts-library": {
|
|
3
|
+
"type": "dependency",
|
|
4
|
+
"optional": true,
|
|
5
|
+
"config": {
|
|
6
|
+
"files": [
|
|
7
|
+
{
|
|
8
|
+
"path": "models/custom/sd-concepts-library/"
|
|
9
|
+
}
|
|
10
|
+
],
|
|
11
|
+
"download": [
|
|
12
|
+
{
|
|
13
|
+
"file_name": "sd-concepts-library",
|
|
14
|
+
"file_path": "./models/custom/sd-concepts-library/",
|
|
15
|
+
"file_url": "https://github.com/sd-webui/sd-concepts-library/archive/refs/heads/main.zip",
|
|
16
|
+
"unzip": true,
|
|
17
|
+
"move_subfolder": "sd-concepts-library"
|
|
18
|
+
}
|
|
19
|
+
]
|
|
20
|
+
},
|
|
21
|
+
"available": false
|
|
22
|
+
},
|
|
23
|
+
"clip-vit-large-patch14": {
|
|
24
|
+
"type": "dependency",
|
|
25
|
+
"optional": false,
|
|
26
|
+
"config": {
|
|
27
|
+
"files": [
|
|
28
|
+
{
|
|
29
|
+
"path": "models/clip-vit-large-patch14/config.json"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"path": "models/clip-vit-large-patch14/merges.txt"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"path": "models/clip-vit-large-patch14/preprocessor_config.json"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"path": "models/clip-vit-large-patch14/pytorch_model.bin"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"path": "models/clip-vit-large-patch14/special_tokens_map.json"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"path": "models/clip-vit-large-patch14/tokenizer.json"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"path": "models/clip-vit-large-patch14/tokenizer_config.json"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"path": "models/clip-vit-large-patch14/vocab.json"
|
|
51
|
+
}
|
|
52
|
+
],
|
|
53
|
+
"download": [
|
|
54
|
+
{
|
|
55
|
+
"file_name": "config.json",
|
|
56
|
+
"file_path": "models/clip-vit-large-patch14",
|
|
57
|
+
"file_url": "https://huggingface.co/openai/clip-vit-large-patch14/resolve/main/config.json"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"file_name": "merges.txt",
|
|
61
|
+
"file_path": "models/clip-vit-large-patch14",
|
|
62
|
+
"file_url": "https://huggingface.co/openai/clip-vit-large-patch14/resolve/main/merges.txt"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"file_name": "preprocessor_config.json",
|
|
66
|
+
"file_path": "models/clip-vit-large-patch14",
|
|
67
|
+
"file_url": "https://huggingface.co/openai/clip-vit-large-patch14/resolve/main/preprocessor_config.json"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"file_name": "pytorch_model.bin",
|
|
71
|
+
"file_path": "models/clip-vit-large-patch14",
|
|
72
|
+
"file_url": "https://huggingface.co/openai/clip-vit-large-patch14/resolve/main/pytorch_model.bin"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"file_name": "special_tokens_map.json",
|
|
76
|
+
"file_path": "models/clip-vit-large-patch14",
|
|
77
|
+
"file_url": "https://huggingface.co/openai/clip-vit-large-patch14/resolve/main/special_tokens_map.json"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"file_name": "tokenizer.json",
|
|
81
|
+
"file_path": "models/clip-vit-large-patch14",
|
|
82
|
+
"file_url": "https://huggingface.co/openai/clip-vit-large-patch14/resolve/main/tokenizer.json"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"file_name": "tokenizer_config.json",
|
|
86
|
+
"file_path": "models/clip-vit-large-patch14",
|
|
87
|
+
"file_url": "https://huggingface.co/openai/clip-vit-large-patch14/resolve/main/tokenizer_config.json"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"file_name": "vocab.json",
|
|
91
|
+
"file_path": "models/clip-vit-large-patch14",
|
|
92
|
+
"file_url": "https://huggingface.co/openai/clip-vit-large-patch14/resolve/main/vocab.json"
|
|
93
|
+
}
|
|
94
|
+
]
|
|
95
|
+
},
|
|
96
|
+
"available": false
|
|
97
|
+
}
|
|
98
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"bad_prompt": {
|
|
3
|
+
"EmbedName": "Bad Prompt",
|
|
4
|
+
"EmbedType": "Textual Inversion",
|
|
5
|
+
"DownloadPath": "https://raw.githubusercontent.com/db0/AI-Horde-image-model-reference/main/embeddings/ti/bad_prompt.ti.pt",
|
|
6
|
+
"Description": "Trains a negative prompt into an embedding - works well on hands",
|
|
7
|
+
"baseline": "stable diffusion 1",
|
|
8
|
+
"showcase": ""
|
|
9
|
+
},
|
|
10
|
+
"EasyNegative": {
|
|
11
|
+
"EmbedName": "Easy Negative",
|
|
12
|
+
"EmbedType": "Textual Inversion",
|
|
13
|
+
"DownloadPath": "https://raw.githubusercontent.com/db0/AI-Horde-image-model-reference/main/embeddings/ti/EasyNegative.ti.pt",
|
|
14
|
+
"Description": "A simple negative embedding for the creation of better images - trained for Counterfeit but has success in other models",
|
|
15
|
+
"baseline": "stable diffusion 1",
|
|
16
|
+
"showcase": ""
|
|
17
|
+
},
|
|
18
|
+
"nfixer": {
|
|
19
|
+
"EmbedName": "nfixer",
|
|
20
|
+
"EmbedType": "Textual Inversion",
|
|
21
|
+
"DownloadPath": "https://raw.githubusercontent.com/db0/AI-Horde-image-model-reference/main/embeddings/ti/nfixer.ti.pt",
|
|
22
|
+
"Description": "This negative embedding is intended for use with Illuminati Diffusion v1.1, feel free to use it elsewhere but I can't guarantee your success.",
|
|
23
|
+
"baseline": "stable diffusion 1",
|
|
24
|
+
"showcase": ""
|
|
25
|
+
},
|
|
26
|
+
"epiNoiseOffset_v2": {
|
|
27
|
+
"EmbedName": "epiNoiseOffset_v2",
|
|
28
|
+
"EmbedType": "LoRA",
|
|
29
|
+
"DownloadPath": "https://raw.githubusercontent.com/db0/AI-Horde-image-model-reference/main/embeddings/lora/epiNoiseoffset_v2.lora.safetensors",
|
|
30
|
+
"Description": "LORA based on the Noise Offset post for better contrast and darker images.",
|
|
31
|
+
"baseline": "stable diffusion 1",
|
|
32
|
+
"showcase": ""
|
|
33
|
+
},
|
|
34
|
+
"HyperSmoke": {
|
|
35
|
+
"EmbedName": "HyperSmoke",
|
|
36
|
+
"EmbedType": "Textual Inversion",
|
|
37
|
+
"DownloadPath": "https://raw.githubusercontent.com/db0/AI-Horde-image-model-reference/main/embeddings/ti/HyperSmoke.ti.pt",
|
|
38
|
+
"Description": "HyperSmoke is a supplementive embedding that, just like HyperFluid, simply adds smoke to your scene. Whether that is a bust made out of smoke or a smoke bomb in a street, HyperSmoke is there for you",
|
|
39
|
+
"baseline": "stable diffusion 2",
|
|
40
|
+
"showcase": ""
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"stable_diffusion_inpainting": {
|
|
3
|
+
"name": "stable_diffusion_inpainting",
|
|
4
|
+
"baseline": "stable diffusion inpainting",
|
|
5
|
+
"type": "ckpt",
|
|
6
|
+
"description": "Generalist model specialized for modifying areas of existing images",
|
|
7
|
+
"showcases": [],
|
|
8
|
+
"version": "1.5",
|
|
9
|
+
"style": "diffusers",
|
|
10
|
+
"nsfw": false,
|
|
11
|
+
"download_all": true,
|
|
12
|
+
"config": {
|
|
13
|
+
"files": [
|
|
14
|
+
{
|
|
15
|
+
"path": "sd-v1-5-inpainting.ckpt"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"path": "v1-inpainting-inference.yaml"
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"download": [
|
|
22
|
+
{
|
|
23
|
+
"file_name": "sd-v1-5-inpainting.ckpt",
|
|
24
|
+
"file_path": "",
|
|
25
|
+
"file_url": "https://huggingface.co/runwayml/stable-diffusion-inpainting/resolve/main/sd-v1-5-inpainting.ckpt"
|
|
26
|
+
}
|
|
27
|
+
]
|
|
28
|
+
},
|
|
29
|
+
"available": false
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"architectures": [
|
|
3
|
+
"BertModel"
|
|
4
|
+
],
|
|
5
|
+
"attention_probs_dropout_prob": 0.1,
|
|
6
|
+
"hidden_act": "gelu",
|
|
7
|
+
"hidden_dropout_prob": 0.1,
|
|
8
|
+
"hidden_size": 768,
|
|
9
|
+
"initializer_range": 0.02,
|
|
10
|
+
"intermediate_size": 3072,
|
|
11
|
+
"layer_norm_eps": 1e-12,
|
|
12
|
+
"max_position_embeddings": 512,
|
|
13
|
+
"model_type": "bert",
|
|
14
|
+
"num_attention_heads": 12,
|
|
15
|
+
"num_hidden_layers": 12,
|
|
16
|
+
"pad_token_id": 0,
|
|
17
|
+
"type_vocab_size": 2,
|
|
18
|
+
"vocab_size": 30524,
|
|
19
|
+
"encoder_width": 768,
|
|
20
|
+
"add_cross_attention": true
|
|
21
|
+
}
|