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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GDP Project 4
AVVR-Pipeline-GDP4
Commits
561efec1
Commit
561efec1
authored
8 months ago
by
tee1g21
Browse files
Options
Downloads
Patches
Plain Diff
Added upload check
parent
2cd7b157
No related branches found
No related tags found
1 merge request
!5
4.2.2 depth chbox
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/GUI.py
+19
-2
19 additions, 2 deletions
scripts/GUI.py
with
19 additions
and
2 deletions
scripts/GUI.py
+
19
−
2
View file @
561efec1
...
@@ -41,7 +41,13 @@ def select_Image(event):
...
@@ -41,7 +41,13 @@ def select_Image(event):
label
.
configure
(
text
=
"
Image is selected. Press run to create scene.
"
)
label
.
configure
(
text
=
"
Image is selected. Press run to create scene.
"
)
def
depthmap_creation
():
def
depthmap_creation
():
print
(
"
Upload Depth Map:
"
,
check
.
get
())
print
(
"
Manually upload depth map:
"
,
uploadDepthCheck
.
get
())
if
uploadDepthCheck
==
0
:
check
.
set
(
1
)
else
:
check
.
set
(
0
)
#temporary. TODO implement Mona's monodepth upload
def
stanfordRoom_selection
():
def
stanfordRoom_selection
():
if
checkStanford
.
get
()
==
1
:
if
checkStanford
.
get
()
==
1
:
...
@@ -87,6 +93,11 @@ def runProcess():
...
@@ -87,6 +93,11 @@ def runProcess():
print
(
f
"
Attempting to run:
{
combined_bat
}
"
)
print
(
f
"
Attempting to run:
{
combined_bat
}
"
)
print
(
f
"
With arguments:
{
file_path
}
,
{
str
(
check
.
get
())
}
,
{
include_top_option
}
,
{
shift_image_option
}
"
)
print
(
f
"
With arguments:
{
file_path
}
,
{
str
(
check
.
get
())
}
,
{
include_top_option
}
,
{
shift_image_option
}
"
)
if
check
==
1
:
print
(
"
Autodepth map
"
)
else
:
print
(
"
Manual depth map
"
)
p
=
subprocess
.
Popen
(
p
=
subprocess
.
Popen
(
[
combined_bat
,
file_path
,
str
(
check
.
get
()),
include_top_option
,
shift_image_option
],
[
combined_bat
,
file_path
,
str
(
check
.
get
()),
include_top_option
,
shift_image_option
],
stdout
=
sys
.
stdout
)
stdout
=
sys
.
stdout
)
...
@@ -125,7 +136,13 @@ def threading():
...
@@ -125,7 +136,13 @@ def threading():
window
=
tk
.
Tk
()
window
=
tk
.
Tk
()
window
.
title
(
"
Immersive VR scene creator
"
)
window
.
title
(
"
Immersive VR scene creator
"
)
check
=
tk
.
IntVar
()
check
=
tk
.
IntVar
()
check
.
set
(
1
)
#automatically generate depth map as default
# changed check vaiable: 0 = automatically upload depth map, 1 = manually upload depth map
# this behaviour is oppositte to previous check variable
uploadDepthCheck
=
tk
.
IntVar
()
checkStanford
=
tk
.
IntVar
()
checkStanford
=
tk
.
IntVar
()
include_top
=
tk
.
IntVar
()
include_top
=
tk
.
IntVar
()
shift_image
=
tk
.
IntVar
()
shift_image
=
tk
.
IntVar
()
...
@@ -152,7 +169,7 @@ run_button = tk.Button(
...
@@ -152,7 +169,7 @@ run_button = tk.Button(
bg
=
"
green
"
,
bg
=
"
green
"
,
fg
=
"
white
"
,
fg
=
"
white
"
,
)
)
depth_check
=
tk
.
Checkbutton
(
window
,
text
=
'
Upload a depth map(360 MonoDepth)
'
,
variable
=
c
heck
,
onvalue
=
1
,
offvalue
=
0
,
command
=
depthmap_creation
)
depth_check
=
tk
.
Checkbutton
(
window
,
text
=
'
Upload a depth map(360 MonoDepth)
'
,
variable
=
uploadDepthC
heck
,
onvalue
=
1
,
offvalue
=
0
,
command
=
depthmap_creation
)
stanford_check
=
tk
.
Checkbutton
(
window
,
text
=
'
Run for stanford2D3D dataset
'
,
variable
=
checkStanford
,
onvalue
=
1
,
offvalue
=
0
,
command
=
stanfordRoom_selection
)
stanford_check
=
tk
.
Checkbutton
(
window
,
text
=
'
Run for stanford2D3D dataset
'
,
variable
=
checkStanford
,
onvalue
=
1
,
offvalue
=
0
,
command
=
stanfordRoom_selection
)
include_top_check
=
tk
.
Checkbutton
(
window
,
text
=
'
Include Top in Mesh
'
,
variable
=
include_top
,
onvalue
=
1
,
offvalue
=
0
)
include_top_check
=
tk
.
Checkbutton
(
window
,
text
=
'
Include Top in Mesh
'
,
variable
=
include_top
,
onvalue
=
1
,
offvalue
=
0
)
shift_image_check
=
tk
.
Checkbutton
(
window
,
text
=
'
Shift input image
'
,
variable
=
shift_image
,
onvalue
=
1
,
offvalue
=
0
,
command
=
shift_image_selection
)
shift_image_check
=
tk
.
Checkbutton
(
window
,
text
=
'
Shift input image
'
,
variable
=
shift_image
,
onvalue
=
1
,
offvalue
=
0
,
command
=
shift_image_selection
)
...
...
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