Xenova HF staff commited on
Commit
0d8d94e
1 Parent(s): d0c64dd

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -15
README.md CHANGED
@@ -22,21 +22,7 @@ const depth_estimator = await pipeline('depth-estimation', 'onnx-community/depth
22
 
23
  // Predict depth of an image
24
  const url = 'https://huggingface.co/datasets/Xenova/transformers.js-docs/resolve/main/cats.jpg';
25
- const { predicted_depth, depth } = await depth_estimator(url);
26
- // {
27
- // predicted_depth: Tensor {
28
- // dims: [ 518, 686 ],
29
- // type: 'float32',
30
- // data: Float32Array(147456) [ ... ],
31
- // size: 355348
32
- // },
33
- // depth: RawImage {
34
- // data: Uint8Array(307200) [ ... ],
35
- // width: 640,
36
- // height: 480,
37
- // channels: 1
38
- // }
39
- // }
40
 
41
  // Visualize the output
42
  depth.save('depth.png');
 
22
 
23
  // Predict depth of an image
24
  const url = 'https://huggingface.co/datasets/Xenova/transformers.js-docs/resolve/main/cats.jpg';
25
+ const { depth } = await depth_estimator(url);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
26
 
27
  // Visualize the output
28
  depth.save('depth.png');