Skip to content

Latest commit

 

History

History
64 lines (41 loc) · 2.15 KB

File metadata and controls

64 lines (41 loc) · 2.15 KB

README

About

This package is providing depth estimation using relative depth estimation models.
This depth estimation is implemented based on Sentis.

Environment

These packages work on Unity 2023.2 (Unity 6) or later.

License

Copyright © 2024 HoloLab Inc.
Distributed under the MIT License.

Which Models Are Supported

Note

DepthEstimationModel class supports general relative depth estimation models with input shape is NCHW and output shape is 1 x 1 x height x width.

The following models are expected to works.
Please export trained weights to ONNX format.

How To Add Package

Please add package in one of the following methods.

  • Package Manager

    1. [Window]>[Package Manager]
    2. [+]>[Add package from git URL...]
    3. Add the following URLs
      • https://github.com/HoloLabInc/HoloLabDnnPackages.git?path=packages/jp.co.hololab.dnn.base
      • https://github.com/HoloLabInc/HoloLabDnnPackages.git?path=packages/jp.co.hololab.dnn.depthestimation
  • Packages/manifest.json

    1. Open Packages/manifest.json file using text editor
    2. Add the following lines in dependencies
      "jp.co.hololab.dnn.base": "https://github.com/HoloLabInc/HoloLabDnnPackages.git?path=packages/jp.co.hololab.dnn.base",
      "jp.co.hololab.dnn.depthestimation": "https://github.com/HoloLabInc/HoloLabDnnPackages.git?path=packages/jp.co.hololab.dnn.depthestimation",
      

How To Use

Please see samples.

How To Build

Note

This setting is automatically by editor extension when importing jp.co.hololab.dnn.base package.

This package depends on BaseModel/PreProcess shader of jp.co.hololab.dnn.base.
Please add BaseModel/PreProcess shader to Always Included Shaders before building your application.

  1. [Edit]>[Project Settings]
  2. [Graphics]>[Always Included Shaders]
  3. increment size and set BaseModel/PreProcess shader to new element

Always Included Shaders