| @@ -21,10 +21,10 @@ | |||||
| "timeSecond": "秒" | "timeSecond": "秒" | ||||
| }, | }, | ||||
| "summaryManage": { | "summaryManage": { | ||||
| "summaryList": "Summary列表", | |||||
| "currentFolder": "当前文件夹:", | |||||
| "summaryList": "训练列表", | |||||
| "currentFolder": "训练日志根路径:", | |||||
| "sorting": "序号", | "sorting": "序号", | ||||
| "summaryPath": "summary路径", | |||||
| "summaryPath": "训练日志路径", | |||||
| "createTime": "创建时间", | "createTime": "创建时间", | ||||
| "updateTime": "更新时间", | "updateTime": "更新时间", | ||||
| "operation": "操作", | "operation": "操作", | ||||
| @@ -33,7 +33,7 @@ | |||||
| "dataTraceback": "数据溯源" | "dataTraceback": "数据溯源" | ||||
| }, | }, | ||||
| "modelTraceback": { | "modelTraceback": { | ||||
| "summaryPath": "summary路径", | |||||
| "summaryPath": "训练日志路径", | |||||
| "trainSetPath": "训练集路径", | "trainSetPath": "训练集路径", | ||||
| "testSetPath": "测试集路径", | "testSetPath": "测试集路径", | ||||
| "trainingSampleNum": "训练样本数量", | "trainingSampleNum": "训练样本数量", | ||||
| @@ -68,7 +68,7 @@ | |||||
| "samplingData": "数据抽样", | "samplingData": "数据抽样", | ||||
| "imagesampleSwitch": "切换标签", | "imagesampleSwitch": "切换标签", | ||||
| "invalidId": "无效的训练作业", | "invalidId": "无效的训练作业", | ||||
| "summaryDirPath": "summary路径:" | |||||
| "summaryDirPath": "训练日志路径:" | |||||
| }, | }, | ||||
| "scalar": { | "scalar": { | ||||
| "titleText": "标量", | "titleText": "标量", | ||||
| @@ -168,9 +168,11 @@ export default { | |||||
| if (!this.$route.query || !this.$route.query.train_id) { | if (!this.$route.query || !this.$route.query.train_id) { | ||||
| this.trainJobID = ''; | this.trainJobID = ''; | ||||
| this.$message.error(this.$t('trainingDashboard.invalidId')); | this.$message.error(this.$t('trainingDashboard.invalidId')); | ||||
| document.title = this.$t('trainingDashboard.dataMap') + '-MindInsight'; | |||||
| return; | return; | ||||
| } | } | ||||
| this.trainJobID = this.$route.query.train_id; | this.trainJobID = this.$route.query.train_id; | ||||
| document.title = decodeURIComponent(this.trainJobID) + '-' + this.$t('trainingDashboard.dataMap') + '-MindInsight'; | |||||
| this.$nextTick(() => { | this.$nextTick(() => { | ||||
| this.queryGraphData(); | this.queryGraphData(); | ||||
| }); | }); | ||||
| @@ -332,6 +332,7 @@ export default { | |||||
| }, | }, | ||||
| computed: {}, | computed: {}, | ||||
| mounted() { | mounted() { | ||||
| document.title = this.$t('summaryManage.dataTraceback') + '-MindInsight'; | |||||
| this.$nextTick(() => { | this.$nextTick(() => { | ||||
| this.init(); | this.init(); | ||||
| }); | }); | ||||
| @@ -389,9 +389,15 @@ export default { | |||||
| if (!this.$route.query || !this.$route.query.train_id) { | if (!this.$route.query || !this.$route.query.train_id) { | ||||
| this.trainJobID = ''; | this.trainJobID = ''; | ||||
| this.$message.error(this.$t('trainingDashboard.invalidId')); | this.$message.error(this.$t('trainingDashboard.invalidId')); | ||||
| document.title = this.$t('graph.titleText') + '-MindInsight'; | |||||
| return; | return; | ||||
| } | } | ||||
| this.trainJobID = this.$route.query.train_id; | this.trainJobID = this.$route.query.train_id; | ||||
| document.title = | |||||
| decodeURIComponent(this.trainJobID) + | |||||
| '-' + | |||||
| this.$t('graph.titleText') + | |||||
| '-MindInsight'; | |||||
| this.getDatavisualPlugins(); | this.getDatavisualPlugins(); | ||||
| window.onresize = () => { | window.onresize = () => { | ||||
| const graphDom = document.querySelector('#graph #graph0'); | const graphDom = document.querySelector('#graph #graph0'); | ||||
| @@ -927,7 +933,7 @@ export default { | |||||
| */ | */ | ||||
| packageGraphData() { | packageGraphData() { | ||||
| const initSetting = | const initSetting = | ||||
| 'node[style="filled";fontsize="10px"];edge[fontsize="6px";];'; | |||||
| 'node[style="filled";fontsize="10px"];edge[fontsize="4px";];'; | |||||
| return `digraph {${initSetting}${this.packageNodes()}${this.packageEdges()}}`; | return `digraph {${initSetting}${this.packageNodes()}${this.packageEdges()}}`; | ||||
| }, | }, | ||||
| /** | /** | ||||
| @@ -1477,7 +1483,7 @@ export default { | |||||
| const nodeStr = this.packageNodes(name); | const nodeStr = this.packageNodes(name); | ||||
| const edgeStr = this.packageEdges(name); | const edgeStr = this.packageEdges(name); | ||||
| const initSetting = | const initSetting = | ||||
| `node[style="filled";fontsize="10px";];` + `edge[fontsize="6px";];`; | |||||
| `node[style="filled";fontsize="10px";];` + `edge[fontsize="4px";];`; | |||||
| const dotStr = | const dotStr = | ||||
| `digraph {${initSetting}label="${name.split('/').pop()}";` + | `digraph {${initSetting}label="${name.split('/').pop()}";` + | ||||
| `${nodeStr}${edgeStr}}`; | `${nodeStr}${edgeStr}}`; | ||||
| @@ -1537,10 +1543,7 @@ export default { | |||||
| '', | '', | ||||
| )}`, | )}`, | ||||
| ) | ) | ||||
| .attr( | |||||
| 'class', | |||||
| `edge${edge.edge_type === 'aggregation' ? ' hide' : ''}`, | |||||
| ); | |||||
| .attr('class', 'edge'); | |||||
| g.append('title').text(text); | g.append('title').text(text); | ||||
| // Because the edges need to be highlighted, marker requires one side of each side. | // Because the edges need to be highlighted, marker requires one side of each side. | ||||
| const marker = g.append(`marker`); | const marker = g.append(`marker`); | ||||
| @@ -1571,7 +1574,7 @@ export default { | |||||
| g.append('text') | g.append('text') | ||||
| .attr('text-anchor', 'middle') | .attr('text-anchor', 'middle') | ||||
| .attr('font-family', 'Times,serif') | .attr('font-family', 'Times,serif') | ||||
| .attr('font-size', '6px') | |||||
| .attr('font-size', '4px') | |||||
| .attr('fill', '#000000') | .attr('fill', '#000000') | ||||
| .attr('x', (points[0].x + points[1].x) / 2) | .attr('x', (points[0].x + points[1].x) / 2) | ||||
| .attr('y', (points[0].y + points[1].y) / 2) | .attr('y', (points[0].y + points[1].y) / 2) | ||||
| @@ -3096,12 +3099,6 @@ export default { | |||||
| fill: #c1f5d5; | fill: #c1f5d5; | ||||
| stroke-dasharray: 1.5, 1.5; | stroke-dasharray: 1.5, 1.5; | ||||
| } | } | ||||
| .hide { | |||||
| visibility: hidden; | |||||
| } | |||||
| .show { | |||||
| visibility: visible; | |||||
| } | |||||
| .edge-point ellipse { | .edge-point ellipse { | ||||
| stroke: #a7a7a7; | stroke: #a7a7a7; | ||||
| fill: #a7a7a7; | fill: #a7a7a7; | ||||
| @@ -254,6 +254,13 @@ export default { | |||||
| * Initialize | * Initialize | ||||
| */ | */ | ||||
| init() { | init() { | ||||
| if (!this.$route.query || !this.$route.query.train_id) { | |||||
| this.$message.error(this.$t('trainingDashboard.invalidId')); | |||||
| document.title = this.$t('histogram.titleText') + '-MindInsight'; | |||||
| return; | |||||
| } | |||||
| document.title = decodeURIComponent(this.$route.query.train_id) +'-' + this.$t('histogram.titleText') + | |||||
| '-MindInsight'; | |||||
| this.getOriginData(); | this.getOriginData(); | ||||
| if (this.isTimeReload) { | if (this.isTimeReload) { | ||||
| this.autoUpdateSamples(); | this.autoUpdateSamples(); | ||||
| @@ -134,7 +134,7 @@ export default { | |||||
| autoUpdateTimer: null, // Automatic refresh timer | autoUpdateTimer: null, // Automatic refresh timer | ||||
| brightness: 50, // Brightness | brightness: 50, // Brightness | ||||
| contrast: 50, // Contrast | contrast: 50, // Contrast | ||||
| trainingJobId: this.$route.query.id, // ID of the current training job | |||||
| trainingJobId: this.$route.query.train_id, // ID of the current training job | |||||
| multiSelectedTagNames: {}, // Dictionary for storing the name of the selected tags | multiSelectedTagNames: {}, // Dictionary for storing the name of the selected tags | ||||
| curFilterSamples: [], // List of images that meet the current filter criteria | curFilterSamples: [], // List of images that meet the current filter criteria | ||||
| tagOperateList: [], // Tag list | tagOperateList: [], // Tag list | ||||
| @@ -221,6 +221,13 @@ export default { | |||||
| } | } | ||||
| }, | }, | ||||
| mounted() { | mounted() { | ||||
| if (!this.$route.query || !this.$route.query.train_id) { | |||||
| this.$message.error(this.$t('trainingDashboard.invalidId')); | |||||
| document.title = this.$t('images.titleText') + '-MindInsight'; | |||||
| return; | |||||
| } | |||||
| document.title = decodeURIComponent(this.$route.query.train_id) +'-' + this.$t('images.titleText') + | |||||
| '-MindInsight'; | |||||
| this.getTagList(); | this.getTagList(); | ||||
| // Automatic refresh | // Automatic refresh | ||||
| if (this.isTimeReload) { | if (this.isTimeReload) { | ||||
| @@ -179,6 +179,7 @@ export default { | |||||
| }, | }, | ||||
| computed: {}, | computed: {}, | ||||
| mounted() { | mounted() { | ||||
| document.title = this.$t('summaryManage.modelTraceback') + '-MindInsight'; | |||||
| this.$store.commit('setSelectedBarList', []); | this.$store.commit('setSelectedBarList', []); | ||||
| this.getStoreList(); | this.getStoreList(); | ||||
| this.pagination.pageChange = (page) => { | this.pagination.pageChange = (page) => { | ||||
| @@ -250,6 +250,13 @@ export default { | |||||
| } | } | ||||
| }, | }, | ||||
| mounted() { | mounted() { | ||||
| if (!this.$route.query || !this.$route.query.train_id) { | |||||
| this.$message.error(this.$t('trainingDashboard.invalidId')); | |||||
| document.title = this.$t('scalar.titleText') + '-MindInsight'; | |||||
| return; | |||||
| } | |||||
| document.title = decodeURIComponent(this.$route.query.train_id) +'-' + this.$t('scalar.titleText') + | |||||
| '-MindInsight'; | |||||
| // Adding a Listener | // Adding a Listener | ||||
| window.addEventListener('resize', this.resizeCallback, false); | window.addEventListener('resize', this.resizeCallback, false); | ||||
| @@ -58,8 +58,7 @@ limitations under the License. | |||||
| <!--operate --> | <!--operate --> | ||||
| <el-table-column prop="operate" | <el-table-column prop="operate" | ||||
| :label="$t('summaryManage.operation')" | :label="$t('summaryManage.operation')" | ||||
| show-overflow-tooltip | |||||
| width="150"> | |||||
| width="170"> | |||||
| <template slot-scope="scope"> | <template slot-scope="scope"> | ||||
| <el-button type="text" | <el-button type="text" | ||||
| class="cursor-type" | class="cursor-type" | ||||
| @@ -106,6 +105,7 @@ export default { | |||||
| destroyed() {}, | destroyed() {}, | ||||
| activated() {}, | activated() {}, | ||||
| mounted() { | mounted() { | ||||
| document.title = this.$t('summaryManage.summaryList') + '-MindInsight'; | |||||
| this.$nextTick(() => { | this.$nextTick(() => { | ||||
| this.init(); | this.init(); | ||||
| }); | }); | ||||
| @@ -292,7 +292,9 @@ export default { | |||||
| if (this.$route.query && this.$route.query.id) { | if (this.$route.query && this.$route.query.id) { | ||||
| this.trainingJobId = this.$route.query.id; | this.trainingJobId = this.$route.query.id; | ||||
| this.summaryPath = decodeURIComponent(this.trainingJobId); | this.summaryPath = decodeURIComponent(this.trainingJobId); | ||||
| document.title = this.summaryPath + '-' + this.$t('trainingDashboard.trainingDashboardTitle') + '-MindInsight'; | |||||
| } else { | } else { | ||||
| document.title = this.$t('trainingDashboard.trainingDashboardTitle') + '-MindInsight'; | |||||
| this.trainingJobId = ''; | this.trainingJobId = ''; | ||||
| this.$message.error(this.$t('trainingDashboard.invalidId')); | this.$message.error(this.$t('trainingDashboard.invalidId')); | ||||
| } | } | ||||
| @@ -1186,7 +1188,7 @@ export default { | |||||
| this.$router.push({ | this.$router.push({ | ||||
| path: '/train-manage/image', | path: '/train-manage/image', | ||||
| query: { | query: { | ||||
| id: this.trainingJobId, | |||||
| train_id: this.trainingJobId, | |||||
| }, | }, | ||||
| }); | }); | ||||
| }, | }, | ||||