在调用posenet.load() 时,Posenet 开始出现错误- TypeError: undefined is not an object (evaluating 'env().platform.fetch')。直到上周它都可以正常工作。
import * as tf from "@tensorflow/tfjs";
import * as posenet from "@tensorflow-models/posenet";
import "@tensorflow/tfjs-react-native";
async componentDidMount() {
await tf.ready();
await posenet.load();
}
以下是版本:
"react-native": "0.59.10", "@tensorflow-models/posenet": "2.2.1", "@tensorflow/tfjs": "2.7.0", "@tensorflow/tfjs-react-native": "0.5.0",