phiph commited on
Commit
db5acd6
·
verified ·
1 Parent(s): dc4763f

Update script.js

Browse files
Files changed (1) hide show
  1. script.js +2 -0
script.js CHANGED
@@ -27,6 +27,7 @@ async function init() {
27
  depth_estimator = await pipeline('depth-estimation', MODEL_ID, {
28
  device: 'webgpu',
29
  dtype: 'fp32', // Important: Model is FP32
 
30
  });
31
 
32
  statusElement.textContent = 'Model loaded. Ready.';
@@ -40,6 +41,7 @@ async function init() {
40
  depth_estimator = await pipeline('depth-estimation', MODEL_ID, {
41
  device: 'wasm',
42
  dtype: 'fp32',
 
43
  });
44
  statusElement.textContent = 'Model loaded (WASM). Ready.';
45
  runBtn.disabled = false;
 
27
  depth_estimator = await pipeline('depth-estimation', MODEL_ID, {
28
  device: 'webgpu',
29
  dtype: 'fp32', // Important: Model is FP32
30
+ quantized: false
31
  });
32
 
33
  statusElement.textContent = 'Model loaded. Ready.';
 
41
  depth_estimator = await pipeline('depth-estimation', MODEL_ID, {
42
  device: 'wasm',
43
  dtype: 'fp32',
44
+ quantized: false
45
  });
46
  statusElement.textContent = 'Model loaded (WASM). Ready.';
47
  runBtn.disabled = false;