diff --git a/apps/desktop/electron/core/alg.ts b/apps/desktop/electron/core/alg.ts index d572251..3b7576b 100644 --- a/apps/desktop/electron/core/alg.ts +++ b/apps/desktop/electron/core/alg.ts @@ -43,9 +43,13 @@ export const executeInferTask = ( }); response.data.on("error", (err: Error) => { + console.log("error", err); reject(err); }); }) - .catch((error) => reject(error)); + .catch((error) => { + console.log("axios error", error); + reject(error); + }); }); }; diff --git a/apps/desktop/electron/ipcEvent/common/index.ts b/apps/desktop/electron/ipcEvent/common/index.ts index fb3e477..c035b07 100644 --- a/apps/desktop/electron/ipcEvent/common/index.ts +++ b/apps/desktop/electron/ipcEvent/common/index.ts @@ -37,7 +37,7 @@ export const registerCommonHandler = () => { ipcMain.handle("model:infer", async (_event, SeriesInstanceUIDs) => { // 构造推理任务参数列表 const pu = InferDeviceEnum.GPU; - const module = InferStructuralEnum.PERI; + const module = InferStructuralEnum.AORTA; const turbo = true; const seg_schedule = true; for (let i = 0; i < SeriesInstanceUIDs.length; i++) { diff --git a/apps/desktop/src/pages/Boot/index.tsx b/apps/desktop/src/pages/Boot/index.tsx index 4786db0..e71e13e 100644 --- a/apps/desktop/src/pages/Boot/index.tsx +++ b/apps/desktop/src/pages/Boot/index.tsx @@ -27,8 +27,8 @@ const Boot = () => { */ const handleTasks = () => { const SeriesInstanceUIDs = [ + "1.3.12.2.1107.5.1.4.73399.30000020080900171669200001479", "1.2.156.112605.14038010222575.230518044041.3.4344.300061", - // "1.3.12.2.1107.5.1.4.73399.30000020080900171669200001479", ]; window.ipcRenderer.invoke("model:infer", SeriesInstanceUIDs); };