open-mmlab / mmdetection

OpenMMLab Detection Toolbox and Benchmark
https://mmdetection.readthedocs.io
Apache License 2.0
28.5k stars 9.28k forks source link

How to load model from memory instead of disk? #11761

Closed LLsmile closed 1 month ago

LLsmile commented 1 month ago

I need to encrypt my model and decrypt it in code. So the model to be loaded in mmdetection will come from memory directly. How can I do it in mmdetection?