函数计算FC怎么安装adetailer插件?

函数计算FC怎么安装adetailer插件?

展开
收起
三分钟热度的鱼 2023-08-08 14:36:17 177 分享 版权
1 条回答
写回答
取消 提交回答
  • 安装修复插件!After Detailer的方法:
    在您管理工具的域名后添加 /terminal 如 admin.xxxxxxxxx.fc.devsapp.net/terminal

    只需要执行一次
    echo "export PYTHONPATH=/mnt/auto/sd/python" > /mnt/auto/sd/startup.sh

    安装4个依赖:
    export TMPDIR=/mnt/auto/sd/pip-cache

    /opt/python3.10/bin/python3.10 -m pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple

    /opt/python3.10/bin/python3.10 -m pip install -t /mnt/auto/sd/python --cache-dir /mnt/auto/sd/pip-cache ultralytics

    /opt/python3.10/bin/python3.10 -m pip install -t /mnt/auto/sd/python --cache-dir /mnt/auto/sd/pip-cache mediapipe

    /opt/python3.10/bin/python3.10 -m pip install -t /mnt/auto/sd/python --cache-dir /mnt/auto/sd/pip-cache py-cpuinfo

    /opt/python3.10/bin/python3.10 -m pip install -t /mnt/auto/sd/python --cache-dir /mnt/auto/sd/pip-cache protobuf

    第一个依赖大概用时20分钟
    多等待一会
    https://github.com/Bing-su/adetailer下载下来放到插件目录

    等待实例轮转后,重新进入 sd 页面
    可以进入 sd 函数任意修改下环境变量(如 a=b),强制实例更新收起链接预览。参考:https://blog.kalicyh.love/archives/a-li-yun-bu-shu-stable-diffusion-an-zhuang-cha-jian-after-detailer 此回答整理自钉群“【答疑群】函数计算 AIGC 场景技术交流”

    2023-08-08 14:43:51
    赞同 展开评论

快速交付实现商业价值。

还有其他疑问?
咨询AI助理