Giter Club home page Giter Club logo

trss-plugin's Introduction

苏半夏

TRSS Yunzai Plugin

云崽机器人插件

访问量 Stars Downloads Releases

访问量

安装教程

TRSS Yunzai 管理脚本

  1. 准备:Yunzai-Bot

  2. 安装:GitHubGitee

git clone --depth 1 https://Yunzai.TRSS.me plugins/TRSS-Plugin
pnpm i
  1. 安装 图片修复 | 图片背景去除 | 语音合成,不用可忽略
展开

安装 Python 3.10-3.11Poetry,并在插件目录执行以下操作

poetry install
  • 图片修复:
git clone --depth 1 https://gitee.com/TimeRainStarSky/Real-ESRGAN
cd Real-ESRGAN
poetry run python setup.py develop
  • 图片背景去除:
git clone --depth 1 https://gitee.com/TimeRainStarSky/RemBG
cd RemBG
curl -LO https://github.com/TimeRainStarSky/TRSS-Plugin/releases/download/latest/u2net.onnx.xz
curl -LO https://github.com/TimeRainStarSky/TRSS-Plugin/releases/download/latest/isnetis.onnx.xz
xz -dv u2net.onnx.xz isnetis.onnx.xz
  • 语音合成:
git clone --depth 1 https://gitee.com/TimeRainStarSky/ChatWaifu
git clone --depth 1 https://gitee.com/TimeRainStarSky/GenshinVoice
  • 语音合成 汉语模型:
cd ChatWaifu
curl -LO https://github.com/TimeRainStarSky/TRSS-Plugin/releases/download/latest/ChatWaifuCN.txz
tar -xvJf ChatWaifuCN.txz
  • 语音合成 日语模型:
cd ChatWaifu
curl -LO https://github.com/TimeRainStarSky/TRSS-Plugin/releases/download/latest/ChatWaifuJP.txz
tar -xvJf ChatWaifuJP.txz
  • 语音合成 原神模型:
cd GenshinVoice
curl -LO https://github.com/TimeRainStarSky/TRSS-Plugin/releases/download/latest/G_809000.pth.xz
xz -dv G_809000.pth.xz
部署为 API 服务器
bash server.sh [端口]
  • 阿里云盘 / 百度网盘:

使用脚本安装后,启动 CLI,输入 login -h,按提示登录

使用教程

图片修复
  • 图片修复 / 动漫图片修复 + 图片
图片背景去除
  • 图片背景去除 / 动漫图片背景去除 + 图片
语音合成
  • 角色名 + 说 + 中文
  • 语音合成角色列表
系统信息
  • 系统信息 / 系统信息图片 / 系统测试
二维码生成
  • 二维码 + 文字
米哈游登录
  • 二维码登录:米哈游登录
  • 账号密码登录:米哈游登录 + 账号
Markdown(权限:主人)
  • md + 文件 / URL
代码高亮(权限:主人)
  • sc + 文件 / URL
远程命令(权限:主人)
  • rc + Shell 命令
  • rj + JavaScript 命令
  • dm(单条消息) / mm(多条消息) / fm(转发消息) + JavaScript 表达式
  • rcp / rjp / dmp / mmp / fmp 以图片显示输出
文件操作(权限:主人)
  • 文件查看 / 文件上传 / 文件下载 + 路径
阿里云盘(权限:主人)

阿里云盘 +

  • 帮助
  • 上传
  • 下载
  • 相簿
  • 链接
  • 查看
  • 创建目录
  • 移动
  • 回收站
  • 重命名
  • 删除
  • 分享
  • 同步备份
  • 树形图
  • 在线网盘
  • 切换网盘
  • 登录账号
  • 账号列表
  • 退出账号
  • 空间配额
  • 切换账号
  • 当前账号
百度网盘(权限:主人)

百度网盘 +

  • 帮助
  • 上传
  • 下载
  • 复制
  • 链接
  • 查看
  • 元信息
  • 创建目录
  • 移动
  • 离线下载
  • 空间配额
  • 回收站
  • 删除
  • 搜索
  • 分享
  • 转存
  • 树形图
  • 登录账号
  • 账号列表
  • 退出账号
  • 切换账号
  • 当前账号

