Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error請教 #10

Open
estea8968 opened this issue Aug 11, 2020 · 2 comments
Open

error請教 #10

estea8968 opened this issue Aug 11, 2020 · 2 comments

Comments

@estea8968
Copy link

請教一下:我安裝了scratch3_knn,積木基本上可以呈現。但看javascript 主控台出現error如下。
checkPropTypes.js:20 Warning: Failed prop type: Invalid prop messages.videoSensing.off of type object supplied to Blocks, expected string.
in Blocks (created by Connect(Blocks))
in Connect(Blocks) (created by ErrorBoundaryWrapper)
in ErrorBoundary (created by Connect(ErrorBoundary))
in Connect(ErrorBoundary) (created by ErrorBoundaryWrapper)
in ErrorBoundaryWrapper (created by MediaQuery)
in div (created by Box)
in Box (created by MediaQuery)
in div (created by TabPanel)
in TabPanel (created by MediaQuery)
in div (created by UncontrolledTabs)
in UncontrolledTabs (created by Tabs)
in Tabs (created by MediaQuery)
in div (created by Box)
in Box (created by MediaQuery)
in div (created by Box)
in Box (created by MediaQuery)
in div (created by Box)
in Box (created by MediaQuery)
in div (created by Box)
in Box (created by MediaQuery)
in MediaQuery (created by GUIComponent)
in GUIComponent (created by Connect(GUIComponent))
in Connect(GUIComponent) (created by InjectIntl(Connect(GUIComponent)))
in InjectIntl(Connect(GUIComponent)) (created by GUI)
in GUI (created by Connect(GUI))
in Connect(GUI) (created by InjectIntl(Connect(GUI)))
in InjectIntl(Connect(GUI)) (created by CloudManager)
in CloudManager (created by Connect(CloudManager))
in Connect(CloudManager) (created by VMManager)
in VMManager (created by Connect(VMManager))
in Connect(VMManager) (created by VMListener)
in VMListener (created by Connect(VMListener))
in Connect(VMListener) (created by ProjectSaverComponent)
in ProjectSaverComponent (created by Connect(ProjectSaverComponent))
in Connect(ProjectSaverComponent) (created by TitledComponent)
in TitledComponent (created by Connect(TitledComponent))
in Connect(TitledComponent) (created by InjectIntl(Connect(TitledComponent)))
in InjectIntl(Connect(TitledComponent)) (created by ProjectFetcherComponent)
in ProjectFetcherComponent (created by Connect(ProjectFetcherComponent))
in Connect(ProjectFetcherComponent) (created by InjectIntl(Connect(ProjectFetcherComponent)))
in InjectIntl(Connect(ProjectFetcherComponent)) (created by QueryParserComponent)
in QueryParserComponent (created by Connect(QueryParserComponent))
in Connect(QueryParserComponent) (created by FontLoaderComponent)
in FontLoaderComponent (created by Connect(FontLoaderComponent))
in Connect(FontLoaderComponent) (created by ErrorBoundaryWrapper)
in ErrorBoundary (created by Connect(ErrorBoundary))
in Connect(ErrorBoundary) (created by ErrorBoundaryWrapper)
in ErrorBoundaryWrapper (created by LocalizationWrapper)
in IntlProvider (created by Connect(IntlProvider))
in Connect(IntlProvider) (created by LocalizationWrapper)
in LocalizationWrapper (created by Connect(LocalizationWrapper))
in Connect(LocalizationWrapper) (created by HashParserComponent)
in HashParserComponent (created by Connect(HashParserComponent))
in Connect(HashParserComponent) (created by AppStateWrapper)
in IntlProvider (created by Connect(IntlProvider))
in Connect(IntlProvider) (created by AppStateWrapper)
in Provider (created by AppStateWrapper)
in AppStateWrapper
printWarning @ checkPropTypes.js:20
checkPropTypes @ checkPropTypes.js:82
validatePropTypes @ react.development.js:1171
createElementWithValidation @ react.development.js:1268
render @ connectAdvanced.js:243
finishClassComponent @ react-dom.development.js:7873
updateClassComponent @ react-dom.development.js:7850
beginWork @ react-dom.development.js:8225
performUnitOfWork @ react-dom.development.js:10224
workLoop @ react-dom.development.js:10288
callCallback @ react-dom.development.js:542
invokeGuardedCallbackDev @ react-dom.development.js:581
invokeGuardedCallback @ react-dom.development.js:438
renderRoot @ react-dom.development.js:10366
performWorkOnRoot @ react-dom.development.js:11014
performWork @ react-dom.development.js:10967
batchedUpdates @ react-dom.development.js:11086
batchedUpdates @ react-dom.development.js:2330
dispatchEvent @ react-dom.development.js:3421
mobilenet.js:1131 Uncaught (in promise) TypeError: tf.loadModel is not a function
at MobileNet. (mobilenet.js:1131)
at step (mobilenet.js:54)
at Object.next (mobilenet.js:35)
at mobilenet.js:28
at new Promise ()
at __awaiter (mobilenet.js:24)
at MobileNet.load (mobilenet.js:1124)
at Object. (mobilenet.js:1106)
at step (mobilenet.js:54)
at Object.next (mobilenet.js:35)

Uncaught (in promise) TypeError: tf.loadModel is not a function
at MobileNet. (mobilenet.js:1131)
at step (mobilenet.js:54)
at Object.next (mobilenet.js:35)
at mobilenet.js:28
at new Promise ()
at __awaiter (mobilenet.js:24)
at MobileNet.load (mobilenet.js:1124)
at Object. (mobilenet.js:1106)
at step (mobilenet.js:54)
at Object.next (mobilenet.js:35)

可以看到webcam畫面,無法辨識。可有解決方法?
系統ubuntu 18.04 brower : chrome 84.0.4147.105

@summerscar
Copy link
Member

第一行错误是插件翻译的问题,不影响使用

尝试降低这个依赖的版本,应该能解决问题

 "@tensorflow/tfjs": "0.13.5"

其他参考:
#2
https://github.com/CodeLabClub/scratch3_knn_install

@estea8968
Copy link
Author

謝謝指導,我努力中。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants