Sfoglia il codice sorgente

feat: 数据扩增入库、电子稳相指标

Eagle 2 settimane fa
parent
commit
89239f4395

+ 2 - 1
src/views/demo/data/index.vue

@@ -133,8 +133,9 @@ const getTrainAugmentationParams = () => {
   })
 
   return {
-    batchNum,
+    batchNum: batchNum,
     taskName: model.value.taskName,
+    augmentationType: model.value.augmentationType,
     otherParams: parameList.value
   }
 }

+ 13 - 0
src/views/demo/videoStable/index.vue

@@ -47,6 +47,7 @@
           </template>
         </el-popconfirm>
         <el-button type="primary" link icon="View" @click="previewCompare(scope.row)" v-if="scope.row.status == '2'"> 预览 </el-button>
+        <el-button type="primary" link icon="View" @click="showTimeResult(scope.row)"> 指标 </el-button>
         <el-button
           type="primary"
           link
@@ -70,6 +71,7 @@
     <ViewLog ref="viewLogRef" :get-log-api="getLogVideoStableApi" />
     <ImportExcel ref="dialogRef" />
     <PreviewCompareImages ref="previewCompareImagesRef" />
+    <ResultDialog ref="ResultDialogRef" />
   </div>
 </template>
 
@@ -105,6 +107,8 @@ import { resetHeart } from '@/utils/websocket'
 import ViewLog from '@/views/demo/components/ViewLog.vue'
 import PreviewCompareImages from '@/views/demo/components/PreviewCompareImages.vue'
 import { getOneAlgorithmConfigApi, listAlgorithmConfigApi } from '@/api/modules/demo/algorithmConfig'
+import ResultDialog from '@/components/ResultDialog/ResultDialog.vue'
+import http from '@/api'
 
 const previewCompareImagesRef = ref()
 const previewCompare = async row => {
@@ -127,6 +131,15 @@ onMounted(() => {
   }
 })
 
+const ResultDialogRef = ref<InstanceType<typeof ResultDialog> | null>(null)
+const showTimeResult = async function (row) {
+  // let path = row.resultPath.split('ObjectDetection_Web')
+  // path = path[path.length - 1]
+  let p = row.outputPath.split('upload')
+  let result = await http.get('/profile/upload' + p[p.length - 1] + '/result.json')
+  ResultDialogRef.value.openDialog(result)
+}
+
 const startVideoStable = async (params: any) => {
   const res = await startVideoStableApi(params.id)
   if (res.code === 200) {

+ 10 - 1
src/views/taais/homePage/task/index.vue

@@ -127,6 +127,9 @@
       <span style="font-size: 16px; font-weight: bold; color: darkorange"> 训练超参 </span>
       <el-container v-for="(item, index) in superParameterFormData.trainParams" :key="index">
         <span class="span_class"> {{ item.name }}</span>
+        <el-tooltip effect="dark" :content="item?.prompt" placement="top">
+          <i :class="'iconfont icon-yiwen'"></i>
+        </el-tooltip>
         <el-input style="width: 300px" type="text" :placeholder="'请输入' + item.name" v-model="item.defaultValue"> </el-input>
       </el-container>
       <el-container style="height: 10px"></el-container>
@@ -134,6 +137,9 @@
       <span style="font-size: 16px; font-weight: bold; color: darkorange"> 验证超参 </span>
       <el-container v-for="(item, index) in superParameterFormData.verifyParams" :key="index">
         <span class="span_class"> {{ item.name }}</span>
+        <el-tooltip effect="dark" :content="item?.prompt" placement="top">
+          <i :class="'iconfont icon-yiwen'"></i>
+        </el-tooltip>
         <el-input style="width: 300px" type="text" :placeholder="'请输入' + item.name" v-model="item.defaultValue"> </el-input>
       </el-container>
       <el-container style="height: 10px"></el-container>
@@ -141,6 +147,9 @@
       <span style="font-size: 16px; font-weight: bold; color: darkorange"> 测试超参 </span>
       <el-container v-for="(item, index) in superParameterFormData.testParams" :key="index">
         <span class="span_class"> {{ item.name }}</span>
+        <el-tooltip effect="dark" :content="item?.prompt" placement="top">
+          <i :class="'iconfont icon-yiwen'"></i>
+        </el-tooltip>
         <el-input style="width: 300px" type="text" :placeholder="'请输入' + item.name" v-model="item.defaultValue"> </el-input>
       </el-container>
       <el-container style="height: 10px"></el-container>
@@ -189,7 +198,7 @@ import FormDialog from '@/components/FormDialog/index.vue'
 import { useRouter } from 'vue-router'
 import { listTaskConfigurationApi } from '@/api/modules/task/taskConfiguration'
 import { amplifyApi, batchListDataApi } from '@/api/modules/demo/data'
-import {getDictsApi, listDataApi} from '@/api/modules/system/dictData'
+import { getDictsApi, listDataApi } from '@/api/modules/system/dictData'
 import { ElMessage } from 'element-plus'
 import AmplifyForm from '@/views/demo/data/AmplifyForm.vue'
 

+ 1 - 1
src/views/task/amplify/index.vue

@@ -588,7 +588,7 @@ const viewLog = row => {
   }
   const paths = row.outputImagePath.split('\n')
   for (let path of paths) {
-    const url = `/api/profile/task/log/bizType/` + row.id + '/log.log'
+    const url = '/api/profile' + (row.remarks === 'PERSISTENCE' ? row.outputImagePath + '/log.log' : row.remarks)
     logShow(url)
     dialogVisible.value = true
     timer2.value = setInterval(() => {