x-dr / nsfwjs-api

nsfw detector api with tensorflow + nsfwjs + express
MIT License
38 stars 19 forks source link

arm64的服务器不能运行。 #4

Open lukemin opened 1 month ago

lukemin commented 1 month ago

node:internal/modules/cjs/loader:1454 return process.dlopen(module, path.toNamespacedPath(filename)); ^

Error: /usr/src/app/node_modules/@tensorflow/tfjs-node/lib/napi-v8/tfjs_binding.node: cannot open shared object file: No such file or directory  at Module._extensions..node (node:internal/modules/cjs/loader:1454:18)  at Module.load (node:internal/modules/cjs/loader:1208:32)  at Module._load (node:internal/modules/cjs/loader:1024:12)  at Module.require (node:internal/modules/cjs/loader:1233:19)  at require (node:internal/modules/helpers:179:18) at Object. (/usr/src/app/node_modules/@tensorflow/tfjs-node/dist/index.js:72:16)  at Module._compile (node:internal/modules/cjs/loader:1358:14)  at Module._extensions..js (node:internal/modules/cjs/loader:1416:10)  at Module.load (node:internal/modules/cjs/loader:1208:32)  at Module._load (node:internal/modules/cjs/loader:1024:12) { code: 'ERR_DLOPEN_FAILED' }

x-dr commented 1 month ago

uname -m看看具体架构 ,你有试过用docker部署吗?我手里没有arm的机器,没法测试 我晚点搞个arm的机器测试看看

lukemin commented 1 month ago

就是docker部署报错的,甲骨文的arm服务器。 root:~# uname -m aarch64 Debian GNU/Linux 11

x-dr commented 1 month ago

就是docker部署报错的,甲骨文的arm服务器。 root:~# uname -m aarch64 Debian GNU/Linux 11

试一下手动部署,我试过手动部署arm64可用