Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FruitBin
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package 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
Guillaume Duret
FruitBin
Commits
4eb6052b
Commit
4eb6052b
authored
2 years ago
by
Guillaume Duret
Browse files
Options
Downloads
Patches
Plain Diff
add resizing rgn and instance in main
parent
6887713e
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
main.py
+5
-3
5 additions, 3 deletions
main.py
with
5 additions
and
3 deletions
main.py
+
5
−
3
View file @
4eb6052b
...
...
@@ -17,11 +17,11 @@ def generate_folders(name, list_categories):
is_exist
=
os
.
path
.
exists
(
name
)
if
not
is_exist
:
os
.
mkdir
(
name
)
folders
=
[
"
RGB
"
,
"
RGB_Gen
"
,
"
Meta_Gen
"
,
"
Depth
"
,
"
Mask
"
,
"
Meta
"
,
"
Pose
"
,
"
Bbox_2d
"
,
"
Bbox_2d_loose
"
,
"
Instance_Segmentation
"
,
"
Semantic_Segmentation
"
,
"
Instance_Mask
"
,
"
Occlusion
"
,
"
Models
"
,
"
Pose_transformed
"
,
"
Bbox
"
,
"
FPS
"
]
folders
=
[
"
RGB
"
,
"
RGB_Gen
"
,
"
RGB_resized
"
,
"
Meta_Gen
"
,
"
Depth
"
,
"
Mask
"
,
"
Meta
"
,
"
Pose
"
,
"
Bbox_2d
"
,
"
Bbox_2d_loose
"
,
"
Instance_Segmentation
"
,
"
Semantic_Segmentation
"
,
"
Instance_Mask
"
,
"
Instance_Mask_resized
"
,
"
Occlusion
"
,
"
Models
"
,
"
Pose_transformed
"
,
"
Bbox
"
,
"
FPS
"
]
for
f
in
folders
:
is_exist
=
os
.
path
.
exists
(
f
"
{
name
}
/
{
f
}
"
)
if
not
is_exist
:
if
f
not
in
[
"
RGB_Gen
"
,
"
Instance_Mask
"
,
"
Meta_Gen
"
,
"
Models
"
,
"
Pose_transformed
"
,
"
Bbox
"
,
"
FPS
"
]:
if
f
not
in
[
"
RGB_Gen
"
,
"
RGB_resized
"
,
"
Instance_Mask
"
,
"
Instance_Mask_resized
"
,
"
Meta_Gen
"
,
"
Models
"
,
"
Pose_transformed
"
,
"
Bbox
"
,
"
FPS
"
]:
os
.
mkdir
(
f
"
{
name
}
/
{
f
}
"
)
else
:
for
cat
in
list_categories
:
...
...
@@ -83,11 +83,13 @@ if __name__ == '__main__':
[
0.0
,
1086.5054444841007
,
360.5
],
[
0.0
,
0.0
,
1.0
]])
new_size
=
(
640
,
480
)
np
.
savetxt
(
f
'
{
dataset_name
}
/Generated/camera_
{
choice
}
.txt
'
,
camera
)
reform_data
(
dataset_src
,
dataset_name
,
dataset_type
,
Nb_camera
,
args
.
World_begin
,
args
.
Nb_worlds
)
process_compute
(
dataset_name
,
camera
,
Nb_camera
,
args
.
World_begin
,
args
.
Nb_worlds
,
list_categories
,
occ_target
,
False
)
process_compute
(
dataset_name
,
camera
,
new_size
,
Nb_camera
,
args
.
World_begin
,
args
.
Nb_worlds
,
list_categories
,
occ_target
,
False
)
#transform_pose(dataset_name, Nb_camera, Nb_world, list_categories, occ_target)
#generate_2d_bbox(dataset_name, Nb_camera, Nb_world, list_categories, occ_target)
#generate_instance_mask(dataset_name, Nb_camera, Nb_world, list_categories, occ_target)
...
...
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