hkchengrex / Cutie

[CVPR 2024 Highlight] Putting the Object Back Into Video Object Segmentation
https://hkchengrex.com/Cutie/
MIT License
579 stars 60 forks source link

Question: restarting inference. #46

Closed ojh6404 closed 4 months ago

ojh6404 commented 4 months ago

First of all, I really appreciated for your great works. I have a question about inference.

Im trying to integrate this model in my application and I wanna restart object tracking when trigger that provides new input mask and input image has been called.

It seems clear_memory, clear_sensory_memory which are InferenceCore's methods can work for this. How can I clear memory of object and restart tracking?

Thanks!

hkchengrex commented 4 months ago

Hi. If you want to reset everything, the easiest way might be just to create a new InferenceCore instance.