@glodon-aiot/dataset-annotation 3.11.1-shapshot.1765331459 → 3.13.0-alpha.28
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/DatasetContext/index.mjs +6 -3
- package/dist/es/components/DetectionAnnotation/components/ImageDetail/index.mjs +94 -91
- package/dist/es/components/DetectionAnnotation/components/ImageModal/index.mjs +129 -0
- package/dist/es/components/DetectionAnnotation/components/ImageModal/style.less.mjs +4 -0
- package/dist/es/components/DetectionAnnotation/components/LabelMaker/Drawable.mjs +37 -28
- package/dist/es/components/DetectionAnnotation/components/LabelMaker/RectLabel.mjs +136 -108
- package/dist/es/components/DetectionAnnotation/components/LabelMaker/index.mjs +197 -162
- package/dist/es/components/DetectionAnnotation/index.mjs +424 -395
- package/dist/es/components/Iconfont/index.mjs +2 -2
- package/dist/es/components/OcrAnnotation/MarkKVOCRModal/KVOCRLabelMaker/index.mjs +1 -1
- package/dist/es/components/OcrAnnotation/MarkOCRBoxModal/OCRBoxMaker/index.mjs +1 -1
- package/dist/es/components/OcrAnnotation/OcrModal/index.mjs +43 -45
- package/dist/es/components/PicZipImportModal/config.mjs +47 -0
- package/dist/es/components/PicZipImportModal/index.mjs +308 -293
- package/dist/es/components/PicZipImportModal/pic_vlm_json_zip.svg.mjs +4 -0
- package/dist/es/components/PicZipImportModal/pic_vlm_zip.svg.mjs +4 -0
- package/dist/es/components/PreLabelOCR/index.mjs +1 -1
- package/dist/es/components/VLMAnnotation/RegionItem.mjs +94 -0
- package/dist/es/components/VLMAnnotation/TextAnnotationPanel.mjs +83 -0
- package/dist/es/components/VLMAnnotation/VLMLabelMaker/hooks/useCanvasDrag.mjs +116 -0
- package/dist/es/components/VLMAnnotation/VLMLabelMaker/hooks/useCanvasSetup.mjs +115 -0
- package/dist/es/components/VLMAnnotation/VLMLabelMaker/hooks/useCanvasZoom.mjs +42 -0
- package/dist/es/components/VLMAnnotation/VLMLabelMaker/hooks/useCropRegionImage.mjs +55 -0
- package/dist/es/components/VLMAnnotation/VLMLabelMaker/hooks/useDeleteControl.mjs +51 -0
- package/dist/es/components/VLMAnnotation/VLMLabelMaker/hooks/useDeleteRegion.mjs +47 -0
- package/dist/es/components/VLMAnnotation/VLMLabelMaker/hooks/useDrawingMode.mjs +248 -0
- package/dist/es/components/VLMAnnotation/VLMLabelMaker/hooks/useOCRLoadingIcon.mjs +106 -0
- package/dist/es/components/VLMAnnotation/VLMLabelMaker/hooks/useOCRRecognition.mjs +68 -0
- package/dist/es/components/VLMAnnotation/VLMLabelMaker/hooks/useRegionHover.mjs +38 -0
- package/dist/es/components/VLMAnnotation/VLMLabelMaker/hooks/useRegionLoader.mjs +141 -0
- package/dist/es/components/VLMAnnotation/VLMLabelMaker/hooks/useRegionNameText.mjs +72 -0
- package/dist/es/components/VLMAnnotation/VLMLabelMaker/hooks/useRegionSelection.mjs +113 -0
- package/dist/es/components/VLMAnnotation/VLMLabelMaker/hooks/useRegionUpdate.mjs +103 -0
- package/dist/es/components/VLMAnnotation/VLMLabelMaker/hooks/useTextLayouts.mjs +156 -0
- package/dist/es/components/VLMAnnotation/VLMLabelMaker/icons/del.png.mjs +4 -0
- package/dist/es/components/VLMAnnotation/VLMLabelMaker/index.mjs +526 -0
- package/dist/es/components/VLMAnnotation/VLMLabelMaker/style.less.mjs +4 -0
- package/dist/es/components/VLMAnnotation/VLMLabelMaker/utils/coordinateUtils.mjs +33 -0
- package/dist/es/components/VLMAnnotation/components/DragButton.mjs +18 -0
- package/dist/es/components/VLMAnnotation/components/FitToScreenButton.mjs +16 -0
- package/dist/es/components/VLMAnnotation/components/RectangleButton.mjs +30 -0
- package/dist/es/components/VLMAnnotation/components/Toolbar.mjs +40 -0
- package/dist/es/components/VLMAnnotation/components/ZoomControls.mjs +44 -0
- package/dist/es/components/VLMAnnotation/constants.mjs +50 -0
- package/dist/es/components/VLMAnnotation/index.mjs +242 -0
- package/dist/es/components/VLMAnnotation/style.less.mjs +4 -0
- package/dist/es/components/VLMAnnotationDetail/MarkVLMBoxModal/AttributeDetail/index.mjs +343 -0
- package/dist/es/components/VLMAnnotationDetail/MarkVLMBoxModal/AttributeDetail/style.less.mjs +4 -0
- package/dist/es/components/VLMAnnotationDetail/MarkVLMBoxModal/QADetail/QAGenerationConfig.mjs +240 -0
- package/dist/es/components/VLMAnnotationDetail/MarkVLMBoxModal/QADetail/index.mjs +201 -0
- package/dist/es/components/VLMAnnotationDetail/MarkVLMBoxModal/QADetail/style.less.mjs +4 -0
- package/dist/es/components/VLMAnnotationDetail/MarkVLMBoxModal/index.mjs +455 -0
- package/dist/es/components/VLMAnnotationDetail/MarkVLMBoxModal/style.less.mjs +4 -0
- package/dist/es/components/VLMAnnotationDetail/VlmModal/index.mjs +149 -0
- package/dist/es/components/VLMAnnotationDetail/VlmModal/style.less.mjs +4 -0
- package/dist/es/components/VLMAnnotationDetail/index.mjs +449 -0
- package/dist/es/components/VLMAnnotationDetail/style.less.mjs +4 -0
- package/dist/es/constant.mjs +3 -3
- package/dist/es/createVlmtasetAnnotation/index.mjs +131 -0
- package/dist/es/featuresConfig.mjs +13 -9
- package/dist/es/index.mjs +11 -7
- package/dist/lib/index.js +4 -3
- package/dist/src/DatasetContext/index.d.ts +2 -0
- package/dist/src/components/DetectionAnnotation/components/ImageDetail/index.d.ts +1 -0
- package/dist/src/components/DetectionAnnotation/components/ImageModal/index.d.ts +34 -0
- package/dist/src/components/Iconfont/font_4439177_tgvowh6bmlb.d.ts +0 -0
- package/dist/src/components/PicZipImportModal/config.d.ts +23 -0
- package/dist/src/components/VLMAnnotation/ImageAnnotationDebugger.d.ts +4 -0
- package/dist/src/components/VLMAnnotation/RegionItem.d.ts +4 -0
- package/dist/src/components/VLMAnnotation/TextAnnotationPanel.d.ts +4 -0
- package/dist/src/components/VLMAnnotation/VLMLabelMaker/hooks/useCanvasDrag.d.ts +13 -0
- package/dist/src/components/VLMAnnotation/VLMLabelMaker/hooks/useCanvasSetup.d.ts +38 -0
- package/dist/src/components/VLMAnnotation/VLMLabelMaker/hooks/useCanvasZoom.d.ts +18 -0
- package/dist/src/components/VLMAnnotation/VLMLabelMaker/hooks/useCropRegionImage.d.ts +7 -0
- package/dist/src/components/VLMAnnotation/VLMLabelMaker/hooks/useDeleteControl.d.ts +13 -0
- package/dist/src/components/VLMAnnotation/VLMLabelMaker/hooks/useDeleteRegion.d.ts +21 -0
- package/dist/src/components/VLMAnnotation/VLMLabelMaker/hooks/useDrawingMode.d.ts +32 -0
- package/dist/src/components/VLMAnnotation/VLMLabelMaker/hooks/useOCRLoadingIcon.d.ts +11 -0
- package/dist/src/components/VLMAnnotation/VLMLabelMaker/hooks/useOCRRecognition.d.ts +28 -0
- package/dist/src/components/VLMAnnotation/VLMLabelMaker/hooks/useRegionHover.d.ts +13 -0
- package/dist/src/components/VLMAnnotation/VLMLabelMaker/hooks/useRegionLoader.d.ts +37 -0
- package/dist/src/components/VLMAnnotation/VLMLabelMaker/hooks/useRegionNameText.d.ts +12 -0
- package/dist/src/components/VLMAnnotation/VLMLabelMaker/hooks/useRegionSelection.d.ts +15 -0
- package/dist/src/components/VLMAnnotation/VLMLabelMaker/hooks/useRegionUpdate.d.ts +32 -0
- package/dist/src/components/VLMAnnotation/VLMLabelMaker/hooks/useTextLayouts.d.ts +25 -0
- package/dist/src/components/VLMAnnotation/VLMLabelMaker/index.d.ts +4 -0
- package/dist/src/components/VLMAnnotation/VLMLabelMaker/utils/coordinateUtils.d.ts +32 -0
- package/dist/src/components/VLMAnnotation/components/DragButton.d.ts +7 -0
- package/dist/src/components/VLMAnnotation/components/FitToScreenButton.d.ts +6 -0
- package/dist/src/components/VLMAnnotation/components/RectangleButton.d.ts +7 -0
- package/dist/src/components/VLMAnnotation/components/Toolbar.d.ts +4 -0
- package/dist/src/components/VLMAnnotation/components/ZoomControls.d.ts +4 -0
- package/dist/src/components/VLMAnnotation/constants.d.ts +97 -0
- package/dist/src/components/VLMAnnotation/index.d.ts +6 -0
- package/dist/src/components/VLMAnnotation/types.d.ts +172 -0
- package/dist/src/components/VLMAnnotationDetail/MarkVLMBoxModal/AttributeDetail/index.d.ts +14 -0
- package/dist/src/components/VLMAnnotationDetail/MarkVLMBoxModal/QADetail/QAGenerationConfig.d.ts +12 -0
- package/dist/src/components/VLMAnnotationDetail/MarkVLMBoxModal/QADetail/index.d.ts +12 -0
- package/dist/src/components/VLMAnnotationDetail/MarkVLMBoxModal/index.d.ts +12 -0
- package/dist/src/components/VLMAnnotationDetail/VlmModal/index.d.ts +17 -0
- package/dist/src/components/VLMAnnotationDetail/index.d.ts +6 -0
- package/dist/src/constant.d.ts +1 -1
- package/dist/src/createVlmtasetAnnotation/index.d.ts +16 -0
- package/dist/src/featuresConfig.d.ts +4 -0
- package/dist/src/index.d.ts +3 -0
- package/package.json +2 -2
- package/dist/dataset-annotation.js +0 -123598
- package/dist/dataset-annotation.umd.cjs +0 -1017
- package/dist/example/DatasetAnnotationDemo.d.ts +0 -3
- package/dist/example/DemoTabs.d.ts +0 -3
- package/dist/example/DetectionDatasetDemo.d.ts +0 -5
- package/dist/example/DetectionImageDemo.d.ts +0 -5
- package/dist/example/OcrDatasetDemo.d.ts +0 -5
- package/dist/example/OcrImageDemo.d.ts +0 -5
- package/dist/example/OcrkvcDatasetDemo.d.ts +0 -5
- package/dist/example/constant.local.d.ts +0 -6
- package/dist/example/index.d.ts +0 -1
- package/dist/src/utils/reactCompatibility.d.ts +0 -5
|
@@ -14,7 +14,7 @@ import { jsx as E } from "react/jsx-runtime";
|
|
|
14
14
|
import { useState as I, useContext as ge, useEffect as B } from "react";
|
|
15
15
|
import ce from "./LableEditor.mjs";
|
|
16
16
|
import { fabric as X } from "fabric";
|
|
17
|
-
import oe from "ahooks
|
|
17
|
+
import { useKeyPress as oe } from "ahooks";
|
|
18
18
|
import { Spin as le } from "antd";
|
|
19
19
|
import he from "react-dom";
|
|
20
20
|
import { getUuid as K } from "../../../../utils/index.mjs";
|
|
@@ -22,7 +22,7 @@ var ge = (r, m) => {
|
|
|
22
22
|
import { jsx as S, jsxs as Xe } from "react/jsx-runtime";
|
|
23
23
|
import { useState as U, useEffect as F } from "react";
|
|
24
24
|
import { fabric as z } from "fabric";
|
|
25
|
-
import le from "ahooks
|
|
25
|
+
import { useKeyPress as le } from "ahooks";
|
|
26
26
|
import { Spin as $e, Space as Ie, Radio as me, Tooltip as se, Button as he } from "antd";
|
|
27
27
|
import Me from "react-dom";
|
|
28
28
|
import "./style.less.mjs";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { jsxs as a, jsx as s, Fragment as
|
|
2
|
-
import { useRef as N, useState as n, useContext as
|
|
3
|
-
import { Modal as u, Button as d, Tabs as
|
|
1
|
+
import { jsxs as a, jsx as s, Fragment as H } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as N, useState as n, useContext as Q, useEffect as k } from "react";
|
|
3
|
+
import { Modal as u, Button as d, Tabs as V, Tooltip as X, Space as Y, message as R } from "antd";
|
|
4
4
|
import "./style.less.mjs";
|
|
5
|
-
import
|
|
6
|
-
import { useKeyPress as
|
|
5
|
+
import v from "react-json-view";
|
|
6
|
+
import { useKeyPress as T } from "ahooks";
|
|
7
7
|
import Z from "../../MarkDescriptions/index.mjs";
|
|
8
|
-
import
|
|
8
|
+
import x from "../../Iconfont/index.mjs";
|
|
9
9
|
import _ from "../../../DatasetContext/index.mjs";
|
|
10
10
|
import $ from "../../OCRImageViewer/index.mjs";
|
|
11
11
|
import S from "../../ScanTable/index.mjs";
|
|
12
|
-
const {
|
|
13
|
-
TabPane:
|
|
14
|
-
} =
|
|
12
|
+
const ee = v.default || v, {
|
|
13
|
+
TabPane: I
|
|
14
|
+
} = V, fe = (j) => {
|
|
15
15
|
var O, M;
|
|
16
16
|
const {
|
|
17
17
|
isOcrModalVisible: c,
|
|
@@ -22,10 +22,10 @@ const {
|
|
|
22
22
|
datasetId: i,
|
|
23
23
|
versionId: r,
|
|
24
24
|
ocrMarkTmpl: l,
|
|
25
|
-
handleMarkClick:
|
|
26
|
-
updateSampleList:
|
|
25
|
+
handleMarkClick: w,
|
|
26
|
+
updateSampleList: z,
|
|
27
27
|
isPreLabel: m
|
|
28
|
-
} =
|
|
28
|
+
} = j, D = N(null), J = N({}), [f, K] = n("annotation"), [e, P] = n(), [L, E] = n(), [q, A] = n([]), [B, g] = n(!1), {
|
|
29
29
|
services: {
|
|
30
30
|
cvforceDatahub: t
|
|
31
31
|
},
|
|
@@ -34,32 +34,32 @@ const {
|
|
|
34
34
|
} = {
|
|
35
35
|
datasetManager: !1
|
|
36
36
|
}
|
|
37
|
-
} =
|
|
38
|
-
|
|
37
|
+
} = Q(_);
|
|
38
|
+
T("rightarrow", () => {
|
|
39
39
|
p();
|
|
40
|
-
}),
|
|
40
|
+
}), T("leftarrow", () => {
|
|
41
41
|
b();
|
|
42
42
|
}), k(() => {
|
|
43
|
-
i && (t == null || t.listCategory(i).then((o) =>
|
|
43
|
+
i && (t == null || t.listCategory(i).then((o) => A(o || [])));
|
|
44
44
|
}, [i]), k(() => {
|
|
45
45
|
c && i && r && (t == null || t.getDatasetsIdVersionsVidSsamplesSid(i, r, h.id).then((o) => {
|
|
46
46
|
P(o);
|
|
47
47
|
}));
|
|
48
48
|
}, [c, h]);
|
|
49
|
-
const
|
|
49
|
+
const F = () => {
|
|
50
50
|
C(!1);
|
|
51
|
-
}, F = (o) => {
|
|
52
|
-
K(o);
|
|
53
51
|
}, U = (o) => {
|
|
54
|
-
|
|
55
|
-
}, W = () => {
|
|
52
|
+
K(o);
|
|
53
|
+
}, W = (o) => {
|
|
54
|
+
E(o);
|
|
55
|
+
}, G = () => {
|
|
56
56
|
u.confirm({
|
|
57
57
|
title: "确认要删除此数据吗?",
|
|
58
58
|
content: "删除后不可恢复,请慎重操作",
|
|
59
59
|
onOk: () => {
|
|
60
60
|
!i || !r || !(e != null && e.id) || t == null || t.delDatasetsIdVersionsVidSamplesId(i, r, e.id).then(() => {
|
|
61
|
-
|
|
62
|
-
}).catch(() =>
|
|
61
|
+
R.success("删除成功"), C(!1), z();
|
|
62
|
+
}).catch(() => R.error("删除失败"));
|
|
63
63
|
}
|
|
64
64
|
});
|
|
65
65
|
};
|
|
@@ -75,7 +75,7 @@ const {
|
|
|
75
75
|
className: "ocr-modal",
|
|
76
76
|
open: c,
|
|
77
77
|
destroyOnClose: !0,
|
|
78
|
-
onCancel: () =>
|
|
78
|
+
onCancel: () => F(),
|
|
79
79
|
maskClosable: !1,
|
|
80
80
|
centered: !0,
|
|
81
81
|
footer: null,
|
|
@@ -85,25 +85,25 @@ const {
|
|
|
85
85
|
className: "detail-content",
|
|
86
86
|
children: [/* @__PURE__ */ s(d, {
|
|
87
87
|
className: "select-prev",
|
|
88
|
-
icon: /* @__PURE__ */ s(
|
|
88
|
+
icon: /* @__PURE__ */ s(x, {
|
|
89
89
|
type: "icon-zuojiantou"
|
|
90
90
|
}),
|
|
91
91
|
type: "text",
|
|
92
92
|
onClick: () => b()
|
|
93
93
|
}), /* @__PURE__ */ s("div", {
|
|
94
94
|
className: "select-main",
|
|
95
|
-
ref:
|
|
95
|
+
ref: J,
|
|
96
96
|
children: /* @__PURE__ */ s($, {
|
|
97
97
|
zoomMin: 0.1,
|
|
98
98
|
zoomMax: 10,
|
|
99
99
|
zoomStep: 0.1,
|
|
100
100
|
url: (e == null ? void 0 : e.fileUrl) || "",
|
|
101
|
-
ref:
|
|
101
|
+
ref: D,
|
|
102
102
|
labels: e == null ? void 0 : e.labels
|
|
103
103
|
})
|
|
104
104
|
}), /* @__PURE__ */ s(d, {
|
|
105
105
|
className: "select-next",
|
|
106
|
-
icon: /* @__PURE__ */ s(
|
|
106
|
+
icon: /* @__PURE__ */ s(x, {
|
|
107
107
|
type: "icon-youjiantou"
|
|
108
108
|
}),
|
|
109
109
|
type: "text",
|
|
@@ -113,30 +113,28 @@ const {
|
|
|
113
113
|
className: "detail-slide",
|
|
114
114
|
children: [/* @__PURE__ */ s("div", {
|
|
115
115
|
className: "slide-header",
|
|
116
|
-
children: /* @__PURE__ */ a(
|
|
116
|
+
children: /* @__PURE__ */ a(V, {
|
|
117
117
|
className: "header-tab",
|
|
118
|
-
onChange:
|
|
118
|
+
onChange: U,
|
|
119
119
|
activeKey: f,
|
|
120
|
-
children: [/* @__PURE__ */ s(
|
|
120
|
+
children: [/* @__PURE__ */ s(I, {
|
|
121
121
|
tab: "标注信息"
|
|
122
|
-
}, "annotation"), /* @__PURE__ */ s(
|
|
122
|
+
}, "annotation"), /* @__PURE__ */ s(I, {
|
|
123
123
|
tab: "JSON"
|
|
124
124
|
}, "json")]
|
|
125
125
|
})
|
|
126
126
|
}), /* @__PURE__ */ a("div", {
|
|
127
127
|
className: "slide-main",
|
|
128
|
-
children: [f === "annotation" && /* @__PURE__ */ s(
|
|
128
|
+
children: [f === "annotation" && /* @__PURE__ */ s(H, {
|
|
129
129
|
children: l === "TableOCR" ? /* @__PURE__ */ s(S, {
|
|
130
130
|
currentInfer: e == null ? void 0 : e.labels,
|
|
131
|
-
onCellSelect: (o) =>
|
|
132
|
-
currentCell:
|
|
131
|
+
onCellSelect: (o) => W(o),
|
|
132
|
+
currentCell: L
|
|
133
133
|
}) : (M = e == null ? void 0 : e.labels) != null && M.length ? /* @__PURE__ */ s(Z, {
|
|
134
134
|
labels: e == null ? void 0 : e.labels,
|
|
135
|
-
catagories:
|
|
135
|
+
catagories: q
|
|
136
136
|
}) : "暂无标注信息"
|
|
137
|
-
}), f === "json" &&
|
|
138
|
-
// @ts-ignore
|
|
139
|
-
/* @__PURE__ */ s(Y, {
|
|
137
|
+
}), f === "json" && /* @__PURE__ */ s(ee, {
|
|
140
138
|
name: !1,
|
|
141
139
|
iconStyle: "square",
|
|
142
140
|
indentWidth: 2,
|
|
@@ -152,21 +150,21 @@ const {
|
|
|
152
150
|
style: l === "DetectionOCR" ? {
|
|
153
151
|
width: "100%"
|
|
154
152
|
} : void 0,
|
|
155
|
-
children: /* @__PURE__ */ s(
|
|
153
|
+
children: /* @__PURE__ */ s(X, {
|
|
156
154
|
title: "预标注进行中,请任务完成后再试",
|
|
157
|
-
open:
|
|
158
|
-
children: /* @__PURE__ */ a(
|
|
155
|
+
open: B,
|
|
156
|
+
children: /* @__PURE__ */ a(Y, {
|
|
159
157
|
onMouseEnter: () => m && g(!0),
|
|
160
158
|
onMouseLeave: () => g(!1),
|
|
161
159
|
children: [/* @__PURE__ */ s(d, {
|
|
162
160
|
type: "primary",
|
|
163
161
|
disabled: l !== "StructKVCOCR" && l !== "DetectionOCR" || m,
|
|
164
|
-
onClick: () =>
|
|
162
|
+
onClick: () => w(e == null ? void 0 : e.id),
|
|
165
163
|
children: "标注"
|
|
166
164
|
}), y && y.delete && /* @__PURE__ */ s(d, {
|
|
167
165
|
danger: !0,
|
|
168
166
|
type: "ghost",
|
|
169
|
-
onClick:
|
|
167
|
+
onClick: G,
|
|
170
168
|
disabled: m,
|
|
171
169
|
children: "删除数据"
|
|
172
170
|
})]
|
|
@@ -176,5 +174,5 @@ const {
|
|
|
176
174
|
});
|
|
177
175
|
};
|
|
178
176
|
export {
|
|
179
|
-
|
|
177
|
+
fe as default
|
|
180
178
|
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { MB as e } from "../../constant.mjs";
|
|
2
|
+
const g = {
|
|
3
|
+
maxImageSize: 14 * e,
|
|
4
|
+
imageMimeTypes: ["image/jpeg", "image/jpg", "image/png", "image/bmp"],
|
|
5
|
+
imageAccept: "image/png, image/jpeg, image/jpg, image/bmp",
|
|
6
|
+
imageFormatsText: "jpg、png 、jpeg 、bmp",
|
|
7
|
+
labeledExampleKey: "FileImportType.Pro.LabelType.Unlabeled",
|
|
8
|
+
unlabeledExampleKey: "FileImportType.Pro.LabelType.Labeled",
|
|
9
|
+
labelFormat: "json",
|
|
10
|
+
zipUploadTexts: {
|
|
11
|
+
labeled: {
|
|
12
|
+
description: ["压缩包内每张图片(jpg、png 、jpeg、bmp格式)需要对应一个json文件,名称需一致,位置处在一级目录下;", "json文件需包含标签、4点坐标,格式可参考样例。"]
|
|
13
|
+
},
|
|
14
|
+
unlabeled: {
|
|
15
|
+
description: ["压缩包内图片格式要求为:图片类型为jpg/png/bmp/jpeg,单张图片不超过14M;"]
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}, a = {
|
|
19
|
+
maxImageSize: 10 * e,
|
|
20
|
+
// VLM 可能是 10M(可根据实际需求调整)
|
|
21
|
+
imageMimeTypes: ["image/jpeg", "image/jpg", "image/png"],
|
|
22
|
+
imageAccept: "image/png, image/jpeg, image/jpg",
|
|
23
|
+
imageFormatsText: "jpg、png 、jpeg",
|
|
24
|
+
labeledExampleKey: "FileImportType.Pro.LabelType.Unlabeled",
|
|
25
|
+
// 暂时使用默认,如果不同可后续修改
|
|
26
|
+
unlabeledExampleKey: "FileImportType.Pro.LabelType.Labeled",
|
|
27
|
+
// 暂时使用默认,如果不同可后续修改
|
|
28
|
+
labelFormat: "jsonl",
|
|
29
|
+
// VLM 使用 jsonl 格式
|
|
30
|
+
zipUploadTexts: {
|
|
31
|
+
labeled: {
|
|
32
|
+
description: [
|
|
33
|
+
"压缩包内全部图片(png 、jpeg、jpg 格式,单张图不超过10M)对应一个jsonl,位置处在一级目录下;"
|
|
34
|
+
// VLM 特定文案
|
|
35
|
+
]
|
|
36
|
+
},
|
|
37
|
+
unlabeled: {
|
|
38
|
+
description: [
|
|
39
|
+
"压缩包内图片格式要求为:图片类型为png/jpeg/jpg,单张图片不超过10M;"
|
|
40
|
+
// VLM 特定大小
|
|
41
|
+
]
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}, l = (p) => p === "vlm" ? a : g;
|
|
45
|
+
export {
|
|
46
|
+
l as getImportConfig
|
|
47
|
+
};
|