How to storage TensorFlow model on IndexedDB?

Hi TensorFlow community!

I have a web app with COCO-SSD model loaded with the '@tensorflow-models/coco-ssd' NPM package. Everything works well, but now I want to use the model offline once is downloaded with:

import * as cocossd from '@tensorflow-models/coco-ssd'
...
const network = await cocossd.load()

But since this package, does not have a .save() function to save it in IndexedDB, I’m not sure how to storage it. How can I achieve this?

Thanks in advance!

As this is a class written by the team and not working at the raw tensorflow.js api level you would need to modify that class code directly to store/retrieve using the save API for any model.json files it loads