diff --git a/mindinsight/ui/src/locales/en-us.json b/mindinsight/ui/src/locales/en-us.json index 15a984c1..5bcaa0f8 100644 --- a/mindinsight/ui/src/locales/en-us.json +++ b/mindinsight/ui/src/locales/en-us.json @@ -465,6 +465,7 @@ }, "debugger": { "debugger": "Debugger", + "nodeTypes": "Node Types", "nodeList": "Node List", "watchList": "Watch Point List", "watchPoint": "Watch Point", @@ -502,7 +503,17 @@ "shape": "Shape", "value": "Value", "largeDataTip": "The requested data is too large. Try another dimension.", - "continueTo": "Continue to" + "continueTo": "Continue to", + "inf": "INF:", + "negativeInf": "-INF:", + "max": "MAX:", + "min": "MIN:", + "mean": "MEAN:", + "nan": "NAN:", + "zero": "0:", + "positiveNum": "Positive number:", + "negativeNum": "Negative number:", + "all": "All" }, "explain": { "explain": "Model Explanation", diff --git a/mindinsight/ui/src/locales/zh-cn.json b/mindinsight/ui/src/locales/zh-cn.json index 6b9eaaca..831f3455 100644 --- a/mindinsight/ui/src/locales/zh-cn.json +++ b/mindinsight/ui/src/locales/zh-cn.json @@ -464,6 +464,7 @@ }, "debugger": { "debugger": "调试器", + "nodeTypes": "节点类型", "nodeList": "节点列表", "watchList": "监测点列表", "watchPoint": "监测点", @@ -476,7 +477,9 @@ "backstageStatus": "后台运行状态是", "view": "查看", "deleteWatchpointConfirm": "此操作将删除当前监测点,是否继续?", + "clearWatchpointConfirm": "此操作将删除所有监测点,是否继续?", "ternimateConfirm": "此操作将结束当前状态,是否继续?", + "createWP": "新建监测点", "successCreateWP": "新建监测点成功", "successDeleteWP": "删除监测点成功", "pendingTips": "等待训练连接...", @@ -501,7 +504,36 @@ "shape": "形状", "value": "数值", "largeDataTip": "请求的数据过大,请使用其他维度重试。", - "continueTo": "运行到该节点" + "continueTo": "运行到该节点", + "inf": "INF:", + "negativeInf": "-INF:", + "max": "最大值:", + "min": "最小值:", + "mean": "平均值:", + "nan": "NAN:", + "zero": "零:", + "positiveNum": "正数:", + "negativeNum": "负数:", + "all": "全部", + "tensorTip": "张量", + "recheck": "重新检查", + "clearWatchpoint": "清空监测点", + "addWatchpoint": "新增监测点", + "chooseTemp": "请选择模板", + "chooseParam": "请选择参数", + "nodeType": { + "all": "全部节点", + "weight": "权重节点", + "gradient": "梯度节点", + "activation": "激活节点" + }, + "recheckSuccess": "重新检查成功", + "curStatisticsLabel": "当前step:", + "preStatisticsLabel": "上一个step:", + "diffStatisticsLabel": "diff:", + "graphFile": "图文件", + "selectAll": "全选", + "selectNone": "取消全选" }, "explain": { "explain": "模型解释", diff --git a/mindinsight/ui/src/mixins/debuggerMixin.vue b/mindinsight/ui/src/mixins/debuggerMixin.vue index 167e241f..3d74dd64 100644 --- a/mindinsight/ui/src/mixins/debuggerMixin.vue +++ b/mindinsight/ui/src/mixins/debuggerMixin.vue @@ -1,5 +1,8 @@ @@ -1283,7 +1661,18 @@ export default { } } .content { - height: calc(100% - 50px); + height: calc(100% - 145px); + .node-type { + height: 50px; + padding: 15px 15px 0 15px; + .label { + display: inline-block; + width: 80px; + } + .el-select { + width: calc(100% - 80px); + } + } .select-wrap { padding: 10px 15px; font-size: 14px; @@ -1300,14 +1689,17 @@ export default { } } .tree-wrap { - height: calc(60% - 180px); + height: calc(70% - 155px); overflow-y: auto; padding: 0 15px 15px; position: relative; z-index: 2; + .image-type { + width: 20px; + height: 10px; + margin-right: 10px; + } .el-tree { - overflow-x: auto; - overflow-y: hidden; & > .el-tree-node { min-width: 100%; display: inline-block; @@ -1315,9 +1707,8 @@ export default { } } .watch-point-wrap { - height: 40%; + height: 30%; border-top: 1px solid #ebeef5; - border-bottom: 1px solid #ebeef5; .title-wrap { height: 30px; line-height: 30px; @@ -1326,6 +1717,33 @@ export default { border-bottom: 1px solid #ebeef5; font-weight: bold; } + .check-wrap { + position: absolute; + right: 60px; + top: 0px; + .el-icon-circle-check { + color: #00a5a7; + cursor: pointer; + display: none; + } + .disable:before { + cursor: not-allowed; + color: #adb0b8; + } + } + .delete-wrap { + position: absolute; + right: 35px; + top: 0px; + .el-icon-delete:before { + color: #00a5a7; + cursor: pointer; + } + .disable:before { + cursor: not-allowed; + color: #adb0b8; + } + } .add-wrap { position: absolute; right: 10px; @@ -1348,7 +1766,7 @@ export default { .name { .item-content { display: inline-block; - width: 320px; + width: 310px; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; @@ -1364,118 +1782,81 @@ export default { .el-icon-close { position: absolute; right: 10px; - top: 0; + top: 3px; } .el-icon-check { position: absolute; - right: 40px; - top: 0; - } - } - .condition { - margin: 10px 0; - .el-select { - width: 150px; - } - .condition-param { - width: 120px; - margin-left: 10px; - } - .btn-wrap { - display: inline-block; - margin-left: 10px; - padding: 0; + right: 30px; + top: 3px; } } } } } } - .btn-wrap { - padding: 10px 20px 0; - .step { - width: 100%; - display: flex; - justify-content: space-between; - .custom-btn { - margin-left: 10px; - } - } - .btn-two { - width: 100%; - .custom-btn { - height: 30px; - margin-top: 10px; - } - } - .el-button + .el-button { - margin-left: 0px; - } - .el-button:not(:last-child) { - margin-right: 10px; - } - } .custom-tree-node { padding-right: 8px; } .custom-tree-node.highlight { color: red; } - } - .hit { - height: 100%; - .content { - height: calc(100% - 185px); - padding-left: 15px; - } - .title { - margin: 10px 0 30px; - } .hit-list-wrap { - height: calc(100% - 50px); + height: 100%; overflow-y: auto; - .hit-list { - margin-bottom: 10px; - border-bottom: 1px solid #ebeef5; - .node-name { - padding-left: 10px; - line-height: 20px; - &:hover { - color: #00a5a7; - cursor: pointer; - } - } - .node-name.selected { - color: #00a5a7; - } - .watch-points { - padding-left: 20px; - margin: 5px 0; + padding: 10px; + .hit-item { + word-break: break-all; + line-height: 18px; + padding: 10px; + &:hover { + cursor: pointer; } } - .no-data { - text-align: center; - color: #909399; + .selected { + color: #00a5a7; } - } - .btn-wrap { - padding: 10px 20px 0; - .step { - margin-bottom: 10px; - display: flex; - justify-content: space-between; - .custom-btn { - margin-left: 10px; + .el-table__expanded-cell[class*='cell'] { + padding: 0px 10px 0 50px; + ul { + background-color: #f5f7fa; + li { + line-height: 18px; + padding: 10px; + word-break: break-all; + border-top: 1px solid white; + border-bottom: 1px solid white; + &:hover { + background-color: #ebeef5; + } + } } } - .el-button + .el-button { - margin-bottom: 10px; - margin-left: 0px; + } + } + .btn-wrap { + padding: 10px 20px; + border-top: 1px solid #ebeef5; + .step { + width: 100%; + display: flex; + justify-content: space-between; + .custom-btn { + margin-left: 10px; } - .el-button:not(:last-child) { - margin-right: 10px; + } + .btn-two { + width: 100%; + .custom-btn { + height: 30px; + margin-top: 10px; } } + .el-button + .el-button { + margin-left: 0px; + } + .el-button:not(:last-child) { + margin-right: 10px; + } } } .collapse-btn { @@ -1635,21 +2016,14 @@ export default { .table-container { background: #fff; height: calc(50% - 60px); - padding-left: 15px; position: relative; img { position: absolute; right: 10px; - top: 20px; + top: 12px; cursor: pointer; z-index: 99; } - .table-title { - height: 50px; - line-height: 30px; - padding: 10px 0; - font-weight: bold; - } .el-tabs.el-tabs--top { height: 100%; .el-tabs__content { @@ -1660,7 +2034,7 @@ export default { } } .table-content { - height: calc(100% - 50px); + height: 100%; overflow: hidden; position: relative; .table-wrap { @@ -1726,6 +2100,9 @@ export default { } .table-container.collapse { height: 35px; + .el-tabs__header { + margin: 0; + } .table-content { display: none; } @@ -1761,6 +2138,20 @@ export default { .notShow { display: none; } + .conditions-container { + .collection { + width: 200px; + } + .condition { + width: 200px; + } + .param { + width: 200px; + } + .param-value { + width: 200px; + } + } .el-dialog__wrapper.pendingTips { position: absolute; .dialog-icon { @@ -1806,6 +2197,29 @@ export default { left: 32px; font-weight: bold; font-size: 16px; + width: 50%; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + } + .deb-con-title-middle { + position: absolute; + left: calc(50% + 32px); + width: 300px; + padding: 10px 0; + line-height: 36px; + .grident { + display: inline-block; + width: calc(100% - 70px); + background-image: linear-gradient( + to right, + rgba(227, 125, 41), + #fff, + rgba(0, 165, 167) + ); + text-align: center; + color: transparent; + } } .deb-con-title-right { position: absolute; @@ -1870,7 +2284,19 @@ export default { flex: 1; padding: 0 32px; .deb-compare-wrap { - height: calc(100% - 50px); + height: calc(100% - 120px); + } + .deb-compare-detail { + span { + margin-right: 15px; + } + & > div { + margin-top: 10px; + } + label { + display: inline-block; + min-width: 100px; + } } } }