From 555538d9b0cc3250e44e80830286a73adc7ac09d Mon Sep 17 00:00:00 2001
From: dengzedong <dengzedong@email>
Date: 星期三, 02 四月 2025 13:11:21 +0800
Subject: [PATCH] model test run bug

---
 iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mpk/controller/admin/MdkController.java |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mpk/controller/admin/MdkController.java b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mpk/controller/admin/MdkController.java
index 69f6930..7e984d7 100644
--- a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mpk/controller/admin/MdkController.java
+++ b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mpk/controller/admin/MdkController.java
@@ -104,8 +104,10 @@
                         return error(GlobalErrorCodeConstants.BAD_REQUEST.getCode(),"请重新导入模型参数");
                     }
                     JSONArray jsonArray = JSON.parseArray(cache.get(uuid));
-                    double[][] data = new double[jsonArray.size()][jsonArray.getJSONArray(0).size()];
+
+                    double[][] data = new double[jsonArray.size()][];
                     for (int j = 0; j < jsonArray.size(); j++) {
+                        data[j] = new double[jsonArray.getJSONArray(j).size()];
                         for (int k = 0; k < jsonArray.getJSONArray(j).size(); k++) {
                             data[j][k] = jsonArray.getJSONArray(j).getDoubleValue(k);
                         }

--
Gitblit v1.9.3