如何为张量流模块修复nodejs中的npm错误

问题描述 投票:0回答:1

我正在尝试安装@ tensorflow-models / mobilenet @ 2.0.4,但是没有安装。有什么问题吗?

npm WARN @tensorflow-models/[email protected] requires a peer of @tensorflow/tfjs-core@~1.2.1 but none is installed. You must install peer dependencies yourself.
npm WARN @tensorflow-models/[email protected] requires a peer of @tensorflow/tfjs-converter@~1.2.1 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] No repository field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @tensorflow/[email protected] install: `node scripts/install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @tensorflow/[email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/poran/.npm/_logs/2020-04-04T10_31_00_265Z-debug.log
node.js tensorflow npm-install npm-scripts
1个回答
0
投票

安装TF模型之前,您需要安装TF Core和TF Converter

  1. npm i @tensorflow/tfjs-core

  2. npm i @tensorflow/tfjs-converter

  3. npm i @tensorflow-models/mobilenet

© www.soinside.com 2019 - 2024. All rights reserved.