DepthPro2 / app.py

Commit History

Today

  1. Video: return H.264 re-encoded source alongside depth (input window playable for HEVC uploads)

    akhaliq HF Staff
    Verified signature
    59ee84a
  2. Compact depth PNG (1024px, in-memory) for a smaller data URI

    akhaliq HF Staff
    Verified signature
    e6ce011
  3. Return {"image_data": data-uri} dicts (gradio-safe passthrough, P-Image-OSS pattern)

    akhaliq HF Staff
    Verified signature
    85b3388
  4. predict_depth returns inline data URI; request ground truth logged

    akhaliq HF Staff
    Verified signature
    6df2866
  5. Return depth inline as data URIs (no /gradio_api/file hop); log request ground truth

    akhaliq HF Staff
    Verified signature
    3d803cb
  6. Clear gr.Error for unreadable uploads

    akhaliq HF Staff
    Verified signature
    ca006c6
  7. Fix client version: @gradio/client@2.7.1 (npm versioning; 6.32.0 never existed)

    akhaliq HF Staff
    Verified signature
    babd6b4
  8. Self-host @gradio/client: download at startup, serve same-origin at /gradio-client.js

    akhaliq HF Staff
    Verified signature
    d1846d3
  9. ZeroGPU-friendly compute caps: CUDA at startup, 1536px images, 60 frames at 960px, tighter durations

    akhaliq HF Staff
    Verified signature
    afa74dd
  10. Explicit gr.Request in api handlers (ZeroGPU token forwarding in Server mode)

    akhaliq HF Staff
    Verified signature
    ffd1a97
  11. Write outputs beside the uploaded input so Gradio serves them (fixes 404 on depth URL)

    akhaliq HF Staff
    Verified signature
    e1950cc
  12. Load backbone + focal estimator from the Hub (fixes truncated CDN checkpoint)

    akhaliq HF Staff
    Verified signature
    54be9ba
  13. Switch to gradio.Server mode: @app .api endpoints + custom HTML front page with comparison slider

    akhaliq HF Staff
    Verified signature
    b9f01b8
  14. Load via create_model_and_transforms so the focal estimator is included (fixes depth=None)

    akhaliq HF Staff
    Verified signature
    84501a5
  15. Replace matplotlib colormap with numpy LUT (fixes No module named matplotlib.colormaps)

    akhaliq HF Staff
    Verified signature
    1feea84
  16. Gradio demo: Depth Pro 2 image and video metric depth

    akhaliq HF Staff
    Verified signature
    c66ee68