ImportError: cannot import name ‘soft_relu‘ from ‘paddle.fluid.layers.nn‘

bash 复制代码
744e3db991ca:$ python run_virtual_human_server.py 
Traceback (most recent call last):
  File "run_virtual_human_server.py", line 14, in <module>
    from AI_Utils import AI
  File "AI_Utils.py", line 18, in <module>
    from AI_modules.first_order_motion.module import FirstOrderMotion
  File "AI_modules/first_order_motion/module.py", line 18, in <module>
    from .model import FirstOrderPredictor
  File "AI_modules/first_order_motion/model.py", line 28, in <module>
    from ppgan.models.generators.occlusion_aware import OcclusionAwareGenerator
  File "lib/python3.9/site-packages/ppgan/models/__init__.py", line 29, in <module>
    from .starganv2_model import StarGANv2Model
  File ".....lib/python3.9/site-packages/ppgan/models/starganv2_model.py", line 5, in <module>
    from paddle.fluid.layers.nn import soft_relu
ImportError: cannot import name 'soft_relu' from 'paddle.fluid.layers.nn' (.....lib/python3.9/site-packages/paddle/fluid/layers/nn.py)

解决方案,仅限wav2lip

bash 复制代码
vim ......ppgan/models/starganv2_model.py
注释掉 # from paddle.fluid.layers.nn import soft_relu
相关推荐
白-胖-子4 小时前
深入剖析大模型在文本生成式 AI 产品架构中的核心地位
人工智能·架构
想要成为计算机高手5 小时前
11. isaacsim4.2教程-Transform 树与Odometry
人工智能·机器人·自动驾驶·ros·rviz·isaac sim·仿真环境
静心问道6 小时前
InstructBLIP:通过指令微调迈向通用视觉-语言模型
人工智能·多模态·ai技术应用
宇称不守恒4.07 小时前
2025暑期—06神经网络-常见网络2
网络·人工智能·神经网络
小楓12017 小时前
醫護行業在未來會被AI淘汰嗎?
人工智能·醫療·護理·職業
数据与人工智能律师7 小时前
数字迷雾中的安全锚点:解码匿名化与假名化的法律边界与商业价值
大数据·网络·人工智能·云计算·区块链
chenchihwen7 小时前
大模型应用班-第2课 DeepSeek使用与提示词工程课程重点 学习ollama 安装 用deepseek-r1:1.5b 分析PDF 内容
人工智能·学习
说私域7 小时前
公域流量向私域流量转化策略研究——基于开源AI智能客服、AI智能名片与S2B2C商城小程序的融合应用
人工智能·小程序
Java樱木8 小时前
AI 编程工具 Trae 重要的升级。。。
人工智能
码字的字节8 小时前
深度学习损失函数的设计哲学:从交叉熵到Huber损失的深入探索
深度学习·交叉熵·huber