@stream-io/video-filters-web 0.7.0 → 0.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1559,7 +1559,7 @@ const createTFLiteSIMDModule = (__Module) => {
1559
1559
  return __Module.ready;
1560
1560
  };
1561
1561
 
1562
- const version = "0.7.0";
1562
+ const version = "0.7.1";
1563
1563
  const packageName = "@stream-io/video-filters-web";
1564
1564
 
1565
1565
  // @ts-expect-error - module is not declared
@@ -1591,7 +1591,7 @@ const fetchModel = async (modelFilePath) => {
1591
1591
  let lastModelFilePath = '';
1592
1592
  let modelFileCache;
1593
1593
  const loadMediaPipe = async (options = {}) => {
1594
- const { basePath = `https://unpkg.com/${packageName}@${version}/mediapipe`, modelPath = `${basePath}/models/selfie_segmenter.tflite`, } = options;
1594
+ const { basePath = `https://unpkg.com/${packageName}@${version}/mediapipe`, modelPath = `${basePath}/models/selfie_segmenter_landscape.tflite`, } = options;
1595
1595
  const model = modelPath === lastModelFilePath && modelFileCache
1596
1596
  ? modelFileCache
1597
1597
  : await fetch(modelPath).then((r) => r.arrayBuffer());
@@ -2578,7 +2578,8 @@ class VirtualBackground extends BaseVideoProcessor {
2578
2578
  this.opts = await this.initializeSegmenterOptions();
2579
2579
  const basePath = this.options.basePath ||
2580
2580
  `https://unpkg.com/${packageName}@${version}/mediapipe`;
2581
- const model = this.options.modelPath || `${basePath}/models/selfie_segmenter.tflite`;
2581
+ const model = this.options.modelPath ||
2582
+ `${basePath}/models/selfie_segmenter_landscape.tflite`;
2582
2583
  const fileset = await FilesetResolver.forVisionTasks(`${basePath}/wasm`);
2583
2584
  this.segmenter = await ImageSegmenter.createFromOptions(fileset, {
2584
2585
  baseOptions: { modelAssetPath: model, delegate: 'GPU' },