Spaces:
Running on Zero
Running on Zero
Add Anima-2.9B/3.8B loraPatch custom nodes.
Browse files19 unmodified lines202122232324252618 unmodified lines45464748484950511 unmodified line53545556565758591 unmodified line6162636464656667686970707172731 unmodified line75767778787980818283848586878889909186929394951 unmodified line9798999410010110210310410510610710810911011111211311411511611711811912012112212319 unmodified lines
print("--- 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}")
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_plus
ipadapter_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}")
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-SD3
ipadapter_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}")
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-Flux
ipadapter_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}")
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 origin pull/108/head && git -C {ipadapter_flux_path} checkout -f FETCH_HEAD")
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-controlnet
krea2_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}")
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-krea2edit
krea2edit_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}")
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-8B
anima_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}")
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-loraPatch
anima_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-loraPatch
anima_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_managementcomfy_integration/setup.py+30-8