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

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

vim ......ppgan/models/starganv2_model.py
注释掉 # from paddle.fluid.layers.nn import soft_relu

相关推荐

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2023-12-13 08:02:03       98 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2023-12-13 08:02:03       106 阅读
  3. 在Django里面运行非项目文件

    2023-12-13 08:02:03       87 阅读
  4. Python语言-面向对象

    2023-12-13 08:02:03       96 阅读

热门阅读

  1. 环境部署centos

    2023-12-13 08:02:03       53 阅读
  2. 22222222222222222

    2023-12-13 08:02:03       41 阅读
  3. 华纳云:Ubuntu怎么安装并使用Docker

    2023-12-13 08:02:03       56 阅读
  4. 研发管理的挑战、本原与方案

    2023-12-13 08:02:03       70 阅读
  5. RISC-V 流水线 CPU 设计 Verilog

    2023-12-13 08:02:03       43 阅读
  6. Web5:互联网发展的下一个前沿

    2023-12-13 08:02:03       57 阅读