modosaic.depth.generators.factory¶
modosaic.depth.generators.factory ¶
DepthGenerationModel ¶
Bases: Enum
Depth generator implementations supported by the factory.
DepthGeneratorFactory ¶
Factory for depth generator implementations.
get
staticmethod
¶
get(depth_model=DepthGenerationModel.DEPTH_ANYTHING_V2_SMALL)
Create a depth generator.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
depth_model
|
DepthGenerationModel
|
Model implementation to instantiate. |
DEPTH_ANYTHING_V2_SMALL
|
Returns:
| Type | Description |
|---|---|
DepthGenerator
|
Configured depth generator. |
Raises:
| Type | Description |
|---|---|
ValueError
|
If the model is unsupported. |
Source code in modosaic/depth/generators/factory.py
29 30 31 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 57 | |