ALVINN is an object detection neural network specializing in the identification of anatomical structures from imagery of dissected, embalmed specimens in anatomy teaching labratories.
ALVINN is intended as a learning aid only; it is not a tool for medical diagnosis, intervention, or treatment.
diff --git a/src/pages/detect.vue b/src/pages/detect.vue
index 11d2ee3..8ba271c 100644
--- a/src/pages/detect.vue
+++ b/src/pages/detect.vue
@@ -116,8 +116,6 @@
import detectionMixin from './detection-mixin'
import cameraMixin from './camera-mixin'
- import thoraxClasses from '../models/thorax/classes.json'
-
export default {
mixins: [submitMixin, detectionMixin, cameraMixin],
props: {
@@ -162,7 +160,7 @@
case 'thorax':
this.activeRegion = 0
this.detectorName = 'thorax'
- this.classesList = thoraxClasses
+ //this.classesList = thoraxClasses
/* VITE setting */
this.modelLocation = '../models/thorax/model.json'
/* PWA Build setting */
@@ -181,6 +179,10 @@
this.activeRegion = 3
break;
}
+ import(`../models/${this.detectorName}/classes.json`).then((mod) => {
+ this.classesList = mod.default
+ this.detectorLabels = this.classesList.map( l => { return {'name': l, 'detect': true} } )
+ })
var loadServerSettings = localStorage.getItem('serverSettings')
if (loadServerSettings) this.serverSettings = JSON.parse(loadServerSettings)
},
@@ -190,7 +192,6 @@
this.modelLoading = false
} else {
this.modelLoading = true
- this.detectorLabels = this.classesList.map( l => { return {'name': l, 'detect': true} } )
this.loadModel(this.isCordova ? this.modelLocationCordova : this.modelLocation).then(() => {
this.modelLoading = false
}).catch((e) => {
diff --git a/src/pages/specs.vue b/src/pages/specs.vue
new file mode 100644
index 0000000..e64b98d
--- /dev/null
+++ b/src/pages/specs.vue
@@ -0,0 +1,49 @@
+
+