Code Monkey home page Code Monkey logo

nsfwjs-plugin's Introduction

nsfwjs-plugin

NSFWJS-PLUGIN🍒

  • 一个适用于 Yunzai 系列机器人框架 的违规图片识别插件,保护聊天环境

  • 使用轻便的 NSFWJS 作为模型,本地 CPU 即可运行,性能要求极低,成本几乎为 0

  • 使用中遇到问题请加 QQ 群咨询:707331865

Tip

闲着没事想复活一下之前 渔火 的色图监听插件,为了节约成本我就想到了本地部署,偶遇 NSFWJS,发现这个模型体量小准确率还不错,就写了这个插件

安装插件

Warning

使用 Windows 系统需要编译安装,需要安装 C++ 库和 Python 库,非常的麻烦,Windows 用户且嫌麻烦的可以不要往下看了

1. 克隆仓库

git clone https://github.com/CikeyQi/nsfwjs-plugin.git ./plugins/nsfwjs-plugin

Note

如果你的网络环境较差,无法连接到 Github,可以使用 GitHub Proxy 提供的文件代理加速下载服务

git clone https://mirror.ghproxy.com/https://github.com/CikeyQi/nsfwjs-plugin.git ./plugins/nsfwjs-plugin

2. 安装依赖

pnpm install --filter=nsfwjs-plugin

功能列表

请使用 #NSFWJS帮助 获取完整帮助

  • 识别违规图片
  • 违规图片通知主人
  • 违规图片保存到本地
  • 对违规人员进行处罚

常见问题

  1. 安装依赖报错
    • 请查看本插件 Issues 中的解决方案
  2. 报错:TypeError: fetch failed
    • nsfwjs 本身问题,暂时没有解决方法

支持与贡献

如果你喜欢这个项目,请不妨点个 Star🌟,这是对开发者最大的动力, 当然,你可以对我 爱发电 赞助,呜咪~❤️

有意见或者建议也欢迎提交 IssuesPull requests

相关项目

  • nsfwjs:NSFW detection on the client-side via TensorFlow.js

许可证

本项目使用 GNU AGPLv3 作为开源许可证。

nsfwjs-plugin's People

Contributors

cikeyqi avatar erzaozi avatar story-x 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

Watchers

 avatar  avatar  avatar

nsfwjs-plugin's Issues

pnpm install时出现报错: tfjs-node: Running install script, failed in 279ms

node_modules/.pnpm/@tensorflow[email protected][email protected]/node_modules/@tensorflow/tfjs-node: Running install script, failed in 279ms
.../node_modules/@tensorflow/tfjs-node install$ node scripts/install.js
│ CPU-windows-3.21.1.zip
│ * Downloading libtensorflow
https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-cpu-windows-x86_64-2.9.1.zip
│ node:events:496
│ throw er; // Unhandled 'error' event
│ ^
│ Error: getaddrinfo ENOENT storage.googleapis.com
│ at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:118:26)
│ Emitted 'error' event on ClientRequest instance at:
│ at TLSSocket.socketErrorListener (node:_http_client:495:9)
│ at TLSSocket.emit (node:events:518:28)
│ at emitErrorNT (node:internal/streams/destroy:169:8)
│ at emitErrorCloseNT (node:internal/streams/destroy:128:3)
│ at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
│ errno: -4058,
│ code: 'ENOENT',
│ syscall: 'getaddrinfo',
│ hostname: 'storage.googleapis.com'
│ }
│ Node.js v20.11.0
└─ Failed in 280ms at C:\Users\Alior\Desktop\Miao-Yunzai\node_modules.pnpm@[email protected][email protected]\node_modules@tensorflow\tfjs-node
 ELIFECYCLE  Command failed with exit code 1.

NTQQ接口无法禁言

不好意思上次梯子炸了登不上,,这次补上日志
[MiaoYz][20:02:36.651][WARN] 【NSFWJS-Plugin v0.0.2】 【NSFWJS】检测到变态图像
[ '识别为涩图,不许再发了!' ]
[MiaoYz][20:02:36.655][ERRO] ApiRejection {
code: -60,
message: 'client not online (cmd: LongConn.OffPicUp)'
}

安装依赖时报错

pnpm install --filter=nsfwjs-plugin
. |  WARN  deprecated [email protected]
plugins/miao-plugin |  WARN  deprecated [email protected]
 WARN  12 deprecated subdependencies found: @npmcli/[email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]
. | +59 ++++++
Progress: resolved 864, reused 845, downloaded 0, added 0, done
node_modules/.pnpm/@tensorflow[email protected][email protected][email protected]/node_modules/@tensorflow/tfjs-node: Runnode_modules/.pnpm/@tensorflow[email protected][email protected][email protected]/node_modules/@tensorflow/tfjs-node: Running install script, failed in 594ms
.../node_modules/@tensorflow/tfjs-node install$ node scripts/install.js
│ CPU-windows-3.21.1.zip
│ * Building TensorFlow Node.js bindings
│ symlink ./lib/napi-v9 failed: Error: Command failed: node scripts/deps-stage.js symlink ./lib/napi-v9
│ * Symlink of lib\napi-v9\tensorflow.dll failed, creating a copy on disk.
│ node:internal/process/promises:289
│ triggerUncaughtException(err, true /* fromPromise */);
│ ^
│ [Error: ENOENT: no such file or directory, copyfile 'D:\Server\Bot\Yunzai\Yunzai-Bot\node_modules.pnpm@tensorflow…
│ errno: -4058,
│ code: 'ENOENT',
│ syscall: 'copyfile',
│ path: 'D:\Server\Bot\Yunzai\Yunzai-Bot\node_modules\.pnpm\@tensorflow+tfjs-node@[email protected]_see
│ dest: 'D:\Server\Bot\Yunzai\Yunzai-Bot\node_modules\.pnpm\@tensorflow+tfjs-node@[email protected]_see
│ }
│ Node.js v20.11.1
│ at ChildProcess.exithandler (node:child_process:422:12)
│ at ChildProcess.emit (node:events:518:28)
│ at maybeClose (node:internal/child_process:1105:16)
│ at ChildProcess._handle.onexit (node:internal/child_process:305:5) {
│ code: 1,
│ killed: false,
│ signal: null,
│ cmd: 'node scripts/deps-stage.js symlink ./lib/napi-v9'
│ }
└─ Failed in 594ms at D:\Server\Bot\Yunzai\Yunzai-Bot\node_modules.pnpm@[email protected][email protected][email protected]\node_modules@tensorflow\tfjs-node
 ELIFECYCLE  Command failed with exit code 1.

