From e069c6ff54c7019c49650aa337ab43c1494f747f Mon Sep 17 00:00:00 2001 From: jhynsoo Date: Thu, 26 Sep 2024 17:14:02 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20=ED=85=8C=EC=8A=A4=ED=8A=B8=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/utils/json/createLabelJson.test.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/frontend/src/utils/json/createLabelJson.test.ts b/frontend/src/utils/json/createLabelJson.test.ts index b018c5b..335028b 100644 --- a/frontend/src/utils/json/createLabelJson.test.ts +++ b/frontend/src/utils/json/createLabelJson.test.ts @@ -2,40 +2,40 @@ import createLabelJson from './createLabelJson'; describe('createLabelJson', () => { it('should create a label JSON for classification', () => { - const result = createLabelJson('classification', 1080, 1920); + const result = createLabelJson('classification'); expect(result).toEqual({ version: '0.1.0', task_type: 'cls', shapes: [], split: 'none', - imageHeight: 1080, - imageWidth: 1920, + imageHeight: 0, + imageWidth: 0, imageDepth: 3, }); }); it('should create a label JSON for detection', () => { - const result = createLabelJson('detection', 720, 1280); + const result = createLabelJson('detection'); expect(result).toEqual({ version: '0.1.0', task_type: 'det', shapes: [], split: 'none', - imageHeight: 720, - imageWidth: 1280, + imageHeight: 0, + imageWidth: 0, imageDepth: 3, }); }); it('should create a label JSON for segmentation', () => { - const result = createLabelJson('segmentation', 480, 640); + const result = createLabelJson('segmentation'); expect(result).toEqual({ version: '0.1.0', task_type: 'seg', shapes: [], split: 'none', - imageHeight: 480, - imageWidth: 640, + imageHeight: 0, + imageWidth: 0, imageDepth: 3, }); });