Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
AVVR-Pipeline-GDP4
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GDP Project 4
AVVR-Pipeline-GDP4
Commits
7a46e5b6
Commit
7a46e5b6
authored
5 months ago
by
mhz1g21
Browse files
Options
Downloads
Patches
Plain Diff
Add MBDNet tab to GUI and update file paths in scene completion script
parent
14ce3bc1
No related branches found
No related tags found
Loading
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
scripts/debug_tool/GUI_debug.py
+2
-0
2 additions, 0 deletions
scripts/debug_tool/GUI_debug.py
scripts/debug_tool/tabs/mbdnet_tab.py
+505
-0
505 additions, 0 deletions
scripts/debug_tool/tabs/mbdnet_tab.py
scripts/scene_completion.py
+10
-3
10 additions, 3 deletions
scripts/scene_completion.py
with
517 additions
and
3 deletions
scripts/debug_tool/GUI_debug.py
+
2
−
0
View file @
7a46e5b6
...
...
@@ -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.
Click to expand it.
scripts/debug_tool/tabs/mbdnet_tab.py
0 → 100644
+
505
−
0
View file @
7a46e5b6
This diff is collapsed.
Click to expand it.
scripts/scene_completion.py
+
10
−
3
View file @
7a46e5b6
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment