facebook360_dep
Facebook360 Depth Estimation Pipeline
|
Public Attributes | |
parent | |
tag | |
dlg | |
is_viewer_rift_hidden | |
is_viewer_smr_hidden | |
formats | |
is_host_linux_gpu | |
is_local_non_win | |
log_reader | |
Tab in UI responsible for producing meshed binaries and other final output formats (e.g. color and disparity equirects) and viewing them in corresponding PC and headset displays. Attributes: dlg (App(QDialog)): Main dialog box for the app initialized by QT. formats (dict[str, str]): Formats that can be rendered given the render configuration. is_farm (bool): Whether or not this is a farm render. is_host_linux_gpu (bool): Whether or not this is a Linux GPU machine or not. is_local_non_win (bool): Whether this is a Windows machine or not. is_viewer_rift_hidden (bool): Whether or not to display the "RiftViewer" button. is_viewer_smr_hidden (bool): Whether or not to display the "SimpleMeshRenderer" button. log_reader (LogReader(QtCore.QObject)): Object to interact with UI logging system. parent (App(QDialog)): Object corresponding to the parent UI element. path_rig_json (str): Path to the rig JSON. tag (str): Semantic name for the tab.
def export.Export.__init__ | ( | self, | |
parent | |||
) |
Initializes the Export tab. Args: parent (App(QDialog)): Object corresponding to the parent UI element.
def export.Export.activate_ipc | ( | self, | |
ipc_name | |||
) |
Runs an application. This only works if the app is set up with a corresponding IPC file that is monitored by the Watchdog (defined in config.py). Args: ipc_name (str): Name of the binary (must be a case in config.get_app_name). Otherwise this is a no-op.
def export.Export.add_data_type_validators | ( | self | ) |
Adds validators for UI elements.
def export.Export.add_default_flags | ( | self | ) |
Retrieves the default flags to the local flagfile.
def export.Export.cancel_process | ( | self | ) |
Stops a running process.
def export.Export.disable_tab_if_no_data | ( | self | ) |
Prevents navigation to the tab if the required data is not present.
def export.Export.get_color_scale | ( | self, | |
dst_width, | |||
color_type | |||
) |
def export.Export.get_ec2_instance_types | ( | self | ) |
Gets valid instances that can be spawned for a job. Returns: list[str]: Names of valid instance types.
def export.Export.get_files | ( | self, | |
tag | |||
) |
Retrieves file names corresponding to the desired attribute. Args: tag (str): Semantic name for the attribute. Returns: list[str]: List of file names. Raises: Exception: If a tag is requested with no associated files.
def export.Export.get_format | ( | self, | |
flags_from_data = True |
|||
) |
Gets format to populate the flagfile. Args: flags_from_data (dict[str, _]): Flags and their values, typically pulled from the UI. Returns: str: Format in the UI that should populate the flagfile.
def export.Export.get_format_from_value | ( | self, | |
value | |||
) |
Gets format to populate the UI from the flagfile. This is needed since the format displayed on the UI and in the internal pipeline differ (for readability). Args: value (str): Value from the flagfile (i.e. eqrcolor). Returns: str: Format to be displayed in the UI (i.e. Equirect Color).
def export.Export.get_frame_names | ( | self | ) |
Finds all the frames in a local directory. Returns: list[str]: Sorted list of frame names in the directory.
def export.Export.get_logs | ( | self | ) |
Callback event handler for clicking the "Logs" button.
def export.Export.get_valid_types | ( | self | ) |
Checks which render types are valid. Returns: list[str]: Subset of ("background", "video") depending on if the corresponding inputs are present.
def export.Export.initialize_paths | ( | self | ) |
Initializes paths for scripts and flags.
def export.Export.initialize_viewer_buttons | ( | self | ) |
Sets up buttons to IPC callbacks on the host.
def export.Export.is_local_render | ( | self | ) |
Whether or not the current render is configured to be performed locally. Returns: bool: If the render will be performed locally.
def export.Export.on_changed_dropdown | ( | self, | |
gb, | |||
dd | |||
) |
Callback event handler for changed dropdown. Args: gb (QtWidgets.QGroupBox): Group box for the tab. dd (QtWidgets.QComboBox): Dropdown UI element.
def export.Export.on_changed_flagfile_edit | ( | self | ) |
Callback event handler for flagfile edits.
def export.Export.on_changed_line_edit | ( | self, | |
gb, | |||
le | |||
) |
Callback event handler for changed line edit. Args: gb (QtWidgets.QGroupBox): Group box for the tab. le (QtWidgets.QLineEdit): Line edit UI element.
def export.Export.on_changed_preview | ( | self | ) |
Callback event handler for changed image previews.
def export.Export.on_download_meshes | ( | self | ) |
Callback event handler for clicking the "Download Meshes" button.
def export.Export.on_ec2_dashboard | ( | self | ) |
Callback event handler for clicking the "EC2 Dashboard" button.
def export.Export.on_process_finished | ( | self, | |
exitCode, | |||
exitStatus, | |||
p_id | |||
) |
Callback event handler for a process completing. Args: exitCode (int): Return code from running the process. exitStatus (str): Description message of process exit. p_id (str): PID of completed process.
def export.Export.on_state_changed_alpha_blend | ( | self | ) |
Callback event handler for changed alpha value.
def export.Export.on_state_changed_farm | ( | self, | |
state | |||
) |
Callback event handler for changed "AWS" checkbox. Args: state (str): Identifier of the callback state.
def export.Export.on_state_changed_recompute | ( | self | ) |
Callback event handler for clicking the "Re-compute" checkbox.
def export.Export.on_terminate_cluster | ( | self | ) |
Terminates a running cluster.
def export.Export.populate_dropdowns | ( | self, | |
gb | |||
) |
Populates the dropdowns in the tab. Args: gb (QtWidgets.QGroupBox): Group box for the tab.
def export.Export.refresh | ( | self | ) |
Resets the UI tab to its start state.
def export.Export.refresh_data | ( | self | ) |
Updates UI elements to be in sync with data on disk.
def export.Export.reset_run_button_text | ( | self | ) |
def export.Export.retrieve_missing_flagfiles | ( | self | ) |
Copies the missing flagfiles to project for local modification.
def export.Export.run_process | ( | self | ) |
Runs the default binary associated with the tab.
def export.Export.save_flag_file | ( | self | ) |
Saves flagfile from the UI to disk.
def export.Export.set_default_top_level_paths | ( | self, | |
mkdirs = False |
|||
) |
Defines class referenceable attributes for paths. See common for full set of definitions. Args: mkdirs (bool, optional): Whether or not to make the defined directories.
def export.Export.setup_aws_config | ( | self | ) |
Configures the AWS credentials.
def export.Export.setup_data | ( | self | ) |
Sets up callbacks and initial UI element statuses.
def export.Export.setup_farm | ( | self | ) |
Sets up a Kubernetes farm for AWS renders.
def export.Export.setup_flags | ( | self | ) |
Sets up the flags according to the corresponding flagfile.
def export.Export.setup_logs | ( | self | ) |
Sets up logging system for dialog on the current tab.
def export.Export.setup_project | ( | self, | |
mkdirs = False |
|||
) |
Retrieves any missing flagfiles and sets the default flags for the tab. Args: mkdirs (bool, optional): Whether or not to make the directories where the outputs are saved by default.
def export.Export.switch_ui_elements_for_processing | ( | self, | |
state | |||
) |
Switches element interaction when processing. Args: state (bool): State to which elements should be changed to (i.e. True for enabled, False for disabled)
def export.Export.sync_with_s3 | ( | self | ) |
Syncs data available locally with the S3 bucket.
def export.Export.update_buttons | ( | self, | |
gb | |||
) |
Enables buttons and dropdowns according to whether or not data is present. Args: gb (QtWidgets.QGroupBox): Group box for the tab.
def export.Export.update_data_from_flags | ( | self, | |
flags | |||
) |
Updates UI elements from the flags. Args: flags (dict[str, _]): Flags corresponding to the tab default binary.
def export.Export.update_data_or_flags | ( | self, | |
flagfile_fn, | |||
flagfile_from_data, | |||
switch_to_flag_tab = False |
|||
) |
Updates the flagfile from the UI elements or vice versa. Args: flagfile_fn (str): Name of the flagfile. flagfile_from_data (bool): Whether to load the flagfile from the data (True) or vice versa (False). switch_to_flag_tab (bool, optional): Whether or not to switch tabs after updating.
def export.Export.update_ec2_dropdown | ( | self | ) |
Displays only valid values in the dropdown for EC2 instance types.
def export.Export.update_file_type | ( | self | ) |
Enables/disables file type depending on the format
def export.Export.update_flagfile | ( | self, | |
flagfile_fn | |||
) |
Updates the flagfile from UI elements. Args: flagfile_fn (str): Name of the flagfile.
def export.Export.update_flagfile_edit | ( | self, | |
flagfile_fn, | |||
switch_to_flag_tab = True |
|||
) |
Updates the edit box for the flagfile. Args: flagfile_fn (str): Name of the flagfile. switch_to_flag_tab (bool, optional): Whether or not to switch tabs after updating.
def export.Export.update_flags_from_data | ( | self, | |
flags | |||
) |
Updates flags from the UI elements. Args: flags (dict[str, _]): Flags corresponding to the tab default binary.
def export.Export.update_frame_range_dropdowns | ( | self | ) |
Updates ranges displayed in dropdowns per available files on disk.
def export.Export.update_label_resolution | ( | self | ) |
def export.Export.update_run_button_text | ( | self | ) |
Updates the text of the Run button depending on the existance of a process running on the cloud
def export.Export.update_viewer_buttons | ( | self | ) |
Only enable viewer buttons based on what is possible from the host, i.e. RiftViewer will be disabled on any non-Windows computer.
export.Export.dlg |
export.Export.formats |
export.Export.is_host_linux_gpu |
export.Export.is_local_non_win |
export.Export.is_viewer_rift_hidden |
export.Export.is_viewer_smr_hidden |
export.Export.log_reader |
export.Export.parent |
export.Export.tag |