remove:AutoDownScaleUnet (Because is not a good modification)

This commit is contained in:
yolain
2024-01-08 15:56:13 +08:00
parent f2efd299d2
commit aba73f789b
3 changed files with 6 additions and 7 deletions
-1
View File
@@ -32,7 +32,6 @@ After installing the node package, the UI interface will be automatically switch
**2024-01-08**
- `easy XYInputs ModelMergeBlocks` Values can be imported from CSV files
- `easy kSamplerFull` and other related samplers have added the judgment of the model context_dim, and if it exceeds a certain percentage, the model Unet will be automatically contracted with the default parameters (if the relevant node of the shrinking Unet is connected, this operation will not be performed)
- Fixed `easy pipeToBasicPipe` Bug
- Removed `easy imageRemBg`
+1 -1
View File
@@ -39,8 +39,8 @@
**2024-01-08**
- 修改 `easy fullLoader` 和 `easy a1111Loader` 中的 **a1111_prompt_style** 默认值为 False
- `easy XYInputs ModelMergeBlocks` 支持csv文件导入数值
- `easy kSamplerFull` 等相关采样器 增加了对模型context_dim的判断,若超出一定比例将使用默认参数自动收缩模型Unet (若连接了收缩Unet的相关节点将不执行此操作)
- 修复 `easy pipeToBasicPipe` 报错
- 移除了 `easy imageRemBg` (很多包中都有移除背景的节点,由于比较占用ComfyUI启动加载时间,这次更新中注释掉了其相关代码)
+5 -5
View File
@@ -1570,7 +1570,7 @@ class fullLoader:
@classmethod
def INPUT_TYPES(cls):
resolution_strings = [f"{width} x {height}" for width, height in BASE_RESOLUTIONS]
a1111_prompt_style_default = True if "smZ CLIPTextEncode" in ALL_NODE_CLASS_MAPPINGS else False
a1111_prompt_style_default = False
return {"required": {
"ckpt_name": (folder_paths.get_filename_list("checkpoints"),),
@@ -1770,7 +1770,7 @@ class a1111Loader:
@classmethod
def INPUT_TYPES(cls):
resolution_strings = [f"{width} x {height}" for width, height in BASE_RESOLUTIONS]
a1111_prompt_style_default = True if "smZ CLIPTextEncode" in ALL_NODE_CLASS_MAPPINGS else False
a1111_prompt_style_default = False
checkpoints = folder_paths.get_filename_list("checkpoints")
loras = ["None"] + folder_paths.get_filename_list("loras")
return {"required": {
@@ -2741,7 +2741,7 @@ class samplerFull:
FUNCTION = "run"
CATEGORY = "EasyUse/Sampler"
def run(self, pipe, steps, cfg, sampler_name, scheduler, denoise, image_output, link_id, save_prefix, seed_num=None, model=None, positive=None, negative=None, latent=None, vae=None, clip=None, xyPlot=None, tile_size=None, prompt=None, extra_pnginfo=None, my_unique_id=None, force_full_denoise=False, disable_noise=False):
def run(self, pipe, steps, cfg, sampler_name, scheduler, denoise, image_output, link_id, save_prefix, seed_num=None, model=None, positive=None, negative=None, latent=None, vae=None, clip=None, xyPlot=None, tile_size=None, prompt=None, extra_pnginfo=None, my_unique_id=None, force_full_denoise=False, disable_noise=False, auto_downscale=False):
# Clean loaded_objects
easyCache.update_loaded_objects(prompt)
@@ -2822,8 +2822,8 @@ class samplerFull:
preview_latent, force_full_denoise=force_full_denoise, disable_noise=disable_noise):
# Downscale Model Unet
if samp_model is not None:
samp_model = downscale_model_unet(samp_model)
# if samp_model is not None and auto_downscale:
# samp_model = downscale_model_unet(samp_model)
# 推理初始时间
start_time = int(time.time() * 1000)
# 开始推理