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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e71e4ee3f0675ec4af78b262f060c284b8e160b0251e799d52fdc3c07b02b432 |
|
MD5 | 4f97365511a9813092fa7819c94da525 |
|
BLAKE2b-256 | 8d9e76ad29be7b3be266fbc30ce138842fbc556c975a4efb1e2c13e28f2acc7b |
Close
Hashes for nonebot_plugin_super_resolution-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3eedfc78ce5b7a93cf37d72bad16f2d5d7c68851e8607f3d97fdbd89826eac11 |
|
MD5 | fcbdf2c9cc5a80bc0560077475a02f05 |
|
BLAKE2b-256 | a4113d19513a1b8c1edf599f519876f74844e96db5118eb5502f2f50a44a0cca |