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
7a1d691b
Commit
7a1d691b
authored
5 months ago
by
las1g21
Browse files
Options
Downloads
Patches
Plain Diff
Downloads Prediction File
parent
a5244e4a
No related branches found
Branches containing commit
No related tags found
1 merge request
!9
GDP 4.4.5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/scene_completion.py
+9
-4
9 additions, 4 deletions
scripts/scene_completion.py
with
9 additions
and
4 deletions
scripts/scene_completion.py
+
9
−
4
View file @
7a1d691b
...
...
@@ -87,7 +87,7 @@ def get_completed_scene(shifted_disparity_path, shifted_t_path):
print
(
"
Finish Enhancing
"
)
stdin
,
stdout
,
stderr
=
client
.
exec_command
(
"
cd mona/MDBNet360_GDP/
&& ls
"
+
"
cd mona/MDBNet360_GDP/
"
+
"
&& module load conda
"
+
"
&& source activate
"
+
"
&& conda activate ssc_env
"
+
...
...
@@ -109,7 +109,12 @@ def get_completed_scene(shifted_disparity_path, shifted_t_path):
output
=
stdout
.
read
().
decode
()
print
(
output
)
print
(
"
CLOSING
"
)
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
"
with
SCPClient
(
client
.
get_transport
())
as
scp
:
scp
.
get
(
remote_file_path
,
local_file_path
)
# Download file
print
(
"
OUTPUT DOWNLOADED
"
)
# Close the SSH connection
client
.
close
()
return
True
...
...
@@ -118,5 +123,5 @@ def get_completed_scene(shifted_disparity_path, shifted_t_path):
return
False
out
=
get_completed_scene
(
"
C:
\\
Project
\\
AVVR-Pipeline-GDP4
\\
edgenet-360
\\
Data
\\
Courtyard
\\
shifted-disparity.png
"
,
"
C:
\\
Project
\\
AVVR-Pipeline-GDP4
\\
edgenet-360
\\
Data
\\
Courtyard
\\
shifted_t.png
"
)
print
(
out
)
\ No newline at end of file
# out = get_completed_scene("C:\\Project\\AVVR-Pipeline-GDP4\\edgenet-360\\Data\\Courtyard\\shifted-disparity.png", "C:\\Project\\AVVR-Pipeline-GDP4\\edgenet-360\\Data\\Courtyard\\shifted_t.png")
# print(out)
\ No newline at end of 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