@glodon-aiot/dataset-annotation 3.24.0-alpha.6 → 3.25.0-alpha.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/components/ClassificationAnnotation/index.mjs +399 -343
- package/dist/es/components/DetectionAnnotation/components/ImageDetail/index.mjs +82 -78
- package/dist/es/components/DetectionAnnotation/components/ImageModal/index.mjs +28 -26
- package/dist/es/components/DetectionAnnotation/components/LabelMaker/index.mjs +173 -166
- package/dist/es/components/DetectionAnnotation/index.mjs +478 -473
- package/dist/es/components/OcrAnnotation/OCRBoxDetail/index.mjs +249 -230
- package/dist/es/components/OcrAnnotation/OcrModal/index.mjs +103 -98
- package/dist/es/components/OcrAnnotation/index.mjs +281 -243
- package/dist/es/components/VLMAnnotationDetail/VLMDetail/index.mjs +277 -272
- package/dist/es/components/VLMAnnotationDetail/VlmModal/index.mjs +42 -40
- package/dist/es/components/VLMAnnotationDetail/index.mjs +331 -278
- package/dist/es/index.mjs +1 -1
- package/dist/es/utils/checkVlmSampleLabeled.mjs +7 -0
- package/dist/es/utils/scrollSampleIntoView.mjs +16 -0
- package/dist/lib/index.js +4 -4
- package/dist/src/components/DetectionAnnotation/components/ImageDetail/index.d.ts +2 -0
- package/dist/src/components/DetectionAnnotation/components/ImageModal/index.d.ts +2 -0
- package/dist/src/components/OcrAnnotation/OCRBoxDetail/index.d.ts +2 -0
- package/dist/src/components/OcrAnnotation/OcrModal/index.d.ts +1 -0
- package/dist/src/components/VLMAnnotationDetail/VLMDetail/index.d.ts +6 -0
- package/dist/src/components/VLMAnnotationDetail/VlmModal/index.d.ts +5 -0
- package/dist/src/utils/checkVlmSampleLabeled.d.ts +8 -0
- package/dist/src/utils/scrollSampleIntoView.d.ts +9 -0
- package/package.json +2 -2
|
@@ -1,355 +1,410 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
for (var
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var
|
|
10
|
-
|
|
1
|
+
var ot = Object.defineProperty, rt = Object.defineProperties;
|
|
2
|
+
var lt = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var Ee = Object.getOwnPropertySymbols;
|
|
4
|
+
var st = Object.prototype.hasOwnProperty, ct = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Me = (D, f, l) => f in D ? ot(D, f, { enumerable: !0, configurable: !0, writable: !0, value: l }) : D[f] = l, v = (D, f) => {
|
|
6
|
+
for (var l in f || (f = {}))
|
|
7
|
+
st.call(f, l) && Me(D, l, f[l]);
|
|
8
|
+
if (Ee)
|
|
9
|
+
for (var l of Ee(f))
|
|
10
|
+
ct.call(f, l) && Me(D, l, f[l]);
|
|
11
11
|
return D;
|
|
12
|
-
},
|
|
13
|
-
import { jsx as
|
|
14
|
-
import { useRef as
|
|
15
|
-
import { message as
|
|
16
|
-
import
|
|
17
|
-
import { UploadZipsStatus as
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
12
|
+
}, b = (D, f) => rt(D, lt(f));
|
|
13
|
+
import { jsx as s, jsxs as M } from "react/jsx-runtime";
|
|
14
|
+
import { useRef as B, useState as h, useEffect as N } from "react";
|
|
15
|
+
import { message as G, ConfigProvider as at, Space as ue, Select as dt, Button as Ae, Tabs as ft, Col as ut, Tooltip as ht, Empty as ze, Spin as Fe, Modal as mt } from "antd";
|
|
16
|
+
import gt from "rc-virtual-list";
|
|
17
|
+
import { UploadZipsStatus as ie } from "@glodon-aiot/apis";
|
|
18
|
+
import vt from "antd/es/locale/zh_CN";
|
|
19
|
+
import bt from "../../DatasetContext/index.mjs";
|
|
20
|
+
import pt from "../DetectionAnnotation/icon_item_empty.svg.mjs";
|
|
21
21
|
import "./style.less.mjs";
|
|
22
|
-
import { tagColors as
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
import
|
|
31
|
-
import
|
|
32
|
-
import
|
|
33
|
-
import
|
|
34
|
-
import
|
|
35
|
-
import
|
|
36
|
-
|
|
37
|
-
|
|
22
|
+
import { tagColors as Pe } from "../../utils/index.mjs";
|
|
23
|
+
import { scrollSampleIntoView as Ct, getVirtualListHolder as It } from "../../utils/scrollSampleIntoView.mjs";
|
|
24
|
+
import { useKeyPress as xt } from "ahooks";
|
|
25
|
+
import { SearchOutlined as St } from "@ant-design/icons";
|
|
26
|
+
import Lt from "../../Common/Page/index.mjs";
|
|
27
|
+
import yt from "../PageNav/index.mjs";
|
|
28
|
+
import Vt from "../Thumbnail/index.mjs";
|
|
29
|
+
import Dt from "../CompositionInput/index.mjs";
|
|
30
|
+
import Nt from "lodash/merge";
|
|
31
|
+
import { DEFAULT_FILTER_SWITCH as kt } from "../../constant.mjs";
|
|
32
|
+
import wt from "../DetectionStatus/index.mjs";
|
|
33
|
+
import Tt from "./components/ClassificationImageModal/index.mjs";
|
|
34
|
+
import Rt from "../DetectionAnnotation/components/Labels/index.mjs";
|
|
35
|
+
import Et from "../PicZipImportModal/index.mjs";
|
|
36
|
+
import { Prompt as Mt } from "../hooks/Prompt.mjs";
|
|
37
|
+
const ln = (D) => {
|
|
38
|
+
var ke, we;
|
|
38
39
|
const {
|
|
39
|
-
services:
|
|
40
|
-
datasetId:
|
|
41
|
-
versionId:
|
|
42
|
-
backTo:
|
|
43
|
-
labelManager:
|
|
44
|
-
datasetManager:
|
|
45
|
-
annotation:
|
|
46
|
-
header:
|
|
40
|
+
services: f,
|
|
41
|
+
datasetId: l,
|
|
42
|
+
versionId: oe,
|
|
43
|
+
backTo: Ue,
|
|
44
|
+
labelManager: he = !1,
|
|
45
|
+
datasetManager: w = !1,
|
|
46
|
+
annotation: He,
|
|
47
|
+
header: C = {
|
|
47
48
|
versionSelect: !1
|
|
48
49
|
}
|
|
49
|
-
} = D,
|
|
50
|
+
} = D, J = Nt(v({}, kt), D.filterSwitch), K = B(null), re = B(null), [L, Oe] = h(), [o, Q] = h(), [le, Be] = h([]), [me, ge] = h(!1), [Z, Ke] = h(0), [X, Ze] = h(0), [c, se] = h(""), [F, qe] = h(0), [T, ve] = h([]), [p, ce] = h([]), [be, q] = h(!1), [W, P] = h(!1), [R, I] = h(-1), [m, x] = h(), [y, S] = h(), [a, V] = h({
|
|
50
51
|
current: 0,
|
|
51
52
|
pageSize: 100
|
|
52
|
-
}), [
|
|
53
|
-
|
|
54
|
-
V((e) =>
|
|
53
|
+
}), [$, ae] = h([]), [j, We] = h(""), A = B({}), de = B(void 0), Y = B(!1), ee = B(!1), [$e, je] = h(), [pe, Ce] = h(!1), [Ie, _e] = h(!1), [xe, Ge] = h(!0), [Je, Qe] = h(!1), [_, Xe] = h(""), Se = () => {
|
|
54
|
+
x(void 0), S(void 0), I(-1), q(!1), te(), setTimeout(() => {
|
|
55
|
+
V((e) => b(v({}, e), {
|
|
55
56
|
current: 1,
|
|
56
57
|
type: void 0
|
|
57
58
|
}));
|
|
58
59
|
}, 10);
|
|
59
60
|
};
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
61
|
+
xt("Esc", Se), N(() => {
|
|
62
|
+
l && f.cvforceDatahub.getS3Iam(l).then((e) => {
|
|
63
|
+
je(e);
|
|
63
64
|
});
|
|
64
|
-
}, [
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
})]).finally(() =>
|
|
68
|
-
}, [
|
|
65
|
+
}, [l, f.cvforceDatahub]), N(() => {
|
|
66
|
+
l && (ge(!0), Promise.all([f.cvforceDatahub.getDatasetsId(l).then(Oe), f.cvforceDatahub.getDatasetsIdVersions(l, 1, 1e3).then((e) => {
|
|
67
|
+
Be(e.recordList), Q(oe ? e.recordList.find((n) => n.id === oe) : e.recordList[0]);
|
|
68
|
+
})]).finally(() => ge(!1)));
|
|
69
|
+
}, [l, oe]), N(() => {
|
|
69
70
|
k();
|
|
70
|
-
}, [
|
|
71
|
-
|
|
72
|
-
}, [
|
|
73
|
-
!
|
|
71
|
+
}, [o == null ? void 0 : o.id, j]), N(() => {
|
|
72
|
+
te();
|
|
73
|
+
}, [o, c]), N(() => {
|
|
74
|
+
!o || !L || U(b(v({}, a), {
|
|
74
75
|
current: 1
|
|
75
76
|
}));
|
|
76
|
-
}, [
|
|
77
|
-
|
|
77
|
+
}, [L == null ? void 0 : L.id, o == null ? void 0 : o.id, $, j]), N(() => {
|
|
78
|
+
if (Y.current) {
|
|
79
|
+
Y.current = !1;
|
|
80
|
+
return;
|
|
81
|
+
}
|
|
82
|
+
if (de.current === a.current) {
|
|
83
|
+
de.current = void 0, k();
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
U().then(() => {
|
|
78
87
|
}), k();
|
|
79
|
-
}, [
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
88
|
+
}, [a.current]), N(() => {
|
|
89
|
+
let e;
|
|
90
|
+
if (!W) {
|
|
91
|
+
const n = m == null ? void 0 : m.id, t = R;
|
|
92
|
+
x(void 0), S(void 0), q(!1), I(-1), te(), k(), n !== void 0 && (e = requestAnimationFrame(() => {
|
|
93
|
+
Ct(It(K.current), n, t);
|
|
94
|
+
}));
|
|
95
|
+
}
|
|
96
|
+
return () => {
|
|
97
|
+
e !== void 0 && cancelAnimationFrame(e);
|
|
98
|
+
};
|
|
99
|
+
}, [W]), N(() => {
|
|
100
|
+
if (!o || !L)
|
|
101
|
+
return;
|
|
102
|
+
const e = A.current[c], n = a.pageSize || 100;
|
|
103
|
+
(e && e.page > 1 ? U(b(v({}, a), {
|
|
83
104
|
current: 1,
|
|
105
|
+
pageSize: e.page * n,
|
|
84
106
|
total: void 0
|
|
85
|
-
})).then((e) => {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
107
|
+
})).then((r) => (de.current = e.page, V((i) => b(v({}, i), {
|
|
108
|
+
current: e.page,
|
|
109
|
+
pageSize: n
|
|
110
|
+
})), r)) : U(b(v({}, a), {
|
|
111
|
+
current: 1,
|
|
112
|
+
total: void 0
|
|
113
|
+
}))).then((r) => {
|
|
114
|
+
if (!(!r || !Array.isArray(r)) && !(!m && !W))
|
|
115
|
+
if (r.length > 0) {
|
|
116
|
+
const i = e == null ? void 0 : e.index, d = i !== void 0 && i >= 0 && i < r.length ? i : 0;
|
|
117
|
+
I(d), x(r[d]), S(void 0);
|
|
90
118
|
} else
|
|
91
|
-
|
|
119
|
+
x(void 0), S(void 0), I(-1), V((i) => b(v({}, i), {
|
|
92
120
|
current: 1
|
|
93
121
|
}));
|
|
94
122
|
});
|
|
95
|
-
}, [
|
|
96
|
-
V(
|
|
97
|
-
total:
|
|
98
|
-
}) :
|
|
99
|
-
total:
|
|
100
|
-
}) :
|
|
101
|
-
total:
|
|
102
|
-
}) : (e) =>
|
|
103
|
-
total:
|
|
123
|
+
}, [c]), N(() => {
|
|
124
|
+
V(c === "nocode" ? (e) => b(v({}, e), {
|
|
125
|
+
total: Z
|
|
126
|
+
}) : c === "" ? (e) => b(v({}, e), {
|
|
127
|
+
total: F
|
|
128
|
+
}) : c === "pending" ? (e) => b(v({}, e), {
|
|
129
|
+
total: X
|
|
130
|
+
}) : (e) => b(v({}, e), {
|
|
131
|
+
total: F - Z - X
|
|
104
132
|
}));
|
|
105
|
-
}, [
|
|
106
|
-
const
|
|
107
|
-
var e,
|
|
108
|
-
(
|
|
133
|
+
}, [Z, F, X]);
|
|
134
|
+
const Le = () => {
|
|
135
|
+
var e, n;
|
|
136
|
+
(n = (e = K.current) == null ? void 0 : e.getElementsByClassName("rc-virtual-list-holder")[0]) == null || n.scrollTo({
|
|
109
137
|
top: 0
|
|
110
138
|
});
|
|
111
|
-
},
|
|
112
|
-
!
|
|
113
|
-
var
|
|
114
|
-
|
|
139
|
+
}, ye = () => {
|
|
140
|
+
!l || !o || f.cvforceDatahub.getDatasetsIdVersionsVid(l, o.id).then((e) => {
|
|
141
|
+
var n, t;
|
|
142
|
+
Q(e), Xe((t = (n = e.versionAsyncTask) == null ? void 0 : n.state) != null ? t : "");
|
|
115
143
|
});
|
|
116
144
|
};
|
|
117
145
|
N(() => {
|
|
118
|
-
|
|
119
|
-
}, [
|
|
120
|
-
|
|
121
|
-
}, [
|
|
122
|
-
|
|
123
|
-
}, [
|
|
146
|
+
_ !== ie.Pending && _ !== ie.Started || G.warning("文件导入中,请刷新页面再试");
|
|
147
|
+
}, [_]), N(() => {
|
|
148
|
+
Qe(!xe && Ie);
|
|
149
|
+
}, [xe, Ie]), N(() => {
|
|
150
|
+
l && (o != null && o.id) && ye();
|
|
151
|
+
}, [l, o == null ? void 0 : o.id]);
|
|
124
152
|
const k = () => {
|
|
125
|
-
!
|
|
153
|
+
!l || !o || f.cvforceDatahub.getDatasetsIdVersionsVidLabelcount(l, o.id, {
|
|
126
154
|
label: "allcode",
|
|
127
|
-
searchName:
|
|
155
|
+
searchName: j
|
|
128
156
|
}).then((e) => {
|
|
129
|
-
var
|
|
130
|
-
const
|
|
131
|
-
|
|
157
|
+
var i, d, u;
|
|
158
|
+
const n = e == null ? void 0 : e.find((g) => g.id === "allcodeid"), t = e == null ? void 0 : e.find((g) => g.id === "nocodeid"), r = e == null ? void 0 : e.find((g) => g.id === "pendingid");
|
|
159
|
+
qe((i = n == null ? void 0 : n.count) != null ? i : 0), Ke((d = t == null ? void 0 : t.count) != null ? d : 0), Ze((u = r == null ? void 0 : r.count) != null ? u : 0);
|
|
132
160
|
});
|
|
133
|
-
},
|
|
134
|
-
if (!(!
|
|
135
|
-
return
|
|
136
|
-
const
|
|
161
|
+
}, te = () => {
|
|
162
|
+
if (!(!l || !(o != null && o.id)))
|
|
163
|
+
return f.cvforceDatahub.getDatasetsIdVersionsVidLabelcount(l, o.id, {}).then((e) => {
|
|
164
|
+
const t = (e || []).filter((r) => r.label !== "nocode").map((r, i) => ({
|
|
137
165
|
label: r.label,
|
|
138
166
|
count: r.count,
|
|
139
167
|
id: r.id,
|
|
140
|
-
color:
|
|
168
|
+
color: Pe[i % 40]
|
|
141
169
|
}));
|
|
142
|
-
return
|
|
170
|
+
return ve(t), e;
|
|
143
171
|
});
|
|
144
|
-
},
|
|
145
|
-
const
|
|
146
|
-
if (!
|
|
172
|
+
}, U = (e, n) => {
|
|
173
|
+
const t = (e == null ? void 0 : e.current) || a.current, r = (e == null ? void 0 : e.pageSize) || a.pageSize;
|
|
174
|
+
if (!l || !o || !t)
|
|
147
175
|
return Promise.resolve(!1);
|
|
148
|
-
const
|
|
149
|
-
switch (
|
|
176
|
+
const i = $.map((u) => u.label), d = () => {
|
|
177
|
+
switch (c) {
|
|
150
178
|
case "nocode":
|
|
151
179
|
return "nocode";
|
|
152
180
|
case "hascode":
|
|
153
|
-
return
|
|
181
|
+
return i.length ? i : "hascode";
|
|
154
182
|
default:
|
|
155
|
-
return
|
|
183
|
+
return i.length ? i : void 0;
|
|
156
184
|
}
|
|
157
185
|
};
|
|
158
|
-
return
|
|
159
|
-
current:
|
|
186
|
+
return t === 1 && Le(), V((u) => b(v({}, u), {
|
|
187
|
+
current: t,
|
|
160
188
|
pageSize: r
|
|
161
|
-
})),
|
|
162
|
-
pageNo:
|
|
189
|
+
})), f.cvforceDatahub.getDatasetsIdVersionsVidSamples(l, o.id, {
|
|
190
|
+
pageNo: t,
|
|
163
191
|
pageSize: r,
|
|
164
|
-
labels:
|
|
165
|
-
searchName:
|
|
166
|
-
}).then((
|
|
167
|
-
const
|
|
168
|
-
return
|
|
169
|
-
current:
|
|
192
|
+
labels: d(),
|
|
193
|
+
searchName: j
|
|
194
|
+
}).then((u) => {
|
|
195
|
+
const g = u.recordList || [], E = t === 1 ? g : [...n || p, ...g];
|
|
196
|
+
return ce(E), V((z) => b(v({}, z), {
|
|
197
|
+
current: t,
|
|
170
198
|
pageSize: r,
|
|
171
|
-
total:
|
|
172
|
-
})), (e == null ? void 0 : e.type) === "next" &&
|
|
199
|
+
total: u.totalResults
|
|
200
|
+
})), (e == null ? void 0 : e.type) === "next" && g.length && (I(0), x(g[0])), (e == null ? void 0 : e.type) === "prev" && g.length && (I(r - 1), x(g[g.length - 1])), be && R < 0 && g.length && (I(0), x(g[0]), P(!0)), E;
|
|
173
201
|
}).catch(() => !1);
|
|
174
|
-
},
|
|
175
|
-
|
|
202
|
+
}, Ye = (e) => {
|
|
203
|
+
p && (q(!1), I(e), x(p[e]), S(void 0), P(!0), c !== void 0 && (A.current[c] = {
|
|
204
|
+
index: e,
|
|
205
|
+
page: a.current || 1
|
|
206
|
+
}));
|
|
176
207
|
};
|
|
177
208
|
N(() => {
|
|
178
|
-
var
|
|
179
|
-
if (!
|
|
209
|
+
var n, t, r;
|
|
210
|
+
if (!y)
|
|
180
211
|
return;
|
|
181
212
|
const e = [];
|
|
182
|
-
(
|
|
183
|
-
|
|
184
|
-
}), e.length !== ((r = (
|
|
213
|
+
(n = y.labels) == null || n.forEach((i) => {
|
|
214
|
+
T != null && T.find((d) => d.id === i.id) && e.push(i);
|
|
215
|
+
}), e.length !== ((r = (t = y.labels) == null ? void 0 : t.length) != null ? r : 0) && S(b(v({}, y), {
|
|
185
216
|
labels: e
|
|
186
217
|
}));
|
|
187
|
-
}, [
|
|
188
|
-
const
|
|
189
|
-
|
|
218
|
+
}, [T]);
|
|
219
|
+
const fe = (e) => {
|
|
220
|
+
const n = (e == null ? void 0 : e.updateCurrentOnRemove) !== !1;
|
|
221
|
+
if (ee.current = !1, !o)
|
|
190
222
|
return Promise.resolve(!1);
|
|
191
|
-
const
|
|
192
|
-
if (!
|
|
223
|
+
const t = y != null ? y : m;
|
|
224
|
+
if (!t || !y)
|
|
193
225
|
return Promise.resolve(!0);
|
|
194
|
-
const
|
|
195
|
-
if (
|
|
196
|
-
var
|
|
197
|
-
return ((
|
|
226
|
+
const r = (m == null ? void 0 : m.labels) || [], i = (y.labels || []).filter((u) => !!u.id);
|
|
227
|
+
if (r.length === i.length && i.every((u, g) => {
|
|
228
|
+
var E;
|
|
229
|
+
return ((E = r[g]) == null ? void 0 : E.id) === u.id;
|
|
198
230
|
}))
|
|
199
231
|
return Promise.resolve(!0);
|
|
200
|
-
const
|
|
201
|
-
labels:
|
|
232
|
+
const d = b(v({}, t), {
|
|
233
|
+
labels: i.map((u) => {
|
|
202
234
|
var g;
|
|
203
|
-
return
|
|
204
|
-
box: (g =
|
|
235
|
+
return b(v({}, u), {
|
|
236
|
+
box: (g = u.box) != null ? g : []
|
|
205
237
|
});
|
|
206
238
|
}),
|
|
207
|
-
isLabeled:
|
|
239
|
+
isLabeled: i.length > 0
|
|
208
240
|
});
|
|
209
|
-
return
|
|
210
|
-
var g,
|
|
211
|
-
|
|
241
|
+
return f.cvforceDatahub.updateSamples(l, o.id, [d]).then(() => {
|
|
242
|
+
var g, E;
|
|
243
|
+
G.success({
|
|
212
244
|
content: "保存成功"
|
|
213
245
|
});
|
|
214
|
-
const
|
|
215
|
-
return
|
|
216
|
-
const
|
|
217
|
-
if (
|
|
218
|
-
return
|
|
219
|
-
if (
|
|
220
|
-
const
|
|
221
|
-
if (V((
|
|
222
|
-
total:
|
|
223
|
-
})),
|
|
224
|
-
|
|
225
|
-
else {
|
|
226
|
-
const
|
|
227
|
-
|
|
246
|
+
const u = c === "nocode" && ((g = d.labels) == null ? void 0 : g.length) || c === "hascode" && !((E = d.labels) != null && E.length);
|
|
247
|
+
return ee.current = !!u, ce((z) => {
|
|
248
|
+
const ne = z.findIndex((H) => H.id === d.id);
|
|
249
|
+
if (ne === -1)
|
|
250
|
+
return z;
|
|
251
|
+
if (u) {
|
|
252
|
+
const H = z.slice(0, ne).concat(z.slice(ne + 1));
|
|
253
|
+
if (V((O) => b(v({}, O), {
|
|
254
|
+
total: O.total != null ? Math.max(0, O.total - 1) : void 0
|
|
255
|
+
})), H.length === 0)
|
|
256
|
+
x(void 0), S(void 0), I(-1), P(!1);
|
|
257
|
+
else if (n) {
|
|
258
|
+
const O = Math.min(R, H.length - 1), Re = H[O];
|
|
259
|
+
Re != null && (x(Re), I(O), S(void 0));
|
|
228
260
|
}
|
|
229
|
-
return
|
|
261
|
+
return H;
|
|
230
262
|
}
|
|
231
|
-
const
|
|
232
|
-
return
|
|
233
|
-
}),
|
|
263
|
+
const Te = [...z];
|
|
264
|
+
return Te[ne] = d, Te;
|
|
265
|
+
}), u || (x(d), S(d)), !0;
|
|
234
266
|
}).catch(() => !1);
|
|
235
|
-
},
|
|
236
|
-
|
|
237
|
-
|
|
267
|
+
}, Ve = () => {
|
|
268
|
+
if (!p)
|
|
269
|
+
return;
|
|
270
|
+
const e = m == null ? void 0 : m.id;
|
|
271
|
+
fe().then((n) => {
|
|
272
|
+
if (!n)
|
|
238
273
|
return;
|
|
239
274
|
k();
|
|
240
|
-
const t =
|
|
241
|
-
t >=
|
|
242
|
-
current:
|
|
243
|
-
pageSize:
|
|
275
|
+
const t = ee.current, r = t ? p.filter((u) => u.id !== e) : p, i = t ? R : R + 1, d = a.total != null ? a.total - (t ? 1 : 0) : void 0;
|
|
276
|
+
t && r.length === 0 || (i >= r.length ? d != null && i >= d ? G.error("已经是最后一个了") : U({
|
|
277
|
+
current: a.current + 1,
|
|
278
|
+
pageSize: a.pageSize,
|
|
244
279
|
type: "next"
|
|
245
|
-
},
|
|
246
|
-
Array.isArray(
|
|
280
|
+
}, r).then((u) => {
|
|
281
|
+
Array.isArray(u) && (I(i), x(u[i]), S(void 0), c !== void 0 && (A.current[c] = {
|
|
282
|
+
index: i,
|
|
283
|
+
page: a.current + 1
|
|
284
|
+
}));
|
|
247
285
|
}) : setTimeout(() => {
|
|
248
|
-
|
|
249
|
-
|
|
286
|
+
I(i), x(r[i]), S(void 0), c !== void 0 && (A.current[c] = {
|
|
287
|
+
index: i,
|
|
288
|
+
page: a.current || 1
|
|
289
|
+
});
|
|
290
|
+
}, 200));
|
|
250
291
|
});
|
|
251
|
-
},
|
|
252
|
-
|
|
253
|
-
|
|
292
|
+
}, et = () => {
|
|
293
|
+
if (!p)
|
|
294
|
+
return;
|
|
295
|
+
const e = m == null ? void 0 : m.id;
|
|
296
|
+
fe({
|
|
297
|
+
updateCurrentOnRemove: !1
|
|
298
|
+
}).then((n) => {
|
|
299
|
+
if (!n)
|
|
254
300
|
return;
|
|
255
301
|
k();
|
|
256
|
-
const t =
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
302
|
+
const t = ee.current, r = t ? p.filter((d) => d.id !== e) : p, i = R - 1;
|
|
303
|
+
i < 0 ? (G.error("已经是第一个了"), t && r.length > 0 ? (I(0), x(r[0]), S(void 0), c !== void 0 && (A.current[c] = {
|
|
304
|
+
index: 0,
|
|
305
|
+
page: a.current || 1
|
|
306
|
+
})) : S(void 0)) : (I(i), x(p[i]), S(void 0), c !== void 0 && (A.current[c] = {
|
|
307
|
+
index: i,
|
|
308
|
+
page: a.current || 1
|
|
309
|
+
}));
|
|
260
310
|
});
|
|
261
|
-
},
|
|
311
|
+
}, tt = () => {
|
|
262
312
|
var e;
|
|
263
|
-
if ((e =
|
|
264
|
-
return
|
|
265
|
-
|
|
266
|
-
},
|
|
267
|
-
|
|
313
|
+
if ((e = y == null ? void 0 : y.labels) != null && e.some((n) => !n.id))
|
|
314
|
+
return G.error("请选择标签"), Promise.resolve(!1);
|
|
315
|
+
Ve();
|
|
316
|
+
}, nt = () => {
|
|
317
|
+
mt.confirm({
|
|
268
318
|
title: "确认要删除当前数据吗?",
|
|
269
319
|
content: "数据包含当前标注的内容和图片,删除后无法恢复,请确认是否删除!",
|
|
270
320
|
onOk: () => {
|
|
271
|
-
!
|
|
272
|
-
const e =
|
|
273
|
-
if (
|
|
274
|
-
total:
|
|
275
|
-
})),
|
|
276
|
-
const
|
|
277
|
-
|
|
321
|
+
!m || !o || f.cvforceDatahub.delDatasetsIdVersionsVidSamplesId(l, o.id, m.id).then(() => {
|
|
322
|
+
const e = p.findIndex((t) => t.id === m.id), n = [...p];
|
|
323
|
+
if (n.splice(e, 1), ce(n), V((t) => b(v({}, t), {
|
|
324
|
+
total: t.total != null ? t.total - 1 : 0
|
|
325
|
+
})), n.length > 0) {
|
|
326
|
+
const t = e < n.length ? e : e - 1;
|
|
327
|
+
x(n[t]), I(t);
|
|
278
328
|
} else
|
|
279
|
-
|
|
329
|
+
x(void 0), S(void 0), I(-1), P(!1), V((t) => b(v({}, t), {
|
|
280
330
|
current: 1
|
|
281
331
|
}));
|
|
282
|
-
|
|
332
|
+
S(void 0), k();
|
|
283
333
|
});
|
|
284
334
|
}
|
|
285
335
|
});
|
|
286
|
-
},
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
336
|
+
}, De = (e) => {
|
|
337
|
+
R >= 0 && c !== void 0 && c !== null && (A.current[c] = {
|
|
338
|
+
index: R,
|
|
339
|
+
page: a.current || 1
|
|
340
|
+
});
|
|
341
|
+
const n = (a.current || 1) !== 1;
|
|
342
|
+
y ? fe().then((t) => {
|
|
343
|
+
t && (Y.current = n, se(e), k());
|
|
344
|
+
}) : (Y.current = n, V((t) => b(v({}, t), {
|
|
290
345
|
current: 1,
|
|
291
346
|
total: void 0
|
|
292
|
-
})),
|
|
293
|
-
},
|
|
347
|
+
})), se(e)), e === "nocode" && ae([]);
|
|
348
|
+
}, Ne = [{
|
|
294
349
|
key: "",
|
|
295
|
-
label: `全部(${
|
|
350
|
+
label: `全部(${F})`,
|
|
296
351
|
children: null
|
|
297
352
|
}, {
|
|
298
353
|
key: "nocode",
|
|
299
|
-
label: `未标注(${
|
|
354
|
+
label: `未标注(${Z})`,
|
|
300
355
|
children: null
|
|
301
356
|
}, {
|
|
302
357
|
key: "hascode",
|
|
303
|
-
label: `已标注(${
|
|
358
|
+
label: `已标注(${F - Z - X})`,
|
|
304
359
|
children: null
|
|
305
|
-
}],
|
|
306
|
-
var
|
|
307
|
-
const
|
|
308
|
-
(
|
|
360
|
+
}], it = (e) => {
|
|
361
|
+
var t;
|
|
362
|
+
const n = e.currentTarget;
|
|
363
|
+
(a.total == null || a.total > p.length) && n.scrollHeight - n.scrollTop === ((t = K.current) == null ? void 0 : t.clientHeight) && V((r) => b(v({}, r), {
|
|
309
364
|
current: r.current + 1
|
|
310
365
|
}));
|
|
311
366
|
};
|
|
312
|
-
return /* @__PURE__ */
|
|
313
|
-
locale:
|
|
314
|
-
children: /* @__PURE__ */
|
|
367
|
+
return /* @__PURE__ */ s(at, {
|
|
368
|
+
locale: vt,
|
|
369
|
+
children: /* @__PURE__ */ s(bt.Provider, {
|
|
315
370
|
value: {
|
|
316
|
-
datasetId:
|
|
317
|
-
versionId: (
|
|
318
|
-
no: (
|
|
319
|
-
loading:
|
|
320
|
-
version:
|
|
371
|
+
datasetId: l,
|
|
372
|
+
versionId: (o == null ? void 0 : o.id) || "",
|
|
373
|
+
no: (o == null ? void 0 : o.no) || "",
|
|
374
|
+
loading: me,
|
|
375
|
+
version: o,
|
|
321
376
|
versions: le,
|
|
322
|
-
samples:
|
|
323
|
-
pagination:
|
|
324
|
-
services:
|
|
377
|
+
samples: p,
|
|
378
|
+
pagination: a,
|
|
379
|
+
services: f,
|
|
325
380
|
featuresConfig: {
|
|
326
|
-
labelManager:
|
|
327
|
-
datasetManager:
|
|
328
|
-
annotation:
|
|
329
|
-
filterSwitch:
|
|
330
|
-
header:
|
|
381
|
+
labelManager: he,
|
|
382
|
+
datasetManager: w,
|
|
383
|
+
annotation: He,
|
|
384
|
+
filterSwitch: J,
|
|
385
|
+
header: C,
|
|
331
386
|
exampleSrcRoot: D.exampleSrcRoot
|
|
332
387
|
}
|
|
333
388
|
},
|
|
334
|
-
children:
|
|
389
|
+
children: L ? L.markType === "classification" ? /* @__PURE__ */ s("div", {
|
|
335
390
|
className: "classification-version-detail",
|
|
336
|
-
children: /* @__PURE__ */
|
|
391
|
+
children: /* @__PURE__ */ M(Lt, {
|
|
337
392
|
className: "product-details-page",
|
|
338
|
-
header:
|
|
339
|
-
backTo:
|
|
340
|
-
onBackClick:
|
|
393
|
+
header: C !== !1 ? /* @__PURE__ */ s(yt, {
|
|
394
|
+
backTo: Ue,
|
|
395
|
+
onBackClick: C != null && C.onBackClick ? () => {
|
|
341
396
|
var e;
|
|
342
|
-
|
|
397
|
+
m && Se(), (e = C == null ? void 0 : C.onBackClick) == null || e.call(C);
|
|
343
398
|
} : void 0,
|
|
344
|
-
left: !
|
|
345
|
-
children: [/* @__PURE__ */
|
|
399
|
+
left: !me && /* @__PURE__ */ M(ue, {
|
|
400
|
+
children: [/* @__PURE__ */ s("span", {
|
|
346
401
|
style: {
|
|
347
402
|
fontWeight: "bold"
|
|
348
403
|
},
|
|
349
|
-
children:
|
|
350
|
-
}), /* @__PURE__ */
|
|
351
|
-
disabled: (
|
|
352
|
-
value:
|
|
404
|
+
children: L == null ? void 0 : L.name
|
|
405
|
+
}), /* @__PURE__ */ s(dt, {
|
|
406
|
+
disabled: (C == null ? void 0 : C.versionSelect) === !1,
|
|
407
|
+
value: o == null ? void 0 : o.id,
|
|
353
408
|
style: {
|
|
354
409
|
width: 70
|
|
355
410
|
},
|
|
@@ -358,133 +413,134 @@ const Qt = (D) => {
|
|
|
358
413
|
value: e.id
|
|
359
414
|
})),
|
|
360
415
|
onChange: (e) => {
|
|
361
|
-
var
|
|
362
|
-
const
|
|
363
|
-
|
|
416
|
+
var t;
|
|
417
|
+
const n = le.find((r) => r.id === e);
|
|
418
|
+
n && (Q(n), (t = C == null ? void 0 : C.onVersionChange) == null || t.call(C, n));
|
|
364
419
|
}
|
|
365
420
|
})]
|
|
366
421
|
}),
|
|
367
|
-
right: /* @__PURE__ */
|
|
368
|
-
children: [!
|
|
422
|
+
right: /* @__PURE__ */ M(ue, {
|
|
423
|
+
children: [!m && w && w.add && /* @__PURE__ */ s(Ae, {
|
|
369
424
|
type: "default",
|
|
370
|
-
onClick: () =>
|
|
371
|
-
disabled:
|
|
425
|
+
onClick: () => Ce(!0),
|
|
426
|
+
disabled: _ === ie.Pending || _ === ie.Started,
|
|
372
427
|
children: "导入数据"
|
|
373
|
-
}), !
|
|
428
|
+
}), !m && w && w.label && /* @__PURE__ */ s(Ae, {
|
|
374
429
|
type: "primary",
|
|
375
430
|
onClick: () => {
|
|
376
|
-
|
|
431
|
+
m || se("nocode"), q(!0), I(-1), c === "nocode" && (p != null && p.length) && (I(0), x(p[0])), P(!0);
|
|
377
432
|
},
|
|
378
433
|
children: "开始标注"
|
|
379
|
-
}), /* @__PURE__ */
|
|
380
|
-
when:
|
|
434
|
+
}), /* @__PURE__ */ s(Mt, {
|
|
435
|
+
when: Je,
|
|
381
436
|
content: "确认要离开此页面吗?",
|
|
382
437
|
subContent: "离开此页面后,将结束导入,放弃未上传的文件,请谨慎操作!"
|
|
383
|
-
}),
|
|
384
|
-
datasetIam:
|
|
385
|
-
datasetId:
|
|
386
|
-
currentVersion:
|
|
387
|
-
tenCode:
|
|
388
|
-
isVisible:
|
|
389
|
-
setIsVisible:
|
|
438
|
+
}), pe && /* @__PURE__ */ s(Et, {
|
|
439
|
+
datasetIam: $e,
|
|
440
|
+
datasetId: l,
|
|
441
|
+
currentVersion: o,
|
|
442
|
+
tenCode: L == null ? void 0 : L.tenantCode,
|
|
443
|
+
isVisible: pe,
|
|
444
|
+
setIsVisible: Ce,
|
|
390
445
|
getVersionListRequest: k,
|
|
391
|
-
setIsConfirm:
|
|
446
|
+
setIsConfirm: Ge,
|
|
392
447
|
onUploadStatusChange: (e) => {
|
|
393
|
-
|
|
448
|
+
_e(e);
|
|
394
449
|
},
|
|
395
450
|
tableReload: () => {
|
|
396
451
|
var e;
|
|
397
|
-
|
|
452
|
+
o != null && o.id && (Le(), U(b(v({}, a), {
|
|
398
453
|
current: 1
|
|
399
|
-
})), (e =
|
|
454
|
+
})), (e = re.current) == null || e.fetchLabels());
|
|
400
455
|
},
|
|
401
|
-
loadVersionData:
|
|
402
|
-
markType:
|
|
456
|
+
loadVersionData: ye,
|
|
457
|
+
markType: L == null ? void 0 : L.markType
|
|
403
458
|
})]
|
|
404
459
|
})
|
|
405
460
|
}) : void 0,
|
|
406
|
-
children: [/* @__PURE__ */
|
|
461
|
+
children: [/* @__PURE__ */ s("div", {
|
|
407
462
|
className: "detection-header",
|
|
408
|
-
children: /* @__PURE__ */
|
|
409
|
-
children: [
|
|
463
|
+
children: /* @__PURE__ */ M(ue, {
|
|
464
|
+
children: [J.tabs && /* @__PURE__ */ s(ft, {
|
|
410
465
|
className: "header-tab",
|
|
411
|
-
activeKey:
|
|
412
|
-
items:
|
|
413
|
-
onChange:
|
|
414
|
-
}), !
|
|
466
|
+
activeKey: c,
|
|
467
|
+
items: Ne,
|
|
468
|
+
onChange: De
|
|
469
|
+
}), !m && J.search && /* @__PURE__ */ s(Dt, {
|
|
415
470
|
placeholder: "请输入图片名称搜索",
|
|
416
|
-
suffix: /* @__PURE__ */
|
|
417
|
-
value:
|
|
418
|
-
onChange:
|
|
471
|
+
suffix: /* @__PURE__ */ s(St, {}),
|
|
472
|
+
value: j,
|
|
473
|
+
onChange: We,
|
|
419
474
|
allowClear: !0
|
|
420
475
|
})]
|
|
421
476
|
})
|
|
422
|
-
}), /* @__PURE__ */
|
|
477
|
+
}), /* @__PURE__ */ M("div", {
|
|
423
478
|
className: "d-row",
|
|
424
|
-
children: [/* @__PURE__ */
|
|
479
|
+
children: [/* @__PURE__ */ M("div", {
|
|
425
480
|
className: "d-right",
|
|
426
|
-
ref:
|
|
427
|
-
children: [
|
|
428
|
-
datasetId:
|
|
429
|
-
isImageDetailVisible:
|
|
430
|
-
setIsImageDetailVisible:
|
|
431
|
-
currentSample:
|
|
432
|
-
labels:
|
|
433
|
-
previewMode: !
|
|
434
|
-
filterItems:
|
|
435
|
-
filterMode:
|
|
436
|
-
onFilterChange:
|
|
437
|
-
onChange:
|
|
438
|
-
onNextClick:
|
|
439
|
-
onPrevClick:
|
|
440
|
-
onSave:
|
|
441
|
-
onEnterEdit: () =>
|
|
442
|
-
onDeleteSample:
|
|
481
|
+
ref: K,
|
|
482
|
+
children: [W && /* @__PURE__ */ s(Tt, {
|
|
483
|
+
datasetId: l,
|
|
484
|
+
isImageDetailVisible: W,
|
|
485
|
+
setIsImageDetailVisible: P,
|
|
486
|
+
currentSample: y != null ? y : m,
|
|
487
|
+
labels: T,
|
|
488
|
+
previewMode: !be,
|
|
489
|
+
filterItems: Ne,
|
|
490
|
+
filterMode: c,
|
|
491
|
+
onFilterChange: De,
|
|
492
|
+
onChange: S,
|
|
493
|
+
onNextClick: Ve,
|
|
494
|
+
onPrevClick: et,
|
|
495
|
+
onSave: tt,
|
|
496
|
+
onEnterEdit: () => q(!0),
|
|
497
|
+
onDeleteSample: nt,
|
|
443
498
|
onRefresh: () => {
|
|
444
|
-
var e,
|
|
445
|
-
(e =
|
|
499
|
+
var e, n;
|
|
500
|
+
(e = te()) == null || e.then(() => k()), (n = re.current) == null || n.fetchLabels();
|
|
446
501
|
},
|
|
447
502
|
isPreLabel: !1,
|
|
448
503
|
imgCount: {
|
|
449
|
-
total:
|
|
450
|
-
index:
|
|
504
|
+
total: F,
|
|
505
|
+
index: R + 1
|
|
451
506
|
},
|
|
452
|
-
settingHide: !
|
|
453
|
-
canLabel: !!(
|
|
454
|
-
canDelete: !!(
|
|
455
|
-
}),
|
|
507
|
+
settingHide: !he,
|
|
508
|
+
canLabel: !!(w && w.label),
|
|
509
|
+
canDelete: !!(w && w.delete)
|
|
510
|
+
}), a.total !== void 0 && a.total > 0 ? /* @__PURE__ */ s(gt, {
|
|
456
511
|
innerProps: {
|
|
457
512
|
className: "d-right-row"
|
|
458
513
|
},
|
|
459
|
-
data:
|
|
514
|
+
data: p,
|
|
460
515
|
itemKey: "id",
|
|
461
|
-
height: (
|
|
462
|
-
onScroll:
|
|
463
|
-
children: (e,
|
|
464
|
-
var
|
|
465
|
-
return /* @__PURE__ */
|
|
516
|
+
height: (we = (ke = K.current) == null ? void 0 : ke.clientHeight) != null ? we : 600,
|
|
517
|
+
onScroll: it,
|
|
518
|
+
children: (e, n) => {
|
|
519
|
+
var t;
|
|
520
|
+
return /* @__PURE__ */ s(ut, {
|
|
466
521
|
className: "d-right-col",
|
|
467
|
-
|
|
468
|
-
|
|
522
|
+
"data-sample-id": e.id,
|
|
523
|
+
onClick: () => Ye(n),
|
|
524
|
+
children: /* @__PURE__ */ M("div", {
|
|
469
525
|
className: "right-col-wrapper",
|
|
470
|
-
children: [/* @__PURE__ */
|
|
526
|
+
children: [/* @__PURE__ */ s("div", {
|
|
471
527
|
className: "detection-status-wrapper",
|
|
472
|
-
children: /* @__PURE__ */
|
|
528
|
+
children: /* @__PURE__ */ s(wt, {
|
|
473
529
|
sample: e
|
|
474
530
|
})
|
|
475
|
-
}), /* @__PURE__ */
|
|
531
|
+
}), /* @__PURE__ */ s("div", {
|
|
476
532
|
className: "right-col-img",
|
|
477
|
-
children: /* @__PURE__ */
|
|
533
|
+
children: /* @__PURE__ */ s(Vt, {
|
|
478
534
|
fileKey: e.fileKey,
|
|
479
535
|
width: 124,
|
|
480
536
|
thumbnailUrl: e.thumbnailUrl
|
|
481
537
|
})
|
|
482
|
-
}), /* @__PURE__ */
|
|
538
|
+
}), /* @__PURE__ */ M("div", {
|
|
483
539
|
className: "right-col-text",
|
|
484
|
-
children: [(
|
|
540
|
+
children: [(t = e.labels) != null && t.length ? /* @__PURE__ */ s(ht, {
|
|
485
541
|
placement: "top",
|
|
486
542
|
title: e.labels[0].label,
|
|
487
|
-
children: /* @__PURE__ */
|
|
543
|
+
children: /* @__PURE__ */ s("span", {
|
|
488
544
|
style: {
|
|
489
545
|
display: "inline-block",
|
|
490
546
|
maxWidth: "calc(100% - 25px)",
|
|
@@ -494,45 +550,45 @@ const Qt = (D) => {
|
|
|
494
550
|
},
|
|
495
551
|
children: e.labels[0].label
|
|
496
552
|
})
|
|
497
|
-
}) : /* @__PURE__ */
|
|
553
|
+
}) : /* @__PURE__ */ s("span", {
|
|
498
554
|
style: {
|
|
499
555
|
color: "rgba(0,0,0,0.45)",
|
|
500
556
|
width: "100%"
|
|
501
557
|
},
|
|
502
558
|
children: "无标签"
|
|
503
|
-
}), /* @__PURE__ */
|
|
504
|
-
children:
|
|
559
|
+
}), /* @__PURE__ */ s("div", {
|
|
560
|
+
children: n + 1
|
|
505
561
|
})]
|
|
506
562
|
})]
|
|
507
563
|
})
|
|
508
564
|
}, e.id);
|
|
509
565
|
}
|
|
510
|
-
}) : /* @__PURE__ */
|
|
566
|
+
}) : /* @__PURE__ */ s("div", {
|
|
511
567
|
className: "empty",
|
|
512
|
-
children:
|
|
513
|
-
image:
|
|
568
|
+
children: a.total === 0 ? /* @__PURE__ */ s(ze, {
|
|
569
|
+
image: pt,
|
|
514
570
|
description: "暂无数据"
|
|
515
|
-
}) : /* @__PURE__ */
|
|
571
|
+
}) : /* @__PURE__ */ s(Fe, {})
|
|
516
572
|
})]
|
|
517
|
-
}),
|
|
573
|
+
}), c !== "nocode" && J.labels && /* @__PURE__ */ s("div", {
|
|
518
574
|
className: "d-sider",
|
|
519
|
-
children: /* @__PURE__ */
|
|
520
|
-
ref:
|
|
521
|
-
datasetId:
|
|
522
|
-
data:
|
|
523
|
-
selected:
|
|
575
|
+
children: /* @__PURE__ */ s(Rt, {
|
|
576
|
+
ref: re,
|
|
577
|
+
datasetId: l,
|
|
578
|
+
data: T || [],
|
|
579
|
+
selected: $,
|
|
524
580
|
onSelectedChange: (e) => {
|
|
525
|
-
|
|
581
|
+
ae((T == null ? void 0 : T.filter((n) => e.find((t) => t.label === n.label))) || []);
|
|
526
582
|
},
|
|
527
583
|
onListChange: () => {
|
|
528
|
-
|
|
529
|
-
const
|
|
530
|
-
label:
|
|
531
|
-
count:
|
|
532
|
-
id:
|
|
533
|
-
color:
|
|
534
|
-
})), r =
|
|
535
|
-
|
|
584
|
+
o && (f.cvforceDatahub.getDatasetsIdVersionsVidLabelcount(l, o.id, {}).then((e) => {
|
|
585
|
+
const t = (e || []).filter((i) => i.label !== "nocode").map((i, d) => ({
|
|
586
|
+
label: i.label,
|
|
587
|
+
count: i.count,
|
|
588
|
+
id: i.id,
|
|
589
|
+
color: Pe[d % 40]
|
|
590
|
+
})), r = $.filter((i) => t.some((d) => d.id === i.id));
|
|
591
|
+
ve(t), $.length !== r.length && ae(r);
|
|
536
592
|
}), k());
|
|
537
593
|
},
|
|
538
594
|
isPreLabel: !1
|
|
@@ -540,18 +596,18 @@ const Qt = (D) => {
|
|
|
540
596
|
})]
|
|
541
597
|
})]
|
|
542
598
|
})
|
|
543
|
-
}) : /* @__PURE__ */
|
|
599
|
+
}) : /* @__PURE__ */ s("div", {
|
|
544
600
|
className: "empty",
|
|
545
|
-
children: /* @__PURE__ */
|
|
601
|
+
children: /* @__PURE__ */ s(ze, {
|
|
546
602
|
description: "当前数据集不是 classification(图像分类) 类型"
|
|
547
603
|
})
|
|
548
|
-
}) : /* @__PURE__ */
|
|
604
|
+
}) : /* @__PURE__ */ s("div", {
|
|
549
605
|
className: "empty",
|
|
550
|
-
children: /* @__PURE__ */
|
|
606
|
+
children: /* @__PURE__ */ s(Fe, {})
|
|
551
607
|
})
|
|
552
608
|
})
|
|
553
609
|
});
|
|
554
610
|
};
|
|
555
611
|
export {
|
|
556
|
-
|
|
612
|
+
ln as default
|
|
557
613
|
};
|