|
facebook360_dep
Facebook360 Depth Estimation Pipeline
|
Public Attributes | |
| parent | |
| tag | |
| dlg | |
| aws_staging_ip | |
| log_reader | |
| output_dirs | |
Tab in UI responsible for depth estimates on video frames.
Attributes:
aws_staging_ip (str): IP of the staging machine (used for starting the Kubernetes cluster).
dlg (App(QDialog)): Main dialog box for the app initialized by QT.
is_farm (bool): Whether or not this is a farm render.
is_refreshing_data (bool): Whether or not the data is currently being updated.
log_reader (LogReader(QtCore.QObject)): Object to interact with UI logging system.
output_dirs (list[str]): List of directories where outputs will be saved.
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 depth_estimation.DepthEstimation.__init__ | ( | self, | |
| parent | |||
| ) |
Initializes the DepthEstimation tab.
Args:
parent (App(QDialog)): Object corresponding to the parent UI element.
| def depth_estimation.DepthEstimation.add_data_type_validators | ( | self | ) |
Adds validators for UI elements.
| def depth_estimation.DepthEstimation.add_default_flags | ( | self | ) |
Retrieves the default flags to the local flagfile.
| def depth_estimation.DepthEstimation.cancel_process | ( | self | ) |
Stops a running process.
| def depth_estimation.DepthEstimation.disable_tab_if_no_data | ( | self | ) |
Prevents navigation to the tab if the required data is not present.
| def depth_estimation.DepthEstimation.get_color_frames | ( | self, | |
| color_type, | |||
| suffix | |||
| ) |
| def depth_estimation.DepthEstimation.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 depth_estimation.DepthEstimation.get_logs | ( | self | ) |
| def depth_estimation.DepthEstimation.initialize_paths | ( | self | ) |
Initializes paths for scripts and flags.
| def depth_estimation.DepthEstimation.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 depth_estimation.DepthEstimation.on_changed_flagfile_edit | ( | self | ) |
Callback event handler for flagfile edits.
| def depth_estimation.DepthEstimation.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 depth_estimation.DepthEstimation.on_changed_preview | ( | self | ) |
Callback event handler for changed image previews.
| def depth_estimation.DepthEstimation.on_changed_slider | ( | self, | |
| slider, | |||
| value | |||
| ) |
Callback event handler for changes to a slider UI element.
Args:
slider (QtWidgets.QSlider): Slider UI element.
value (int/float): Value of the slider element.
| def depth_estimation.DepthEstimation.on_ec2_dashboard | ( | self | ) |
| def depth_estimation.DepthEstimation.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 depth_estimation.DepthEstimation.on_state_changed_farm | ( | self, | |
| state | |||
| ) |
Callback event handler for changed "AWS" checkbox.
Args:
state (str): Identifier of the callback state.
| def depth_estimation.DepthEstimation.on_state_changed_partial_360 | ( | self, | |
| state | |||
| ) |
Callback event handler for changed "partial coverage" checkbox.
Args:
state (str): Identifier of the callback state.
| def depth_estimation.DepthEstimation.on_state_changed_recompute | ( | self | ) |
Callback event handler for changed "recompute" checkbox.
| def depth_estimation.DepthEstimation.on_state_changed_use_bg | ( | self, | |
| state | |||
| ) |
Callback event handler for changed "use background" checkbox.
Args:
state (str): Identifier of the callback state.
| def depth_estimation.DepthEstimation.on_terminate_cluster | ( | self | ) |
Terminates a running cluster.
| def depth_estimation.DepthEstimation.populate_dropdowns | ( | self, | |
| gb | |||
| ) |
Populates the dropdowns in the tab.
Args:
gb (QtWidgets.QGroupBox): Group box for the tab.
| def depth_estimation.DepthEstimation.refresh | ( | self | ) |
Resets the UI tab to its start state.
| def depth_estimation.DepthEstimation.refresh_data | ( | self | ) |
Updates UI elements to be in sync with data on disk.
| def depth_estimation.DepthEstimation.replace_with_host_path | ( | self, | |
| flags, | |||
| fields | |||
| ) |
Replaces all references to local paths with their default Docker mounted locations.
This is only relevant for SMB (local farm) renders.
Args:
flags (dict[str, str]): Data where fields are to be replaced.
fields (list[str]): Names of flags to be updated.
| def depth_estimation.DepthEstimation.reset_run_button_text | ( | self | ) |
| def depth_estimation.DepthEstimation.retrieve_missing_flagfiles | ( | self | ) |
Copies the missing flagfiles to project for local modification.
| def depth_estimation.DepthEstimation.run_process | ( | self | ) |
Runs the default binary associated with the tab.
| def depth_estimation.DepthEstimation.run_thresholds | ( | self, | |
| type | |||
| ) |
Runs thresholding based on values in the UI and update UI display.
Args:
type (str): Type of threshold to run (either "color_variance" or "fg_mask").
| def depth_estimation.DepthEstimation.run_thresholds_after_wait | ( | self, | |
| type | |||
| ) |
Computes the threshold and displays after a delay.
Args:
type (str): Type of threshold to run (either "color_variance" or "fg_mask").
| def depth_estimation.DepthEstimation.save_flag_file | ( | self | ) |
Saves flagfile from the UI to disk.
| def depth_estimation.DepthEstimation.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 depth_estimation.DepthEstimation.setup_data | ( | self | ) |
Sets up callbacks and initial UI element statuses.
| def depth_estimation.DepthEstimation.setup_farm | ( | self | ) |
Sets up a Kubernetes farm for AWS renders.
| def depth_estimation.DepthEstimation.setup_flags | ( | self | ) |
Sets up the flags according to the corresponding flagfile.
| def depth_estimation.DepthEstimation.setup_logs | ( | self | ) |
Sets up logging system for dialog on the current tab.
| def depth_estimation.DepthEstimation.setup_project | ( | self, | |
mkdirs = False, |
|||
run_thresholds = True |
|||
| ) |
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.
run_thresholds (bool, optional): Whether or not to run thresholds on start.
| def depth_estimation.DepthEstimation.setup_thresholds | ( | self | ) |
Sets necessary thresholds apps for the tab.
| def depth_estimation.DepthEstimation.setup_thresholds_color_variance | ( | self | ) |
Sets color variance thresholds apps for the tab.
| def depth_estimation.DepthEstimation.setup_thresholds_fg_masks | ( | self | ) |
Sets up the default thresholds on foreground masks.
| def depth_estimation.DepthEstimation.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 depth_estimation.DepthEstimation.sync_with_s3 | ( | self | ) |
Syncs data available locally with the S3 bucket.
| def depth_estimation.DepthEstimation.update_bg_checkbox | ( | self | ) |
Enables background selection if frames are present.
| def depth_estimation.DepthEstimation.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 depth_estimation.DepthEstimation.update_data_from_flags | ( | self, | |
| flags | |||
| ) |
Updates UI elements from the flags.
Args:
flags (dict[str, _]): Flags corresponding to the tab default binary.
| def depth_estimation.DepthEstimation.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 depth_estimation.DepthEstimation.update_fg_masks_thresholds | ( | self, | |
| blur, | |||
| closing, | |||
| thresh | |||
| ) |
Updates thresholds and display for the foreground masking.
Args:
blur (int, optional): Gaussian blur radius.
closing (int, optional): Closure (for sealing holes).
thresh (int, optional): Threshold applied to segment foreground and background
| def depth_estimation.DepthEstimation.update_flagfile | ( | self, | |
| flagfile_fn | |||
| ) |
Updates the flagfile from UI elements.
Args:
flagfile_fn (str): Name of the flagfile.
| def depth_estimation.DepthEstimation.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 depth_estimation.DepthEstimation.update_flags_from_data | ( | self, | |
| flags | |||
| ) |
Updates flags from the UI elements.
Args:
flags (dict[str, _]): Flags corresponding to the tab default binary.
| def depth_estimation.DepthEstimation.update_frame_names | ( | self | ) |
Updates dropdowns to account for available frames (on S3 or locally).
| def depth_estimation.DepthEstimation.update_frame_range_dropdowns | ( | self | ) |
Updates ranges displayed in dropdowns per available files on disk.
| def depth_estimation.DepthEstimation.update_noise_detail | ( | self, | |
| noise, | |||
| detail | |||
| ) |
Updates noise/detail thresholds interaction.
Args:
noise (float): Noise threshold.
detail (float): Detail threshold.
| def depth_estimation.DepthEstimation.update_run_button_text | ( | self | ) |
Updates the text of the Run button depending on the existance of a process running on the cloud
| def depth_estimation.DepthEstimation.update_thresholds | ( | self, | |
| type | |||
| ) |
Updates flagfile threshold values per UI elements.
Args:
type (str): Type of threshold to run (either "color_variance" or "fg_mask").
| def depth_estimation.DepthEstimation.update_thresholds_color_variance | ( | self | ) |
Updates the displayed thresholds for color variance.
| def depth_estimation.DepthEstimation.update_thresholds_fg_mask | ( | self | ) |
Updates thresholds and display for the foreground masking using values from UI.
| depth_estimation.DepthEstimation.aws_staging_ip |
| depth_estimation.DepthEstimation.dlg |
| depth_estimation.DepthEstimation.log_reader |
| depth_estimation.DepthEstimation.output_dirs |
| depth_estimation.DepthEstimation.parent |
| depth_estimation.DepthEstimation.tag |
1.8.15