Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
instance_segmentation_classic
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Maciej Wielgosz
instance_segmentation_classic
Commits
48e3b042
Commit
48e3b042
authored
1 year ago
by
Maciej Wielgosz
Browse files
Options
Downloads
Patches
Plain Diff
fix for creating output folder in the oracle if does not exist
parent
392236ea
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
d_run.sh
+1
-1
1 addition, 1 deletion
d_run.sh
run_oracle_wrapper_local.py
+8
-4
8 additions, 4 deletions
run_oracle_wrapper_local.py
with
9 additions
and
5 deletions
d_run.sh
+
1
−
1
View file @
48e3b042
...
@@ -6,7 +6,7 @@ echo "Running the container"
...
@@ -6,7 +6,7 @@ echo "Running the container"
# docker run --gpus all --name test_oracle nibio/pc-geoslam-oracle
# docker run --gpus all --name test_oracle nibio/pc-geoslam-oracle
docker run
-it
--gpus
all
\
docker run
-it
--gpus
all
\
--name
test_oracle
\
--name
test_oracle
\
--mount
type
=
bind
,source
=
/home/nibio/mutable-outside-world/code/oracle_deploy/instance_segmentation_classic/local_folder_o
ut/las_fi
le
s
,target
=
/app/local_folder_o
ut/las_fi
le
s
\
--mount
type
=
bind
,source
=
/home/nibio/mutable-outside-world/code/oracle_deploy/instance_segmentation_classic/local_folder_o
rac
le,target
=
/app/local_folder_o
rac
le
\
nibio/pc-geoslam-oracle
nibio/pc-geoslam-oracle
...
...
This diff is collapsed.
Click to expand it.
run_oracle_wrapper_local.py
+
8
−
4
View file @
48e3b042
...
@@ -20,10 +20,11 @@ def run_oracle_wrapper(path_to_config_file):
...
@@ -20,10 +20,11 @@ def run_oracle_wrapper(path_to_config_file):
# read system environment variables
# read system environment variables
if
DEBUG_MODE
:
if
DEBUG_MODE
:
input_location
=
"
local_folder_in/las_files/
"
input_location
=
"
local_folder_oracle/las_files/
"
output_location
=
"
local_folder_out/las_files/
"
output_location
=
"
local_folder_oracle/results/
"
# remove content of the output folder
# remove content of the output folder if it exists
shutil
.
rmtree
(
output_location
,
ignore_errors
=
True
)
if
os
.
path
.
exists
(
output_location
):
shutil
.
rmtree
(
output_location
,
ignore_errors
=
True
)
else
:
else
:
# get the input and output locations from the environment variables
# get the input and output locations from the environment variables
input_location
=
os
.
environ
[
'
OBJ_INPUT_LOCATION
'
]
input_location
=
os
.
environ
[
'
OBJ_INPUT_LOCATION
'
]
...
@@ -33,6 +34,9 @@ def run_oracle_wrapper(path_to_config_file):
...
@@ -33,6 +34,9 @@ def run_oracle_wrapper(path_to_config_file):
input_location
=
input_location
.
replace
(
"
@axqlz2potslu
"
,
""
).
replace
(
"
oci://
"
,
"
/mnt/
"
)
input_location
=
input_location
.
replace
(
"
@axqlz2potslu
"
,
""
).
replace
(
"
oci://
"
,
"
/mnt/
"
)
output_location
=
output_location
.
replace
(
"
@axqlz2potslu
"
,
""
).
replace
(
"
oci://
"
,
"
/mnt/
"
)
output_location
=
output_location
.
replace
(
"
@axqlz2potslu
"
,
""
).
replace
(
"
oci://
"
,
"
/mnt/
"
)
# create the output folder if it does not exist
os
.
makedirs
(
output_location
,
exist_ok
=
True
)
# copy files from input_location to the input folder
# copy files from input_location to the input folder
shutil
.
copytree
(
input_location
,
config_flow_params
[
'
general
'
][
'
input_folder
'
])
shutil
.
copytree
(
input_location
,
config_flow_params
[
'
general
'
][
'
input_folder
'
])
...
...
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