INNER CODE UNIT · Python

DepthScene

BrokenSource/DepthFlow · depthflow/scene.py:26

class DepthScene(ShaderScene):

    state: DepthState = Factory(DepthState)
    """Parallax shader uniform values"""

    estimator: DepthEstimator = Factory(DepthAnythingV2)
    """Model used to estimate depthmaps from input images"""

    def smartset(self, object: Any) -> Any:
        if isinstance(object, DepthEstimator):
            self.estimator = object
        elif isinstance(object, DepthState):
            self.state = object
        return object

    # ------------------------------------------------------------------------ #

    def commands(self):

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…