leovandriel / caffe2_cpp_tutorial

C++ transcripts of the Caffe2 Python tutorials and other C++ example code
BSD 2-Clause "Simplified" License
431 stars 94 forks source link

[Question] Switch workspace #61

Open LouiseAbela opened 6 years ago

LouiseAbela commented 6 years ago

Hi,

Thanks a lot for your sample they were really helpful to build my own network. Now I have a new problem as I want to run the same model on different cameras, therefore I would love to re-use the same Workspace if it's already existing, so I won't run out of memory by loading the model for every run.

Do you have any suggestions how this could be done please or if it possible?

Thanks very much :)

leovandriel commented 6 years ago

If I understand correctly, you can get this done by simply keeping the same Workspace around. Just provide your model with new input and run inference. Even if images come from different camera, this should work.