Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
疯人忠
Cvat
提交
ff76c648
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,发现更多精彩内容 >>
提交
ff76c648
编写于
6月 23, 2023
作者:
K
klakhov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
removed outdated code, removed submit and open
上级
65d67138
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
3 addition
and
62 deletion
+3
-62
cvat-core/src/quality-settings.ts
cvat-core/src/quality-settings.ts
+0
-33
cvat-core/src/server-proxy.ts
cvat-core/src/server-proxy.ts
+2
-6
cvat-ui/src/components/create-job-page/job-form.tsx
cvat-ui/src/components/create-job-page/job-form.tsx
+1
-23
未找到文件。
cvat-core/src/quality-settings.ts
浏览文件 @
ff76c648
...
...
@@ -39,23 +39,6 @@ export default class QualitySettings {
#
compareAttributes
:
boolean
;
constructor
(
initialData
:
SerializedQualitySettingsData
)
{
const
data
:
SerializedQualitySettingsData
=
{
id
:
undefined
,
task
:
undefined
,
iou_threshold
:
undefined
,
oks_sigma
:
undefined
,
line_thickness
:
undefined
,
low_overlap_threshold
:
undefined
,
compare_line_orientation
:
undefined
,
line_orientation_threshold
:
undefined
,
compare_groups
:
undefined
,
group_match_threshold
:
undefined
,
check_covered_annotations
:
undefined
,
object_visibility_threshold
:
undefined
,
panoptic_comparison
:
undefined
,
compare_attributes
:
undefined
,
};
this
.
#
id
=
initialData
.
id
;
this
.
#
task
=
initialData
.
task
;
this
.
#
iouThreshold
=
initialData
.
iou_threshold
;
...
...
@@ -70,22 +53,6 @@ export default class QualitySettings {
this
.
#
objectVisibilityThreshold
=
initialData
.
object_visibility_threshold
;
this
.
#
panopticComparison
=
initialData
.
panoptic_comparison
;
this
.
#
compareAttributes
=
initialData
.
compare_attributes
;
for
(
const
property
in
data
)
{
if
(
Object
.
prototype
.
hasOwnProperty
.
call
(
data
,
property
)
&&
property
in
initialData
)
{
data
[
property
]
=
initialData
[
property
];
}
}
Object
.
defineProperties
(
this
,
Object
.
freeze
({
id
:
{
get
:
()
=>
data
.
id
,
},
}),
);
}
get
id
():
number
{
...
...
cvat-core/src/server-proxy.ts
浏览文件 @
ff76c648
...
...
@@ -2201,13 +2201,11 @@ async function receiveWebhookEvents(type: WebhookSourceType): Promise<string[]>
}
async
function
getQualityReports
(
filter
):
Promise
<
SerializedQualityReportData
[]
>
{
const
params
=
enableOrganization
();
const
{
backendAPI
}
=
config
;
try
{
const
response
=
await
Axios
.
get
(
`
${
backendAPI
}
/quality/reports`
,
{
params
:
{
...
params
,
...
filter
,
},
});
...
...
@@ -2235,18 +2233,16 @@ async function getQualityConflicts(filter): Promise<SerializedQualityConflictDat
}
async
function
getQualitySettings
(
taskID
:
number
):
Promise
<
SerializedQualitySettingsData
>
{
const
params
=
enableOrganization
();
const
{
backendAPI
}
=
config
;
try
{
const
response
=
await
Axios
.
get
(
`
${
backendAPI
}
/quality/settings`
,
{
params
:
{
...
params
,
task_id
:
taskID
,
},
});
const
settings
=
response
.
data
.
results
[
0
];
return
settings
;
return
response
.
data
.
results
[
0
]
;
}
catch
(
errorData
)
{
throw
generateError
(
errorData
);
}
...
...
cvat-ui/src/components/create-job-page/job-form.tsx
浏览文件 @
ff76c648
...
...
@@ -9,7 +9,6 @@ import { Row, Col } from 'antd/lib/grid';
import
Form
from
'
antd/lib/form
'
;
import
Button
from
'
antd/lib/button
'
;
import
Select
from
'
antd/lib/select
'
;
import
notification
from
'
antd/lib/notification
'
;
import
InputNumber
from
'
antd/lib/input-number
'
;
import
CVATTooltip
from
'
components/common/cvat-tooltip
'
;
...
...
@@ -75,24 +74,13 @@ function JobForm(props: Props): JSX.Element {
}
},
[
task
]);
const
onSubmit
AndOpen
=
async
():
Promise
<
void
>
=>
{
const
onSubmit
=
async
():
Promise
<
void
>
=>
{
const
createdJob
=
await
submit
();
if
(
createdJob
)
{
history
.
push
(
`/tasks/
${
task
.
id
}
/jobs/
${
createdJob
.
id
}
`
);
}
};
const
onSubmit
=
async
():
Promise
<
void
>
=>
{
const
res
=
await
submit
();
if
(
res
)
{
form
.
resetFields
();
notification
.
info
({
message
:
'
Job has been successfully created
'
,
className
:
'
cvat-notification-create-job-success
'
,
});
}
};
const
onQuantityChange
=
useCallback
((
value
:
number
|
null
)
=>
{
if
(
value
)
{
const
newFrameCount
=
Math
.
round
((
value
*
taskSize
)
/
100
);
...
...
@@ -222,16 +210,6 @@ function JobForm(props: Props): JSX.Element {
</
Col
>
<
Col
span
=
{
24
}
className
=
'cvat-create-job-actions'
>
<
Row
justify
=
'end'
>
<
Col
>
<
Button
className
=
'cvat-submit-and-open-job-button'
type
=
'primary'
onClick
=
{
onSubmitAndOpen
}
loading
=
{
fetching
}
>
Submit
&
Open
</
Button
>
</
Col
>
<
Col
>
<
Button
className
=
'cvat-submit-job-button'
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录