Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
疯人忠
Cvat
提交
290634a8
C
Cvat
项目概览
疯人忠
/
Cvat
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
C
Cvat
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
290634a8
编写于
6月 19, 2023
作者:
K
klakhov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Renamed Raw to Serialized
上级
01f86fdf
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
24 addition
and
24 deletion
+24
-24
cvat-core/src/quality-conflict.ts
cvat-core/src/quality-conflict.ts
+8
-8
cvat-core/src/quality-report.ts
cvat-core/src/quality-report.ts
+3
-3
cvat-core/src/quality-settings.ts
cvat-core/src/quality-settings.ts
+5
-5
cvat-core/src/server-proxy.ts
cvat-core/src/server-proxy.ts
+8
-8
未找到文件。
cvat-core/src/quality-conflict.ts
浏览文件 @
290634a8
...
...
@@ -13,17 +13,17 @@ export enum ConflictSeverity {
WARNING
=
'
warning
'
,
}
export
interface
Raw
QualityConflictData
{
export
interface
Serialized
QualityConflictData
{
id
?:
number
;
frame
?:
number
;
type
?:
string
;
annotation_ids
?:
Raw
AnnotationConflictData
[];
annotation_ids
?:
Serialized
AnnotationConflictData
[];
data
?:
string
;
severity
?:
string
;
description
?:
string
;
}
export
interface
Raw
AnnotationConflictData
{
export
interface
Serialized
AnnotationConflictData
{
job_id
?:
number
;
obj_id
?:
number
;
client_id
?:
number
;
...
...
@@ -43,8 +43,8 @@ export class AnnotationConflict {
public
readonly
severity
:
ConflictSeverity
;
public
readonly
description
:
string
;
constructor
(
initialData
:
Raw
AnnotationConflictData
)
{
const
data
:
Raw
AnnotationConflictData
=
{
constructor
(
initialData
:
Serialized
AnnotationConflictData
)
{
const
data
:
Serialized
AnnotationConflictData
=
{
job_id
:
undefined
,
obj_id
:
undefined
,
client_id
:
undefined
,
...
...
@@ -106,8 +106,8 @@ export default class QualityConflict {
public
readonly
severity
:
ConflictSeverity
;
public
description
:
string
;
constructor
(
initialData
:
Raw
QualityConflictData
)
{
const
data
:
Raw
QualityConflictData
=
{
constructor
(
initialData
:
Serialized
QualityConflictData
)
{
const
data
:
Serialized
QualityConflictData
=
{
id
:
undefined
,
frame
:
undefined
,
type
:
undefined
,
...
...
@@ -123,7 +123,7 @@ export default class QualityConflict {
}
data
.
annotation_ids
=
data
.
annotation_ids
.
map
((
rawData
:
Raw
AnnotationConflictData
)
=>
new
AnnotationConflict
({
.
map
((
rawData
:
Serialized
AnnotationConflictData
)
=>
new
AnnotationConflict
({
...
rawData
,
conflict_type
:
data
.
type
,
severity
:
data
.
severity
,
...
...
cvat-core/src/quality-report.ts
浏览文件 @
290634a8
...
...
@@ -2,7 +2,7 @@
//
// SPDX-License-Identifier: MIT
export
interface
Raw
QualityReportData
{
export
interface
Serialized
QualityReportData
{
id
?:
number
;
parent_id
?:
number
;
task_id
?:
number
;
...
...
@@ -66,8 +66,8 @@ export default class QualityReport {
public
readonly
gtLastUpdated
:
string
;
public
readonly
summary
:
QualitySummary
;
constructor
(
initialData
:
Raw
QualityReportData
)
{
const
data
:
Raw
QualityReportData
=
{
constructor
(
initialData
:
Serialized
QualityReportData
)
{
const
data
:
Serialized
QualityReportData
=
{
id
:
undefined
,
parent_id
:
undefined
,
task_id
:
undefined
,
...
...
cvat-core/src/quality-settings.ts
浏览文件 @
290634a8
...
...
@@ -5,7 +5,7 @@
import
PluginRegistry
from
'
./plugins
'
;
import
serverProxy
from
'
./server-proxy
'
;
export
interface
Raw
QualitySettingsData
{
export
interface
Serialized
QualitySettingsData
{
id
?:
number
;
task
?:
number
;
iou_threshold
?:
number
;
...
...
@@ -38,8 +38,8 @@ export default class QualitySettings {
public
panopticComparison
:
boolean
;
public
compareAttributes
:
boolean
;
constructor
(
initialData
:
Raw
QualitySettingsData
)
{
const
data
:
Raw
QualitySettingsData
=
{
constructor
(
initialData
:
Serialized
QualitySettingsData
)
{
const
data
:
Serialized
QualitySettingsData
=
{
id
:
undefined
,
task
:
undefined
,
iou_threshold
:
undefined
,
...
...
@@ -147,8 +147,8 @@ export default class QualitySettings {
);
}
public
toJSON
():
Raw
QualitySettingsData
{
const
result
:
Raw
QualitySettingsData
=
{
public
toJSON
():
Serialized
QualitySettingsData
{
const
result
:
Serialized
QualitySettingsData
=
{
iou_threshold
:
this
.
iouThreshold
,
oks_sigma
:
this
.
oksSigma
,
line_thickness
:
this
.
lineThickness
,
...
...
cvat-core/src/server-proxy.ts
浏览文件 @
290634a8
...
...
@@ -13,8 +13,8 @@ import {
SerializedAbout
,
SerializedRemoteFile
,
SerializedUserAgreement
,
SerializedRegister
,
JobsFilter
,
SerializedJob
,
}
from
'
server-response-types
'
;
import
{
Raw
QualityReportData
}
from
'
quality-report
'
;
import
{
Raw
QualitySettingsData
}
from
'
quality-settings
'
;
import
{
Serialized
QualityReportData
}
from
'
quality-report
'
;
import
{
Serialized
QualitySettingsData
}
from
'
quality-settings
'
;
import
{
Storage
}
from
'
./storage
'
;
import
{
StorageLocation
,
WebhookSourceType
}
from
'
./enums
'
;
import
{
isEmail
,
isResourceURL
}
from
'
./common
'
;
...
...
@@ -22,7 +22,7 @@ import config from './config';
import
DownloadWorker
from
'
./download.worker
'
;
import
{
ServerError
}
from
'
./exceptions
'
;
import
{
FunctionsResponseBody
}
from
'
./server-response-types
'
;
import
{
Raw
QualityConflictData
}
from
'
./quality-conflict
'
;
import
{
Serialized
QualityConflictData
}
from
'
./quality-conflict
'
;
type
Params
=
{
org
:
number
|
string
,
...
...
@@ -2200,7 +2200,7 @@ async function receiveWebhookEvents(type: WebhookSourceType): Promise<string[]>
}
}
async
function
getQualityReports
(
filter
):
Promise
<
Raw
QualityReportData
[]
>
{
async
function
getQualityReports
(
filter
):
Promise
<
Serialized
QualityReportData
[]
>
{
const
params
=
enableOrganization
();
const
{
backendAPI
}
=
config
;
...
...
@@ -2218,7 +2218,7 @@ async function getQualityReports(filter): Promise<RawQualityReportData[]> {
}
}
async
function
getQualityConflicts
(
filter
):
Promise
<
Raw
QualityConflictData
[]
>
{
async
function
getQualityConflicts
(
filter
):
Promise
<
Serialized
QualityConflictData
[]
>
{
const
params
=
enableOrganization
();
const
{
backendAPI
}
=
config
;
...
...
@@ -2234,7 +2234,7 @@ async function getQualityConflicts(filter): Promise<RawQualityConflictData[]> {
}
}
async
function
getQualitySettings
(
taskID
:
number
):
Promise
<
Raw
QualitySettingsData
>
{
async
function
getQualitySettings
(
taskID
:
number
):
Promise
<
Serialized
QualitySettingsData
>
{
const
params
=
enableOrganization
();
const
{
backendAPI
}
=
config
;
...
...
@@ -2254,8 +2254,8 @@ async function getQualitySettings(taskID: number): Promise<RawQualitySettingsDat
async
function
updateQualitySettings
(
settingsID
:
number
,
settingsData
:
Raw
QualitySettingsData
,
):
Promise
<
Raw
QualitySettingsData
>
{
settingsData
:
Serialized
QualitySettingsData
,
):
Promise
<
Serialized
QualitySettingsData
>
{
const
params
=
enableOrganization
();
const
{
backendAPI
}
=
config
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录