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
c16ac615
Commit
c16ac615
authored
5 months ago
by
las1g21
Browse files
Options
Downloads
Patches
Plain Diff
Can send files to Iridis
parent
795efd19
No related branches found
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 @
c16ac615
...
@@ -2,6 +2,7 @@ import paramiko
...
@@ -2,6 +2,7 @@ import paramiko
from
dotenv
import
load_dotenv
from
dotenv
import
load_dotenv
from
scp
import
SCPClient
from
scp
import
SCPClient
import
os
import
os
import
subprocess
load_dotenv
()
load_dotenv
()
hostname
=
os
.
getenv
(
"
HOSTNAME
"
)
hostname
=
os
.
getenv
(
"
HOSTNAME
"
)
...
@@ -46,18 +47,22 @@ def get_completed_scene(shifted_disparity_path, shifted_t_path):
...
@@ -46,18 +47,22 @@ def get_completed_scene(shifted_disparity_path, shifted_t_path):
client
.
connect
(
hostname
,
username
=
username
,
password
=
password
)
client
.
connect
(
hostname
,
username
=
username
,
password
=
password
)
# Execute commands on the server
# Execute commands on the server
stdin
,
stdout
,
stderr
=
client
.
exec_command
(
"
ls -l
"
)
stdin
,
stdout
,
stderr
=
client
.
exec_command
(
"
cd mona/MDBNet360_GDP/
"
)
stdin
,
stdout
,
stderr
=
client
.
exec_command
(
"
module load conda
"
)
stdin
,
stdout
,
stderr
=
client
.
exec_command
(
"
source activate
"
)
stdin
,
stdout
,
stderr
=
client
.
exec_command
(
"
conda activate sscenv
"
)
stdin
,
stdout
,
stderr
=
client
.
exec_command
(
"
cd mona/MDBNet360_GDP/sbatch --partition=ecsstudents --account=ecsstudents run_obj_job.sh
"
)
print
(
"
AHAHAHAHAHAHAH
\n
"
)
# Print the output of the command
# Print the output of the command
print
(
stdout
.
read
())
print
(
stdout
.
read
())
# Close the SSH connection
# Close the SSH connection
client
.
close
()
client
.
close
()
else
:
else
:
return
False
return
False
out
=
send_files
(
"
C:
\\
Project
\\
AVVR-Pipeline-GDP4
\\
edgenet-360
\\
Data
\\
Listening
\\
shifted-disparity.png
"
,
"
C:
\\
Project
\\
AVVR-Pipeline-GDP4
\\
edgenet-360
\\
Data
\\
Listening
\\
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