Browse Source

ui saliency-map delete the part of uncertainty

tags/v1.1.0
weiyanxi 5 years ago
parent
commit
a2cd685551
3 changed files with 1 additions and 56 deletions
  1. +0
    -3
      mindinsight/ui/src/locales/en-us.json
  2. +0
    -3
      mindinsight/ui/src/locales/zh-cn.json
  3. +1
    -50
      mindinsight/ui/src/views/explain/saliency-map.vue

+ 0
- 3
mindinsight/ui/src/locales/en-us.json View File

@@ -741,12 +741,9 @@
"viewScore": "View Score",
"fetch": "Filter",
"minConfidence": "Probability Threshold",
"confidenceRange": "Probability and Range",
"imgSort": "Sort Images By",
"default": "Default",
"byProbability": "Probabilities in descending order",
"byUncertainty": "Uncertainties in descending order",
"uncertainty": "uncertainty",
"superposeImg": "Overlay on Original Image",
"originalPicture": "Original Image",
"forecastTag": "Prediction Tag",


+ 0
- 3
mindinsight/ui/src/locales/zh-cn.json View File

@@ -736,12 +736,9 @@
"viewScore": "查看评分",
"fetch": "筛选",
"minConfidence": "概率阈值",
"confidenceRange": "概率(区间)",
"imgSort": "图片排序",
"default": "默认",
"byProbability": "概率值降序",
"byUncertainty": "不确定性值降序",
"uncertainty": "不确定性",
"superposeImg": "叠加于原图",
"originalPicture": "原始图片",
"forecastTag": "预测标签",


+ 1
- 50
mindinsight/ui/src/views/explain/saliency-map.vue View File

@@ -195,43 +195,7 @@ limitations under the License.
</span>
</template>
<template slot-scope="scope">
<div class="table-forecast-tag"
v-if="uncertaintyEnabled">
<!-- Tag Title -->
<div class="tag-title-true">
<div class="first">{{ $t('explain.tag') }}</div>
<div>{{ $t('explain.confidenceRange') }}</div>
<div class="center">{{ $t('explain.uncertainty') }}</div>
</div>
<!-- Tag content -->
<div class="tag-content">
<div v-for="(tag, index) in scope.row.inferences"
:key="tag.label"
class="tag-content-item tag-content-item-true"
:class="{
'tag-active': index === scope.row.activeLabelIndex,
'tag-tp': tag.type === 'tp',
'tag-fn': tag.type === 'fn',
'tag-fp': tag.type === 'fp'
}"
@click="changeActiveLabel(scope.row, index)">
<div class="first">{{ tag.label }}</div>
<div>
<div>{{ tag.confidence.toFixed(3) }}</div>
<div>{{
Math.floor(tag.confidence_itl95[0] * 100) / 100 +
'-' +
Math.ceil(tag.confidence_itl95[1] * 100) / 100
}}</div>
</div>
<div class="center">
{{ tag.confidence_sd.toFixed(2) }}
</div>
</div>
</div>
</div>
<div class="table-forecast-tag"
v-else>
<div class="table-forecast-tag">
<!--Tag Title-->
<div class="tag-title-false">
<div></div>
@@ -367,7 +331,6 @@ export default {
pageSize: 2,
total: 0,
}, // The object of pagination information
uncertaintyEnabled: null, // If open the uncertainty api
tableHeight: 0, // The height of table to fix the table header
queryParameters: null, // The complete parameters of query table information, have pagination information
labelReady: false, // If the truth labels are ready
@@ -491,18 +454,6 @@ export default {
}
});
}
if (res.data.uncertainty) {
this.uncertaintyEnabled = res.data.uncertainty.enabled
? true
: false;
// The sort by uncertainty only valid when uncertaintyEnabled is true
if (this.uncertaintyEnabled) {
this.sortedNames.push({
label: this.$t('explain.byUncertainty'),
value: 'uncertainty',
});
}
}
}
resolve(true);
},


Loading…
Cancel
Save