MCPcopy Create free account
hub / github.com/ml5js/ml5-library / loadCheckpoints

Method loadCheckpoints

src/StyleTransfer/index.js:62–65  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

60 }
61
62 async loadCheckpoints(path) {
63 const checkpointLoader = new CheckpointLoader(path);
64 this.variables = await checkpointLoader.getAllVariables();
65 }
66
67 instanceNorm(input, id) {
68 return tf.tidy( () => {

Callers 1

loadMethod · 0.95

Calls 1

getAllVariablesMethod · 0.95

Tested by

no test coverage detected