Skip to content

Commit e37c6c4

Browse files
authored
Avoid clearing memory ahead of time (#1092)
1 parent 6b56cd3 commit e37c6c4

File tree

2 files changed

+0
-18
lines changed

2 files changed

+0
-18
lines changed

web_ui/packages/smart-tools/src/ritm/ritm.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -71,18 +71,6 @@ class RITM {
7171
}
7272
}
7373

74-
cleanMemory() {
75-
if (this.image) {
76-
this.image.delete();
77-
this.image = null;
78-
}
79-
80-
if (this.mask) {
81-
this.mask.delete();
82-
this.mask = null;
83-
}
84-
}
85-
8674
async execute(
8775
imageArea: RegionOfInterest,
8876
points: RITMPoint[],

web_ui/src/pages/annotator/hooks/use-interactive-segmentation.hook.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,6 @@ export const useInteractiveSegmentation = ({
5959
if (worker) {
6060
loadWorker();
6161
}
62-
63-
return () => {
64-
if (ritmInstance && ritmInstance.current) {
65-
ritmInstance.current.cleanMemory();
66-
}
67-
};
6862
}, [worker]);
6963

7064
useEffect(() => {

0 commit comments

Comments
 (0)