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
6664440e
Commit
6664440e
authored
2 years ago
by
Guillaume Duret
Browse files
Options
Downloads
Plain Diff
Merge branch 'dev' of
https://gitlab.liris.cnrs.fr/maali/guimod
into dev
parents
b9501e11
b15e8a39
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
compute_features.py
+7
-0
7 additions, 0 deletions
compute_features.py
with
7 additions
and
0 deletions
compute_features.py
+
7
−
0
View file @
6664440e
...
@@ -59,6 +59,11 @@ def process_compute(data_name, camera, Nb_camera, World_begin, Nb_world, list_ca
...
@@ -59,6 +59,11 @@ def process_compute(data_name, camera, Nb_camera, World_begin, Nb_world, list_ca
if
len
(
data_Bbox_2d
)
!=
len
(
data_3D_pose
)
:
if
len
(
data_Bbox_2d
)
!=
len
(
data_3D_pose
)
:
raise
TypeError
(
"
size of datas are differents !!
"
)
raise
TypeError
(
"
size of datas are differents !!
"
)
if
os
.
path
.
isfile
(
f
'
{
data_name
}
/Generated/Count_
{
p
-
1
}
.json
'
):
with
open
(
f
'
{
data_name
}
/Generated/Count_
{
p
-
1
}
.json
'
)
as
f
:
list_count_categories
=
json
.
load
(
f
)
for
categories
in
list_categories
:
for
categories
in
list_categories
:
...
@@ -156,6 +161,8 @@ def process_compute(data_name, camera, Nb_camera, World_begin, Nb_world, list_ca
...
@@ -156,6 +161,8 @@ def process_compute(data_name, camera, Nb_camera, World_begin, Nb_world, list_ca
np
.
savetxt
(
f
'
{
data_name
}
/Generated/FPS/
{
categories
}
/
{
p
}
.txt
'
,
out
)
np
.
savetxt
(
f
'
{
data_name
}
/Generated/FPS/
{
categories
}
/
{
p
}
.txt
'
,
out
)
#print("stop")
#print("stop")
with
open
(
f
'
{
data_name
}
/Generated/Count_
{
p
}
.json
'
,
mode
=
'
w
'
)
as
f
:
f
.
write
(
json
.
dumps
(
list_count_categories
,
indent
=
4
))
print
(
list_count_categories
)
print
(
list_count_categories
)
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