feature: Using the model url as a reference as well as path
Opened this issue · 0 comments
serialbandicoot commented
As a reference it looks like the model can also use an http://
path as well as file://
tensorflow/tfjs#410
-
Change the meta object object to be more descriptive.
file
should probably bemodelJson
andmodel
would be more accurate asclassificationType
-
Allow an
http
modelJson reference.
metadata: {
models: [{
image: {
type: "binary",
modelJson: "./cnn/model_output/binary/model.json",
classes: [
"nofive",
"five"
],
dimensions: {
width: 28,
height: 28
}
}
}, {
image: {
type: "category",
modelJson: "https://my-site.com/cnn/model_output/category/model.json",
classes: [
"four",
"nine",
"two"
],
dimensions: {
width: 28,
height: 28
}
}
}]
}```