CikeyQi / nsfwjs-plugin

基于 Yunzai 的涩图监听插件,使用 NSFWJS 模型
https://docs.yunzai.art
GNU Affero General Public License v3.0
34 stars 4 forks source link

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

Closed Aliorpse closed 8 months ago

Aliorpse commented 8 months ago

找到node_modules.pnpm\@tensorflow+tfjs-node@3.21.1_seedrandom@3.0.5\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.