removeVideoMattingModel()v4.0.523
Removes a video matting model from memory and the persistent browser cache.
If the model is still loading or separating a video, removal waits for the operation to finish.
remove-model.tsimport {removeVideoMattingModel } from '@remotion/video-matting'; awaitremoveVideoMattingModel ({model : 'modnet'});
Options
model
One of the names returned by getAvailableModels().
Compatibility
| Browsers | Environments | |||||
|---|---|---|---|---|---|---|
Chrome | Firefox | Safari | ||||