Skip to content
Snippets Groups Projects
Commit 7a46e5b6 authored by mhz1g21's avatar mhz1g21
Browse files

Add MBDNet tab to GUI and update file paths in scene completion script

parent 14ce3bc1
No related branches found
No related tags found
2 merge requests!14Creating mbdnet tab,!13Creating mbdnet tab
......@@ -9,6 +9,7 @@ from tabs.depth_tab import DepthTab
from tabs.material_tab import MaterialTab
from tabs.edge_net_tab import EdgeNetTab
from utils.config_reader import ConfigReader
from tabs.mbdnet_tab import MBDNetTab
class ModuleDebugGUI(QMainWindow):
def __init__(self):
......@@ -43,6 +44,7 @@ class ModuleDebugGUI(QMainWindow):
self.tabs.addTab(DepthTab(self.config_reader), "MonoDepth Estimation")
self.tabs.addTab(MaterialTab(self.config_reader), "Material Recognition")
self.tabs.addTab(EdgeNetTab(self.config_reader), "EdgeNet Execution")
self.tabs.addTab(MBDNetTab(self.config_reader), "MBDNet Execution")
def main():
app = QApplication(sys.argv)
......
This diff is collapsed.
......@@ -4,11 +4,15 @@ from scp import SCPClient
import os
import subprocess
import time
import sys
load_dotenv()
hostname = os.getenv("HOSTNAME")
username = os.getenv("USERNAME")
#username = os.getenv("USERNAME")
password = os.getenv("PASSWORD")
# hostname = "soton.ac.uk"
username = "kproject"
# password = "i7-13700H"
def send_files(shifted_disparity_path, shifted_t_path):
# sends two files needed to iridis
......@@ -110,12 +114,15 @@ def get_completed_scene(shifted_disparity_path, shifted_t_path):
print(output)
remote_file_path = "/mainfs/ECShome/kproject/mona/MDBNet360_GDP/output/scene_completed_prediction.obj"
local_file_path = "edgenet-360/Data/Input/scene_completed_prediction.obj"
current_dir = os.getcwd()
parent_dir = os.path.dirname(current_dir)
local_file_folder = os.path.join(parent_dir, "edgenet-360/Output")
local_file_path = os.path.join(local_file_folder,"scene_completed_prediction.obj")
with SCPClient(client.get_transport()) as scp:
scp.get(remote_file_path, local_file_path) # Download file
remote_file_path = "/mainfs/ECShome/kproject/mona/MDBNet360_GDP/output/scene_completed_prediction.mtl"
local_file_path = "edgenet-360/Data/Input/scene_completed_prediction.mtl"
local_file_path = os.path.join(local_file_folder,"scene_completed_prediction.mtl")
with SCPClient(client.get_transport()) as scp:
scp.get(remote_file_path, local_file_path) # Download file
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment