feat: test
This commit is contained in:
parent
e4eb06d71c
commit
66d3350edc
|
@ -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);
|
||||
});
|
||||
});
|
||||
};
|
||||
|
|
|
@ -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++) {
|
||||
|
|
|
@ -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);
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue
Block a user