feat: test

This commit is contained in:
mozzie 2024-09-20 16:48:32 +08:00
parent e4eb06d71c
commit 66d3350edc
3 changed files with 7 additions and 3 deletions

View File

@ -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);
});
});
};

View File

@ -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++) {

View File

@ -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);
};