Skip to content

File: DepthFlow/__main__.py

DepthFlow.__main__

depthflow

depthflow() -> None

🚀 Run DepthFlow's [bold green]Command line interface[/]

Source code in Projects/DepthFlow/DepthFlow/__main__.py
6
7
8
9
def depthflow() -> None:
    """🚀 Run DepthFlow's [bold green]Command line interface[/]"""
    from DepthFlow.Scene import DepthScene
    DepthScene().cli(*sys.argv[1:])

gradio

gradio() -> None

🎓 Run DepthFlow's [bold green]Gradio user interface[/]

Source code in Projects/DepthFlow/DepthFlow/__main__.py
11
12
13
14
def gradio() -> None:
    """🎓 Run DepthFlow's [bold green]Gradio user interface[/]"""
    from DepthFlow.Webui import DepthGradio
    BrokenTyper.simple(DepthGradio().launch)

server

server() -> None

🌐 Run DepthFlow's [bold green]API Server[/]

Source code in Projects/DepthFlow/DepthFlow/__main__.py
16
17
18
19
def server() -> None:
    """🌐 Run DepthFlow's [bold green]API Server[/]"""
    from DepthFlow.Server import DepthServer
    DepthServer().cli(*sys.argv[1:])

main

main() -> None
Source code in Projects/DepthFlow/DepthFlow/__main__.py
21
22
23
24
25
26
27
def main() -> None:
    with BrokenProfiler("DEPTHFLOW"):
        BrokenTyper.complex(
            main=depthflow,
            nested=(depthflow, gradio, server),
            direct=BrokenTorch.install,
        )