【发布时间】:2020-07-17 01:22:06
【问题描述】:
曾尝试运行https://glitch.com/~tar-understood-exoplanet 并且模型将无法加载,我将无法使用启用网络摄像头。
有人遇到过同样的问题吗?
程序运行时,在控制台中我得到以下信息:
tfjs:2 Uncaught (in promise) Error: The dtype of dict['image_tensor'] provided in model.execute(dict) must be int32, but was float32
at Object.b [as assert] (tfjs:2)
at tfjs:2
at Array.forEach (<anonymous>)
at t.checkInputShapeAndType (tfjs:2)
at t.<anonymous> (tfjs:2)
at tfjs:2
at Object.next (tfjs:2)
at tfjs:2
at new Promise (<anonymous>)
at Zv (tfjs:2)
我有一台 Macbook Pro,其他一些人在他们的 Windows 上运行该模型时也遇到了一些问题。我们还在不同的浏览器、Safari 和 Chrome 上进行了尝试。
成功!切换到 coco-ssd 2.0.2 后:
我在第62行添加了2.0.2版本如下:
<script src="https://cdn.jsdelivr.net/npm/@tensorflow-models/coco-ssd@2.0.2"></script>
【问题讨论】:
-
感谢 Claire 的报告 - 我会在周一询问团队中是否有人知道答案!
-
对于 Chrome,这可能是由于他们在 04/04 推出的 SameSite cookie 策略导致了问题。
标签: machine-learning tensorflow.js glitch-framework