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

model caching #1

Open
dcsan opened this issue Nov 29, 2020 · 0 comments
Open

model caching #1

dcsan opened this issue Nov 29, 2020 · 0 comments

Comments

@dcsan
Copy link
Owner

dcsan commented Nov 29, 2020

switch model trying to use caches before they're ready?

  TfManager topic blood +5m
  TfManager init TfModel +1ms
  TfManager switch topic to: blood +0ms
  TfClassifier loaded encoder 9s 509.993827ms +10s
  TfClassifier cannot find cached model /Users/dc/dev/ten/puzzleparty/server/node_modules/@dcsan/tfclassify/dist/data/modelCache/blood Error: Path /Users/dc/dev/ten/puzzleparty/server/node_modules/@dcsan/tfclassify/dist/data/modelCache/blood/model.json does not exist: loading failed
    at /Users/dc/dev/ten/puzzleparty/server/node_modules/@tensorflow/tfjs-node/dist/io/file_system.js:67:23 +5ms
  TfClassifier failed to write data /Users/dc/dev/ten/puzzleparty/server/node_modules/@dcsan/tfclassify/dist/data/modelCache/blood/trainingData.json +68ms
Uncaught Promise Rejection Error: ENOENT: no such file or directory, open '/Users/dc/dev/ten/puzzleparty/server/node_modules/@dcsan/tfclassify/dist/data/modelCache/blood/trainingData.json'
    at Object.openSync (fs.js:465:3)
    at Object.writeFileSync (fs.js:1416:35)
    at TfClassifier.<anonymous> (/Users/dc/dev/ten/puzzleparty/server/node_modules/@dcsan/tfclassify/src/TfClassifier.ts:123:11)
    at step (/Users/dc/dev/ten/puzzleparty/server/node_modules/@dcsan/tfclassify/dist/TfClassifier.js:52:23)
    at Object.next (/Users/dc/dev/ten/puzzleparty/server/node_modules/@dcsan/tfclassify/dist/TfClassifier.js:33:53)
    at /Users/dc/dev/ten/puzzleparty/server/node_modules/@dcsan/tfclassify/dist/TfClassifier.js:27:71
    at new Promise (<anonymous>)
    at __awaiter (/Users/dc/dev/ten/puzzleparty/server/node_modules/@dcsan/tfclassify/dist/TfClassifier.js:23:12)
    at TfClassifier.saveTrainingData (/Users/dc/dev/ten/puzzleparty/server/node_modules/@dcsan/tfclassify/dist/TfClassifier.js:143:16)
    at TfClassifier.<anonymous> (/Users/dc/dev/ten/puzzleparty/server/node_modules/@dcsan/tfclassify/src/TfClassifier.ts:188:25)
    at step (/Users/dc/dev/ten/puzzleparty/server/node_modules/@dcsan/tfclassify/dist/TfClassifier.js:52:23)
    at Object.next (/Users/dc/dev/ten/puzzleparty/server/node_modules/@dcsan/tfclassify/dist/TfClassifier.js:33:53)
    at /Users/dc/dev/ten/puzzleparty/server/node_modules/@dcsan/tfclassify/dist/TfClassifier.js:27:71
    at new Promise (<anonymous>)
    at __awaiter (/Users/dc/dev/ten/puzzleparty/server/node_modules/@dcsan/tfclassify/dist/TfClassifier.js:23:12)
    at TfClassifier.trainModel (/Users/dc/dev/ten/puzzleparty/server/node_modules/@dcsan/tfclassify/src/TfClassifier.ts:180:9) {
dcsan added a commit that referenced this issue Nov 29, 2020
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

1 participant