安装依赖时出现 ELIFECYCLE  Command failed with exit code 1.报错,并根据issues的内容尝试更改无果

C:\Users\Administrator\Desktop\Miao-Yunzai>pnpm i
Scope: all 9 workspace projects
plugins/miao-plugin |  WARN  deprecated [email protected]
 WARN  deprecated [email protected]: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
 WARN  4 deprecated subdependencies found: @npmcli/[email protected], [email protected], [email protected], [email protected]
Packages: +57
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Progress: resolved 836, reused 835, downloaded 0, added 0, done
node_modules/.pnpm/@tensorflow[email protected][email protected][email protected]/node_modules/@tensorflow/tfjs-node: Runnode_modules/.pnpm/@tensorflow[email protected][email protected][email protected]/node_modules/@tensorflow/tfjs-node: Running install script, failed in 1s
.../node_modules/@tensorflow/tfjs-node install$ node scripts/install.js
│ CPU-windows-3.21.1.zip
│ * Downloading libtensorflow
https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-cpu-windows-x86_64-2.9.1.zip
│ node:events:496
│ throw er; // Unhandled 'error' event
│ ^
│ Error: read ECONNRESET
│ at TLSWrap.onStreamRead (node:internal/stream_base_commons:217:20)
│ Emitted 'error' event on ClientRequest instance at:
│ at TLSSocket.socketErrorListener (node:_http_client:500:9)
│ at TLSSocket.emit (node:events:518:28)
│ at emitErrorNT (node:internal/streams/destroy:169:8)
│ at emitErrorCloseNT (node:internal/streams/destroy:128:3)
│ at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
│ errno: -4077,
│ code: 'ECONNRESET',
│ syscall: 'read'
│ }
│ Node.js v20.12.0
└─ Failed in 1s at C:\Users\Administrator\Desktop\Miao-Yunzai\node_modules.pnpm@[email protected][email protected][email protected]\node_modules@tensorflow\tfjs-node
 ELIFECYCLE  Command failed with exit code 1.
F55165A2FB025EC7E8FE344DEAA62388
屏幕截图 2024-05-18 004800

Ubuntu20.04启动时出现报错

启动时日志如下
node [10:08:17.272][ERRO] 载入插件错误:�[31mExamine�[39m [10:08:17.273][ERRO] Error: libtensorflow.so.2: cannot open shared object file: No such file or directory at Module._extensions..node (node:internal/modules/cjs/loader:1472:18) at Module.load (node:internal/modules/cjs/loader:1206:32) at Module._load (node:internal/modules/cjs/loader:1022:12) at Module.require (node:internal/modules/cjs/loader:1234:19) at require (node:internal/modules/helpers:176:18) at Object.<anonymous> (/bot/bot/jqr/TRSS-Yunzai/node_modules/.pnpm/@[email protected][email protected]/node_modules/@tensorflow/tfjs-node/dist/index.js:60:16) at Module._compile (node:internal/modules/cjs/loader:1375:14) at Module._extensions..js (node:internal/modules/cjs/loader:1434:10) at Module.load (node:internal/modules/cjs/loader:1206:32) at Module._load (node:internal/modules/cjs/loader:1022:12) { code: 'ERR_DLOPEN_FAILED' } [10:08:17.275][ERRO] 载入插件错误:�[31mListen�[39m [10:08:17.275][ERRO] Error: libtensorflow.so.2: cannot open shared object file: No such file or directory at Module._extensions..node (node:internal/modules/cjs/loader:1472:18) at Module.load (node:internal/modules/cjs/loader:1206:32) at Module._load (node:internal/modules/cjs/loader:1022:12) at Module.require (node:internal/modules/cjs/loader:1234:19) at require (node:internal/modules/helpers:176:18) at Object.<anonymous> (/bot/bot/jqr/TRSS-Yunzai/node_modules/.pnpm/@[email protected][email protected]/node_modules/@tensorflow/tfjs-node/dist/index.js:60:16) at Module._compile (node:internal/modules/cjs/loader:1375:14) at Module._extensions..js (node:internal/modules/cjs/loader:1434:10) at Module.load (node:internal/modules/cjs/loader:1206:32) at Module._load (node:internal/modules/cjs/loader:1022:12) { code: 'ERR_DLOPEN_FAILED' } [10:08:17.277][MARK] Error: libtensorflow.so.2: cannot open shared object file: No such file or directory at Module._extensions..node (node:internal/modules/cjs/loader:1472:18) at Module.load (node:internal/modules/cjs/loader:1206:32) at Module._load (node:internal/modules/cjs/loader:1022:12) at Module.require (node:internal/modules/cjs/loader:1234:19) at require (node:internal/modules/helpers:176:18) at Object.<anonymous> (/bot/bot/jqr/TRSS-Yunzai/node_modules/.pnpm/@[email protected][email protected]/node_modules/@tensorflow/tfjs-node/dist/index.js:60:16) at Module._compile (node:internal/modules/cjs/loader:1375:14) at Module._extensions..js (node:internal/modules/cjs/loader:1434:10) at Module.load (node:internal/modules/cjs/loader:1206:32) at Module._load (node:internal/modules/cjs/loader:1022:12) { code: 'ERR_DLOPEN_FAILED' } Promise { <rejected> Error: libtensorflow.so.2: cannot open shared object file: No such file or directory at Module._extensions..node (node:internal/modules/cjs/loader:1472:18) at Module.load (node:internal/modules/cjs/loader:1206:32) at Module._load (node:internal/modules/cjs/loader:1022:12) at Module.require (node:internal/modules/cjs/loader:1234:19) at require (node:internal/modules/helpers:176:18) at Object.<anonymous> (/bot/bot/jqr/TRSS-Yunzai/node_modules/.pnpm/@[email protected][email protected]/node_modules/@tensorflow/tfjs-node/dist/index.js:60:16) at Module._compile (node:internal/modules/cjs/loader:1375:14) at Module._extensions..js (node:internal/modules/cjs/loader:1434:10) at Module.load (node:internal/modules/cjs/loader:1206:32) at Module._load (node:internal/modules/cjs/loader:1022:12) { code: 'ERR_DLOPEN_FAILED' } } [10:08:17.576][MARK] [Handler][Reg]: [ws-plugin-tool][ws.tool.toImg]

检测到违规图后报错

[TRSSYz][02:10:48.140][ERRO] [NSFWJS-监听][Listen]
[TRSSYz][02:10:48.141][ERRO] AxiosError: Request failed with status code 404
    at settle (file:///C:/Users/BOT/Desktop/BOT/Miao-Yunzai/node_modules/.pnpm/[email protected]/node_modules/axios/lib/core/settle.js:19:12)
    at IncomingMessage.handleStreamEnd (file:///C:/Users/BOT/Desktop/BOT/Miao-Yunzai/node_modules/.pnpm/[email protected]/node_modules/axios/lib/adapters/http.js:570:11)
    at IncomingMessage.emit (node:events:525:35)
    at endReadableNT (node:internal/streams/readable:1359:12)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)

但貌似功能都正常,好奇怪

NTQQ版本9.9.9-22868
liteloaderQQNT版本1.1.1
llonebot版本3.22.1
trss-yunzai版本3.1.3

一些建议

您可以适配一下锅巴插件吗,您的插件使用锅巴管理将更加方便配置

[BUG]测试时检测涩图导致BOT重启

日志

**日志如下:**未发现明显报错
0|Miao-Yunzai| [MiaoYz][02:22:20.745][INFO] recv from: [Group: 风神忽悠群(851648300), Member: 邪(2749128036)] {image:17EDA258946A146872518FA0DC6853F8}
0|Miao-Yunzai | [MiaoYz][02:22:21.960][INFO] succeed to send: [Group(851648300)] [图片]
0|Miao-Yunzai | [MiaoYz][02:22:22.680][INFO] recv from: [Group: 风神忽悠群(851648300), Member: 城.(接代)(3483156709)] 6
0|Miao-Yunzai | [MiaoYz][02:22:29.458][WARN] 【NSFWJS-Plugin v0.0.2】 【NSFWJS】检测到变态图像
0|Miao-Yunzai | [
0|Miao-Yunzai | '啾咪啊!这里有人涩涩啊!',
0|Miao-Yunzai | {
0|Miao-Yunzai | type: 'image',
0|Miao-Yunzai | file: 'https://c2cpicdw.qpic.cn/offpic_new/3146312184//3146312184-3207407400-FA958C114CE3368AF4DFAF469172761C/0?term=2&is_origin=0',
0|Miao-Yunzai | cache: undefined,
0|Miao-Yunzai | timeout: undefined,
0|Miao-Yunzai | headers: undefined
0|Miao-Yunzai | },
0|Miao-Yunzai | '快来人管一管啊!'
0|Miao-Yunzai | ]
0|Miao-Yunzai | [MiaoYz][02:22:30.379][INFO] succeed to send: [Private(3483156709)] [NSFWJS]涩图监听
0|Miao-Yunzai | 来自群聊:风神忽悠群(851648300)
0|Miao-Yunzai | 发送用户:邪(2749128036)
0|Miao-Yunzai | 违规类型:Hentai(97.89%)
0|Miao-Yunzai | [图片]
0|Miao-Yunzai | [MiaoYz][02:22:31.007][INFO] succeed to send: [Group(851648300)] [回复@邪]啾咪啊!这里有人涩涩啊![图片]快来人管一管啊!
0|Miao-Yunzai | [MiaoYz][02:22:31.994][INFO] recv from: [Group: 风神忽悠群(851648300), Member: 邪(2749128036)] {image:17EDA258946A146872518FA0DC6853F8}
0|Miao-Yunzai | [MiaoYz][02:22:33.056][INFO] recv from: [Group: 风神忽悠群(851648300), Member: 缘(3302150733)] 我好像看见了,不该看的
0|Miao-Yunzai | [MiaoYz][02:22:35.739][INFO] recv from: [Group: 风神忽悠群(851648300), Member: 城.(接代)(3483156709)] {at:2105200875} 撤回
0|Miao-Yunzai | [MiaoYz][02:22:37.040][MARK] [椰奶小助手][RecallMsgown][风神忽悠群(城.(接代))] 撤回
0|Miao-Yunzai | [MiaoYz][02:22:39.719][MARK] Miao-Yunzai 启动中...
0|Miao-Yunzai | [MiaoYz][02:22:39.731][INFO] 正在连接 redis://127.0.0.1:6379/0
0|Miao-Yunzai | [MiaoYz][02:22:39.781][INFO] Redis 连接成功
0|Miao-Yunzai | [MiaoYz][02:22:39.853][MARK] ----------
0|Miao-Yunzai | [MiaoYz][02:22:39.862][MARK] Package Version: [email protected] (Released on 2023/11/30)
0|Miao-Yunzai | [MiaoYz][02:22:39.863][MARK] View Changelogs:https://github.com/icqqjs/icqq/releases
0|Miao-Yunzai | [MiaoYz][02:22:39.863][MARK] ----------
0|Miao-Yunzai | [MiaoYz][02:22:41.533][INFO] [Chromium] /snap/bin/chromium
0|Miao-Yunzai | [MiaoYz][02:22:41.535][INFO] 加载渲染后端 puppeteer
0|Miao-Yunzai | [MiaoYz][02:22:41.986][INFO] [2105200875]使用协议:aPad_8.9.90.13250
0|Miao-Yunzai | [MiaoYz][02:22:43.377][MARK] 121.229.94.199:8080 connected
0|Miao-Yunzai | [MiaoYz][02:22:43.594][MARK] Welcome, 可可 ! 正在加载资源...
0|Miao-Yunzai | [MiaoYz][02:22:48.610][MARK] 加载了13个好友,4个群,0个频道,0个陌生人
0|Miao-Yunzai | [MiaoYz][02:22:48.615][MARK] ----^^----
0|Miao-Yunzai | [MiaoYz][02:22:48.617][MARK] Miao-Yunzai 上线成功 版本v3.1.3
0|Miao-Yunzai | [MiaoYz][02:22:48.618][MARK] https://github.com/yoimiya-kokomi/Miao-Yunzai
0|Miao-Yunzai | [MiaoYz][02:22:48.642][INFO] 加载插件中..
0|Miao-Yunzai | [MiaoYz][02:22:48.673][INFO] ---------QAQ---------
0|Miao-Yunzai | [MiaoYz][02:22:48.675][INFO] Atlas图鉴4.3.0很高兴为您服务~
0|Miao-Yunzai | [MiaoYz][02:22:49.643][INFO] Atlas载入库文件:github原神成功!
0|Miao-Yunzai | [MiaoYz][02:22:49.666][INFO] Atlas载入库文件:github星铁成功!
0|Miao-Yunzai | [MiaoYz][02:22:49.668][INFO] Atlas载入库文件:github绝区零成功!
0|Miao-Yunzai | [MiaoYz][02:22:49.719][INFO] Atlas载入库文件:原神成功!
0|Miao-Yunzai | [MiaoYz][02:22:49.725][INFO] Atlas载入库文件:星铁成功!
0|Miao-Yunzai | [MiaoYz][02:22:49.726][INFO] Atlas载入库文件:绝区零成功!
0|Miao-Yunzai | [MiaoYz][02:22:49.735][INFO] Eggy抽奖模拟启动中....
0|Miao-Yunzai | [MiaoYz][02:22:49.770][MARK] Eggy抽奖模拟启动成功!
0|Miao-Yunzai | [MiaoYz][02:22:50.155][INFO] recv from: [Group: 风神忽悠群(851648300), Member: 城.(接代)(3483156709)] 又崩重启了
0|Miao-Yunzai | [MiaoYz][02:22:50.739][MARK] --------- >
< ---------
0|Miao-Yunzai | [MiaoYz][02:22:50.739][MARK] 锅巴服务启动成功~ 耗时:201ms
0|Miao-Yunzai | [MiaoYz][02:22:50.740][MARK] http://8.140.254.159:10022
0|Miao-Yunzai | [MiaoYz][02:22:50.746][MARK] -----------------------
0|Miao-Yunzai | [MiaoYz][02:22:50.746][MARK] [Guoba] 欢迎使用锅巴插件,当前版本:1.2.1
0|Miao-Yunzai | [MiaoYz][02:22:50.769][INFO] Σ(°Д°;--Σ(°Д°;--Σ(°Д°;--Σ(°Д°;--Σ(°Д°;
0|Miao-Yunzai | [MiaoYz][02:22:50.769][INFO] 脆脆鲨插件载入成功
0|Miao-Yunzai | [MiaoYz][02:22:50.771][INFO] 有关本插件问题请加群657142904咨询
0|Miao-Yunzai | [MiaoYz][02:22:50.771][INFO] 非常感谢您的使用!!!
0|Miao-Yunzai | [MiaoYz][02:22:50.772][INFO] ---------------------------------------
0|Miao-Yunzai | [MiaoYz][02:22:50.943][INFO] [XiaoXuePlugin]~~~~~~~~~~~~~~~~~~~~ QAQ ~~~~~~~~~~~~~~~~~~~~~
0|Miao-Yunzai | [MiaoYz][02:22:50.958][INFO] [XiaoXuePlugin]~ 欢迎使用小雪插件 ~
0|Miao-Yunzai | [MiaoYz][02:22:50.958][INFO] [XiaoXuePlugin]~ 版本 3.4.1 ~
0|Miao-Yunzai | [MiaoYz][02:22:50.961][INFO] [XiaoXuePlugin]~ 作者 雪儿不怕冷 ~
0|Miao-Yunzai | [MiaoYz][02:22:50.961][INFO] [XiaoXuePlugin]~ 交流群 893576718 ~
0|Miao-Yunzai | [MiaoYz][02:22:50.962][INFO] [XiaoXuePlugin]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
0|Miao-Yunzai | [MiaoYz][02:22:52.262][INFO] recv from: [Group: 风神忽悠群(851648300), Member: 城.(接代)(3483156709)] 啊?
0|Miao-Yunzai | [MiaoYz][02:22:53.375][INFO] akasha-terminal-plugin[2023-1-19]
0|Miao-Yunzai | [MiaoYz][02:22:53.453][INFO] Template detection:存在非class属性default导出
0|Miao-Yunzai | ../../apps/help/theme.js
0|Miao-Yunzai | [MiaoYz][02:22:53.639][INFO] 🌱🌱🌱🌱🌱🌱🌱🌱
0|Miao-Yunzai | [MiaoYz][02:22:53.640][INFO] (🍀Akasha-Terminal-Plugin🍀):"虚空插件"初始化.....
0|Miao-Yunzai | [MiaoYz][02:22:53.641][INFO] ┎┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┒
0|Miao-Yunzai | [MiaoYz][02:22:53.641][INFO] ┃ ⋏ ┅┅┅┅┳┅┅┅┅ ┎┅┅┅┅┅┅┒ ┃
0|Miao-Yunzai | [MiaoYz][02:22:53.641][INFO] ┃ / \ ┋ ┃ ┃ ┃
0|Miao-Yunzai | [MiaoYz][02:22:53.642][INFO] ┃ /───\ ┋ ┠┅┅┅┅┅┅┚ ┃
0|Miao-Yunzai | [MiaoYz][02:22:53.642][INFO] ┃ / \ ┋ ┃ ┃
0|Miao-Yunzai | [MiaoYz][02:22:53.643][INFO] ┃ / \ ┋ ┃ ┃
0|Miao-Yunzai | [MiaoYz][02:22:53.643][INFO] ┖┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┚
0|Miao-Yunzai | [MiaoYz][02:22:53.644][WARN] (🍀Akasha-Terminal-Plugin🍀):若出现README.md中未提及的问题,请联系我们!!!
0|Miao-Yunzai | [MiaoYz][02:22:53.644][INFO] (🍀Akasha-Terminal-Plugin🍀):"初始化完成,祝您游玩愉快!🌴
0|Miao-Yunzai | [MiaoYz][02:22:53.647][INFO] 🌴🌴🌴🌴🌴🌴🌴🌴
0|Miao-Yunzai | [MiaoYz][02:22:53.667][INFO] ---------!!---------
0|Miao-Yunzai | [MiaoYz][02:22:53.667][INFO] 自动化插件1.0.5载入成功
0|Miao-Yunzai | [MiaoYz][02:22:53.886][INFO] ---------=.=---------
0|Miao-Yunzai | [MiaoYz][02:22:53.887][INFO] 土块插件2.0.1载入成功~qwq
0|Miao-Yunzai | [MiaoYz][02:22:53.887][INFO] 作者-SunRyK曉K & 地球生物
0|Miao-Yunzai | [MiaoYz][02:22:53.887][INFO] ---------------------
0|Miao-Yunzai | [MiaoYz][02:22:54.557][INFO] --------- >
< ---------
0|Miao-Yunzai | [MiaoYz][02:22:54.557][INFO] 抽卡插件2.34.3很高兴为您服务~
0|Miao-Yunzai | [MiaoYz][02:22:55.066][INFO] - 正在载入 GPTI-PLUGIN
0|Miao-Yunzai | load Uid Data Done...
0|Miao-Yunzai | [MiaoYz][02:22:55.126][INFO] - GPTI-PLUGIN 载入成功
0|Miao-Yunzai | [MiaoYz][02:22:55.127][INFO] - 欢迎加入新组织【貓娘樂園🍥🏳️‍⚧️】(群号 551081559)
0|Miao-Yunzai | [MiaoYz][02:22:55.243][INFO] recv from: [Group: 风神忽悠群(851648300), Member: 邪(2749128036)] {at:3302150733} {at:3302150733} 不,你没看见
0|Miao-Yunzai | [MiaoYz][02:22:56.448][INFO] [hanhan]
0|Miao-Yunzai | [MiaoYz][02:22:56.449][INFO] hanhan-plugin加载成功
0|Miao-Yunzai | [MiaoYz][02:22:56.449][INFO] ▃▆█▇▄▖
0|Miao-Yunzai | [MiaoYz][02:22:56.449][INFO]       ▟◤▖ ◥█▎
0|Miao-Yunzai | [MiaoYz][02:22:56.449][INFO]   ◢◤  ▐    ▐▉
0|Miao-Yunzai | [MiaoYz][02:22:56.449][INFO]   ▗◤   ▂ ▗▖  ▕█▎
0|Miao-Yunzai | [MiaoYz][02:22:56.449][INFO]  ◤ ▗▅▖◥▄ ▀◣  █▊
0|Miao-Yunzai | [MiaoYz][02:22:56.450][INFO] ▐ ▕▎◥▖◣◤    ◢██
0|Miao-Yunzai | [MiaoYz][02:22:56.450][INFO] █◣ ◥▅█▀    ▐██◤
0|Miao-Yunzai | [MiaoYz][02:22:56.450][INFO] ▐█▙▂    ◢██◤
0|Miao-Yunzai | [MiaoYz][02:22:56.450][INFO] ◥██◣    ◢▄◤
0|Miao-Yunzai | [MiaoYz][02:22:56.450][INFO]   ▀██▅▇▀
0|Miao-Yunzai | [MiaoYz][02:22:56.450][INFO] 当前版本 v1.5.7
0|Miao-Yunzai | [MiaoYz][02:22:56.450][INFO] 插件群:461601720
0|Miao-Yunzai | [MiaoYz][02:22:56.451][INFO] 仓库地址 https://github.com/hanhan258/hanhan-plugin
0|Miao-Yunzai | [MiaoYz][02:22:56.451][INFO] [///^///]
0|Miao-Yunzai | [MiaoYz][02:22:56.472][INFO] ~~~~~~~~~~~~~~~~~~~~
0|Miao-Yunzai | [MiaoYz][02:22:56.472][INFO] 开始寸幼萱淫趴初始化
0|Miao-Yunzai | [MiaoYz][02:22:56.474][INFO] 配置文件MyProfile.yaml已经存在,略过初始化~
0|Miao-Yunzai | [MiaoYz][02:22:56.475][INFO] 配置文件bind.yaml已经存在,略过初始化~
0|Miao-Yunzai | [MiaoYz][02:22:56.475][INFO] 配置文件config.js已经存在,略过初始化~
0|Miao-Yunzai | [MiaoYz][02:22:56.475][INFO] 配置文件daoguanzi.yaml已经存在,略过初始化~
0|Miao-Yunzai | [MiaoYz][02:22:56.475][INFO] 配置文件data.yaml已经存在,略过初始化~
0|Miao-Yunzai | [MiaoYz][02:22:56.476][INFO] 配置文件system.yaml已经存在,略过初始化~
0|Miao-Yunzai | [MiaoYz][02:22:56.559][MARK] [寸幼萱淫趴][model/GetYamlValue]开始调用获取控制面板值函数...
0|Miao-Yunzai | [MiaoYz][02:22:56.559][MARK] 目标文件名:daoguanzi.yaml
0|Miao-Yunzai | [MiaoYz][02:22:56.570][MARK] 正在读取群单独配置....
0|Miao-Yunzai | [MiaoYz][02:22:56.571][MARK] 群单独配置获取失败,正在读取默认配置...
0|Miao-Yunzai | [MiaoYz][02:22:56.571][MARK] 群单独配置读取失败,正在直接读取....
0|Miao-Yunzai | [MiaoYz][02:22:56.572][INFO] 直接读取成功,返回:导管子|打胶
0|Miao-Yunzai | [MiaoYz][02:22:56.573][MARK] [寸幼萱淫趴][model/GetYamlValue]开始调用获取控制面板值函数...
0|Miao-Yunzai | [MiaoYz][02:22:56.573][MARK] 目标文件名:MyProfile.yaml
0|Miao-Yunzai | [MiaoYz][02:22:56.575][MARK] 正在读取群单独配置....
0|Miao-Yunzai | [MiaoYz][02:22:56.575][MARK] 群单独配置获取失败,正在读取默认配置...
0|Miao-Yunzai | [MiaoYz][02:22:56.575][MARK] 群单独配置读取失败,正在直接读取....
0|Miao-Yunzai | [MiaoYz][02:22:56.576][INFO] 直接读取成功,返回:(淫|银|阴)(趴|扒|啪|爬)(信息|面板)
0|Miao-Yunzai | [MiaoYz][02:22:56.585][INFO] 寸幼萱插淫趴件初始化完成
0|Miao-Yunzai | [MiaoYz][02:22:56.586][INFO] ~ 寸幼萱交流群 786034611 ~
0|Miao-Yunzai | [MiaoYz][02:22:56.587][INFO] ~~~~~~~~~~~~~~~~~~~~
0|Miao-Yunzai | [MiaoYz][02:22:56.820][INFO] ~~~~~~~~~~~ ^^ ~~~~~~~~~~~
0|Miao-Yunzai | [MiaoYz][02:22:56.822][INFO] ~ 欢迎使用榴莲插件
0|Miao-Yunzai | [MiaoYz][02:22:56.822][INFO] ~ 版本: 0.5.7
0|Miao-Yunzai | [MiaoYz][02:22:56.822][INFO] ~ 作者:会飞的芒果猫&萧枘
0|Miao-Yunzai | [MiaoYz][02:22:56.822][INFO] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
0|Miao-Yunzai | 榴莲插件0.5.7初始化~
0|Miao-Yunzai | [MiaoYz][02:22:56.939][INFO] ---------^
^---------
0|Miao-Yunzai | [MiaoYz][02:22:56.939][INFO] 喵喵插件2.5.6初始化~
0|Miao-Yunzai | [MiaoYz][02:22:56.950][INFO] - 正在载入 NSFWJS-PLUGIN
0|Miao-Yunzai | 2024-01-18 02:22:58.327373: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: AVX2 FMA
0|Miao-Yunzai | To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
0|Miao-Yunzai | [MiaoYz][02:22:58.338][INFO] - NSFWJS-PLUGIN 载入成功
0|Miao-Yunzai | [MiaoYz][02:22:58.339][INFO] - 欢迎加入新组织【貓娘樂園🍥🏳️‍⚧️】(群号 551081559)
0|Miao-Yunzai | [MiaoYz][02:22:58.553][INFO] 卿何插件初始化

出现#8号issue的情况并且找不到tfjs_binding.node

详情见#8
确认给出的路径没有tfjs_binding.node,确定整个yunzai文件夹里都找不到tfjs_binding.node,已经按照https://github.com/CikeyQi/nsfwjs-plugin?tab=readme-ov-file#%E5%AE%89%E8%A3%85%E6%8F%92%E4%BB%B6 给出的方法多次安装、重启
ed5fcf2b1bb93d380e5637542b2effc7
4f1c59a539afdc101309bd75024df0c7

[TRSSYz][14:21:31.464][ERRO] 载入插件错误:Examine
[TRSSYz][14:21:31.468][ERRO] Error: The Node.js native addon module (tfjs_binding.node) can not be f
ound at path: C:\msys64\home\Administrator\TRSS_AllBot\TRSS-Yunzai\node_modules.pnpm@tensorflow+tf
[email protected][email protected]\node_modules@tensorflow\tfjs-node\lib\napi-v8\tfjs_binding.node.
Please run command 'npm rebuild @tensorflow/tfjs-node --build-addon-from-source' to rebuild the nati
ve addon module.
If you have problem with building the addon module, please check https://github.com/tensorflow/tfjs/
blob/master/tfjs-node/WINDOWS_TROUBLESHOOTING.md or file an issue.
at Object. (C:\msys64\home\Administrator\TRSS_AllBot\TRSS-Yunzai\node_modules.pnpm@
[email protected][email protected]\node_modules@tensorflow\tfjs-node\dist\index.js:49:11)
at Module._compile (node:internal/modules/cjs/loader:1368:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1426:10)
at Module.load (node:internal/modules/cjs/loader:1205:32)
at Module._load (node:internal/modules/cjs/loader:1021:12)
at cjsLoader (node:internal/modules/esm/translators:366:17)
at ModuleWrap. (node:internal/modules/esm/translators:315:7)
at ModuleJob.run (node:internal/modules/esm/module_job:222:25)
at async ModuleLoader.import (node:internal/modules/esm/loader:323:24)
at async Promise.allSettled (index 0)
[TRSSYz][14:21:31.477][ERRO] 载入插件错误:Listen
[TRSSYz][14:21:31.480][ERRO] Error: The Node.js native addon module (tfjs_binding.node) can not be f
ound at path: C:\msys64\home\Administrator\TRSS_AllBot\TRSS-Yunzai\node_modules.pnpm@tensorflow+tf
[email protected][email protected]\node_modules@tensorflow\tfjs-node\lib\napi-v8\tfjs_binding.node.
Please run command 'npm rebuild @tensorflow/tfjs-node --build-addon-from-source' to rebuild the nati
ve addon module.
If you have problem with building the addon module, please check https://github.com/tensorflow/tfjs/
blob/master/tfjs-node/WINDOWS_TROUBLESHOOTING.md or file an issue.
at Object. (C:\msys64\home\Administrator\TRSS_AllBot\TRSS-Yunzai\node_modules.pnpm@
[email protected][email protected]\node_modules@tensorflow\tfjs-node\dist\index.js:49:11)
at Module._compile (node:internal/modules/cjs/loader:1368:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1426:10)
at Module.load (node:internal/modules/cjs/loader:1205:32)
at Module._load (node:internal/modules/cjs/loader:1021:12)
at cjsLoader (node:internal/modules/esm/translators:366:17)
at ModuleWrap. (node:internal/modules/esm/translators:315:7)
at ModuleJob.run (node:internal/modules/esm/module_job:222:25)
at async ModuleLoader.import (node:internal/modules/esm/loader:323:24)
at async Promise.allSettled (index 0)
[TRSSYz][14:21:31.490][INFO] - NSFWJS-PLUGIN 载入成功

启动时报错,好像是CPU不支持什么东西

0|Miao-Yunzai |I tensorflow/core/platform/cpu_feature_guard.cc:151] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: AVX2
0|Miao-Yunzai | To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.

电脑的CPU是i5-6500

NSFWJS插件监听图片信息时报错

[16:34:49.574][ERRO] [NSFWJS-监听][Listen] [16:34:49.575][ERRO] TypeError: fetch failed at node:internal/deps/undici/undici:12442:11 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Promise.all (index 0) [16:36:50.375][ERRO] [NSFWJS-监听][Listen] [16:36:50.376][ERRO] TypeError: fetch failed at node:internal/deps/undici/undici:12442:11 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Promise.all (index 0) [16:37:55.008][ERRO] [NSFWJS-监听][Listen] [16:37:55.008][ERRO] TypeError: fetch failed at node:internal/deps/undici/undici:12442:11 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Promise.all (index 0) [16:38:05.667][ERRO] [NSFWJS-监听][Listen] [16:38:05.670][ERRO] TypeError: fetch failed at node:internal/deps/undici/undici:12442:11 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) [16:38:30.802][MARK] [Yenai-Plugin][进群验证]收到3484618630的进群事件 [16:39:09.975][ERRO] [NSFWJS-监听][Listen] [16:39:09.975][ERRO] TypeError: fetch failed at node:internal/deps/undici/undici:12442:11 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Promise.all (index 0) [16:40:00.039][MARK] 开始定时任务:xianxin插件---B站推送定时任务

Error: The Node.js native addon module (tfjs_bindin g.node) can not be found at path

windows端 喵崽
image
[MiaoYz][01:37:26.015][ERRO] 【NSFWJS-Plugin v0.0.2】 设置文件不存在,将使用默认
设置文件
[MiaoYz][01:37:26.018][ERRO] 【NSFWJS-Plugin v0.0.2】 策略文件不存在,将使用默认
策略文件
[MiaoYz][01:37:26.231][ERRO] 载入插件错误:Examine
[MiaoYz][01:37:26.231][ERRO] Error: The Node.js native addon module (tfjs_bindin
g.node) can not be found at path: D:\bot\Miao-Yunzai\node_modules.pnpm@tensorf
[email protected]\node_modules@tensorflow\tfjs-node\lib\napi-v8\tfjs_binding
.node.
Please run command 'npm rebuild @tensorflow/tfjs-node --build-addon-from-source'
to rebuild the native addon module.
If you have problem with building the addon module, please check https://github.
com/tensorflow/tfjs/blob/master/tfjs-node/WINDOWS_TROUBLESHOOTING.md or file an
issue.
at Object. (D:\bot\Miao-Yunzai\node_modules.pnpm@tensorflow+tfj
[email protected]\node_modules@tensorflow\tfjs-node\dist\index.js:49:11)
at Module._compile (node:internal/modules/cjs/loader:1254:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
at Module.load (node:internal/modules/cjs/loader:1117:32)
at Module._load (node:internal/modules/cjs/loader:958:12)
at ModuleWrap. (node:internal/modules/esm/translators:169:29)
at ModuleJob.run (node:internal/modules/esm/module_job:194:25)
[MiaoYz][01:37:26.232][ERRO] 载入插件错误:Listen
[MiaoYz][01:37:26.232][ERRO] Error: The Node.js native addon module (tfjs_bindin
g.node) can not be found at path: D:\bot\Miao-Yunzai\node_modules.pnpm@tensorf
[email protected]\node_modules@tensorflow\tfjs-node\lib\napi-v8\tfjs_binding
.node.
Please run command 'npm rebuild @tensorflow/tfjs-node --build-addon-from-source'
to rebuild the native addon module.
If you have problem with building the addon module, please check https://github.
com/tensorflow/tfjs/blob/master/tfjs-node/WINDOWS_TROUBLESHOOTING.md or file an
issue.
at Object. (D:\bot\Miao-Yunzai\node_modules.pnpm@tensorflow+tfj
[email protected]\node_modules@tensorflow\tfjs-node\dist\index.js:49:11)
at Module._compile (node:internal/modules/cjs/loader:1254:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
at Module.load (node:internal/modules/cjs/loader:1117:32)
at Module._load (node:internal/modules/cjs/loader:958:12)
at ModuleWrap. (node:internal/modules/esm/translators:169:29)
at ModuleJob.run (node:internal/modules/esm/module_job:194:25)
[MiaoYz][01:37:26.232][INFO] ---------------
[MiaoYz][01:37:26.233][ERRO] Error: The Node.js native addon module (tfjs_bindin
g.node) can not be found at path: D:\bot\Miao-Yunzai\node_modules.pnpm@tensorf
[email protected]\node_modules@tensorflow\tfjs-node\lib\napi-v8\tfjs_binding
.node.
Please run command 'npm rebuild @tensorflow/tfjs-node --build-addon-from-source'
to rebuild the native addon module.
If you have problem with building the addon module, please check https://github.
com/tensorflow/tfjs/blob/master/tfjs-node/WINDOWS_TROUBLESHOOTING.md or file an
issue.
at Object. (D:\bot\Miao-Yunzai\node_modules.pnpm@tensorflow+tfj
[email protected]\node_modules@tensorflow\tfjs-node\dist\index.js:49:11)
at Module._compile (node:internal/modules/cjs/loader:1254:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
at Module.load (node:internal/modules/cjs/loader:1117:32)
at Module._load (node:internal/modules/cjs/loader:958:12)
at ModuleWrap. (node:internal/modules/esm/translators:169:29)
at ModuleJob.run (node:internal/modules/esm/module_job:194:25)

centos7 报错怎么解决呢

Error: libtensorflow.so.2: cannot open shared object file: No such file or directory
at Object.Module._extensions..node (node:internal/modules/cjs/loader:1189:18)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object. (/usr/local/yunzai/Miao-Yunzai/node_modules/.pnpm/@tensorflow[email protected][email protected]/node_modules/@tensorflow/tfjs-node/dist/index.js:60:16)
at Module._compile (node:internal/modules/cjs/loader:1105:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12) {
code: 'ERR_DLOPEN_FAILED'
}

下载libtensorflow时遇到read ECONNRESET时自己的临时解决方案(非常nt)

找到node_modules.pnpm@[email protected][email protected]\node_modules@tensorflow\tfjs-node\scripts\install.js
行145改为
`手动下载libtensorflow压缩包的Uri`, depsPath, async () => {
保存,pnpm install

改完的上下文应该是这样的
console.warn('* Downloading libtensorflow');
console.log(getPlatformLibtensorflowUri());
resources.downloadAndUnpackResource(
`xxx`, depsPath, async () => {
if (platform === 'win32') {
// Some windows libtensorflow zip files are missing structure and the
// eager headers. Check, restructure, and download resources as
// needed.

启动bot报错勒

[TRSSYz][10:54:23.601][ERRO] [NSFWJS-监听][Listen]
[TRSSYz][10:54:23.603][ERRO] TypeError: fetch failed
    at Object.fetch (node:internal/deps/undici/undici:11457:11)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

用的llob协议,bot端是trss 都是最新版的

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.