unitorch.cli.models.dpt¤
DPTProcessor¤
Tip
core/process/dpt is the section for configuration of DPTProcessor.
Bases: DPTProcessor
DPT processor for depth estimation tasks.
Source code in src/unitorch/cli/models/dpt/processing.py
20 21 22 23 24 25 26 | |
from_config
classmethod
¤
from_config(config, **kwargs)
Source code in src/unitorch/cli/models/dpt/processing.py
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | |
_inputs ¤
_inputs(image: Union[Image, str])
Source code in src/unitorch/cli/models/dpt/processing.py
45 46 47 48 49 50 51 52 53 | |
DPTForDepthEstimation¤
Tip
core/model/dpt is the section for configuration of DPTForDepthEstimation.
Bases: DPTForDepthEstimation
Source code in src/unitorch/cli/models/dpt/modeling.py
24 25 26 27 28 29 30 | |
from_config
classmethod
¤
from_config(config, **kwargs)
Source code in src/unitorch/cli/models/dpt/modeling.py
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 | |
forward ¤
forward()
Source code in src/unitorch/cli/models/dpt/modeling.py
58 59 60 61 | |
segment ¤
segment(pixel_values: Tensor)
Source code in src/unitorch/cli/models/dpt/modeling.py
63 64 65 66 67 68 69 70 71 72 73 74 75 | |