ZoeDepth NYU

ZOEDEPTH_NYU

Measures how far away every point of an indoor photo is, in metres (up to 10 m).

Utilitiesdepth-estimationmetric-depthindoormitFine-tunable
ZoeDepth NYU: Utilities model on Kainguru

About ZoeDepth NYU

Capabilities

  • Metric depth — the distance of every pixel in metres, as a 16-bit PNG in millimetres
  • Indoor scenes — trained on rooms and other indoor spaces up to 10 m deep
  • Colour preview — a colour depth map for viewing, near is bright
  • Fine-tuning — adapt it to your camera and scenes with your own photo and depth-map pairs

Good to know

  • Indoor scenes; anything beyond 10 m reads as 10 m.
  • Fine-tuning learns depths from 0.001 to 10 m only; farther pixels in a training depth map are ignored.
  • Training pairs are centre-cropped to 512 x 384 pixels; a pair with fewer than 16 pixels of usable depth there is left out.
  • Training photos are as for a run: PNG, JPEG or WebP, at most 50 MB and 40 megapixels, at least 32 pixels a side and at most 4:1.
  • Training depth maps are 16-bit grayscale PNGs of their photo's size as displayed, at most 50 MB, holding the distance from the camera (larger = farther, 0 = unknown), never a model's nearness output.
  • In the training ZIP, manifest.jsonl is at most 10 MB and its paths are relative to it.

ZoeDepth NYU inputs and output

NameTypeRequiredDefaultDetails
imagefileYes—The photo: PNG, JPEG or WebP, at most 50 MB and 40 megapixels, at least 32 pixels a side and at most 4:1. The depth map has the photo's size, scaled down to 2048 pixels on the longer side.
1–2048 characters · image/png, jpeg, webp
outputtextNopng16png16: a 16-bit grayscale PNG with the raw depth (metric models: millimetres; relative models: nearness scaled to 0-65535). colormap: a colour picture for viewing, near is bright.
Allowed: png16, colormap

Output. Returns PNG image: The depth map as a PNG (16-bit grayscale or a colour picture, as chosen in output).

Run ZoeDepth NYU with the API

Send your API key in the X-API-Key header. The run is asynchronous: submit it, then poll it until it finishes. Create an API key.

cURL
curl -X POST "https://api.kainguru.com/api/v1/executions?mlFlowId=ZOEDEPTH_NYU" \
  -H "X-API-Key: kg_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "image": "https://example.com/input.png",
    "output": "png16"
  },
  "outputFormat": "json"
}'

# Poll until the execution reaches a terminal state
curl "https://api.kainguru.com/api/v1/executions/{executionId}" \
  -H "X-API-Key: kg_your_api_key"
Python
from kainguru import KainguruClient

with KainguruClient(api_key="kg_your_api_key", base_url="https://api.kainguru.com/api") as client:
    submitted = client.executions.execute(
        "ZOEDEPTH_NYU",
        {
          "image": "https://example.com/input.png",
          "output": "png16"
        },
        output_format="json",
    )
    result = client.executions.await_completion(submitted.id)
    print(result.execution.output)

Fine-tune ZoeDepth NYU

You can fine-tune ZoeDepth NYU on your own data and run the tuned model through the same API. Dataset: One ZIP (at most 4 GB, 5000 entries, no password) with 4 to 1000 photos, a depth map for each and a manifest.jsonl with one {"file", "depth"} line per pair. Depth maps are 16-bit grayscale PNGs of distance. More rules: Good to know, in the README.

The steps are in the docs.

ZoeDepth NYU pricing

Price per image: 0.0418 credits ($0.000418). The price is shown again before every run; all prices are on the pricing page.

Licence and source

MoGe-2 ViT-L Normal: Utilities model on Kainguru
Utilities

MoGe-2 ViT-L Normal

Estimates metric depth, surface normals and the camera's field of view from a single photo of any scene, indoors or out.

Fine-tunable
BiRefNet General: Utilities model on Kainguru
Utilities

BiRefNet General

Removes the background from a photo and returns the subject on a transparent background, or as a black-and-white mask.

Fine-tunable
Cloth Segmentation U2-Net: Utilities model on Kainguru
Utilities

Cloth Segmentation U2-Net

Finds the clothes a person wears in a photo and returns a mask for the upper body, the lower body and full-body…

Fine-tunable
Depth Anything v2 Small: Utilities model on Kainguru
Utilities

Depth Anything v2 Small

Turns any photo into a depth map that shows which parts are near and which are far.

Fine-tunable
EoMT Large COCO Panoptic: Utilities model on Kainguru
Utilities

EoMT Large COCO Panoptic

Splits a picture into its objects and regions, such as people, cars, sky and road, with a label and a mask for each one.

Fine-tunable
InSPyReNet: Utilities model on Kainguru
Utilities

InSPyReNet

Removes the background from a photo with fine detail at hair and edges, and returns the subject on a transparent…

Fine-tunable