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.
Files changed (895) hide show
  1. horde_engine-2.8.2.dist-info/LICENSE +661 -0
  2. horde_engine-2.8.2.dist-info/METADATA +991 -0
  3. horde_engine-2.8.2.dist-info/RECORD +895 -0
  4. horde_engine-2.8.2.dist-info/WHEEL +5 -0
  5. horde_engine-2.8.2.dist-info/entry_points.txt +3 -0
  6. horde_engine-2.8.2.dist-info/top_level.txt +1 -0
  7. hordelib/__init__.py +12 -0
  8. hordelib/__pyinstaller.py +10 -0
  9. hordelib/_comfyui/.gitignore +18 -0
  10. hordelib/_comfyui/CODEOWNERS +1 -0
  11. hordelib/_comfyui/LICENSE +674 -0
  12. hordelib/_comfyui/README.md +224 -0
  13. hordelib/_comfyui/__pycache__/cuda_malloc.cpython-310.pyc +0 -0
  14. hordelib/_comfyui/__pycache__/execution.cpython-310.pyc +0 -0
  15. hordelib/_comfyui/__pycache__/folder_paths.cpython-310.pyc +0 -0
  16. hordelib/_comfyui/__pycache__/latent_preview.cpython-310.pyc +0 -0
  17. hordelib/_comfyui/__pycache__/node_helpers.cpython-310.pyc +0 -0
  18. hordelib/_comfyui/__pycache__/nodes.cpython-310.pyc +0 -0
  19. hordelib/_comfyui/__pycache__/server.cpython-310.pyc +0 -0
  20. hordelib/_comfyui/app/__pycache__/app_settings.cpython-310.pyc +0 -0
  21. hordelib/_comfyui/app/__pycache__/user_manager.cpython-310.pyc +0 -0
  22. hordelib/_comfyui/app/app_settings.py +54 -0
  23. hordelib/_comfyui/app/user_manager.py +140 -0
  24. hordelib/_comfyui/comfy/__pycache__/checkpoint_pickle.cpython-310.pyc +0 -0
  25. hordelib/_comfyui/comfy/__pycache__/cli_args.cpython-310.pyc +0 -0
  26. hordelib/_comfyui/comfy/__pycache__/clip_model.cpython-310.pyc +0 -0
  27. hordelib/_comfyui/comfy/__pycache__/clip_vision.cpython-310.pyc +0 -0
  28. hordelib/_comfyui/comfy/__pycache__/conds.cpython-310.pyc +0 -0
  29. hordelib/_comfyui/comfy/__pycache__/controlnet.cpython-310.pyc +0 -0
  30. hordelib/_comfyui/comfy/__pycache__/diffusers_convert.cpython-310.pyc +0 -0
  31. hordelib/_comfyui/comfy/__pycache__/diffusers_load.cpython-310.pyc +0 -0
  32. hordelib/_comfyui/comfy/__pycache__/gligen.cpython-310.pyc +0 -0
  33. hordelib/_comfyui/comfy/__pycache__/latent_formats.cpython-310.pyc +0 -0
  34. hordelib/_comfyui/comfy/__pycache__/lora.cpython-310.pyc +0 -0
  35. hordelib/_comfyui/comfy/__pycache__/model_base.cpython-310.pyc +0 -0
  36. hordelib/_comfyui/comfy/__pycache__/model_detection.cpython-310.pyc +0 -0
  37. hordelib/_comfyui/comfy/__pycache__/model_management.cpython-310.pyc +0 -0
  38. hordelib/_comfyui/comfy/__pycache__/model_patcher.cpython-310.pyc +0 -0
  39. hordelib/_comfyui/comfy/__pycache__/model_sampling.cpython-310.pyc +0 -0
  40. hordelib/_comfyui/comfy/__pycache__/ops.cpython-310.pyc +0 -0
  41. hordelib/_comfyui/comfy/__pycache__/options.cpython-310.pyc +0 -0
  42. hordelib/_comfyui/comfy/__pycache__/sample.cpython-310.pyc +0 -0
  43. hordelib/_comfyui/comfy/__pycache__/sampler_helpers.cpython-310.pyc +0 -0
  44. hordelib/_comfyui/comfy/__pycache__/samplers.cpython-310.pyc +0 -0
  45. hordelib/_comfyui/comfy/__pycache__/sd.cpython-310.pyc +0 -0
  46. hordelib/_comfyui/comfy/__pycache__/sd1_clip.cpython-310.pyc +0 -0
  47. hordelib/_comfyui/comfy/__pycache__/sd2_clip.cpython-310.pyc +0 -0
  48. hordelib/_comfyui/comfy/__pycache__/sdxl_clip.cpython-310.pyc +0 -0
  49. hordelib/_comfyui/comfy/__pycache__/supported_models.cpython-310.pyc +0 -0
  50. hordelib/_comfyui/comfy/__pycache__/supported_models_base.cpython-310.pyc +0 -0
  51. hordelib/_comfyui/comfy/__pycache__/utils.cpython-310.pyc +0 -0
  52. hordelib/_comfyui/comfy/checkpoint_pickle.py +13 -0
  53. hordelib/_comfyui/comfy/cldm/__pycache__/cldm.cpython-310.pyc +0 -0
  54. hordelib/_comfyui/comfy/cldm/cldm.py +312 -0
  55. hordelib/_comfyui/comfy/cli_args.py +136 -0
  56. hordelib/_comfyui/comfy/clip_config_bigg.json +23 -0
  57. hordelib/_comfyui/comfy/clip_model.py +194 -0
  58. hordelib/_comfyui/comfy/clip_vision.py +117 -0
  59. hordelib/_comfyui/comfy/clip_vision_config_g.json +18 -0
  60. hordelib/_comfyui/comfy/clip_vision_config_h.json +18 -0
  61. hordelib/_comfyui/comfy/clip_vision_config_vitl.json +18 -0
  62. hordelib/_comfyui/comfy/conds.py +78 -0
  63. hordelib/_comfyui/comfy/controlnet.py +554 -0
  64. hordelib/_comfyui/comfy/diffusers_convert.py +281 -0
  65. hordelib/_comfyui/comfy/diffusers_load.py +36 -0
  66. hordelib/_comfyui/comfy/extra_samplers/__pycache__/uni_pc.cpython-310.pyc +0 -0
  67. hordelib/_comfyui/comfy/extra_samplers/uni_pc.py +875 -0
  68. hordelib/_comfyui/comfy/gligen.py +343 -0
  69. hordelib/_comfyui/comfy/k_diffusion/__pycache__/sampling.cpython-310.pyc +0 -0
  70. hordelib/_comfyui/comfy/k_diffusion/__pycache__/utils.cpython-310.pyc +0 -0
  71. hordelib/_comfyui/comfy/k_diffusion/sampling.py +810 -0
  72. hordelib/_comfyui/comfy/k_diffusion/utils.py +313 -0
  73. hordelib/_comfyui/comfy/latent_formats.py +104 -0
  74. hordelib/_comfyui/comfy/ldm/__pycache__/util.cpython-310.pyc +0 -0
  75. hordelib/_comfyui/comfy/ldm/cascade/__pycache__/common.cpython-310.pyc +0 -0
  76. hordelib/_comfyui/comfy/ldm/cascade/__pycache__/controlnet.cpython-310.pyc +0 -0
  77. hordelib/_comfyui/comfy/ldm/cascade/__pycache__/stage_a.cpython-310.pyc +0 -0
  78. hordelib/_comfyui/comfy/ldm/cascade/__pycache__/stage_b.cpython-310.pyc +0 -0
  79. hordelib/_comfyui/comfy/ldm/cascade/__pycache__/stage_c.cpython-310.pyc +0 -0
  80. hordelib/_comfyui/comfy/ldm/cascade/__pycache__/stage_c_coder.cpython-310.pyc +0 -0
  81. hordelib/_comfyui/comfy/ldm/cascade/common.py +161 -0
  82. hordelib/_comfyui/comfy/ldm/cascade/controlnet.py +93 -0
  83. hordelib/_comfyui/comfy/ldm/cascade/stage_a.py +255 -0
  84. hordelib/_comfyui/comfy/ldm/cascade/stage_b.py +257 -0
  85. hordelib/_comfyui/comfy/ldm/cascade/stage_c.py +274 -0
  86. hordelib/_comfyui/comfy/ldm/cascade/stage_c_coder.py +95 -0
  87. hordelib/_comfyui/comfy/ldm/models/__pycache__/autoencoder.cpython-310.pyc +0 -0
  88. hordelib/_comfyui/comfy/ldm/models/autoencoder.py +228 -0
  89. hordelib/_comfyui/comfy/ldm/modules/__pycache__/attention.cpython-310.pyc +0 -0
  90. hordelib/_comfyui/comfy/ldm/modules/__pycache__/ema.cpython-310.pyc +0 -0
  91. hordelib/_comfyui/comfy/ldm/modules/__pycache__/sub_quadratic_attention.cpython-310.pyc +0 -0
  92. hordelib/_comfyui/comfy/ldm/modules/attention.py +801 -0
  93. hordelib/_comfyui/comfy/ldm/modules/diffusionmodules/__init__.py +0 -0
  94. hordelib/_comfyui/comfy/ldm/modules/diffusionmodules/__pycache__/__init__.cpython-310.pyc +0 -0
  95. hordelib/_comfyui/comfy/ldm/modules/diffusionmodules/__pycache__/model.cpython-310.pyc +0 -0
  96. hordelib/_comfyui/comfy/ldm/modules/diffusionmodules/__pycache__/openaimodel.cpython-310.pyc +0 -0
  97. hordelib/_comfyui/comfy/ldm/modules/diffusionmodules/__pycache__/upscaling.cpython-310.pyc +0 -0
  98. hordelib/_comfyui/comfy/ldm/modules/diffusionmodules/__pycache__/util.cpython-310.pyc +0 -0
  99. hordelib/_comfyui/comfy/ldm/modules/diffusionmodules/model.py +651 -0
  100. hordelib/_comfyui/comfy/ldm/modules/diffusionmodules/openaimodel.py +890 -0
  101. hordelib/_comfyui/comfy/ldm/modules/diffusionmodules/upscaling.py +85 -0
  102. hordelib/_comfyui/comfy/ldm/modules/diffusionmodules/util.py +306 -0
  103. hordelib/_comfyui/comfy/ldm/modules/distributions/__init__.py +0 -0
  104. hordelib/_comfyui/comfy/ldm/modules/distributions/__pycache__/__init__.cpython-310.pyc +0 -0
  105. hordelib/_comfyui/comfy/ldm/modules/distributions/__pycache__/distributions.cpython-310.pyc +0 -0
  106. hordelib/_comfyui/comfy/ldm/modules/distributions/distributions.py +92 -0
  107. hordelib/_comfyui/comfy/ldm/modules/ema.py +80 -0
  108. hordelib/_comfyui/comfy/ldm/modules/encoders/__init__.py +0 -0
  109. hordelib/_comfyui/comfy/ldm/modules/encoders/__pycache__/__init__.cpython-310.pyc +0 -0
  110. hordelib/_comfyui/comfy/ldm/modules/encoders/__pycache__/noise_aug_modules.cpython-310.pyc +0 -0
  111. hordelib/_comfyui/comfy/ldm/modules/encoders/noise_aug_modules.py +35 -0
  112. hordelib/_comfyui/comfy/ldm/modules/sub_quadratic_attention.py +274 -0
  113. hordelib/_comfyui/comfy/ldm/modules/temporal_ae.py +245 -0
  114. hordelib/_comfyui/comfy/ldm/util.py +197 -0
  115. hordelib/_comfyui/comfy/lora.py +241 -0
  116. hordelib/_comfyui/comfy/model_base.py +559 -0
  117. hordelib/_comfyui/comfy/model_detection.py +383 -0
  118. hordelib/_comfyui/comfy/model_management.py +877 -0
  119. hordelib/_comfyui/comfy/model_patcher.py +485 -0
  120. hordelib/_comfyui/comfy/model_sampling.py +203 -0
  121. hordelib/_comfyui/comfy/ops.py +163 -0
  122. hordelib/_comfyui/comfy/options.py +6 -0
  123. hordelib/_comfyui/comfy/sample.py +44 -0
  124. hordelib/_comfyui/comfy/sampler_helpers.py +76 -0
  125. hordelib/_comfyui/comfy/samplers.py +755 -0
  126. hordelib/_comfyui/comfy/sd.py +626 -0
  127. hordelib/_comfyui/comfy/sd1_clip.py +521 -0
  128. hordelib/_comfyui/comfy/sd1_clip_config.json +25 -0
  129. hordelib/_comfyui/comfy/sd1_tokenizer/merges.txt +48895 -0
  130. hordelib/_comfyui/comfy/sd1_tokenizer/special_tokens_map.json +24 -0
  131. hordelib/_comfyui/comfy/sd1_tokenizer/tokenizer_config.json +34 -0
  132. hordelib/_comfyui/comfy/sd1_tokenizer/vocab.json +49410 -0
  133. hordelib/_comfyui/comfy/sd2_clip.py +24 -0
  134. hordelib/_comfyui/comfy/sd2_clip_config.json +23 -0
  135. hordelib/_comfyui/comfy/sdxl_clip.py +88 -0
  136. hordelib/_comfyui/comfy/supported_models.py +481 -0
  137. hordelib/_comfyui/comfy/supported_models_base.py +95 -0
  138. hordelib/_comfyui/comfy/t2i_adapter/__pycache__/adapter.cpython-310.pyc +0 -0
  139. hordelib/_comfyui/comfy/t2i_adapter/adapter.py +293 -0
  140. hordelib/_comfyui/comfy/taesd/__pycache__/taesd.cpython-310.pyc +0 -0
  141. hordelib/_comfyui/comfy/taesd/taesd.py +77 -0
  142. hordelib/_comfyui/comfy/utils.py +483 -0
  143. hordelib/_comfyui/comfy_extras/__pycache__/nodes_align_your_steps.cpython-310.pyc +0 -0
  144. hordelib/_comfyui/comfy_extras/__pycache__/nodes_canny.cpython-310.pyc +0 -0
  145. hordelib/_comfyui/comfy_extras/__pycache__/nodes_clip_sdxl.cpython-310.pyc +0 -0
  146. hordelib/_comfyui/comfy_extras/__pycache__/nodes_compositing.cpython-310.pyc +0 -0
  147. hordelib/_comfyui/comfy_extras/__pycache__/nodes_cond.cpython-310.pyc +0 -0
  148. hordelib/_comfyui/comfy_extras/__pycache__/nodes_custom_sampler.cpython-310.pyc +0 -0
  149. hordelib/_comfyui/comfy_extras/__pycache__/nodes_differential_diffusion.cpython-310.pyc +0 -0
  150. hordelib/_comfyui/comfy_extras/__pycache__/nodes_freelunch.cpython-310.pyc +0 -0
  151. hordelib/_comfyui/comfy_extras/__pycache__/nodes_hypernetwork.cpython-310.pyc +0 -0
  152. hordelib/_comfyui/comfy_extras/__pycache__/nodes_hypertile.cpython-310.pyc +0 -0
  153. hordelib/_comfyui/comfy_extras/__pycache__/nodes_images.cpython-310.pyc +0 -0
  154. hordelib/_comfyui/comfy_extras/__pycache__/nodes_ip2p.cpython-310.pyc +0 -0
  155. hordelib/_comfyui/comfy_extras/__pycache__/nodes_latent.cpython-310.pyc +0 -0
  156. hordelib/_comfyui/comfy_extras/__pycache__/nodes_mask.cpython-310.pyc +0 -0
  157. hordelib/_comfyui/comfy_extras/__pycache__/nodes_model_advanced.cpython-310.pyc +0 -0
  158. hordelib/_comfyui/comfy_extras/__pycache__/nodes_model_downscale.cpython-310.pyc +0 -0
  159. hordelib/_comfyui/comfy_extras/__pycache__/nodes_model_merging.cpython-310.pyc +0 -0
  160. hordelib/_comfyui/comfy_extras/__pycache__/nodes_model_merging_model_specific.cpython-310.pyc +0 -0
  161. hordelib/_comfyui/comfy_extras/__pycache__/nodes_morphology.cpython-310.pyc +0 -0
  162. hordelib/_comfyui/comfy_extras/__pycache__/nodes_pag.cpython-310.pyc +0 -0
  163. hordelib/_comfyui/comfy_extras/__pycache__/nodes_perpneg.cpython-310.pyc +0 -0
  164. hordelib/_comfyui/comfy_extras/__pycache__/nodes_photomaker.cpython-310.pyc +0 -0
  165. hordelib/_comfyui/comfy_extras/__pycache__/nodes_post_processing.cpython-310.pyc +0 -0
  166. hordelib/_comfyui/comfy_extras/__pycache__/nodes_rebatch.cpython-310.pyc +0 -0
  167. hordelib/_comfyui/comfy_extras/__pycache__/nodes_sag.cpython-310.pyc +0 -0
  168. hordelib/_comfyui/comfy_extras/__pycache__/nodes_sdupscale.cpython-310.pyc +0 -0
  169. hordelib/_comfyui/comfy_extras/__pycache__/nodes_stable3d.cpython-310.pyc +0 -0
  170. hordelib/_comfyui/comfy_extras/__pycache__/nodes_stable_cascade.cpython-310.pyc +0 -0
  171. hordelib/_comfyui/comfy_extras/__pycache__/nodes_tomesd.cpython-310.pyc +0 -0
  172. hordelib/_comfyui/comfy_extras/__pycache__/nodes_upscale_model.cpython-310.pyc +0 -0
  173. hordelib/_comfyui/comfy_extras/__pycache__/nodes_video_model.cpython-310.pyc +0 -0
  174. hordelib/_comfyui/comfy_extras/chainner_models/__init__.py +0 -0
  175. hordelib/_comfyui/comfy_extras/chainner_models/__pycache__/__init__.cpython-310.pyc +0 -0
  176. hordelib/_comfyui/comfy_extras/chainner_models/__pycache__/model_loading.cpython-310.pyc +0 -0
  177. hordelib/_comfyui/comfy_extras/chainner_models/__pycache__/types.cpython-310.pyc +0 -0
  178. hordelib/_comfyui/comfy_extras/chainner_models/architecture/DAT.py +1182 -0
  179. hordelib/_comfyui/comfy_extras/chainner_models/architecture/HAT.py +1277 -0
  180. hordelib/_comfyui/comfy_extras/chainner_models/architecture/LICENSE-DAT +201 -0
  181. hordelib/_comfyui/comfy_extras/chainner_models/architecture/LICENSE-ESRGAN +201 -0
  182. hordelib/_comfyui/comfy_extras/chainner_models/architecture/LICENSE-HAT +21 -0
  183. hordelib/_comfyui/comfy_extras/chainner_models/architecture/LICENSE-RealESRGAN +29 -0
  184. hordelib/_comfyui/comfy_extras/chainner_models/architecture/LICENSE-SCUNet +201 -0
  185. hordelib/_comfyui/comfy_extras/chainner_models/architecture/LICENSE-SPSR +201 -0
  186. hordelib/_comfyui/comfy_extras/chainner_models/architecture/LICENSE-SwiftSRGAN +121 -0
  187. hordelib/_comfyui/comfy_extras/chainner_models/architecture/LICENSE-Swin2SR +201 -0
  188. hordelib/_comfyui/comfy_extras/chainner_models/architecture/LICENSE-SwinIR +201 -0
  189. hordelib/_comfyui/comfy_extras/chainner_models/architecture/LICENSE-lama +201 -0
  190. hordelib/_comfyui/comfy_extras/chainner_models/architecture/LaMa.py +694 -0
  191. hordelib/_comfyui/comfy_extras/chainner_models/architecture/OmniSR/ChannelAttention.py +110 -0
  192. hordelib/_comfyui/comfy_extras/chainner_models/architecture/OmniSR/LICENSE +201 -0
  193. hordelib/_comfyui/comfy_extras/chainner_models/architecture/OmniSR/OSA.py +577 -0
  194. hordelib/_comfyui/comfy_extras/chainner_models/architecture/OmniSR/OSAG.py +60 -0
  195. hordelib/_comfyui/comfy_extras/chainner_models/architecture/OmniSR/OmniSR.py +143 -0
  196. hordelib/_comfyui/comfy_extras/chainner_models/architecture/OmniSR/__pycache__/OSA.cpython-310.pyc +0 -0
  197. hordelib/_comfyui/comfy_extras/chainner_models/architecture/OmniSR/__pycache__/OSAG.cpython-310.pyc +0 -0
  198. hordelib/_comfyui/comfy_extras/chainner_models/architecture/OmniSR/__pycache__/OmniSR.cpython-310.pyc +0 -0
  199. hordelib/_comfyui/comfy_extras/chainner_models/architecture/OmniSR/__pycache__/esa.cpython-310.pyc +0 -0
  200. hordelib/_comfyui/comfy_extras/chainner_models/architecture/OmniSR/__pycache__/layernorm.cpython-310.pyc +0 -0
  201. hordelib/_comfyui/comfy_extras/chainner_models/architecture/OmniSR/__pycache__/pixelshuffle.cpython-310.pyc +0 -0
  202. hordelib/_comfyui/comfy_extras/chainner_models/architecture/OmniSR/esa.py +294 -0
  203. hordelib/_comfyui/comfy_extras/chainner_models/architecture/OmniSR/layernorm.py +70 -0
  204. hordelib/_comfyui/comfy_extras/chainner_models/architecture/OmniSR/pixelshuffle.py +31 -0
  205. hordelib/_comfyui/comfy_extras/chainner_models/architecture/RRDB.py +296 -0
  206. hordelib/_comfyui/comfy_extras/chainner_models/architecture/SCUNet.py +455 -0
  207. hordelib/_comfyui/comfy_extras/chainner_models/architecture/SPSR.py +383 -0
  208. hordelib/_comfyui/comfy_extras/chainner_models/architecture/SRVGG.py +114 -0
  209. hordelib/_comfyui/comfy_extras/chainner_models/architecture/SwiftSRGAN.py +161 -0
  210. hordelib/_comfyui/comfy_extras/chainner_models/architecture/Swin2SR.py +1377 -0
  211. hordelib/_comfyui/comfy_extras/chainner_models/architecture/SwinIR.py +1224 -0
  212. hordelib/_comfyui/comfy_extras/chainner_models/architecture/__init__.py +0 -0
  213. hordelib/_comfyui/comfy_extras/chainner_models/architecture/__pycache__/DAT.cpython-310.pyc +0 -0
  214. hordelib/_comfyui/comfy_extras/chainner_models/architecture/__pycache__/HAT.cpython-310.pyc +0 -0
  215. hordelib/_comfyui/comfy_extras/chainner_models/architecture/__pycache__/LaMa.cpython-310.pyc +0 -0
  216. hordelib/_comfyui/comfy_extras/chainner_models/architecture/__pycache__/RRDB.cpython-310.pyc +0 -0
  217. hordelib/_comfyui/comfy_extras/chainner_models/architecture/__pycache__/SCUNet.cpython-310.pyc +0 -0
  218. hordelib/_comfyui/comfy_extras/chainner_models/architecture/__pycache__/SPSR.cpython-310.pyc +0 -0
  219. hordelib/_comfyui/comfy_extras/chainner_models/architecture/__pycache__/SRVGG.cpython-310.pyc +0 -0
  220. hordelib/_comfyui/comfy_extras/chainner_models/architecture/__pycache__/SwiftSRGAN.cpython-310.pyc +0 -0
  221. hordelib/_comfyui/comfy_extras/chainner_models/architecture/__pycache__/Swin2SR.cpython-310.pyc +0 -0
  222. hordelib/_comfyui/comfy_extras/chainner_models/architecture/__pycache__/SwinIR.cpython-310.pyc +0 -0
  223. hordelib/_comfyui/comfy_extras/chainner_models/architecture/__pycache__/__init__.cpython-310.pyc +0 -0
  224. hordelib/_comfyui/comfy_extras/chainner_models/architecture/__pycache__/block.cpython-310.pyc +0 -0
  225. hordelib/_comfyui/comfy_extras/chainner_models/architecture/block.py +546 -0
  226. hordelib/_comfyui/comfy_extras/chainner_models/architecture/face/LICENSE-GFPGAN +351 -0
  227. hordelib/_comfyui/comfy_extras/chainner_models/architecture/face/LICENSE-RestoreFormer +351 -0
  228. hordelib/_comfyui/comfy_extras/chainner_models/architecture/face/LICENSE-codeformer +35 -0
  229. hordelib/_comfyui/comfy_extras/chainner_models/architecture/face/__pycache__/codeformer.cpython-310.pyc +0 -0
  230. hordelib/_comfyui/comfy_extras/chainner_models/architecture/face/__pycache__/gfpganv1_clean_arch.cpython-310.pyc +0 -0
  231. hordelib/_comfyui/comfy_extras/chainner_models/architecture/face/__pycache__/restoreformer_arch.cpython-310.pyc +0 -0
  232. hordelib/_comfyui/comfy_extras/chainner_models/architecture/face/__pycache__/stylegan2_clean_arch.cpython-310.pyc +0 -0
  233. hordelib/_comfyui/comfy_extras/chainner_models/architecture/face/arcface_arch.py +265 -0
  234. hordelib/_comfyui/comfy_extras/chainner_models/architecture/face/codeformer.py +790 -0
  235. hordelib/_comfyui/comfy_extras/chainner_models/architecture/face/fused_act.py +81 -0
  236. hordelib/_comfyui/comfy_extras/chainner_models/architecture/face/gfpgan_bilinear_arch.py +389 -0
  237. hordelib/_comfyui/comfy_extras/chainner_models/architecture/face/gfpganv1_arch.py +566 -0
  238. hordelib/_comfyui/comfy_extras/chainner_models/architecture/face/gfpganv1_clean_arch.py +370 -0
  239. hordelib/_comfyui/comfy_extras/chainner_models/architecture/face/restoreformer_arch.py +776 -0
  240. hordelib/_comfyui/comfy_extras/chainner_models/architecture/face/stylegan2_arch.py +865 -0
  241. hordelib/_comfyui/comfy_extras/chainner_models/architecture/face/stylegan2_bilinear_arch.py +709 -0
  242. hordelib/_comfyui/comfy_extras/chainner_models/architecture/face/stylegan2_clean_arch.py +453 -0
  243. hordelib/_comfyui/comfy_extras/chainner_models/architecture/face/upfirdn2d.py +194 -0
  244. hordelib/_comfyui/comfy_extras/chainner_models/architecture/timm/LICENSE +201 -0
  245. hordelib/_comfyui/comfy_extras/chainner_models/architecture/timm/__pycache__/drop.cpython-310.pyc +0 -0
  246. hordelib/_comfyui/comfy_extras/chainner_models/architecture/timm/__pycache__/helpers.cpython-310.pyc +0 -0
  247. hordelib/_comfyui/comfy_extras/chainner_models/architecture/timm/__pycache__/weight_init.cpython-310.pyc +0 -0
  248. hordelib/_comfyui/comfy_extras/chainner_models/architecture/timm/drop.py +223 -0
  249. hordelib/_comfyui/comfy_extras/chainner_models/architecture/timm/helpers.py +31 -0
  250. hordelib/_comfyui/comfy_extras/chainner_models/architecture/timm/weight_init.py +128 -0
  251. hordelib/_comfyui/comfy_extras/chainner_models/model_loading.py +99 -0
  252. hordelib/_comfyui/comfy_extras/chainner_models/types.py +69 -0
  253. hordelib/_comfyui/comfy_extras/nodes_align_your_steps.py +45 -0
  254. hordelib/_comfyui/comfy_extras/nodes_canny.py +30 -0
  255. hordelib/_comfyui/comfy_extras/nodes_clip_sdxl.py +56 -0
  256. hordelib/_comfyui/comfy_extras/nodes_compositing.py +202 -0
  257. hordelib/_comfyui/comfy_extras/nodes_cond.py +25 -0
  258. hordelib/_comfyui/comfy_extras/nodes_custom_sampler.py +612 -0
  259. hordelib/_comfyui/comfy_extras/nodes_differential_diffusion.py +42 -0
  260. hordelib/_comfyui/comfy_extras/nodes_freelunch.py +113 -0
  261. hordelib/_comfyui/comfy_extras/nodes_hypernetwork.py +120 -0
  262. hordelib/_comfyui/comfy_extras/nodes_hypertile.py +83 -0
  263. hordelib/_comfyui/comfy_extras/nodes_images.py +195 -0
  264. hordelib/_comfyui/comfy_extras/nodes_ip2p.py +45 -0
  265. hordelib/_comfyui/comfy_extras/nodes_latent.py +155 -0
  266. hordelib/_comfyui/comfy_extras/nodes_mask.py +382 -0
  267. hordelib/_comfyui/comfy_extras/nodes_model_advanced.py +217 -0
  268. hordelib/_comfyui/comfy_extras/nodes_model_downscale.py +53 -0
  269. hordelib/_comfyui/comfy_extras/nodes_model_merging.py +339 -0
  270. hordelib/_comfyui/comfy_extras/nodes_model_merging_model_specific.py +60 -0
  271. hordelib/_comfyui/comfy_extras/nodes_morphology.py +49 -0
  272. hordelib/_comfyui/comfy_extras/nodes_pag.py +56 -0
  273. hordelib/_comfyui/comfy_extras/nodes_perpneg.py +102 -0
  274. hordelib/_comfyui/comfy_extras/nodes_photomaker.py +187 -0
  275. hordelib/_comfyui/comfy_extras/nodes_post_processing.py +279 -0
  276. hordelib/_comfyui/comfy_extras/nodes_rebatch.py +138 -0
  277. hordelib/_comfyui/comfy_extras/nodes_sag.py +170 -0
  278. hordelib/_comfyui/comfy_extras/nodes_sdupscale.py +47 -0
  279. hordelib/_comfyui/comfy_extras/nodes_stable3d.py +143 -0
  280. hordelib/_comfyui/comfy_extras/nodes_stable_cascade.py +140 -0
  281. hordelib/_comfyui/comfy_extras/nodes_tomesd.py +177 -0
  282. hordelib/_comfyui/comfy_extras/nodes_upscale_model.py +71 -0
  283. hordelib/_comfyui/comfy_extras/nodes_video_model.py +134 -0
  284. hordelib/_comfyui/comfyui_screenshot.png +0 -0
  285. hordelib/_comfyui/cuda_malloc.py +90 -0
  286. hordelib/_comfyui/custom_nodes/__pycache__/websocket_image_save.cpython-310.pyc +0 -0
  287. hordelib/_comfyui/custom_nodes/example_node.py.example +118 -0
  288. hordelib/_comfyui/custom_nodes/websocket_image_save.py +45 -0
  289. hordelib/_comfyui/execution.py +835 -0
  290. hordelib/_comfyui/extra_model_paths.yaml +4 -0
  291. hordelib/_comfyui/extra_model_paths.yaml.example +42 -0
  292. hordelib/_comfyui/folder_paths.py +267 -0
  293. hordelib/_comfyui/input/example.png +0 -0
  294. hordelib/_comfyui/latent_preview.py +98 -0
  295. hordelib/_comfyui/main.py +258 -0
  296. hordelib/_comfyui/models/checkpoints/put_checkpoints_here +0 -0
  297. hordelib/_comfyui/models/clip/put_clip_or_text_encoder_models_here +0 -0
  298. hordelib/_comfyui/models/clip_vision/put_clip_vision_models_here +0 -0
  299. hordelib/_comfyui/models/configs/anything_v3.yaml +73 -0
  300. hordelib/_comfyui/models/configs/v1-inference.yaml +70 -0
  301. hordelib/_comfyui/models/configs/v1-inference_clip_skip_2.yaml +73 -0
  302. hordelib/_comfyui/models/configs/v1-inference_clip_skip_2_fp16.yaml +74 -0
  303. hordelib/_comfyui/models/configs/v1-inference_fp16.yaml +71 -0
  304. hordelib/_comfyui/models/configs/v1-inpainting-inference.yaml +71 -0
  305. hordelib/_comfyui/models/configs/v2-inference-v.yaml +68 -0
  306. hordelib/_comfyui/models/configs/v2-inference-v_fp32.yaml +68 -0
  307. hordelib/_comfyui/models/configs/v2-inference.yaml +67 -0
  308. hordelib/_comfyui/models/configs/v2-inference_fp32.yaml +67 -0
  309. hordelib/_comfyui/models/configs/v2-inpainting-inference.yaml +158 -0
  310. hordelib/_comfyui/models/controlnet/put_controlnets_and_t2i_here +0 -0
  311. hordelib/_comfyui/models/diffusers/put_diffusers_models_here +0 -0
  312. hordelib/_comfyui/models/embeddings/put_embeddings_or_textual_inversion_concepts_here +0 -0
  313. hordelib/_comfyui/models/gligen/put_gligen_models_here +0 -0
  314. hordelib/_comfyui/models/hypernetworks/put_hypernetworks_here +0 -0
  315. hordelib/_comfyui/models/loras/put_loras_here +0 -0
  316. hordelib/_comfyui/models/photomaker/put_photomaker_models_here +0 -0
  317. hordelib/_comfyui/models/style_models/put_t2i_style_model_here +0 -0
  318. hordelib/_comfyui/models/unet/put_unet_files_here +0 -0
  319. hordelib/_comfyui/models/upscale_models/put_esrgan_and_other_upscale_models_here +0 -0
  320. hordelib/_comfyui/models/vae/put_vae_here +0 -0
  321. hordelib/_comfyui/models/vae_approx/put_taesd_encoder_pth_and_taesd_decoder_pth_here +0 -0
  322. hordelib/_comfyui/new_updater.py +35 -0
  323. hordelib/_comfyui/node_helpers.py +10 -0
  324. hordelib/_comfyui/nodes.py +1965 -0
  325. hordelib/_comfyui/notebooks/comfyui_colab.ipynb +329 -0
  326. hordelib/_comfyui/output/_output_images_will_be_put_here +0 -0
  327. hordelib/_comfyui/pytest.ini +5 -0
  328. hordelib/_comfyui/requirements.txt +13 -0
  329. hordelib/_comfyui/script_examples/basic_api_example.py +120 -0
  330. hordelib/_comfyui/script_examples/websockets_api_example.py +164 -0
  331. hordelib/_comfyui/script_examples/websockets_api_example_ws_images.py +159 -0
  332. hordelib/_comfyui/server.py +646 -0
  333. hordelib/_comfyui/tests/README.md +29 -0
  334. hordelib/_comfyui/tests/__init__.py +0 -0
  335. hordelib/_comfyui/tests/compare/conftest.py +41 -0
  336. hordelib/_comfyui/tests/compare/test_quality.py +195 -0
  337. hordelib/_comfyui/tests/conftest.py +36 -0
  338. hordelib/_comfyui/tests/inference/__init__.py +0 -0
  339. hordelib/_comfyui/tests/inference/graphs/default_graph_sdxl1_0.json +144 -0
  340. hordelib/_comfyui/tests/inference/test_inference.py +239 -0
  341. hordelib/_comfyui/tests-ui/.gitignore +1 -0
  342. hordelib/_comfyui/tests-ui/afterSetup.js +9 -0
  343. hordelib/_comfyui/tests-ui/babel.config.json +4 -0
  344. hordelib/_comfyui/tests-ui/globalSetup.js +14 -0
  345. hordelib/_comfyui/tests-ui/jest.config.js +11 -0
  346. hordelib/_comfyui/tests-ui/package-lock.json +5586 -0
  347. hordelib/_comfyui/tests-ui/package.json +31 -0
  348. hordelib/_comfyui/tests-ui/setup.js +88 -0
  349. hordelib/_comfyui/tests-ui/tests/extensions.test.js +196 -0
  350. hordelib/_comfyui/tests-ui/tests/groupNode.test.js +1005 -0
  351. hordelib/_comfyui/tests-ui/tests/users.test.js +295 -0
  352. hordelib/_comfyui/tests-ui/tests/widgetInputs.test.js +557 -0
  353. hordelib/_comfyui/tests-ui/utils/ezgraph.js +452 -0
  354. hordelib/_comfyui/tests-ui/utils/index.js +129 -0
  355. hordelib/_comfyui/tests-ui/utils/litegraph.js +36 -0
  356. hordelib/_comfyui/tests-ui/utils/nopProxy.js +6 -0
  357. hordelib/_comfyui/tests-ui/utils/setup.js +81 -0
  358. hordelib/_comfyui/web/extensions/core/clipspace.js +166 -0
  359. hordelib/_comfyui/web/extensions/core/colorPalette.js +761 -0
  360. hordelib/_comfyui/web/extensions/core/contextMenuFilter.js +148 -0
  361. hordelib/_comfyui/web/extensions/core/dynamicPrompts.js +48 -0
  362. hordelib/_comfyui/web/extensions/core/editAttention.js +144 -0
  363. hordelib/_comfyui/web/extensions/core/groupNode.js +1281 -0
  364. hordelib/_comfyui/web/extensions/core/groupNodeManage.css +149 -0
  365. hordelib/_comfyui/web/extensions/core/groupNodeManage.js +422 -0
  366. hordelib/_comfyui/web/extensions/core/groupOptions.js +259 -0
  367. hordelib/_comfyui/web/extensions/core/invertMenuScrolling.js +36 -0
  368. hordelib/_comfyui/web/extensions/core/keybinds.js +70 -0
  369. hordelib/_comfyui/web/extensions/core/linkRenderMode.js +25 -0
  370. hordelib/_comfyui/web/extensions/core/maskeditor.js +923 -0
  371. hordelib/_comfyui/web/extensions/core/nodeTemplates.js +412 -0
  372. hordelib/_comfyui/web/extensions/core/noteNode.js +41 -0
  373. hordelib/_comfyui/web/extensions/core/rerouteNode.js +274 -0
  374. hordelib/_comfyui/web/extensions/core/saveImageExtraOutput.js +35 -0
  375. hordelib/_comfyui/web/extensions/core/simpleTouchSupport.js +102 -0
  376. hordelib/_comfyui/web/extensions/core/slotDefaults.js +91 -0
  377. hordelib/_comfyui/web/extensions/core/snapToGrid.js +89 -0
  378. hordelib/_comfyui/web/extensions/core/undoRedo.js +177 -0
  379. hordelib/_comfyui/web/extensions/core/uploadImage.js +12 -0
  380. hordelib/_comfyui/web/extensions/core/widgetInputs.js +800 -0
  381. hordelib/_comfyui/web/extensions/logging.js.example +55 -0
  382. hordelib/_comfyui/web/index.html +48 -0
  383. hordelib/_comfyui/web/jsconfig.json +10 -0
  384. hordelib/_comfyui/web/lib/litegraph.core.js +14424 -0
  385. hordelib/_comfyui/web/lib/litegraph.css +693 -0
  386. hordelib/_comfyui/web/lib/litegraph.extensions.js +21 -0
  387. hordelib/_comfyui/web/scripts/api.js +422 -0
  388. hordelib/_comfyui/web/scripts/app.js +2253 -0
  389. hordelib/_comfyui/web/scripts/defaultGraph.js +119 -0
  390. hordelib/_comfyui/web/scripts/domWidget.js +326 -0
  391. hordelib/_comfyui/web/scripts/logging.js +370 -0
  392. hordelib/_comfyui/web/scripts/pnginfo.js +433 -0
  393. hordelib/_comfyui/web/scripts/ui/dialog.js +32 -0
  394. hordelib/_comfyui/web/scripts/ui/draggableList.js +287 -0
  395. hordelib/_comfyui/web/scripts/ui/imagePreview.js +97 -0
  396. hordelib/_comfyui/web/scripts/ui/settings.js +317 -0
  397. hordelib/_comfyui/web/scripts/ui/spinner.css +34 -0
  398. hordelib/_comfyui/web/scripts/ui/spinner.js +9 -0
  399. hordelib/_comfyui/web/scripts/ui/toggleSwitch.js +60 -0
  400. hordelib/_comfyui/web/scripts/ui/userSelection.css +135 -0
  401. hordelib/_comfyui/web/scripts/ui/userSelection.js +114 -0
  402. hordelib/_comfyui/web/scripts/ui.js +642 -0
  403. hordelib/_comfyui/web/scripts/utils.js +88 -0
  404. hordelib/_comfyui/web/scripts/widgets.js +527 -0
  405. hordelib/_comfyui/web/style.css +559 -0
  406. hordelib/_comfyui/web/types/comfy.d.ts +76 -0
  407. hordelib/_comfyui/web/types/litegraph.d.ts +1506 -0
  408. hordelib/_comfyui/web/user.css +1 -0
  409. hordelib/_version.py +16 -0
  410. hordelib/benchmark.py +252 -0
  411. hordelib/comfy_horde.py +810 -0
  412. hordelib/config_path.py +27 -0
  413. hordelib/consts.py +85 -0
  414. hordelib/exceptions.py +10 -0
  415. hordelib/horde.py +1364 -0
  416. hordelib/initialisation.py +107 -0
  417. hordelib/install_comfy.py +166 -0
  418. hordelib/model_database/db_dep.json +98 -0
  419. hordelib/model_database/db_embeds.json +43 -0
  420. hordelib/model_database/diffusers.json +31 -0
  421. hordelib/model_database/med_config.json +21 -0
  422. hordelib/model_manager/__init__.py +3 -0
  423. hordelib/model_manager/base.py +756 -0
  424. hordelib/model_manager/codeformer.py +11 -0
  425. hordelib/model_manager/compvis.py +50 -0
  426. hordelib/model_manager/controlnet.py +56 -0
  427. hordelib/model_manager/diffusers.py +17 -0
  428. hordelib/model_manager/esrgan.py +15 -0
  429. hordelib/model_manager/gfpgan.py +15 -0
  430. hordelib/model_manager/hyper.py +354 -0
  431. hordelib/model_manager/lora.py +1244 -0
  432. hordelib/model_manager/safety_checker.py +15 -0
  433. hordelib/model_manager/ti.py +850 -0
  434. hordelib/nodes/__init__.py +3 -0
  435. hordelib/nodes/comfy_controlnet_preprocessors/.gitignore +4 -0
  436. hordelib/nodes/comfy_controlnet_preprocessors/LICENSE +201 -0
  437. hordelib/nodes/comfy_controlnet_preprocessors/README.md +91 -0
  438. hordelib/nodes/comfy_controlnet_preprocessors/__init__.py +364 -0
  439. hordelib/nodes/comfy_controlnet_preprocessors/binary/__init__.py +15 -0
  440. hordelib/nodes/comfy_controlnet_preprocessors/canny/__init__.py +6 -0
  441. hordelib/nodes/comfy_controlnet_preprocessors/color/__init__.py +20 -0
  442. hordelib/nodes/comfy_controlnet_preprocessors/hed/__init__.py +150 -0
  443. hordelib/nodes/comfy_controlnet_preprocessors/leres/__init__.py +122 -0
  444. hordelib/nodes/comfy_controlnet_preprocessors/leres/leres/LICENSE +23 -0
  445. hordelib/nodes/comfy_controlnet_preprocessors/leres/leres/Resnet.py +199 -0
  446. hordelib/nodes/comfy_controlnet_preprocessors/leres/leres/Resnext_torch.py +248 -0
  447. hordelib/nodes/comfy_controlnet_preprocessors/leres/leres/depthmap.py +550 -0
  448. hordelib/nodes/comfy_controlnet_preprocessors/leres/leres/multi_depth_model_woauxi.py +33 -0
  449. hordelib/nodes/comfy_controlnet_preprocessors/leres/leres/net_tools.py +51 -0
  450. hordelib/nodes/comfy_controlnet_preprocessors/leres/leres/network_auxi.py +416 -0
  451. hordelib/nodes/comfy_controlnet_preprocessors/leres/pix2pix/LICENSE +19 -0
  452. hordelib/nodes/comfy_controlnet_preprocessors/leres/pix2pix/models/__init__.py +67 -0
  453. hordelib/nodes/comfy_controlnet_preprocessors/leres/pix2pix/models/base_model.py +244 -0
  454. hordelib/nodes/comfy_controlnet_preprocessors/leres/pix2pix/models/base_model_hg.py +58 -0
  455. hordelib/nodes/comfy_controlnet_preprocessors/leres/pix2pix/models/networks.py +623 -0
  456. hordelib/nodes/comfy_controlnet_preprocessors/leres/pix2pix/models/pix2pix4depth_model.py +155 -0
  457. hordelib/nodes/comfy_controlnet_preprocessors/leres/pix2pix/options/__init__.py +1 -0
  458. hordelib/nodes/comfy_controlnet_preprocessors/leres/pix2pix/options/base_options.py +156 -0
  459. hordelib/nodes/comfy_controlnet_preprocessors/leres/pix2pix/options/test_options.py +22 -0
  460. hordelib/nodes/comfy_controlnet_preprocessors/leres/pix2pix/util/__init__.py +1 -0
  461. hordelib/nodes/comfy_controlnet_preprocessors/leres/pix2pix/util/get_data.py +110 -0
  462. hordelib/nodes/comfy_controlnet_preprocessors/leres/pix2pix/util/guidedfilter.py +47 -0
  463. hordelib/nodes/comfy_controlnet_preprocessors/leres/pix2pix/util/html.py +86 -0
  464. hordelib/nodes/comfy_controlnet_preprocessors/leres/pix2pix/util/image_pool.py +54 -0
  465. hordelib/nodes/comfy_controlnet_preprocessors/leres/pix2pix/util/util.py +105 -0
  466. hordelib/nodes/comfy_controlnet_preprocessors/leres/pix2pix/util/visualizer.py +166 -0
  467. hordelib/nodes/comfy_controlnet_preprocessors/midas/__init__.py +39 -0
  468. hordelib/nodes/comfy_controlnet_preprocessors/midas/api.py +169 -0
  469. hordelib/nodes/comfy_controlnet_preprocessors/midas/midas/__init__.py +0 -0
  470. hordelib/nodes/comfy_controlnet_preprocessors/midas/midas/base_model.py +16 -0
  471. hordelib/nodes/comfy_controlnet_preprocessors/midas/midas/blocks.py +341 -0
  472. hordelib/nodes/comfy_controlnet_preprocessors/midas/midas/dpt_depth.py +108 -0
  473. hordelib/nodes/comfy_controlnet_preprocessors/midas/midas/midas_net.py +76 -0
  474. hordelib/nodes/comfy_controlnet_preprocessors/midas/midas/midas_net_custom.py +128 -0
  475. hordelib/nodes/comfy_controlnet_preprocessors/midas/midas/transforms.py +234 -0
  476. hordelib/nodes/comfy_controlnet_preprocessors/midas/midas/vit.py +491 -0
  477. hordelib/nodes/comfy_controlnet_preprocessors/midas/utils.py +189 -0
  478. hordelib/nodes/comfy_controlnet_preprocessors/mlsd/__init__.py +41 -0
  479. hordelib/nodes/comfy_controlnet_preprocessors/mlsd/models/mbv2_mlsd_large.py +292 -0
  480. hordelib/nodes/comfy_controlnet_preprocessors/mlsd/models/mbv2_mlsd_tiny.py +275 -0
  481. hordelib/nodes/comfy_controlnet_preprocessors/mlsd/utils.py +581 -0
  482. hordelib/nodes/comfy_controlnet_preprocessors/mp_face_mesh/__init__.py +156 -0
  483. hordelib/nodes/comfy_controlnet_preprocessors/mp_pose_hand/__init__.py +106 -0
  484. hordelib/nodes/comfy_controlnet_preprocessors/openpose/__init__.py +46 -0
  485. hordelib/nodes/comfy_controlnet_preprocessors/openpose/body.py +207 -0
  486. hordelib/nodes/comfy_controlnet_preprocessors/openpose/hand.py +71 -0
  487. hordelib/nodes/comfy_controlnet_preprocessors/openpose/model.py +217 -0
  488. hordelib/nodes/comfy_controlnet_preprocessors/openpose/util.py +164 -0
  489. hordelib/nodes/comfy_controlnet_preprocessors/pidinet/__init__.py +41 -0
  490. hordelib/nodes/comfy_controlnet_preprocessors/pidinet/model.py +638 -0
  491. hordelib/nodes/comfy_controlnet_preprocessors/requirements.txt +13 -0
  492. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/__init__.py +30 -0
  493. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/configs/_base_/datasets/ade20k.py +54 -0
  494. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/configs/_base_/datasets/chase_db1.py +59 -0
  495. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/configs/_base_/datasets/cityscapes.py +54 -0
  496. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/configs/_base_/datasets/cityscapes_769x769.py +35 -0
  497. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/configs/_base_/datasets/drive.py +59 -0
  498. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/configs/_base_/datasets/hrf.py +59 -0
  499. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/configs/_base_/datasets/pascal_context.py +60 -0
  500. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/configs/_base_/datasets/pascal_context_59.py +60 -0
  501. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/configs/_base_/datasets/pascal_voc12.py +57 -0
  502. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/configs/_base_/datasets/pascal_voc12_aug.py +9 -0
  503. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/configs/_base_/datasets/stare.py +59 -0
  504. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/configs/_base_/default_runtime.py +14 -0
  505. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/configs/_base_/models/ann_r50-d8.py +46 -0
  506. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/configs/_base_/models/apcnet_r50-d8.py +44 -0
  507. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/configs/_base_/models/ccnet_r50-d8.py +44 -0
  508. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/configs/_base_/models/cgnet.py +35 -0
  509. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/configs/_base_/models/danet_r50-d8.py +44 -0
  510. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/configs/_base_/models/deeplabv3_r50-d8.py +44 -0
  511. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/configs/_base_/models/deeplabv3_unet_s5-d16.py +50 -0
  512. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/configs/_base_/models/deeplabv3plus_r50-d8.py +46 -0
  513. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/configs/_base_/models/dmnet_r50-d8.py +44 -0
  514. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/configs/_base_/models/dnl_r50-d8.py +46 -0
  515. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/configs/_base_/models/emanet_r50-d8.py +47 -0
  516. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/configs/_base_/models/encnet_r50-d8.py +48 -0
  517. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/configs/_base_/models/fast_scnn.py +57 -0
  518. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/configs/_base_/models/fcn_hr18.py +52 -0
  519. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/configs/_base_/models/fcn_r50-d8.py +45 -0
  520. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/configs/_base_/models/fcn_unet_s5-d16.py +51 -0
  521. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/configs/_base_/models/fpn_r50.py +36 -0
  522. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/configs/_base_/models/fpn_uniformer.py +35 -0
  523. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/configs/_base_/models/gcnet_r50-d8.py +46 -0
  524. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/configs/_base_/models/lraspp_m-v3-d8.py +25 -0
  525. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/configs/_base_/models/nonlocal_r50-d8.py +46 -0
  526. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/configs/_base_/models/ocrnet_hr18.py +68 -0
  527. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/configs/_base_/models/ocrnet_r50-d8.py +47 -0
  528. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/configs/_base_/models/pointrend_r50.py +56 -0
  529. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/configs/_base_/models/psanet_r50-d8.py +49 -0
  530. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/configs/_base_/models/pspnet_r50-d8.py +44 -0
  531. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/configs/_base_/models/pspnet_unet_s5-d16.py +50 -0
  532. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/configs/_base_/models/upernet_r50.py +44 -0
  533. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/configs/_base_/models/upernet_uniformer.py +43 -0
  534. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/configs/_base_/schedules/schedule_160k.py +9 -0
  535. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/configs/_base_/schedules/schedule_20k.py +9 -0
  536. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/configs/_base_/schedules/schedule_40k.py +9 -0
  537. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/configs/_base_/schedules/schedule_80k.py +9 -0
  538. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/exp/upernet_global_small/config.py +38 -0
  539. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/exp/upernet_global_small/run.sh +10 -0
  540. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/exp/upernet_global_small/test.sh +10 -0
  541. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/exp/upernet_global_small/test_config_g.py +38 -0
  542. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/exp/upernet_global_small/test_config_h32.py +39 -0
  543. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/exp/upernet_global_small/test_config_w32.py +39 -0
  544. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/__init__.py +15 -0
  545. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/arraymisc/__init__.py +4 -0
  546. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/arraymisc/quantization.py +55 -0
  547. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/cnn/__init__.py +41 -0
  548. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/cnn/alexnet.py +61 -0
  549. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/cnn/bricks/__init__.py +35 -0
  550. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/cnn/bricks/activation.py +92 -0
  551. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/cnn/bricks/context_block.py +125 -0
  552. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/cnn/bricks/conv.py +44 -0
  553. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/cnn/bricks/conv2d_adaptive_padding.py +62 -0
  554. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/cnn/bricks/conv_module.py +206 -0
  555. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/cnn/bricks/conv_ws.py +148 -0
  556. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/cnn/bricks/depthwise_separable_conv_module.py +96 -0
  557. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/cnn/bricks/drop.py +64 -0
  558. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/cnn/bricks/generalized_attention.py +412 -0
  559. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/cnn/bricks/hsigmoid.py +34 -0
  560. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/cnn/bricks/hswish.py +29 -0
  561. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/cnn/bricks/non_local.py +306 -0
  562. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/cnn/bricks/norm.py +147 -0
  563. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/cnn/bricks/padding.py +36 -0
  564. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/cnn/bricks/plugin.py +88 -0
  565. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/cnn/bricks/registry.py +17 -0
  566. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/cnn/bricks/scale.py +21 -0
  567. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/cnn/bricks/swish.py +25 -0
  568. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/cnn/bricks/transformer.py +605 -0
  569. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/cnn/bricks/upsample.py +84 -0
  570. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/cnn/bricks/wrappers.py +180 -0
  571. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/cnn/builder.py +29 -0
  572. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/cnn/resnet.py +316 -0
  573. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/cnn/utils/__init__.py +19 -0
  574. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/cnn/utils/flops_counter.py +578 -0
  575. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/cnn/utils/fuse_conv_bn.py +59 -0
  576. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/cnn/utils/sync_bn.py +59 -0
  577. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/cnn/utils/weight_init.py +643 -0
  578. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/cnn/vgg.py +175 -0
  579. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/engine/__init__.py +8 -0
  580. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/engine/test.py +195 -0
  581. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/fileio/__init__.py +11 -0
  582. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/fileio/file_client.py +1127 -0
  583. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/fileio/handlers/__init__.py +7 -0
  584. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/fileio/handlers/base.py +30 -0
  585. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/fileio/handlers/json_handler.py +36 -0
  586. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/fileio/handlers/pickle_handler.py +28 -0
  587. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/fileio/handlers/yaml_handler.py +24 -0
  588. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/fileio/io.py +151 -0
  589. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/fileio/parse.py +97 -0
  590. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/image/__init__.py +28 -0
  591. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/image/colorspace.py +306 -0
  592. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/image/geometric.py +728 -0
  593. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/image/io.py +256 -0
  594. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/image/misc.py +43 -0
  595. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/image/photometric.py +428 -0
  596. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/model_zoo/deprecated.json +6 -0
  597. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/model_zoo/mmcls.json +31 -0
  598. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/model_zoo/open_mmlab.json +50 -0
  599. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/ops/__init__.py +81 -0
  600. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/ops/assign_score_withk.py +123 -0
  601. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/ops/ball_query.py +55 -0
  602. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/ops/bbox.py +72 -0
  603. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/ops/border_align.py +109 -0
  604. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/ops/box_iou_rotated.py +45 -0
  605. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/ops/carafe.py +287 -0
  606. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/ops/cc_attention.py +81 -0
  607. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/ops/contour_expand.py +49 -0
  608. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/ops/corner_pool.py +161 -0
  609. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/ops/correlation.py +196 -0
  610. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/ops/deform_conv.py +406 -0
  611. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/ops/deform_roi_pool.py +204 -0
  612. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/ops/deprecated_wrappers.py +43 -0
  613. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/ops/focal_loss.py +212 -0
  614. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/ops/furthest_point_sample.py +83 -0
  615. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/ops/fused_bias_leakyrelu.py +268 -0
  616. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/ops/gather_points.py +57 -0
  617. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/ops/group_points.py +224 -0
  618. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/ops/info.py +36 -0
  619. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/ops/iou3d.py +85 -0
  620. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/ops/knn.py +77 -0
  621. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/ops/masked_conv.py +111 -0
  622. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/ops/merge_cells.py +149 -0
  623. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/ops/modulated_deform_conv.py +280 -0
  624. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/ops/multi_scale_deform_attn.py +348 -0
  625. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/ops/nms.py +383 -0
  626. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/ops/pixel_group.py +75 -0
  627. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/ops/point_sample.py +317 -0
  628. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/ops/points_in_boxes.py +133 -0
  629. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/ops/points_sampler.py +168 -0
  630. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/ops/psa_mask.py +92 -0
  631. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/ops/roi_align.py +223 -0
  632. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/ops/roi_align_rotated.py +177 -0
  633. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/ops/roi_pool.py +86 -0
  634. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/ops/roiaware_pool3d.py +100 -0
  635. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/ops/roipoint_pool3d.py +77 -0
  636. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/ops/saconv.py +128 -0
  637. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/ops/scatter_points.py +135 -0
  638. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/ops/sync_bn.py +288 -0
  639. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/ops/three_interpolate.py +68 -0
  640. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/ops/three_nn.py +51 -0
  641. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/ops/tin_shift.py +68 -0
  642. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/ops/upfirdn2d.py +320 -0
  643. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/ops/voxelize.py +132 -0
  644. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/parallel/__init__.py +13 -0
  645. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/parallel/_functions.py +79 -0
  646. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/parallel/collate.py +84 -0
  647. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/parallel/data_container.py +89 -0
  648. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/parallel/data_parallel.py +89 -0
  649. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/parallel/distributed.py +105 -0
  650. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/parallel/distributed_deprecated.py +57 -0
  651. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/parallel/registry.py +9 -0
  652. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/parallel/scatter_gather.py +59 -0
  653. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/parallel/utils.py +20 -0
  654. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/runner/__init__.py +47 -0
  655. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/runner/base_module.py +194 -0
  656. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/runner/base_runner.py +515 -0
  657. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/runner/builder.py +22 -0
  658. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/runner/checkpoint.py +670 -0
  659. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/runner/default_constructor.py +43 -0
  660. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/runner/dist_utils.py +164 -0
  661. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/runner/epoch_based_runner.py +172 -0
  662. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/runner/fp16_utils.py +388 -0
  663. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/runner/hooks/__init__.py +29 -0
  664. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/runner/hooks/checkpoint.py +156 -0
  665. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/runner/hooks/closure.py +11 -0
  666. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/runner/hooks/ema.py +89 -0
  667. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/runner/hooks/evaluation.py +492 -0
  668. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/runner/hooks/hook.py +101 -0
  669. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/runner/hooks/iter_timer.py +18 -0
  670. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/runner/hooks/logger/__init__.py +15 -0
  671. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/runner/hooks/logger/base.py +166 -0
  672. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/runner/hooks/logger/dvclive.py +58 -0
  673. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/runner/hooks/logger/mlflow.py +78 -0
  674. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/runner/hooks/logger/neptune.py +82 -0
  675. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/runner/hooks/logger/pavi.py +113 -0
  676. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/runner/hooks/logger/tensorboard.py +49 -0
  677. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/runner/hooks/logger/text.py +235 -0
  678. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/runner/hooks/logger/wandb.py +56 -0
  679. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/runner/hooks/lr_updater.py +615 -0
  680. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/runner/hooks/memory.py +25 -0
  681. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/runner/hooks/momentum_updater.py +421 -0
  682. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/runner/hooks/optimizer.py +457 -0
  683. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/runner/hooks/profiler.py +180 -0
  684. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/runner/hooks/sampler_seed.py +20 -0
  685. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/runner/hooks/sync_buffer.py +22 -0
  686. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/runner/iter_based_runner.py +256 -0
  687. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/runner/log_buffer.py +41 -0
  688. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/runner/optimizer/__init__.py +9 -0
  689. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/runner/optimizer/builder.py +41 -0
  690. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/runner/optimizer/default_constructor.py +245 -0
  691. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/runner/priority.py +60 -0
  692. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/runner/utils.py +92 -0
  693. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/utils/__init__.py +69 -0
  694. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/utils/config.py +649 -0
  695. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/utils/env.py +99 -0
  696. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/utils/ext_loader.py +71 -0
  697. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/utils/logging.py +110 -0
  698. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/utils/misc.py +377 -0
  699. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/utils/parrots_jit.py +41 -0
  700. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/utils/parrots_wrapper.py +107 -0
  701. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/utils/path.py +101 -0
  702. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/utils/progressbar.py +208 -0
  703. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/utils/registry.py +304 -0
  704. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/utils/testing.py +140 -0
  705. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/utils/timer.py +117 -0
  706. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/utils/trace.py +24 -0
  707. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/utils/version_utils.py +90 -0
  708. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/version.py +35 -0
  709. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/video/__init__.py +11 -0
  710. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/video/io.py +310 -0
  711. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/video/optflow.py +248 -0
  712. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/video/processing.py +128 -0
  713. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/visualization/__init__.py +9 -0
  714. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/visualization/color.py +52 -0
  715. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/visualization/image.py +144 -0
  716. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv/visualization/optflow.py +109 -0
  717. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv_custom/__init__.py +5 -0
  718. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmcv_custom/checkpoint.py +477 -0
  719. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/apis/__init__.py +9 -0
  720. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/apis/inference.py +126 -0
  721. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/apis/test.py +216 -0
  722. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/apis/train.py +109 -0
  723. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/core/__init__.py +3 -0
  724. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/core/evaluation/__init__.py +8 -0
  725. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/core/evaluation/class_names.py +458 -0
  726. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/core/evaluation/eval_hooks.py +108 -0
  727. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/core/evaluation/metrics.py +296 -0
  728. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/core/seg/__init__.py +4 -0
  729. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/core/seg/builder.py +9 -0
  730. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/core/seg/sampler/__init__.py +4 -0
  731. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/core/seg/sampler/base_pixel_sampler.py +12 -0
  732. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/core/seg/sampler/ohem_pixel_sampler.py +76 -0
  733. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/core/utils/__init__.py +3 -0
  734. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/core/utils/misc.py +17 -0
  735. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/datasets/__init__.py +19 -0
  736. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/datasets/ade.py +84 -0
  737. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/datasets/builder.py +175 -0
  738. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/datasets/chase_db1.py +27 -0
  739. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/datasets/cityscapes.py +240 -0
  740. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/datasets/custom.py +372 -0
  741. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/datasets/dataset_wrappers.py +50 -0
  742. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/datasets/drive.py +27 -0
  743. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/datasets/hrf.py +27 -0
  744. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/datasets/pascal_context.py +103 -0
  745. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/datasets/pipelines/__init__.py +16 -0
  746. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/datasets/pipelines/compose.py +51 -0
  747. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/datasets/pipelines/formating.py +293 -0
  748. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/datasets/pipelines/loading.py +144 -0
  749. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/datasets/pipelines/test_time_aug.py +118 -0
  750. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/datasets/pipelines/transforms.py +838 -0
  751. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/datasets/stare.py +27 -0
  752. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/datasets/voc.py +29 -0
  753. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/__init__.py +12 -0
  754. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/backbones/__init__.py +17 -0
  755. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/backbones/cgnet.py +360 -0
  756. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/backbones/fast_scnn.py +353 -0
  757. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/backbones/hrnet.py +535 -0
  758. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/backbones/mobilenet_v2.py +182 -0
  759. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/backbones/mobilenet_v3.py +266 -0
  760. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/backbones/resnest.py +299 -0
  761. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/backbones/resnet.py +649 -0
  762. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/backbones/resnext.py +124 -0
  763. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/backbones/unet.py +450 -0
  764. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/backbones/uniformer.py +552 -0
  765. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/backbones/vit.py +442 -0
  766. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/builder.py +44 -0
  767. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/decode_heads/__init__.py +28 -0
  768. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/decode_heads/ann_head.py +259 -0
  769. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/decode_heads/apc_head.py +141 -0
  770. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/decode_heads/aspp_head.py +106 -0
  771. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/decode_heads/cascade_decode_head.py +57 -0
  772. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/decode_heads/cc_head.py +41 -0
  773. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/decode_heads/da_head.py +173 -0
  774. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/decode_heads/decode_head.py +226 -0
  775. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/decode_heads/dm_head.py +136 -0
  776. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/decode_heads/dnl_head.py +125 -0
  777. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/decode_heads/ema_head.py +155 -0
  778. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/decode_heads/enc_head.py +174 -0
  779. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/decode_heads/fcn_head.py +81 -0
  780. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/decode_heads/fpn_head.py +60 -0
  781. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/decode_heads/gc_head.py +41 -0
  782. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/decode_heads/lraspp_head.py +77 -0
  783. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/decode_heads/nl_head.py +46 -0
  784. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/decode_heads/ocr_head.py +124 -0
  785. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/decode_heads/point_head.py +312 -0
  786. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/decode_heads/psa_head.py +186 -0
  787. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/decode_heads/psp_head.py +101 -0
  788. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/decode_heads/sep_aspp_head.py +82 -0
  789. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/decode_heads/sep_fcn_head.py +54 -0
  790. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/decode_heads/uper_head.py +118 -0
  791. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/losses/__init__.py +12 -0
  792. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/losses/accuracy.py +78 -0
  793. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/losses/cross_entropy_loss.py +198 -0
  794. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/losses/dice_loss.py +119 -0
  795. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/losses/lovasz_loss.py +303 -0
  796. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/losses/utils.py +116 -0
  797. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/necks/__init__.py +4 -0
  798. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/necks/fpn.py +210 -0
  799. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/necks/multilevel_neck.py +53 -0
  800. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/segmentors/__init__.py +5 -0
  801. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/segmentors/base.py +255 -0
  802. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/segmentors/cascade_encoder_decoder.py +95 -0
  803. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/segmentors/encoder_decoder.py +275 -0
  804. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/utils/__init__.py +13 -0
  805. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/utils/drop.py +31 -0
  806. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/utils/inverted_residual.py +217 -0
  807. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/utils/make_divisible.py +27 -0
  808. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/utils/res_layer.py +95 -0
  809. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/utils/se_layer.py +60 -0
  810. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/utils/self_attention_block.py +161 -0
  811. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/utils/up_conv_block.py +106 -0
  812. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/models/utils/weight_init.py +62 -0
  813. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/ops/__init__.py +4 -0
  814. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/ops/encoding.py +74 -0
  815. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/ops/wrappers.py +50 -0
  816. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/utils/__init__.py +4 -0
  817. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/utils/collect_env.py +17 -0
  818. hordelib/nodes/comfy_controlnet_preprocessors/uniformer/mmseg/utils/logger.py +27 -0
  819. hordelib/nodes/comfy_controlnet_preprocessors/util.py +161 -0
  820. hordelib/nodes/facerestore/__init__.py +204 -0
  821. hordelib/nodes/facerestore/facelib/__init__.py +0 -0
  822. hordelib/nodes/facerestore/facelib/detection/__init__.py +116 -0
  823. hordelib/nodes/facerestore/facelib/detection/align_trans.py +219 -0
  824. hordelib/nodes/facerestore/facelib/detection/matlab_cp2tform.py +317 -0
  825. hordelib/nodes/facerestore/facelib/detection/retinaface/retinaface.py +420 -0
  826. hordelib/nodes/facerestore/facelib/detection/retinaface/retinaface_net.py +196 -0
  827. hordelib/nodes/facerestore/facelib/detection/retinaface/retinaface_utils.py +421 -0
  828. hordelib/nodes/facerestore/facelib/detection/yolov5face/__init__.py +0 -0
  829. hordelib/nodes/facerestore/facelib/detection/yolov5face/face_detector.py +175 -0
  830. hordelib/nodes/facerestore/facelib/detection/yolov5face/models/__init__.py +0 -0
  831. hordelib/nodes/facerestore/facelib/detection/yolov5face/models/common.py +324 -0
  832. hordelib/nodes/facerestore/facelib/detection/yolov5face/models/experimental.py +52 -0
  833. hordelib/nodes/facerestore/facelib/detection/yolov5face/models/yolo.py +300 -0
  834. hordelib/nodes/facerestore/facelib/detection/yolov5face/models/yolov5l.yaml +47 -0
  835. hordelib/nodes/facerestore/facelib/detection/yolov5face/models/yolov5n.yaml +45 -0
  836. hordelib/nodes/facerestore/facelib/detection/yolov5face/utils/__init__.py +0 -0
  837. hordelib/nodes/facerestore/facelib/detection/yolov5face/utils/autoanchor.py +12 -0
  838. hordelib/nodes/facerestore/facelib/detection/yolov5face/utils/datasets.py +35 -0
  839. hordelib/nodes/facerestore/facelib/detection/yolov5face/utils/extract_ckpt.py +5 -0
  840. hordelib/nodes/facerestore/facelib/detection/yolov5face/utils/general.py +271 -0
  841. hordelib/nodes/facerestore/facelib/detection/yolov5face/utils/torch_utils.py +40 -0
  842. hordelib/nodes/facerestore/facelib/parsing/__init__.py +28 -0
  843. hordelib/nodes/facerestore/facelib/parsing/bisenet.py +140 -0
  844. hordelib/nodes/facerestore/facelib/parsing/parsenet.py +194 -0
  845. hordelib/nodes/facerestore/facelib/parsing/resnet.py +69 -0
  846. hordelib/nodes/facerestore/facelib/utils/__init__.py +7 -0
  847. hordelib/nodes/facerestore/facelib/utils/face_restoration_helper.py +561 -0
  848. hordelib/nodes/facerestore/facelib/utils/face_utils.py +283 -0
  849. hordelib/nodes/facerestore/facelib/utils/misc.py +143 -0
  850. hordelib/nodes/node_controlnet_model_loader.py +35 -0
  851. hordelib/nodes/node_image_loader.py +42 -0
  852. hordelib/nodes/node_image_output.py +56 -0
  853. hordelib/nodes/node_lora_loader.py +73 -0
  854. hordelib/nodes/node_model_loader.py +147 -0
  855. hordelib/nodes/node_upscale_model_loader.py +29 -0
  856. hordelib/pipeline_designs/pipeline_controlnet.json +940 -0
  857. hordelib/pipeline_designs/pipeline_controlnet_annotator.json +537 -0
  858. hordelib/pipeline_designs/pipeline_controlnet_hires_fix.json +1085 -0
  859. hordelib/pipeline_designs/pipeline_image_facefix.json +177 -0
  860. hordelib/pipeline_designs/pipeline_image_upscale.json +173 -0
  861. hordelib/pipeline_designs/pipeline_stable_cascade.json +811 -0
  862. hordelib/pipeline_designs/pipeline_stable_cascade_remix.json +780 -0
  863. hordelib/pipeline_designs/pipeline_stable_diffusion.json +563 -0
  864. hordelib/pipeline_designs/pipeline_stable_diffusion_hires_fix.json +756 -0
  865. hordelib/pipeline_designs/pipeline_stable_diffusion_img2img_mask.json +625 -0
  866. hordelib/pipeline_designs/pipeline_stable_diffusion_paint.json +581 -0
  867. hordelib/pipelines/pipeline_controlnet.json +212 -0
  868. hordelib/pipelines/pipeline_controlnet_annotator.json +110 -0
  869. hordelib/pipelines/pipeline_controlnet_hires_fix.json +252 -0
  870. hordelib/pipelines/pipeline_image_facefix.json +39 -0
  871. hordelib/pipelines/pipeline_image_upscale.json +38 -0
  872. hordelib/pipelines/pipeline_stable_cascade.json +215 -0
  873. hordelib/pipelines/pipeline_stable_cascade_remix.json +207 -0
  874. hordelib/pipelines/pipeline_stable_diffusion.json +127 -0
  875. hordelib/pipelines/pipeline_stable_diffusion_hires_fix.json +167 -0
  876. hordelib/pipelines/pipeline_stable_diffusion_img2img_mask.json +140 -0
  877. hordelib/pipelines/pipeline_stable_diffusion_paint.json +132 -0
  878. hordelib/preload.py +53 -0
  879. hordelib/py.typed +0 -0
  880. hordelib/pyinstaller_hooks/__init__.py +0 -0
  881. hordelib/pyinstaller_hooks/hook-hordelib.horde.py +53 -0
  882. hordelib/safety.py +0 -0
  883. hordelib/safety_checker.py +18 -0
  884. hordelib/settings.py +149 -0
  885. hordelib/shared_model_manager.py +229 -0
  886. hordelib/train.py +384 -0
  887. hordelib/utils/__init__.py +0 -0
  888. hordelib/utils/distance.py +333 -0
  889. hordelib/utils/dynamicprompt.py +26 -0
  890. hordelib/utils/gpuinfo.py +199 -0
  891. hordelib/utils/image_utils.py +160 -0
  892. hordelib/utils/ioredirect.py +160 -0
  893. hordelib/utils/logger.py +167 -0
  894. hordelib/utils/sanitizer.py +38 -0
  895. 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
+ }
@@ -0,0 +1,3 @@
1
+ from hordelib.model_manager.hyper import MODEL_MANAGERS_TYPE_LOOKUP
2
+
3
+ __all__ = ["MODEL_MANAGERS_TYPE_LOOKUP"]