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
9d81d0d8
Commit
9d81d0d8
authored
2 years ago
by
Maciej Wielgosz
Browse files
Options
Downloads
Patches
Plain Diff
update for oracle instane segmentation
parent
4fe33e0c
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
config/config.yaml
+1
-1
1 addition, 1 deletion
config/config.yaml
run_oracle_wrapper.py
+14
-3
14 additions, 3 deletions
run_oracle_wrapper.py
with
15 additions
and
4 deletions
config/config.yaml
+
1
−
1
View file @
9d81d0d8
...
@@ -3,7 +3,7 @@ general:
...
@@ -3,7 +3,7 @@ general:
output_folder
:
'
./maciek_results'
output_folder
:
'
./maciek_results'
clean_output_folder
:
true
clean_output_folder
:
true
run_sematic_segmentation
:
true
run_sematic_segmentation
:
true
run_instance_segmentation
:
fals
e
run_instance_segmentation
:
tru
e
label_formats
:
label_formats
:
label_for_instances_in_gt
:
'
treeID'
label_for_instances_in_gt
:
'
treeID'
label_for_instances_in_predicted
:
'
instance_nr'
label_for_instances_in_predicted
:
'
instance_nr'
...
...
This diff is collapsed.
Click to expand it.
run_oracle_wrapper.py
+
14
−
3
View file @
9d81d0d8
...
@@ -102,19 +102,30 @@ def run_oracle_wrapper(path_to_config_file):
...
@@ -102,19 +102,30 @@ def run_oracle_wrapper(path_to_config_file):
# run the main function
# run the main function
main
(
path_to_config_file
)
main
(
path_to_config_file
)
# instance segmentation is set to true
if
config_flow_params
[
'
general
'
][
'
run_instance_segmentation
'
]:
path_to_the_output_folder
=
os
.
path
.
join
(
config_flow_params
[
'
general
'
][
'
output_folder
'
],
'
instance_segmented_point_clouds
'
)
else
:
path_to_the_output_folder
=
config_flow_params
[
'
general
'
][
'
output_folder
'
]
# get list of files in the output folder
# get list of files in the output folder
list_of_files
=
os
.
listdir
(
config_flow_params
[
'
general
'
][
'
output_folder
'
]
)
list_of_files
=
os
.
listdir
(
path_to_the_
output_folder
)
# save files to the output bucket 'bucket_lidar_data' in the subfolder 'output'
# save files to the output bucket 'bucket_lidar_data' in the subfolder 'output'
for
file
in
list_of_files
:
for
file
in
list_of_files
:
# get the full path of the file
# get the full path of the file
path_to_file
=
config_flow_params
[
'
general
'
][
'
output_folder
'
]
+
'
/
'
+
file
path_to_file
=
path_to_the_
output_folder
+
'
/
'
+
file
# get the file name
# get the file name
file_name
=
file
file_name
=
file
# upload the file to the bucket
# upload the file to the bucket
client
.
put_object
(
output_namespace
,
output_bucket_name
,
os
.
path
.
join
(
output_folder_in_bucket
,
file_name
),
io
.
open
(
path_to_file
,
'
rb
'
))
client
.
put_object
(
output_namespace
,
output_bucket_name
,
os
.
path
.
join
(
output_folder_in_bucket
,
file_name
),
io
.
open
(
path_to_file
,
'
rb
'
)
)
if
__name__
==
'
__main__
'
:
if
__name__
==
'
__main__
'
:
# use argparse to get the path to the config file
# use argparse to get the path to the config 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