Skip to content

Latest commit

 

History

History

depth-pro-node

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

depth-pro-node

This project demonstrates how to use Depth Pro, foundation model for zero-shot metric monocular depth estimation, in a Node.js environment.

Instructions

  1. Clone the repository:
    git clone https://github.com/huggingface/transformers.js-examples.git
  2. Change directory to the depth-pro-node project:
    cd transformers.js-examples/depth-pro-node
  3. Install the dependencies:
    npm install
  4. Run the example:
    node index.js

Results

The following images illustrate the input image and its corresponding depth map generated by the model:

Input Image Depth Map
Input Image Depth Map