常见问题

展开
  • 问:ModuleNotFoundError: No module named 'xxx'

  • 答:未正确执行 poetry install

  • 问:已杀死 | Signal 9 | MemoryError

  • 答:清理内存增加 SWAP

  • 问:使用 Git Bash 执行 poetry install 失败

  • 答:改用 命令提示符Windows PowerShell

  • 问:error: Microsoft Visual C++ 14.0 or greater is required.

  • 答:下载安装 Microsoft C++ 生成工具 Microsoft C++ 生成工具

  • 问:'bash' 不是内部或外部命令,也不是可运行的程序或批处理文件 bash : 无法将“sh”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径正确,然后再试一次。

  • 答:改用 Git Bash

  • 问:手动安装过程中出现问题

  • 答:建议自行解决,不会就用脚本一键安装

  • 问:我有其他问题

  • 答:提供详细问题描述,通过下方 联系方式 反馈问题

联系方式

  • QQ 群组:
  1. 659945190
  2. 1027131254
  3. 300714227

时雨 🌌 星空

赞助支持

trss-plugin's People

Contributors

timerainstarsky avatar yeyang52 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

trss-plugin's Issues

使用脚本安装语音合成功能时报错

系统版本为Debian 11.1 ,使用trss脚本一键安装语音合成时,提示报错The currently activated Python version 3.11.3 is not supported by the project (>=3.10,<3.11).Trying to find and use a compatible version. 是需要我在容器外部重新安装3.10吗

TypeError: Cannot read properties of undefined (reading 'startsWith')

[TRSSYz][01:11:53.844][ERRO] [unhandledRejection] TypeError: Cannot read properties of undefined (reading 'startsWith')
at Proxy.Buffer (file:///C:/Yunzai-Bot/Yunzai/lib/bot.js:313:14)
at Proxy.download (file:///C:/Yunzai-Bot/Yunzai/lib/bot.js:139:27)
at async RealESRGAN (file:///C:/Yunzai-Bot/Yunzai/plugins/TRSS-Plugin/Apps/RealESRGAN.js:77:17)
at async PluginsLoader.deal (file:///C:/Yunzai-Bot/Yunzai/lib/plugins/loader.js:205:19) {
[stack]: [Getter/Setter: "TypeError: Cannot read properties of undefined (reading 'startsWith')\n" +
' at Proxy.Buffer (file:///C:/Yunzai-Bot/Yunzai/lib/bot.js:313:14)\n' +
' at Proxy.download (file:///C:/Yunzai-Bot/Yunzai/lib/bot.js:139:27)\n' +
' at async RealESRGAN (file:///C:/Yunzai-Bot/Yunzai/plugins/TRSS-Plugin/Apps/RealESRGAN.js:77:17)\n' +
' at async PluginsLoader.deal (file:///C:/Yunzai-Bot/Yunzai/lib/plugins/loader.js:205:19)'],
[message]: "Cannot read properties of undefined (reading 'startsWith')"

这是为什么呢?

图片生成失败

图片修复错误:Error: Command failed: sh plugins/TRSS-Plugin/Real-ESRGAN/main.sh --fp32 --tile 100 -n RealESRGAN_x4plus -i 0.jpg
Traceback (most recent call last):
File "C:\Users\Administrator\Yunzai-Bot\plugins\TRSS-Plugin\Real-ESRGAN\inference_realesrgan.py", line 2, in
import cv2
File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\real-esrgan-V3SKMrYJ-py3.10\lib\site-packages\cv2_init_.py", line 181, in
bootstrap()
File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\real-esrgan-V3SKMrYJ-py3.10\lib\site-packages\cv2_init_.py", line 153, in bootstrap
native_module = importlib.import_module("cv2")
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\importlib_init_.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ImportError: DLL load failed while importing cv2: �Ҳ���ָ����ģ�顣


以上是图片生成失败的信息,且返回了一张裂图

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.