Anh71me

Results 16 comments of Anh71me

@padoru233 不好意思,我忘记了这个功能请求。 看了下你的代码,里面有判断是否为表情包的方法,看起来似乎并不正道。summary 似乎是 qq 表情包特有的。 ```python3 async def has_image_summary(message) -> bool: for segment in message: if segment.type == "image": summary = segment.data.get("summary") if summary: return True return False ```...

你可以在这里打个断点或者 print 看看: https://github.com/iyume/nonebot-plugin-nsfw/blob/67c5a9cc7022a06f2655bae0b2f55bdfae07ae8b/nonebot_plugin_nsfw/vendor_nsfw_model.py#L97 nsfw-model 的判定条件是五个条件中最高概率在 ["hentai", "porn", "sexy"] 之中就是 positive。 你可以自己加点判断条件,这个就比较困难了。而且只拿反例来讲没什么意义,得统计一下错误率,3-5% 我觉得都是良好的。 至于 safety-checker 那边也不方便调整。

近期有空会添加 https://huggingface.co/Falconsai/nsfw_image_detection

0.13 已发版,新增 nsfw_image_detection 模型。

是 nsfw-model 吗?试下直接下载 https://github.com/iyume/nonebot-plugin-nsfw/releases/download/v0.0/nsfw_mobilenet2_v1.2.0.h5 然后放到目录下,根据 README 在 bot config 添加模型路径配置

得看 matcha 那边什么时候支持合并转发消息,不然我得开个协议端有点麻烦。