diff --git a/mindinsight/ui/src/components/benchmarkBarChart.vue b/mindinsight/ui/src/components/benchmark-bar-chart.vue similarity index 99% rename from mindinsight/ui/src/components/benchmarkBarChart.vue rename to mindinsight/ui/src/components/benchmark-bar-chart.vue index a2dc8857..c48ad613 100644 --- a/mindinsight/ui/src/components/benchmarkBarChart.vue +++ b/mindinsight/ui/src/components/benchmark-bar-chart.vue @@ -147,7 +147,7 @@ export default { }, grid: { left: '10%', - right: 260, + right: 280, bottom: '3%', top: 30, }, diff --git a/mindinsight/ui/src/components/radar-chart.vue b/mindinsight/ui/src/components/radar-chart.vue new file mode 100644 index 00000000..66bacbef --- /dev/null +++ b/mindinsight/ui/src/components/radar-chart.vue @@ -0,0 +1,325 @@ + + + + diff --git a/mindinsight/ui/src/components/search-select.vue b/mindinsight/ui/src/components/search-select.vue new file mode 100644 index 00000000..defd203b --- /dev/null +++ b/mindinsight/ui/src/components/search-select.vue @@ -0,0 +1,319 @@ + + + + + diff --git a/mindinsight/ui/src/components/selectGroup.vue b/mindinsight/ui/src/components/select-group.vue similarity index 98% rename from mindinsight/ui/src/components/selectGroup.vue rename to mindinsight/ui/src/components/select-group.vue index 280b18ff..45f6c548 100644 --- a/mindinsight/ui/src/components/selectGroup.vue +++ b/mindinsight/ui/src/components/select-group.vue @@ -148,5 +148,9 @@ export default { margin-right: 20px; height: 32px; } + .checkboxes-last { + display: flex; + align-items: center; + } } diff --git a/mindinsight/ui/src/components/superposeImg.vue b/mindinsight/ui/src/components/superpose-img.vue similarity index 100% rename from mindinsight/ui/src/components/superposeImg.vue rename to mindinsight/ui/src/components/superpose-img.vue diff --git a/mindinsight/ui/src/locales/en-us.json b/mindinsight/ui/src/locales/en-us.json index c545e687..c0eeb530 100644 --- a/mindinsight/ui/src/locales/en-us.json +++ b/mindinsight/ui/src/locales/en-us.json @@ -443,6 +443,9 @@ "minddata_get_next_queue": { "desc": "The ratio of empty data queues is {n1}/{n2}." }, + "minddata_device_queue": { + "desc": "The ratio of empty queues on a host is {n1}/{n2}, and the ratio of full queues is {n3}/{n4}." + }, "dataProcess": "This shows the data processing. Data is stored in the host queue during data processing, and then stored in the data queue during data transmission. Finally, the forward and backward propagation get_next transmits the data to forward propagation.", "dataProcessInfo": "By determining the empty host and data queues, you can preliminarily determine the stage where the performance is abnormal.", "analysisOne": "1. If the step interval is long and some batches of the data queue are empty, the performance is abnormal during data processing and transmission. Otherwise, locate the internal problem of the forward and backward propagation get_next.", @@ -526,25 +529,29 @@ "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", "tag": "Tag", "confidence": "Probability", "forecastTagTip": "When the inference image has the correct tag, the following four flags are displayed in the tag row", - "TP": "TP: indicates true positive. The tag is a positive sample, and the classification is a positive sample;", - "FN": "FN: indicates false negative. The tag is a positive sample, and the classification is a negative sample;", - "FP": "FP: indicates false positive. The tag is a negative sample, and the classification is a positive sample;", - "TN": "TN: indicates true negative. The tag is a negative sample, and the classification is a negative sample;", + "TP": "TP, indicates true positive. The tag is a positive sample, and the classification is a positive sample;", + "FN": "FN, indicates false negative. The tag is a positive sample, and the classification is a negative sample;", + "FP": "FP, indicates false positive. The tag is a negative sample, and the classification is a positive sample;", + "TN": "TN, Indicates true negative. The tag is a negative sample, and the classification is a negative sample;", "mainTipTitle": "Function description:", "mainTipPartOne": "This function visualizes the basis for model classification. After the to-be-explained model, the image, and the tag are selected, a contribution degree of each pixel in the original image to the selected tag is calculated by using an explanation method, and visualization is performed by using a saliency map similar to a heatmap. A brighter color indicates that the corresponding area contributes more to the selected tag of the model prediction. The darker the color, the smaller the contribution of the area to the selected tag.", "mainTipPartTwo": "A saliency map helps you understand the features related to the specified tag during deep neural network inference. When the inference basis and expectation of a model are different, you can debug the model by referring to the saliency map so that the model can perform inference based on proper features.", "mainTipPartThree": "For details about how to generate saliency maps, see section 3.2 'Local Methods' in", "mainTipPartFour": "https://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber=9050829", - "noExplainer": "Select Explanation Method" + "noExplainer": "Select Explanation Method", + "minConfidenceTip": "Probability threshold of a prediction tag. A tag is recorded as a prediction tag if its output probability is greater than the threshold. " }, "metric": { "scoreSystem": "Scoring System", diff --git a/mindinsight/ui/src/locales/zh-cn.json b/mindinsight/ui/src/locales/zh-cn.json index 7746331e..86921ca1 100644 --- a/mindinsight/ui/src/locales/zh-cn.json +++ b/mindinsight/ui/src/locales/zh-cn.json @@ -442,6 +442,9 @@ "minddata_get_next_queue": { "desc": "数据队列为空比例{n1}/{n2}。" }, + "minddata_device_queue": { + "desc": "主机侧队列为空比例{n1}/{n2},为满比例{n3}/{n4}。" + }, "dataProcess": "该图展示了数据处理阶段的流程,数据通过数据处理阶段存入主机队列,再通过数据传输阶段存入数据队列,最终由数据传输算子get_next发送给前向训练使用。", "dataProcessInfo": "综合分析该阶段的流程,通过判断主机队列和数据队列为空的情况就可以初步判断可能出现性能异常的阶段。", "analysisOne": "1、如果迭代间隙较长,并且数据队列部分batch为空,那么可能由于数据处理和数据传输阶段导致的性能异常,参考2,反之则定位数据传输算子get_next内部问题;", @@ -581,25 +584,29 @@ "viewScore": "查看评分", "fetch": "筛选", "minConfidence": "概率阈值", + "confidenceRange": "概率(区间)", "imgSort": "图片排序", "default": "默认", "byProbability": "概率值降序", + "byUncertainty": "不确定性值降序", + "uncertainty": "不确定性", "superposeImg": "叠加于原图", "originalPicture": "原始图片", "forecastTag": "预测标签", "tag": "标签", "confidence": "概率", "forecastTagTip": "当推理图片带有正确标签时,标签行会显示下列四种旗标", - "TP": "TP:代表Ture Positive,标签为正样本,分类为正样本;", - "FN": "FN:代表False Negative,标签为正样本,分类为负样本;", - "FP": "FP:代表Fasle Positive,标签为负样本,分类为正样本;", - "TN": "TN:代表Ture Negative,标签为负样本,分类为负样本;", + "TP": "TP,代表Ture Positive,标签为正样本,分类为正样本;", + "FN": "FN,代表False Negative,标签为正样本,分类为负样本;", + "FP": "FP,代表Fasle Positive,标签为负样本,分类为正样本;", + "TN": "TN,代表Ture Negative,标签为负样本,分类为负样本;", "mainTipTitle": "功能说明:", "mainTipPartOne": "本功能对模型分类的依据进行可视化。选定待解释模型、图片和标签后,解释方法计算得到原始图像中每个像素对选定标签的贡献度,以类似热力图的显著图进行可视。显著图颜色越亮,表示对应区域对于模型预测选定标签的贡献越多;颜色越暗,该区域对选定标签的贡献越小。", "mainTipPartTwo": "显著图可以帮助我们了解深度神经网络推理时,和指定标签有关系的特征。当模型推理依据和期望不同时,可以参考显著图对模型进行调试,让模型依据合理的特征进行推理。", "mainTipPartThree": "主流生成显著图的解释方法可以参考论文3.2节Local Methods:", "mainTipPartFour": "https://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber=9050829", - "noExplainer": "请选择解释方法" + "noExplainer": "请选择解释方法", + "minConfidenceTip": "预测标签的概率阈值,当一个标签的输出概率大于阈值时就会被记为预测标签。" }, "metric": { "scoreSystem": "评分体系", diff --git a/mindinsight/ui/src/views/explain/saliency-map.vue b/mindinsight/ui/src/views/explain/saliency-map.vue index 60b164b6..623e44d8 100644 --- a/mindinsight/ui/src/views/explain/saliency-map.vue +++ b/mindinsight/ui/src/views/explain/saliency-map.vue @@ -47,14 +47,12 @@ limitations under the License.
-
- - {{$t('explain.viewScore')}} - -
+ + {{$t('explain.viewScore')}} +
@@ -62,16 +60,17 @@ limitations under the License.
{{ $t('explain.tag') }}
- + - + :value="label" + slot="oriData"> +
@@ -79,8 +78,21 @@ limitations under the License. class="condition-button" @click="fetch">{{ $t('explain.fetch') }}
+
- {{ $t('explain.minConfidence') + $t('symbols.colon')}}{{minConfidence}}
+ {{ $t('explain.minConfidence')}} + +
+ {{$t('explain.minConfidenceTip')}} +
+ +
+ {{$t('symbols.colon')}} + {{minConfidence}} +
@@ -124,7 +136,7 @@ limitations under the License. v-else>
+ class="tip-icon"> + {{$t('symbols.colon')}} + {{$t('explain.TP')}} +
+
+ class="tip-icon"> + {{$t('symbols.colon')}} + {{$t('explain.FN')}} +
+
+ class="tip-icon"> + {{$t('symbols.colon')}} + {{$t('explain.FP')}} +
+
+ class="tip-icon"> + {{$t('symbols.colon')}} + {{$t('explain.TN')}}
-
{{$t('explain.TP')}}
-
{{$t('explain.FN')}}
-
{{$t('explain.FP')}}
-
{{$t('explain.TN')}}
@@ -173,7 +195,43 @@ limitations under the License. -