RioShiina commited on
Commit
265c11c
·
verified ·
1 Parent(s): 0e231d7

Upload 104 files

Browse files
comfy_integration/setup.py CHANGED
@@ -65,6 +65,12 @@ def initialize_comfyui():
65
  print("✅ ComfyUI-IPAdapter-Flux extension cloned.")
66
  else:
67
  print("✅ ComfyUI-IPAdapter-Flux extension already exists.")
 
 
 
 
 
 
68
 
69
  # 4. ComfyUI-Newbie-Nodes
70
  newbie_nodes_path = os.path.join(APP_DIR, "custom_nodes", "ComfyUI-Newbie-Nodes")
 
65
  print("✅ ComfyUI-IPAdapter-Flux extension cloned.")
66
  else:
67
  print("✅ ComfyUI-IPAdapter-Flux extension already exists.")
68
+ try:
69
+ print("--- [Setup] Applying PR #108 compatibility patch for ComfyUI-IPAdapter-Flux ---")
70
+ os.system(f"git -C {ipadapter_flux_path} fetch origin pull/108/head && git -C {ipadapter_flux_path} checkout -f FETCH_HEAD")
71
+ print("✅ Successfully applied PR #108 compatibility patch.")
72
+ except Exception as e:
73
+ print(f"⚠️ Warning: Could not apply PR #108 compatibility patch for ComfyUI-IPAdapter-Flux: {e}")
74
 
75
  # 4. ComfyUI-Newbie-Nodes
76
  newbie_nodes_path = os.path.join(APP_DIR, "custom_nodes", "ComfyUI-Newbie-Nodes")
core/pipelines/pipeline_input_processor.py CHANGED
@@ -288,9 +288,13 @@ def process_pipeline_inputs(ui_inputs: Dict[str, Any], progress: gr.Progress, wo
288
  num_units = len(style_data) // 2
289
  st_images = style_data[0*num_units : 1*num_units]
290
  st_strengths = style_data[1*num_units : 2*num_units]
 
291
  for i in range(len(st_images)):
292
  if st_images[i] and st_strengths[i] > 0:
293
- _ensure_model_downloaded("sigclip_vision_patch14_384.safetensors", progress)
 
 
 
294
  temp_path = os.path.join(INPUT_DIR, f"temp_style_{i}_{random.randint(1000, 9999)}.png")
295
  st_images[i].save(temp_path, "PNG")
296
  temp_files_to_clean.append(temp_path)
 
288
  num_units = len(style_data) // 2
289
  st_images = style_data[0*num_units : 1*num_units]
290
  st_strengths = style_data[1*num_units : 2*num_units]
291
+ style_models_downloaded = False
292
  for i in range(len(st_images)):
293
  if st_images[i] and st_strengths[i] > 0:
294
+ if not style_models_downloaded:
295
+ _ensure_model_downloaded("sigclip_vision_patch14_384.safetensors", progress)
296
+ _ensure_model_downloaded("flux1-redux-dev.safetensors", progress)
297
+ style_models_downloaded = True
298
  temp_path = os.path.join(INPUT_DIR, f"temp_style_{i}_{random.randint(1000, 9999)}.png")
299
  st_images[i].save(temp_path, "PNG")
300
  temp_files_to_clean.append(temp_path)
requirements.txt CHANGED
@@ -1,6 +1,6 @@
1
  comfyui-frontend-package==1.45.20
2
- comfyui-workflow-templates==0.11.1
3
- comfyui-embedded-docs==0.5.6
4
  torch
5
  torchsde
6
  torchvision
 
1
  comfyui-frontend-package==1.45.20
2
+ comfyui-workflow-templates==0.11.6
3
+ comfyui-embedded-docs==0.5.7
4
  torch
5
  torchsde
6
  torchvision