|
facebook360_dep
Facebook360 Depth Estimation Pipeline
|
Classes | |
| class | ViewerHandler |
Functions | |
| def | start_registry (client) |
| def | build (client, docker_img) |
| def | push (client, docker_img) |
| def | create_viewer_watchdog (client, ipc_dir, local_project_root) |
| def | run_ui (client, docker_img) |
| def | setup_local_gpu () |
| def | main (argv) |
Variables | |
| dir_scripts = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) | |
| dir_root = os.path.dirname(dir_scripts) | |
| FLAGS = flags.FLAGS | |
| container_name = None | |
| autoreset | |
| def scripts.render.run.build | ( | client, | |
| docker_img | |||
| ) |
Builds the Docker image.
Args:
client (DockerClient): Docker client configured to the host environment.
docker_img (str): Name of the Docker image.
Raises:
Exception: If Docker encounters an issue during the build.
| def scripts.render.run.create_viewer_watchdog | ( | client, | |
| ipc_dir, | |||
| local_project_root | |||
| ) |
Sets up the Watchdog to monitor the files used to remotely call the viewers.
Args:
client (DockerClient): Docker client configured to the host environment.
ipc_dir (str): Directory where the files used to signal to the Watchdog reside.
local_project_root (str): Path of the project on the host.
| def scripts.render.run.main | ( | argv | ) |
Builds the Docker container corresponding to the project and starts the UI.
Upon exiting the UI, the script will terminate. Similarly, exiting the script
will terminate the UI.
Args:
argv (list[str]): List of arguments (used interally by abseil).
| def scripts.render.run.push | ( | client, | |
| docker_img | |||
| ) |
Pushes the Docker image to the local registry.
Args:
client (DockerClient): Docker client configured to the host environment.
docker_img (str): Name of the Docker image.
Raises:
Exception: If Docker encounters an issue during the push.
| def scripts.render.run.run_ui | ( | client, | |
| docker_img | |||
| ) |
Starts the UI.
Args:
client (DockerClient): Docker client configured to the host environment.
docker_img (str): Name of the Docker image.
| def scripts.render.run.setup_local_gpu | ( | ) |
| def scripts.render.run.start_registry | ( | client | ) |
Starts a local Docker registry. If a registry already exists, nothing happens.
Args:
client (DockerClient): Docker client configured to the host environment.
| scripts.render.run.autoreset |
| scripts.render.run.container_name = None |
| scripts.render.run.dir_root = os.path.dirname(dir_scripts) |
| scripts.render.run.dir_scripts = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) |
| scripts.render.run.FLAGS = flags.FLAGS |
1.8.15