NoneBot2 plugin for anime image super resolution
Project description
📖 介绍
通过超分辨率模型 Real-CUGAN 来提高动漫图像质量
💿 安装
使用 nb-cli 安装
在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装nb plugin install nonebot-plugin-super-resolution
使用包管理器安装
在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令pip
pip install nonebot-plugin-super-resolution
pdm
pdm add nonebot-plugin-super-resolution
poetry
poetry add nonebot-plugin-super-resolution
conda
conda install nonebot-plugin-super-resolution
打开 nonebot2 项目的 bot.py
文件, 在其中写入
nonebot.load_plugin('nonebot_plugin_super_resolution')
🎉 使用
指令表
指令 | 需要@ | 范围 | 说明 |
---|---|---|---|
超分/放大/清晰 + 超分倍率 + 降噪配置 + 图片 | 否 | 群聊/私聊 | 超分发送的图片, 支持回复图片 参数可选, 具体见参数表 |
使用示例:
/超分 三倍 <图像>
注意
默认情况下, 您应该在指令前加上命令前缀, 通常是 /
参数表
参数名 | 默认值 | 说明 |
---|---|---|
超分倍率 | 2倍 | 决定输出图片的尺寸, 越大处理需要时间越长。支持2倍、3倍、4倍 |
降噪配置 | 强力降噪 | 强力降噪: 又称三倍降噪,如果原片噪声多,压得烂,推荐使用 无降噪: 适合原图噪声不多,想提高分辨率/清晰度/做通用性的增强、修复处理 保守: 如果你担心丢失纹理,担心画风被改变,担心颜色被增强,总之就是各种担心AI会留下浓重的处理痕迹,推荐使用 |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for nonebot-plugin-super-resolution-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a332ce5a7522cde85522165ba86343e2f220451ad1a0fe7e4a18d195ad1741e |
|
MD5 | 22be4efc3a8516f65b21931dfb15ba12 |
|
BLAKE2b-256 | 7f0207ce6c3083b672995a82be2eb4a6d00f4b21e345bb05bddc105363a80561 |
Close
Hashes for nonebot_plugin_super_resolution-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 351a546b4620e3083aaef618cfefd0d3ef4dd63a3b616a7d34ecff2a47f325ce |
|
MD5 | e0d97da6cbfd210102767762b78260e1 |
|
BLAKE2b-256 | 2f90f2f2878c8aec7b1bcb2305ab62e330798b807968c3e53fa80927ae16fa62 |