| @@ -1,5 +1,5 @@ | |||||
| <!-- | <!-- | ||||
| Copyright 2019 Huawei Technologies Co., Ltd.All Rights Reserved. | |||||
| Copyright 2019-2021 Huawei Technologies Co., Ltd.All Rights Reserved. | |||||
| Licensed under the Apache License, Version 2.0 (the "License"); | Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| you may not use this file except in compliance with the License. | you may not use this file except in compliance with the License. | ||||
| @@ -1,5 +1,5 @@ | |||||
| /** | /** | ||||
| * Copyright 2019 Huawei Technologies Co., Ltd.All Rights Reserved. | |||||
| * Copyright 2019-2021 Huawei Technologies Co., Ltd.All Rights Reserved. | |||||
| * | * | ||||
| * Licensed under the Apache License, Version 2.0 (the "License"); | * Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| * you may not use this file except in compliance with the License. | * you may not use this file except in compliance with the License. | ||||
| @@ -1,5 +1,5 @@ | |||||
| <!-- | <!-- | ||||
| Copyright 2019 Huawei Technologies Co., Ltd.All Rights Reserved. | |||||
| Copyright 2019-2021 Huawei Technologies Co., Ltd.All Rights Reserved. | |||||
| Licensed under the Apache License, Version 2.0 (the "License"); | Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| you may not use this file except in compliance with the License. | you may not use this file except in compliance with the License. | ||||
| @@ -1,5 +1,5 @@ | |||||
| <!-- | <!-- | ||||
| Copyright 2019 Huawei Technologies Co., Ltd.All Rights Reserved. | |||||
| Copyright 2019-2021 Huawei Technologies Co., Ltd.All Rights Reserved. | |||||
| Licensed under the Apache License, Version 2.0 (the "License"); | Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| you may not use this file except in compliance with the License. | you may not use this file except in compliance with the License. | ||||
| @@ -1,3 +1,18 @@ | |||||
| <!-- | |||||
| Copyright 2020-2021 Huawei Technologies Co., Ltd.All Rights Reserved. | |||||
| Licensed under the Apache License, Version 2.0 (the "License"); | |||||
| you may not use this file except in compliance with the License. | |||||
| You may obtain a copy of the License at | |||||
| http://www.apache.org/licenses/LICENSE-2.0 | |||||
| Unless required by applicable law or agreed to in writing, software | |||||
| distributed under the License is distributed on an "AS IS" BASIS, | |||||
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |||||
| See the License for the specific language governing permissions and | |||||
| limitations under the License. | |||||
| --> | |||||
| <template> | <template> | ||||
| <div class="cl-search-select" | <div class="cl-search-select" | ||||
| ref="selector" | ref="selector" | ||||
| @@ -1,3 +1,18 @@ | |||||
| <!-- | |||||
| Copyright 2020-2021 Huawei Technologies Co., Ltd.All Rights Reserved. | |||||
| Licensed under the Apache License, Version 2.0 (the "License"); | |||||
| you may not use this file except in compliance with the License. | |||||
| You may obtain a copy of the License at | |||||
| http://www.apache.org/licenses/LICENSE-2.0 | |||||
| Unless required by applicable law or agreed to in writing, software | |||||
| distributed under the License is distributed on an "AS IS" BASIS, | |||||
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |||||
| See the License for the specific language governing permissions and | |||||
| limitations under the License. | |||||
| --> | |||||
| <template> | <template> | ||||
| <div class="el-tree-node" | <div class="el-tree-node" | ||||
| @click.stop="handleClick" | @click.stop="handleClick" | ||||
| @@ -1,3 +1,18 @@ | |||||
| <!-- | |||||
| Copyright 2020-2021 Huawei Technologies Co., Ltd.All Rights Reserved. | |||||
| Licensed under the Apache License, Version 2.0 (the "License"); | |||||
| you may not use this file except in compliance with the License. | |||||
| You may obtain a copy of the License at | |||||
| http://www.apache.org/licenses/LICENSE-2.0 | |||||
| Unless required by applicable law or agreed to in writing, software | |||||
| distributed under the License is distributed on an "AS IS" BASIS, | |||||
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |||||
| See the License for the specific language governing permissions and | |||||
| limitations under the License. | |||||
| --> | |||||
| <template> | <template> | ||||
| <div class="el-tree" | <div class="el-tree" | ||||
| :class="{ | :class="{ | ||||
| @@ -1,5 +1,5 @@ | |||||
| /** | /** | ||||
| * Copyright 2019 Huawei Technologies Co., Ltd.All Rights Reserved. | |||||
| * Copyright 2019-2021 Huawei Technologies Co., Ltd.All Rights Reserved. | |||||
| * | * | ||||
| * Licensed under the Apache License, Version 2.0 (the "License"); | * Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| * you may not use this file except in compliance with the License. | * you may not use this file except in compliance with the License. | ||||
| @@ -755,7 +755,8 @@ | |||||
| "nonnegative": "此参数值不能小于0", | "nonnegative": "此参数值不能小于0", | ||||
| "allPositive": "此参数值必须大于0", | "allPositive": "此参数值必须大于0", | ||||
| "watchOverflow": "训练开始前需开启异步全量溢出监测功能" | "watchOverflow": "训练开始前需开启异步全量溢出监测功能" | ||||
| } | |||||
| }, | |||||
| "paramValueTip": "设置值为:{value}" | |||||
| }, | }, | ||||
| "explain": { | "explain": { | ||||
| "explain": "模型解释", | "explain": "模型解释", | ||||
| @@ -819,7 +820,7 @@ | |||||
| "scoreSystemtooltipfour": " -Faithfulness: 该维度评估解释结果对模型的忠实度,即显著图是否正确反映模型分类依据。给定显著图,按照一定规则(如从亮到暗)对原始图像中的相应位置进行修改,将修改后的图像传给模型依次进行推理,如果显著图越亮的区域对选定标签影响越大,则解释结果忠实度越高;反之,解释结果可能无法反映模型的推理依据。当前有三种主流方案度量解释的faithfulness:Naive Faithfulness,Insertion AUC,Deletion AUC。", | "scoreSystemtooltipfour": " -Faithfulness: 该维度评估解释结果对模型的忠实度,即显著图是否正确反映模型分类依据。给定显著图,按照一定规则(如从亮到暗)对原始图像中的相应位置进行修改,将修改后的图像传给模型依次进行推理,如果显著图越亮的区域对选定标签影响越大,则解释结果忠实度越高;反之,解释结果可能无法反映模型的推理依据。当前有三种主流方案度量解释的faithfulness:Naive Faithfulness,Insertion AUC,Deletion AUC。", | ||||
| "scoreSystemtooltipfive": " -Localization: 该维度借助数据集的bounding box对显著图高亮区域的定位准确性进行评估,选定一组目标和相关标签,如果解释方法准确高亮了图像中和选定标签相关的区域,高亮区域和选定目标的bounding box应当有较大重合度。Localization通过评估高亮区域和bounding box的重合度,对解释结果的定位能力进行评估。", | "scoreSystemtooltipfive": " -Localization: 该维度借助数据集的bounding box对显著图高亮区域的定位准确性进行评估,选定一组目标和相关标签,如果解释方法准确高亮了图像中和选定标签相关的区域,高亮区域和选定目标的bounding box应当有较大重合度。Localization通过评估高亮区域和bounding box的重合度,对解释结果的定位能力进行评估。", | ||||
| "scoreSystemtooltipsix": "-ClassSensitivity:该维度通过比较置信度最大和最小标签的显著图相关性,对显著图的标签敏感度进行评估,模型对不同标签的推理依据应该有区别,合理的解释方法应该为不同的标签输出不同的显著图。ClassSensitivity通过计算最大和最小置信度标签的显著图的相关系数,评估解释结果的标签敏感度。", | "scoreSystemtooltipsix": "-ClassSensitivity:该维度通过比较置信度最大和最小标签的显著图相关性,对显著图的标签敏感度进行评估,模型对不同标签的推理依据应该有区别,合理的解释方法应该为不同的标签输出不同的显著图。ClassSensitivity通过计算最大和最小置信度标签的显著图的相关系数,评估解释结果的标签敏感度。", | ||||
| "scoreSystemtooltipseven":"-Robustness: 该维度对解释方法的鲁棒性进行评估,即在原始图像中加入少量噪声时,显著图的变化程度。当原始图像加入少量噪声但不影响推理结果的情况下,如果显著图几乎没有变化,则解释方法的鲁棒性越强,解释结果越稳定。", | |||||
| "scoreSystemtooltipseven": "-Robustness: 该维度对解释方法的鲁棒性进行评估,即在原始图像中加入少量噪声时,显著图的变化程度。当原始图像加入少量噪声但不影响推理结果的情况下,如果显著图几乎没有变化,则解释方法的鲁棒性越强,解释结果越稳定。", | |||||
| "errorTipTitle": "异常场景:", | "errorTipTitle": "异常场景:", | ||||
| "errorTipText": "出现NaN时,请查看运行日志。" | "errorTipText": "出现NaN时,请查看运行日志。" | ||||
| }, | }, | ||||
| @@ -1,5 +1,5 @@ | |||||
| /** | /** | ||||
| * Copyright 2019 Huawei Technologies Co., Ltd.All Rights Reserved. | |||||
| * Copyright 2019-2021 Huawei Technologies Co., Ltd.All Rights Reserved. | |||||
| * | * | ||||
| * Licensed under the Apache License, Version 2.0 (the "License"); | * Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| * you may not use this file except in compliance with the License. | * you may not use this file except in compliance with the License. | ||||
| @@ -1,3 +1,18 @@ | |||||
| <!-- | |||||
| Copyright 2020-2021 Huawei Technologies Co., Ltd.All Rights Reserved. | |||||
| Licensed under the Apache License, Version 2.0 (the "License"); | |||||
| you may not use this file except in compliance with the License. | |||||
| You may obtain a copy of the License at | |||||
| http://www.apache.org/licenses/LICENSE-2.0 | |||||
| Unless required by applicable law or agreed to in writing, software | |||||
| distributed under the License is distributed on an "AS IS" BASIS, | |||||
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |||||
| See the License for the specific language governing permissions and | |||||
| limitations under the License. | |||||
| --> | |||||
| <script> | <script> | ||||
| import RequestService from '@/services/request-service'; | import RequestService from '@/services/request-service'; | ||||
| import {select, selectAll, zoom, dispatch} from 'd3'; | import {select, selectAll, zoom, dispatch} from 'd3'; | ||||
| @@ -1,5 +1,5 @@ | |||||
| /** | /** | ||||
| * Copyright 2019 Huawei Technologies Co., Ltd.All Rights Reserved. | |||||
| * Copyright 2019-2021 Huawei Technologies Co., Ltd.All Rights Reserved. | |||||
| * | * | ||||
| * Licensed under the Apache License, Version 2.0 (the "License"); | * Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| * you may not use this file except in compliance with the License. | * you may not use this file except in compliance with the License. | ||||
| @@ -1,5 +1,5 @@ | |||||
| /** | /** | ||||
| * Copyright 2019 Huawei Technologies Co., Ltd.All Rights Reserved. | |||||
| * Copyright 2019-2021 Huawei Technologies Co., Ltd.All Rights Reserved. | |||||
| * | * | ||||
| * Licensed under the Apache License, Version 2.0 (the "License"); | * Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| * you may not use this file except in compliance with the License. | * you may not use this file except in compliance with the License. | ||||
| @@ -1,5 +1,5 @@ | |||||
| /** | /** | ||||
| * Copyright 2019 Huawei Technologies Co., Ltd.All Rights Reserved. | |||||
| * Copyright 2019-2021 Huawei Technologies Co., Ltd.All Rights Reserved. | |||||
| * | * | ||||
| * Licensed under the Apache License, Version 2.0 (the "License"); | * Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| * you may not use this file except in compliance with the License. | * you may not use this file except in compliance with the License. | ||||
| @@ -1,5 +1,5 @@ | |||||
| /** | /** | ||||
| * Copyright 2019 Huawei Technologies Co., Ltd.All Rights Reserved. | |||||
| * Copyright 2019-2021 Huawei Technologies Co., Ltd.All Rights Reserved. | |||||
| * | * | ||||
| * Licensed under the Apache License, Version 2.0 (the "License"); | * Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| * you may not use this file except in compliance with the License. | * you may not use this file except in compliance with the License. | ||||
| @@ -1,5 +1,5 @@ | |||||
| <!-- | <!-- | ||||
| Copyright 2020 Huawei Technologies Co., Ltd.All Rights Reserved. | |||||
| Copyright 2020-2021 Huawei Technologies Co., Ltd.All Rights Reserved. | |||||
| Licensed under the Apache License, Version 2.0 (the "License"); | Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| you may not use this file except in compliance with the License. | you may not use this file except in compliance with the License. | ||||
| @@ -543,12 +543,19 @@ limitations under the License. | |||||
| </el-option> | </el-option> | ||||
| </el-select> | </el-select> | ||||
| <el-input v-model="item.param.value" | |||||
| :placeholder="$t('scalar.placeHolderNumber')" | |||||
| v-if="item.param.options.length && | |||||
| <el-tooltip class="item" | |||||
| effect="light" | |||||
| :content="$t('debugger.paramValueTip', {value: (/^(\-|\+)?\d+(\.\d+)?$/).test(item.param.value) ? | |||||
| Number(item.param.value) : ''})" | |||||
| placement="top"> | |||||
| <el-input v-model="item.param.value" | |||||
| :placeholder="$t('scalar.placeHolderNumber')" | |||||
| v-show="item.param.options.length && | |||||
| item.param.type !== 'BOOL'" | item.param.type !== 'BOOL'" | ||||
| @input="validateParam(item)" | |||||
| class="param-value"></el-input> | |||||
| @input="validateParam(item)" | |||||
| class="param-value"></el-input> | |||||
| </el-tooltip> | |||||
| <el-select v-model="item.param.value" | <el-select v-model="item.param.value" | ||||
| v-if="item.param.options.length && | v-if="item.param.options.length && | ||||
| item.param.type === 'BOOL'" | item.param.type === 'BOOL'" | ||||
| @@ -572,11 +579,19 @@ limitations under the License. | |||||
| :key="index"> | :key="index"> | ||||
| {{transCondition(i.name)}} | {{transCondition(i.name)}} | ||||
| <el-input v-model="item.compositeParams.selections[index].value" | |||||
| :placeholder="$t('scalar.placeHolderNumber')" | |||||
| v-if="i.type !== 'BOOL'" | |||||
| @input="validateParam(item)" | |||||
| class="param-value"></el-input> | |||||
| <el-tooltip class="item" | |||||
| effect="light" | |||||
| :content="$t('debugger.paramValueTip', {value: | |||||
| (/^(\-|\+)?\d+(\.\d+)?$/).test(item.compositeParams.selections[index].value) ? | |||||
| Number(item.compositeParams.selections[index].value) : ''})" | |||||
| placement="top"> | |||||
| <el-input v-model="item.compositeParams.selections[index].value" | |||||
| :placeholder="$t('scalar.placeHolderNumber')" | |||||
| v-show="i.type !== 'BOOL'" | |||||
| @input="validateParam(item)" | |||||
| class="param-value"></el-input> | |||||
| </el-tooltip> | |||||
| <el-select v-model="i.value" | <el-select v-model="i.value" | ||||
| v-if="i.type === 'BOOL'" | v-if="i.type === 'BOOL'" | ||||
| class="param-value"> | class="param-value"> | ||||
| @@ -1077,7 +1092,7 @@ export default { | |||||
| val.checked = false; | val.checked = false; | ||||
| } | } | ||||
| }); | }); | ||||
| this.tableData = []; | |||||
| this.firstFloorNodes = []; | this.firstFloorNodes = []; | ||||
| this.allGraphData = {}; | this.allGraphData = {}; | ||||
| d3.select('#graph svg').remove(); | d3.select('#graph svg').remove(); | ||||
| @@ -1,5 +1,5 @@ | |||||
| <!-- | <!-- | ||||
| Copyright 2019 Huawei Technologies Co., Ltd.All Rights Reserved. | |||||
| Copyright 2019-2021 Huawei Technologies Co., Ltd.All Rights Reserved. | |||||
| Licensed under the Apache License, Version 2.0 (the "License"); | Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| you may not use this file except in compliance with the License. | you may not use this file except in compliance with the License. | ||||
| @@ -1,5 +1,5 @@ | |||||
| <!-- | <!-- | ||||
| Copyright 2019 Huawei Technologies Co., Ltd.All Rights Reserved. | |||||
| Copyright 2019-2021 Huawei Technologies Co., Ltd.All Rights Reserved. | |||||
| Licensed under the Apache License, Version 2.0 (the "License"); | Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| you may not use this file except in compliance with the License. | you may not use this file except in compliance with the License. | ||||
| @@ -1,5 +1,5 @@ | |||||
| <!-- | <!-- | ||||
| Copyright 2019 Huawei Technologies Co., Ltd.All Rights Reserved. | |||||
| Copyright 2019-2021 Huawei Technologies Co., Ltd.All Rights Reserved. | |||||
| Licensed under the Apache License, Version 2.0 (the "License"); | Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| you may not use this file except in compliance with the License. | you may not use this file except in compliance with the License. | ||||
| @@ -1,5 +1,5 @@ | |||||
| <!-- | <!-- | ||||
| Copyright 2019 Huawei Technologies Co., Ltd.All Rights Reserved. | |||||
| Copyright 2019-2021 Huawei Technologies Co., Ltd.All Rights Reserved. | |||||
| Licensed under the Apache License, Version 2.0 (the "License"); | Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| you may not use this file except in compliance with the License. | you may not use this file except in compliance with the License. | ||||
| @@ -1,5 +1,5 @@ | |||||
| <!-- | <!-- | ||||
| Copyright 2019 Huawei Technologies Co., Ltd.All Rights Reserved. | |||||
| Copyright 2019-2021 Huawei Technologies Co., Ltd.All Rights Reserved. | |||||
| Licensed under the Apache License, Version 2.0 (the "License"); | Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| you may not use this file except in compliance with the License. | you may not use this file except in compliance with the License. | ||||