Peter-Young commited on
Commit
b6550c2
·
verified ·
1 Parent(s): 2f8d56f

Upload folder using huggingface_hub

Browse files
src/comfyui/custom_nodes/ComfyUI-PuLID-Flux/pulidflux.py CHANGED
@@ -285,6 +285,7 @@ class ApplyPulidFlux:
285
  # 只初始化一次
286
  global face_helper
287
  if not face_helper:
 
288
  face_helper = FaceRestoreHelper(
289
  upscale_factor=1,
290
  face_size=512,
@@ -292,6 +293,7 @@ class ApplyPulidFlux:
292
  det_model='retinaface_resnet50',
293
  save_ext='png',
294
  device=device,
 
295
  )
296
  face_helper.face_parse = None
297
  face_helper.face_parse = init_parsing_model(model_name='bisenet', device=device)
 
285
  # 只初始化一次
286
  global face_helper
287
  if not face_helper:
288
+ from folder_paths import models_dir
289
  face_helper = FaceRestoreHelper(
290
  upscale_factor=1,
291
  face_size=512,
 
293
  det_model='retinaface_resnet50',
294
  save_ext='png',
295
  device=device,
296
+ model_rootpath=os.path.join(models_dir, 'facedetection')
297
  )
298
  face_helper.face_parse = None
299
  face_helper.face_parse = init_parsing_model(model_name='bisenet', device=device)
src/comfyui/custom_nodes/ComfyUI-TiledDiffusion/.patches.py CHANGED
@@ -1,7 +1,7 @@
1
  def calc_cond_batch(model, conds, x_in, timestep, model_options):
2
 
3
  if 'tiled_diffusion' not in model_options:
4
- return calc_cond_batch_original_tiled_diffusion_b58eb35a(model, conds, x_in, timestep, model_options)
5
  out_conds = []
6
  out_counts = []
7
  to_run = []
 
1
  def calc_cond_batch(model, conds, x_in, timestep, model_options):
2
 
3
  if 'tiled_diffusion' not in model_options:
4
+ return calc_cond_batch_original_tiled_diffusion_d47f00f5(model, conds, x_in, timestep, model_options)
5
  out_conds = []
6
  out_counts = []
7
  to_run = []
src/comfyui/custom_nodes/ComfyUI_essentials/image.py CHANGED
@@ -785,7 +785,8 @@ class RemBGSession:
785
  model = model.split(":")[0]
786
 
787
  import os
788
- os.environ['U2NET_HOME'] = os.path.join('.', 'models/rembg')
 
789
 
790
  class Session:
791
  def __init__(self, model, providers):
 
785
  model = model.split(":")[0]
786
 
787
  import os
788
+ from folder_paths import models_dir
789
+ os.environ['U2NET_HOME'] = os.path.join(models_dir, 'rembg')
790
 
791
  class Session:
792
  def __init__(self, model, providers):
src/comfyui/output/ComfyUI_00058_.png ADDED