Spaces:
Running on Zero
Running on Zero
Add Anima-2.9B/3.8B loraPatch custom nodes.
Browse files19 unmodified lines2021222324252618 unmodified lines454647484950511 unmodified line535455565758591 unmodified line616263646566676869707172731 unmodified line7576777879808182838485868788891 unmodified line91929394959697989910010119 unmodified linesprint("--- Cloning ComfyUI Repository ---")if not os.path.exists(COMFYUI_TEMP_DIR):os.system(f"git clone https://github.com/comfy-Org/ComfyUI {COMFYUI_TEMP_DIR}")print("β ComfyUI repository cloned.")else:print("β ComfyUI repository already exists.")18 unmodified lines# 1. ComfyUI_IPAdapter_plusipadapter_plus_path = os.path.join(APP_DIR, "custom_nodes", "ComfyUI_IPAdapter_plus")if not os.path.exists(ipadapter_plus_path):os.system(f"git clone https://github.com/cubiq/ComfyUI_IPAdapter_plus.git {ipadapter_plus_path}")print("β ComfyUI_IPAdapter_plus extension cloned.")else:print("β ComfyUI_IPAdapter_plus extension already exists.")1 unmodified line# 2. ComfyUI-InstantX-IPAdapter-SD3ipadapter_plus_path = os.path.join(APP_DIR, "custom_nodes", "ComfyUI-InstantX-IPAdapter-SD3")if not os.path.exists(ipadapter_plus_path):os.system(f"git clone https://github.com/Slickytail/ComfyUI-InstantX-IPAdapter-SD3.git {ipadapter_plus_path}")print("β ComfyUI-InstantX-IPAdapter-SD3 extension cloned.")else:print("β ComfyUI-InstantX-IPAdapter-SD3 extension already exists.")1 unmodified line# 3. ComfyUI-IPAdapter-Fluxipadapter_flux_path = os.path.join(APP_DIR, "custom_nodes", "ComfyUI-IPAdapter-Flux")if not os.path.exists(ipadapter_flux_path):os.system(f"git clone https://github.com/Shakker-Labs/ComfyUI-IPAdapter-Flux.git {ipadapter_flux_path}")print("β ComfyUI-IPAdapter-Flux extension cloned.")else:print("β ComfyUI-IPAdapter-Flux extension already exists.")try:print("--- [Setup] Applying PR #108 compatibility patch for ComfyUI-IPAdapter-Flux ---")os.system(f"git -C {ipadapter_flux_path} fetch origin pull/108/head && git -C {ipadapter_flux_path} checkout -f FETCH_HEAD")print("β Successfully applied PR #108 compatibility patch.")except Exception as e:print(f"β οΈ Warning: Could not apply PR #108 compatibility patch for ComfyUI-IPAdapter-Flux: {e}")1 unmodified line# 4. comfyui-krea2-controlnetkrea2_controlnet_nodes_path = os.path.join(APP_DIR, "custom_nodes", "comfyui-krea2-controlnet")if not os.path.exists(krea2_controlnet_nodes_path):os.system(f"git clone https://github.com/facok/comfyui-krea2-controlnet.git {krea2_controlnet_nodes_path}")print("β comfyui-krea2-controlnet extension cloned.")else:print("β comfyui-krea2-controlnet extension already exists.")# 5. comfyui-krea2editkrea2edit_nodes_path = os.path.join(APP_DIR, "custom_nodes", "comfyui-krea2edit")if not os.path.exists(krea2edit_nodes_path):os.system(f"git clone https://github.com/lbouaraba/comfyui-krea2edit.git {krea2edit_nodes_path}")print("β comfyui-krea2edit extension cloned.")else:print("β comfyui-krea2edit extension already exists.")1 unmodified line# 6. comfyui-anima-3-8Banima_38b_nodes_path = os.path.join(APP_DIR, "custom_nodes", "comfyui-anima-3-8B")if not os.path.exists(anima_38b_nodes_path):os.system(f"git clone https://github.com/GumGum10/comfyui-anima-3-8B.git {anima_38b_nodes_path}")print("β comfyui-anima-3-8B extension cloned.")else:print("β comfyui-anima-3-8B extension already exists.")print(f"β Current working directory is: {os.getcwd()}")import comfy.model_management19 unmodified lines2021222324252618 unmodified lines454647484950511 unmodified line535455565758591 unmodified line616263646566676869707172731 unmodified line7576777879808182838485868788899091929394951 unmodified line97989910010110210310410510610710810911011111211311411511611711811912012112212319 unmodified linesprint("--- Cloning ComfyUI Repository ---")if not os.path.exists(COMFYUI_TEMP_DIR):os.system(f"git clone --depth 1 https://github.com/comfy-Org/ComfyUI {COMFYUI_TEMP_DIR}")print("β ComfyUI repository cloned.")else:print("β ComfyUI repository already exists.")18 unmodified lines# 1. ComfyUI_IPAdapter_plusipadapter_plus_path = os.path.join(APP_DIR, "custom_nodes", "ComfyUI_IPAdapter_plus")if not os.path.exists(ipadapter_plus_path):os.system(f"git clone --depth 1 https://github.com/cubiq/ComfyUI_IPAdapter_plus.git {ipadapter_plus_path}")print("β ComfyUI_IPAdapter_plus extension cloned.")else:print("β ComfyUI_IPAdapter_plus extension already exists.")1 unmodified line# 2. ComfyUI-InstantX-IPAdapter-SD3ipadapter_plus_path = os.path.join(APP_DIR, "custom_nodes", "ComfyUI-InstantX-IPAdapter-SD3")if not os.path.exists(ipadapter_plus_path):os.system(f"git clone --depth 1 https://github.com/Slickytail/ComfyUI-InstantX-IPAdapter-SD3.git {ipadapter_plus_path}")print("β ComfyUI-InstantX-IPAdapter-SD3 extension cloned.")else:print("β ComfyUI-InstantX-IPAdapter-SD3 extension already exists.")1 unmodified line# 3. ComfyUI-IPAdapter-Fluxipadapter_flux_path = os.path.join(APP_DIR, "custom_nodes", "ComfyUI-IPAdapter-Flux")if not os.path.exists(ipadapter_flux_path):os.system(f"git clone --depth 1 https://github.com/Shakker-Labs/ComfyUI-IPAdapter-Flux.git {ipadapter_flux_path}")print("β ComfyUI-IPAdapter-Flux extension cloned.")else:print("β ComfyUI-IPAdapter-Flux extension already exists.")try:print("--- [Setup] Applying PR #108 compatibility patch for ComfyUI-IPAdapter-Flux ---")os.system(f"git -C {ipadapter_flux_path} fetch --depth 1 origin pull/108/head && git -C {ipadapter_flux_path} checkout -f FETCH_HEAD")print("β Successfully applied PR #108 compatibility patch.")except Exception as e:print(f"β οΈ Warning: Could not apply PR #108 compatibility patch for ComfyUI-IPAdapter-Flux: {e}")1 unmodified line# 4. comfyui-krea2-controlnetkrea2_controlnet_nodes_path = os.path.join(APP_DIR, "custom_nodes", "comfyui-krea2-controlnet")if not os.path.exists(krea2_controlnet_nodes_path):os.system(f"git clone --depth 1 https://github.com/facok/comfyui-krea2-controlnet.git {krea2_controlnet_nodes_path}")print("β comfyui-krea2-controlnet extension cloned.")else:print("β comfyui-krea2-controlnet extension already exists.")try:print("--- [Setup] Applying PR #12 compatibility patch for comfyui-krea2-controlnet ---")os.system(f"git -C {krea2_controlnet_nodes_path} fetch --depth 1 origin pull/12/head && git -C {krea2_controlnet_nodes_path} checkout -f FETCH_HEAD")print("β Successfully applied PR #12 compatibility patch.")except Exception as e:print(f"β οΈ Warning: Could not apply PR #12 compatibility patch for comfyui-krea2-controlnet: {e}")# 5. comfyui-krea2editkrea2edit_nodes_path = os.path.join(APP_DIR, "custom_nodes", "comfyui-krea2edit")if not os.path.exists(krea2edit_nodes_path):os.system(f"git clone --depth 1 https://github.com/lbouaraba/comfyui-krea2edit.git {krea2edit_nodes_path}")print("β comfyui-krea2edit extension cloned.")else:print("β comfyui-krea2edit extension already exists.")1 unmodified line# 6. comfyui-anima-3-8Banima_38b_nodes_path = os.path.join(APP_DIR, "custom_nodes", "comfyui-anima-3-8B")if not os.path.exists(anima_38b_nodes_path):os.system(f"git clone --depth 1 https://github.com/GumGum10/comfyui-anima-3-8B.git {anima_38b_nodes_path}")print("β comfyui-anima-3-8B extension cloned.")else:print("β comfyui-anima-3-8B extension already exists.")# 7. ComfyUI-Anima-2.9B-loraPatchanima_29b_lora_path = os.path.join(APP_DIR, "custom_nodes", "ComfyUI-Anima-2.9B-loraPatch")if not os.path.exists(anima_29b_lora_path):os.system(f"git clone --depth 1 https://github.com/sparklingcoffee777/ComfyUI-Anima-2.9B-loraPatch.git {anima_29b_lora_path}")print("β ComfyUI-Anima-2.9B-loraPatch extension cloned.")else:print("β ComfyUI-Anima-2.9B-loraPatch extension already exists.")# 8. ComfyUI-Anima-3.8B-loraPatchanima_38b_lora_path = os.path.join(APP_DIR, "custom_nodes", "ComfyUI-Anima-3.8B-loraPatch")if not os.path.exists(anima_38b_lora_path):os.system(f"git clone --depth 1 https://github.com/KitagawaCoding/ComfyUI-Anima-3.8B-loraPatch.git {anima_38b_lora_path}")print("β ComfyUI-Anima-3.8B-loraPatch extension cloned.")else:print("β ComfyUI-Anima-3.8B-loraPatch extension already exists.")print(f"β Current working directory is: {os.getcwd()}")import comfy.model_management
comfy_integration/setup.py+30-8