Skip to content
Snippets Groups Projects
Commit 7a1d691b authored by las1g21's avatar las1g21
Browse files

Downloads Prediction File

parent a5244e4a
No related branches found
No related tags found
1 merge request!9GDP 4.4.5
...@@ -87,7 +87,7 @@ def get_completed_scene(shifted_disparity_path, shifted_t_path): ...@@ -87,7 +87,7 @@ def get_completed_scene(shifted_disparity_path, shifted_t_path):
print("Finish Enhancing") print("Finish Enhancing")
stdin, stdout, stderr = client.exec_command( stdin, stdout, stderr = client.exec_command(
"cd mona/MDBNet360_GDP/ && ls" + "cd mona/MDBNet360_GDP/" +
" && module load conda" + " && module load conda" +
" && source activate" + " && source activate" +
" && conda activate ssc_env" + " && conda activate ssc_env" +
...@@ -109,7 +109,12 @@ def get_completed_scene(shifted_disparity_path, shifted_t_path): ...@@ -109,7 +109,12 @@ def get_completed_scene(shifted_disparity_path, shifted_t_path):
output = stdout.read().decode() output = stdout.read().decode()
print(output) 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 # Close the SSH connection
client.close() client.close()
return True return True
...@@ -118,5 +123,5 @@ def get_completed_scene(shifted_disparity_path, shifted_t_path): ...@@ -118,5 +123,5 @@ def get_completed_scene(shifted_disparity_path, shifted_t_path):
return False 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") # 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) # print(out)
\ No newline at end of file \ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment