facebook360_dep
Facebook360 Depth Estimation Pipeline
Namespaces | Functions | Variables
common.py File Reference

Namespaces

 common
 

Functions

def common.init (parent)
 
def common.setup_aws_config (parent)
 
def common.setup_farm (parent)
 
def common.get_tooltip (parent, app_name)
 
def common.initialize_paths (parent)
 
def common.setup_logs (parent)
 
def common.setup_flagfile_tab (parent)
 
def common.setup_file_explorer (parent)
 
def common.preview_file (parent)
 
def common.switch_ui_elements_for_processing (parent, gb, state)
 
def common.cancel_process (parent)
 
def common.is_cloud_running_process (parent)
 
def common.sync_with_s3 (parent, gb, subdirs)
 
def common.on_process_finished (parent, p_id)
 
def common.populate_dropdown (parent, gb, dd)
 
def common.populate_dropdowns (parent, gb, dd_first=None)
 
def common.refresh_data (parent)
 
def common.update_flagfile_edit (parent, flagfile_fn, switch_to_flag_tab=False)
 
def common.update_data_or_flags (parent, flagfile_fn, flagfile_from_data, switch_to_flag_tab=False)
 
def common.sync_data_and_flagfile (parent, flagfile_fn, set_label=True, switch_to_flag_tab=False)
 
def common.disable_tab_if_no_data (parent, btn_run)
 
def common.setup_project (parent, mkdirs=False)
 
def common.save_flag_file (parent, flagfile_fn)
 
def common.update_flagfile (parent, flagfile_fn)
 
def common.retrieve_missing_flagfiles (parent)
 
def common.add_default_flags (parent)
 
def common.get_calibrated_rig_json (parent)
 
def common.update_run_button_text (parent, btn)
 
def common.update_buttons (parent, gb, ignore=None)
 
def common.on_changed_dropdown (parent, gb, dd)
 
def common.on_changed_line_edit (parent, gb, le)
 
def common.setup_groupbox (gb, callbacks)
 
def common.setup_checkboxes (gb, callbacks)
 
def common.setup_dropdowns (parent, gb)
 
def common.setup_lineedits (parent, gb)
 
def common.setup_buttons (parent, gb, callbacks)
 
def common.on_changed_preview (parent)
 
def common.setup_preview (parent)
 
def common.setup_data (parent, callbacks=None)
 
def common.update_noise_detail (parent, noise, detail)
 
def common.update_fg_masks_thresholds (parent, blur, closing, thresh)
 
def common.log_missing_image (parent, path_color, cam_id, frame)
 
def common.update_thresholds_color_variance (parent, path_color, labels=None)
 
def common.update_thresholds_fg_mask (parent, paths_color)
 
def common.run_thresholds_after_wait (parent, type)
 
def common.run_thresholds (parent, type)
 
def common.output_has_images (output_dirs)
 
def common.run_process_check_existing_output (parent, gb, app_name, flagfile_fn, p_id)
 
def common.start_process (parent, cmd, gb, p_id, run_silently=False)
 
def common.run_process (parent, gb, app_name=None, flagfile_fn=None, p_id="run", overwrite=False)
 
def common.update_thresholds (parent, gb, type)
 
def common.on_state_changed_partial_360 (parent)
 
def common.on_state_changed_recompute (parent)
 
def common.on_state_changed_use_bg (parent, gb)
 
def common.on_state_changed_farm (parent, state)
 
def common.setup_thresholds (parent, types)
 
def common.setup_thresholds_color_variance (parent)
 
def common.setup_thresholds_fg_masks (parent)
 
def common.update_data_from_flags (parent, flags, dropdowns=None, values=None, checkboxes=None, labels=None, prefix=None)
 
def common.get_notation (parent, attr)
 
def common.on_changed_slider (parent, slider, value)
 
def common.initialize_farm_groupbox (parent)
 
def common.show_resources (parent)
 
def common.show_aws_resources (parent)
 
def common.get_aws_workers ()
 
def common.set_aws_workers (workers)
 
def common.popup_ec2_dashboard_url (parent)
 
def common.popup_logs_locations (parent)
 
def common.run_process_aws (parent, gb, p_id=None)
 
def common.on_download_meshes (parent, gb)
 
def common.on_terminate_cluster (parent, gb)
 
def common.get_workers (parent)
 
def common.call_force_refreshing (parent, fun, *args)
 

Variables

 common.dir_scripts = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
 
 common.dir_root = os.path.dirname(dir_scripts)
 
 common.script_dir = os.path.dirname(os.path.realpath(__file__))
 
 common.scripts_dir = os.path.abspath(os.path.join(script_dir, os.pardir))
 
 common.dep_dir = os.path.join(scripts_dir, os.pardir)
 
 common.dep_bin_dir = os.path.join(dep_dir, "build", "bin")
 
 common.dep_res_dir = os.path.join(dep_dir, "res")
 
 common.dep_flags_dir = os.path.join(dep_res_dir, "flags")
 
 common.exist_ok
 
 common.source_root = os.path.join(dep_dir, "source")
 
 common.depth_est_src = os.path.join(source_root, "depth_estimation")
 
 common.render_src = os.path.join(source_root, "render")
 
 common.render_scripts = os.path.join(scripts_dir, "render")
 
string common.type_color_var = "color_variance"
 
string common.type_fg_mask = "fg_mask"
 
dictionary common.threshold_sliders