🎥 Make videos programmatically with React
Docs: Simplify model download descriptions
Jonny Burger8e6d097e51b3
diff --git a/packages/docs/docs/video-matting/download-video-matting-model.mdx b/packages/docs/docs/video-matting/download-video-matting-model.mdxindex 14af9bd546..b553aa6fb7 100644--- a/packages/docs/docs/video-matting/download-video-matting-model.mdx+++ b/packages/docs/docs/video-matting/download-video-matting-model.mdx@@ -6,7 +6,7 @@ crumb: '@remotion/video-matting'# downloadVideoMattingModel()<AvailableFrom v="4.0.528" />-Downloads a video matting model from `remotion.media` into the browser or Node.js filesystem cache without initializing WebGPU. Call [`loadVideoMattingModel()`](/docs/video-matting/load-video-matting-model) or [`separateVideoLayers()`](/docs/video-matting/separate-video-layers) afterwards.+Downloads a video matting model from `remotion.media` into the browser or Node.js filesystem cache. Call [`loadVideoMattingModel()`](/docs/video-matting/load-video-matting-model) or [`separateVideoLayers()`](/docs/video-matting/separate-video-layers) afterwards.The browser Cache API, Node.js filesystem cache, or a Transformers.js custom cache must be enabled.diff --git a/packages/docs/docs/video-matting/table-of-contents.tsx b/packages/docs/docs/video-matting/table-of-contents.tsxindex 3fd9b28a21..0e4a81d1ea 100644--- a/packages/docs/docs/video-matting/table-of-contents.tsx+++ b/packages/docs/docs/video-matting/table-of-contents.tsx@@ -19,7 +19,7 @@ export const TableOfContents: React.FC = () => {</TOCItem><TOCItem link="/docs/video-matting/download-video-matting-model"><strong>downloadVideoMattingModel()</strong>- <div>Download a model without initializing WebGPU</div>+ <div>Download a model</div></TOCItem><TOCItem link="/docs/video-matting/load-video-matting-model"><strong>loadVideoMattingModel()</strong>diff --git a/packages/docs/docs/whisper-webgpu/download-whisper-model.mdx b/packages/docs/docs/whisper-webgpu/download-whisper-model.mdxindex 40f96e55fd..974cb4fb24 100644--- a/packages/docs/docs/whisper-webgpu/download-whisper-model.mdx+++ b/packages/docs/docs/whisper-webgpu/download-whisper-model.mdx@@ -6,7 +6,7 @@ crumb: '@remotion/whisper-webgpu'# downloadWhisperModel()<AvailableFrom v="4.0.528" />-Downloads a Whisper model from `remotion.media` into the Transformers.js cache without initializing WebGPU. Call [`loadWhisperModel()`](/docs/whisper-webgpu/load-whisper-model) or [`transcribe()`](/docs/whisper-webgpu/transcribe) afterwards.+Downloads a Whisper model from `remotion.media` into the Transformers.js cache. Call [`loadWhisperModel()`](/docs/whisper-webgpu/load-whisper-model) or [`transcribe()`](/docs/whisper-webgpu/transcribe) afterwards.The browser uses its Cache API; Node.js uses the Transformers.js filesystem cache. A cache must be enabled.diff --git a/packages/docs/docs/whisper-webgpu/index.mdx b/packages/docs/docs/whisper-webgpu/index.mdxindex de2105a629..2190b969ef 100644--- a/packages/docs/docs/whisper-webgpu/index.mdx+++ b/packages/docs/docs/whisper-webgpu/index.mdx@@ -35,7 +35,7 @@ const {captions} = toCaptions({whisperWebGpuOutput: transcription});console.log(captions);```-[`downloadWhisperModel()`](/docs/whisper-webgpu/download-whisper-model) stores model files in the persistent cache without initializing WebGPU. Call [`loadWhisperModel()`](/docs/whisper-webgpu/load-whisper-model) when you want to initialize the model explicitly.+[`downloadWhisperModel()`](/docs/whisper-webgpu/download-whisper-model) stores model files in the persistent cache. Call [`loadWhisperModel()`](/docs/whisper-webgpu/load-whisper-model) when you want to initialize the model explicitly.See [Using `@remotion/whisper-webgpu` in Node.js](/docs/whisper-webgpu/node) for a complete Node.js example.diff --git a/packages/docs/docs/whisper-webgpu/table-of-contents.tsx b/packages/docs/docs/whisper-webgpu/table-of-contents.tsxindex 4859bc19c7..bf8c6938ab 100644--- a/packages/docs/docs/whisper-webgpu/table-of-contents.tsx+++ b/packages/docs/docs/whisper-webgpu/table-of-contents.tsx@@ -27,7 +27,7 @@ export const TableOfContents: React.FC = () => {</TOCItem><TOCItem link="/docs/whisper-webgpu/download-whisper-model"><strong>downloadWhisperModel()</strong>- <div>Download a model without initializing WebGPU</div>+ <div>Download a model</div></TOCItem><TOCItem link="/docs/whisper-webgpu/load-whisper-model"><strong>loadWhisperModel()</strong>diff --git a/packages/video-matting/src/test/model-runtime.test.ts b/packages/video-matting/src/test/model-runtime.test.tsindex c17d32e411..fa0b189863 100644--- a/packages/video-matting/src/test/model-runtime.test.ts+++ b/packages/video-matting/src/test/model-runtime.test.ts@@ -231,7 +231,7 @@ beforeEach(async () => {Object.assign(transformersEnvironment, originalTransformersEnvironment);});-test('downloads without initializing WebGPU, then initializes from the cached files', async () => {+test('downloads a model, then initializes from the cached files', async () => {checkDownloadedFiles = true;transformersEnvironment.useCustomCache = false;transformersEnvironment.useBrowserCache = true;