CivArchive
    Loop Upscale - Automated upscale workflow for different scenarios - v2.0_Batch_Outdated
    NSFW
    Preview 40783477

    Buy me a coffee ☕

    Workflow Explained (in Chinese):

    Flux.1_v2.0: https://www.bilibili.com/video/BV19GDjYiErK/

    Flux.1_v1.0: https://www.bilibili.com/video/BV16nSaYpE5A/

    Features

    This workflow adopts an iterative approach, automatically determining the necessary parameters and process based on the image size. It upscales by a factor of 2 each time, repeating the process until the target size is reached.

     

    Solved Issues

    Compared to common upscaling workflows, this workflow primarily addresses the following issues:

    1. When the original image size is too small, forcing an upscale results in significant deviations from the original.

    2. Different sizes of original images require specific parameter adjustments or even different upscaling processes to achieve optimal results.

    3. When using prompts to guide AI in Tiled upscaling, the AI may sometimes experience "hallucinations" generating unwanted elements.

     

    Requirement

     

    Tips

    1. Generally, you only need to adjust the "Target Size" in the "Input" group and select the image to upscale.

    2. The higher the "Similarity" value, the closer the result is to the original image; the lower the "Similarity" value, the more detailed the result, but with reduced resemblance to the original. Generally, when upscaling portraits, the "Similarity" value should be between 0.97 and 0.99 to preserve facial features. In other cases, you can try lower values, as 0.85 to 0.98 can still yield good results.

     

    __________________________________________________________________

    支持我的工作 ☕

    工作流详解:

    Flux.1_v2.0: https://www.bilibili.com/video/BV19GDjYiErK/

    Flux.1_v1.0: https://www.bilibili.com/video/BV16nSaYpE5A/

    特点

    这个工作流采用了循环的办法,根据图片的尺寸,自动判断放大时所需的参数和流程,每次放大2倍,不断循环,直至目标尺寸。

     

    解决的问题

    对比目前常见的放大流程,这个工作流主要解决了以下问题:

    1. 原图尺寸太小时,若强行一次性放大,结果和原图的偏差较大。

    2. 对于不同尺寸的原图,都要做针对性的调参,甚至要用不同的放大流程,才能得到较好的结果。

    3. 使用提示词引导,并进行Tile分块放大时,AI有时候会产生“幻觉”,绘制出我们不想要的东西。

     

    必需

     

    提示

    1. 通常来说,你只需要在“Input”组中修改“Target Size”,并选择要放大的图片。

    2. “Similarity”值越大,结果和原图越接近;“Similarity”值越小,结果的细节越多、但是会降低和原图的相似性。通常来说,对人物进行放大时,“Similarity”值应为0.97-0.99,以保持人物的相貌。其他情况下,你可以尝试更低的值,0.85-0.98 都可以得到不错的结果。

    Description

    Batch processing for v2.0.

    Please change the Load Path and Output Path.

    _________

    v2.0 图片批处理。

    请先修改载入路径和输出路径。

    FAQ

    Comments (26)

    lss2024888458Dec 6, 2024
    CivitAI

    up主,这次更新的版本加载有问题,大部分节点被对齐挤到左侧的一堆,返回:TypeError: Cannot read properties of undefined (reading 'type'),问了ChatGPT是Easy-Use的节点无法读取 undefined 的 type 属性,

    注:我的Easy-Use已经更新最新版本

    1.0版本的工作流没有加载问题

    zyd232
    Author
    Dec 7, 2024

    ComfyUI 内核更新导致的问题(我记得是前天的版本有这个问题),更新一下ComfyUI 就行了

    lss2024888458Dec 7, 2024

    ComfyUI 内核已更新至12月6日最新版本,Easy-Use更新至12月4日版本,也是一样的问题,Easy-Use的节点无法读取 undefined 的 type 属性

    zyd232
    Author
    Dec 8, 2024

    @lss2024888458 ComfyUI 目前的最新版本应是12月04日的 v0.3.7。而你说的是12月6日的版本,是不是用了别的 commit?我这边一切正常,也让网友测试过、都没问题。我也查了一下你的报错,大概率并非easy-use导致的问题,建议看一下是不是某些前端相关的辅助类插件的问题(比如翻译、连线优化、可视化等等)

    lss2024888458Dec 8, 2024

    可能是有什么插件的依赖冲突了,多谢up主

    jingtianliDec 15, 2024

    @zyd232 我也遇到了一模一样的问题,我们估计都是comfyui portable的使用者,而非秋叶版本,目前直接把最新的2.0工作流拉入浏览器就会出现 巨长的一列错误
    Loading aborted due to error reloading workflow data

    TypeError: Cannot read properties of undefined (reading 'type')TypeError: Cannot read properties of undefined (reading 'type') at e.onConnectionsChange (http://127.0.0.1:8188/extensions/ComfyUI-Easy-Use/assets/extensions-29B2pS6_.js:1:100022) at e.configure (http://127.0.0.1:8188/assets/index-CoOvI8ZH.js:29240:35) at LGraph2.configure (http://127.0.0.1:8188/assets/index-CoOvI8ZH.js:39063:17) at LGraph$1.configure (http://127.0.0.1:8188/assets/index-CoOvI8ZH.js:88029:26) at LGraph.configure (http://127.0.0.1:8188/extensions/ComfyUI-Custom-Scripts/js/reroutePrimitive.js:14:29) at ComfyApp.loadGraphData (http://127.0.0.1:8188/assets/index-CoOvI8ZH.js:88529:18) at async app.loadGraphData (http://127.0.0.1:8188/extensions/ComfyUI-Manager/components-manager.js:773:9) at async reader.onload (http://127.0.0.1:8188/assets/index-CoOvI8ZH.js:88898:11)

    This may be due to the following script:
    /extensions/ComfyUI-Easy-Use/assets/extensions-29B2pS6_.js

    一潭可以试试用官方版本试验一下,这肯定不是楼主一人的个例

    zyd232
    Author
    Dec 17, 2024

    @jingtianli 我这边用的是官方的源(https://github.com/comfyanonymous/ComfyUI),没有用整合包啥的。

    jingtianliDec 23, 2024

    @zyd232 https://github.com/yolain/ComfyUI-Easy-Use/issues/578
    此bug经过Easy-Use
    更新以后已经可以正常在python 3.12中使用

    plstable130Dec 9, 2024
    CivitAI

    With the last updates of ACN you may want to correct the workflow to avoid the following error : ACN_ScaledSoftControlNetWeights 'int' object has no attribute 'copy'

    To do so, unplug the connector from "Loop Upscale Path A" named "<= Base_shift - If else" connected to "Scaled Soft Weights ACN" cn_extras.

    By removing this connector the workflow will operate again.
    A big thanks to KosinKadink for the solution. https://github.com/Kosinkadink/ComfyUI-Advanced-ControlNet

    zyd232
    Author
    Dec 11, 2024· 1 reaction

    Thank you for the information.

    I have uploaded the fixed workflow for v2.0.

    jingtianliDec 15, 2024· 1 reaction
    CivitAI

    ComfyUI Portable 官方最新版出现如下错误,无法导入工作流

    Loading aborted due to error reloading workflow data

    TypeError: Cannot read properties of undefined (reading 'type')TypeError: Cannot read properties of undefined (reading 'type') at e.onConnectionsChange (http://127.0.0.1:8188/extensions/ComfyUI-Easy-Use/assets/extensions-29B2pS6_.js:1:100022) at e.configure (http://127.0.0.1:8188/assets/index-CoOvI8ZH.js:29240:35) at LGraph2.configure (http://127.0.0.1:8188/assets/index-CoOvI8ZH.js:39063:17) at LGraph$1.configure (http://127.0.0.1:8188/assets/index-CoOvI8ZH.js:88029:26) at LGraph.configure (http://127.0.0.1:8188/extensions/ComfyUI-Custom-Scripts/js/reroutePrimitive.js:14:29) at ComfyApp.loadGraphData (http://127.0.0.1:8188/assets/index-CoOvI8ZH.js:88529:18) at async app.loadGraphData (http://127.0.0.1:8188/extensions/ComfyUI-Manager/components-manager.js:773:9) at async reader.onload (http://127.0.0.1:8188/assets/index-CoOvI8ZH.js:88898:11)

    This may be due to the following script:
    /extensions/ComfyUI-Easy-Use/assets/extensions-29B2pS6_.js

    jingtianliDec 15, 2024

    这里建议up可以把SetNode统一修改为comfy自带的setnode,来避免此类问题

    jingtianliDec 15, 2024

    这也许是官方整合包python版本过高是3.12导致的原因?

    jingtianliDec 16, 2024

    https://github.com/yolain/ComfyUI-Easy-Use/issues/578
    此bug经过Easy-Use 更新以后已经可以正常在python 3.12中使用

    skizzezu3dDec 27, 2024· 1 reaction
    CivitAI

    I installed all the missing nodes and even deleted all my nodes and reinstalled everything but the connections (e.g. "Size Target", "Image Input",...) keep framed red and I get the error "Cannot execute because a node is missing the class_type property.: Node ID '#21'"

    zyd232
    Author
    Dec 28, 2024

    Install Easy-Use from github: https://github.com/yolain/ComfyUI-Easy-Use

    And make sure ComfyUI and Easy-Use both are the newest version.

    NeverWasFeb 27, 2025· 2 reactions
    CivitAI

    up你好!有没有可能只是变清晰,而不需要放大或者放太大,同样清晰的情况下,又能节约时间?(我试了小数值的放大效果清晰度不行,少了很多细节)

    ekakrap315Mar 27, 2025· 1 reaction
    CivitAI

    Thank you for the workflow! It is excellent! Thank you for your work!

    GemneyeIIApr 5, 2025· 1 reaction
    CivitAI

    Something bad is happening in the Loop Upscale Path A group. I will post in the gallery, but setting the similarity to .95 and .97 the image is not recognizable as the same image. If this worked as intended, I think this would be a great tool for the upscale arsenal. Hopefully this is an easy fix. This appears to happen with all images.

    skelenton289May 13, 2025· 1 reaction
    CivitAI

    I can't get it to output anything for some reason. It just finishes almost instantly, and has no output image.

    got promptWARNING: PlaySound.IS_CHANGED() missing 1 required positional argument: 'self'Prompt executed in 0.84 seconds
    OptimumMay 25, 2025

    Same here. Removed play sound and still finished in 0.27 seconds with no output.

    zoom83Jul 18, 2025· 1 reaction
    CivitAI

    realy nice, but how to get rid of the fluxish look? maybe some grain lora? add-flux-detail loras does not help for me

    plstable130Jul 26, 2025· 2 reactions
    CivitAI

    It seems that the workflow is no longer working with the latest versions of ComfyUI and Transformers.

    Steps to Reproduce:

    Fresh install of ComfyUI 0.3.45

    Installed all missing models using the ComfyUI Manager

    Running the script with Florence2-Flux-Large fails due to an issue in the LayerStyle_Advance node, specifically the LayerUtility: Florence2 Image2Prompt (Advance) step, which causes the process to crash.

    Error Explanation:
    The crash is caused by GenerationMixin no longer being included in Transformers (version 4.50 and above).

    Temporary Solution:
    To resolve this issue, install Transformers version < 4.50 (but will not work in the end).

    I attempted to modify modeling_florence2.py by changing the class definition:

    class Florence2LanguageForConditionalGeneration(Florence2LanguagePreTrainedModel):

    to:

    class Florence2LanguageForConditionalGeneration(Florence2LanguagePreTrainedModel, GenerationMixin):

    And I added:

    from transformers.generation.utils import GenerationMixin

    at the top of modeling_florence2.py, after the comments section.

    Next Issue:
    After making the above modifications, I then tried to update florence2_ultra.py, but I’m currently stuck and unsure about what exactly needs to be updated to reflect the new behavior of Transformers.

    Additional Info:

    After downgrading to Transformers 4.49, Florence2 works, but nothing else seems to function. The process ends without generating an image, and no error message is provided.

    Summary:

    The issue arises from GenerationMixin being removed in Transformers 4.50.

    Downgrading Transformers to version < 4.50 resolves the issue for Florence2, but the overall process still fails with no image output or error.

    zyd232
    Author
    Aug 4, 2025

    There's an issue caused by the "If else" logic node in Easy-use. It will be fixed soon. I will upload the fixed workflows.

    zyd232
    Author
    Aug 4, 2025

    Fixed.

    aletech83504Sep 29, 2025
    CivitAI

    I filled in both Load Images For Loop and Output Path, but it always find only 1 image and, after FW finished, no image is saved...

    Workflows
    Flux.1 D

    Details

    Downloads
    156
    Platform
    CivitAI
    Platform Status
    Available
    Created
    11/18/2024
    Updated
    5/7/2026
    Deleted
    -

    Files

    loopUpscaleAutomated_v20BatchOutdated.zip

    loopUpscaleAutomated_flux1V20Batch.zip

    Mirrors

    loopUpscaleAutomated_flux1V20Batch.zip

    Mirrors