comfyUI deprecate(“AutoencoderTinyBlock“, “0.29“, deprecation_message)

devtools/2024/9/23 14:33:49/

ComfyUI 出现如下提示: 

/mnt/data/aigc/ComfyUI/comfyui_venv/lib/python3.10/site-packages/diffusers/models/unet_2d_blocks.py:249: FutureWarning: `AutoencoderTinyBlock` is deprecated and will be removed in version 0.29. Importing `AutoencoderTinyBlock` from `diffusers.models.unet_2d_blocks` is deprecated and this will be removed in a future version. Please use `from diffusers.models.unets.unet_2d_blocks import AutoencoderTinyBlock`, instead.
  deprecate("AutoencoderTinyBlock", "0.29", deprecation_message)
[2024-05-05 03:03] /mnt/data/aigc/ComfyUI/comfyui_venv/lib/python3.10/site-packages/diffusers/models/unet_2d_blocks.py:254: FutureWarning: `UNetMidBlock2D` is deprecated and will be removed in version 0.29. Importing `UNetMidBlock2D` from `diffusers.models.unet_2d_blocks` is deprecated and this will be removed in a future version. Please use `from diffusers.models.unets.unet_2d_blocks import UNetMidBlock2D`, instead.
  deprecate("UNetMidBlock2D", "0.29", deprecation_message)
[2024-05-05 03:03] /mnt/data/aigc/ComfyUI/comfyui_venv/lib/python3.10/site-packages/diffusers/models/unet_2d_blocks.py:259: FutureWarning: `UNetMidBlock2DCrossAttn` is deprecated and will be removed in version 0.29. Importing `UNetMidBlock2DCrossAttn` from `diffusers.models.unet_2d_blocks` is deprecated and this will be removed in a future version. Please use `from diffusers.models.unets.unet_2d_blocks import UNetMidBlock2DCrossAttn`, instead.
  deprecate("UNetMidBlock2DCrossAttn", "0.29", deprecation_message)

改问题为采用最新版本的diffusers引发的版本兼容问题,解决方案如下:

./custom_nodes/ComfyUI-layerdiffuse/lib_layerdiffusion/models.py文件中大约第10行

原码:

from diffusers.models.unet_2d_blocks import UNetMidBlock2D, get_down_block, get_up_block

修改为:

from diffusers.models.unets.unet_2d_blocks import UNetMidBlock2D, get_down_block, get_up_block
 

lib/python3.10/site-packages/modelscope/models/multi_modal/efficient_diffusion_tuning/control_sd_lora.py文件大约18行

原码:

from diffusers.models.unet_2d_blocks import \
    get_down_block as get_down_block_default
修改为:

from diffusers.models.unets.unet_2d_blocks import \
    get_down_block as get_down_block_default
 


http://www.ppmy.cn/devtools/33382.html

相关文章

linux基本操作

vim的基本操作 正常模式:启动vim后默认处于正常模式。不论位于什么模式,按下Esc建都会进入正常模式。 插入模式:在正常模式中按下i,l,a,A等键,会进入插入模式。现在只用记住按i键会进行插入模…

Visual Studio 2022 工具 选项 没有网络设置问题解决

Visual Studio 2022 工具 选项 没有网络选项了,找了一大圈也没找到。 最后发现Visual Studio 2022的直接使用系统的代理设置了,在浏览器的代理中设置即可。 要使用扩展管理器安装插件,还不能设置pac !!! 顺便记录个pac地址: 1…

【C++风云录】进入语音识别与自然语言处理的世界:探索C++库的功能与应用场景

构建智能语音应用:深入了解C语音识别与自然语言处理库 前言 语音识别和自然语言处理是人工智能领域的重要研究方向,它们在自动语音识别、机器翻译、智能对话等方面有着广泛的应用。在这个领域,有许多优秀的开源和商业的工具和库可供选择&am…

mac通过termius连接Linux服务器

mac上安装 linux系统 如果有 linux服务器账号密码,那么上一步可忽略; 比如:直接连接阿里云或腾讯云账号 1. 安装termius 链接: https://pan.baidu.com/s/1iYsZPZThPizxqtkLPT89-Q?pwdbw6j 提取码: bw6j 官网 Termius - SSH platform for …

数据结构——循环结构:for循环

今天是星期五,明天休息,后天补课,然后就是运动会,接着是放假。(但这些都和我没关系啊,哭死!)今天脑袋难得清醒一会儿,主要是醒的比较早吧,早起学了一会&#…

【Python项目】基于DJANGO的【基于语音识别的智能垃圾分类系统】

技术简介:使用Python技术、DJANGO框架、MYSQL数据库等实现。 系统简介:用户们可以在系统上面录入自己的个人信息,录入后还可以对信息进行修改,网站可以对用户上传的音频文件进行识别,然后进行垃圾分类。 背景&#xf…

贪吃蛇(下)游戏的实现

感谢大佬的光临各位,希望和大家一起进步,望得到你的三连,互三支持,一起进步 个人主页:LaNzikinh-CSDN博客 文章目录 前言一.蛇和食物的打印二.游戏的运行逻辑三.结束游戏 (善后工作)四.游戏的测…

Redis:访问权限控制,密码设置

vim /etc/redis.conf 1、比较安全的办法是采用绑定IP的方式来进行控制 bind 127.0.0.1 表示仅仅允许通过127.0.0.1这个ip地址进行访问。那么其实只有自己才能访问自己了,其他机器都无法访问它 2、设置密码,以提供远程登陆 打开 redis.conf 找到 re…