Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
VOB
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
Container Registry
Model registry
Operate
Environments
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
Petra Gospodnetic
VOB
Commits
538398ab
Commit
538398ab
authored
4 years ago
by
gospodnetic
Browse files
Options
Downloads
Patches
Plain Diff
Extend readme
parent
4b660a76
No related branches found
No related tags found
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
Benchmark.py
+1
-1
1 addition, 1 deletion
Benchmark.py
Vis.py
+1
-1
1 addition, 1 deletion
Vis.py
object_space_exploration_per_approach_methods.json
+4
-1
4 additions, 1 deletion
object_space_exploration_per_approach_methods.json
readme.md
+84
-1
84 additions, 1 deletion
readme.md
vob.py
+0
-1
0 additions, 1 deletion
vob.py
with
90 additions
and
5 deletions
Benchmark.py
+
1
−
1
View file @
538398ab
...
...
@@ -251,7 +251,7 @@ class Benchmark:
tex_file
.
write
(
"
\\
multirow{{{}}}{{*}}{{
\\
makecell{{{}}}}}
"
.
format
(
method_count
,
approach
))
for
method
in
self
.
methods_per_approach
[
approach
]:
tex_file
.
write
(
"
\n
& \makecell{{{}}}
"
.
format
(
method
))
tex_file
.
write
(
"
\n
&
\
\
makecell{{{}}}
"
.
format
(
method
))
for
model
in
models
:
try
:
...
...
This diff is collapsed.
Click to expand it.
Vis.py
+
1
−
1
View file @
538398ab
...
...
@@ -24,7 +24,7 @@ class Vis:
x
=
np
.
array
(
range
(
len
(
y
)))
ax
.
plot
(
x
,
y
,
c
=
"
0.4
"
,
alpha
=
0.2
)
ax
.
set_xlim
(
0
,
45
)
ax
.
set_xlim
(
0
,
110
)
ax
.
set_ylim
(
0
,
100
)
ax
.
set_xlabel
(
"
Number of viewpoints
"
)
...
...
This diff is collapsed.
Click to expand it.
object_space_exploration_per_approach_methods.json
+
4
−
1
View file @
538398ab
...
...
@@ -19,7 +19,10 @@
"ExactCurv"
,
"ThinPlate"
,
"NormalDev"
,
"NoSubdivision"
]
"NoSubdivision"
],
"Generate_and_use"
:
[
"Generate-and-Use"
]
}
...
...
This diff is collapsed.
Click to expand it.
readme.md
+
84
−
1
View file @
538398ab
#ViewpointOptimizationBenchmark
Comparison of optimization viewpoint data written in format
```
{
"Log": {
"Camera": {
"DistanceMM": float,
"FocalLength": float,
"Model": string,
"PixSizeMM": float,
"ResHeight": uint,
"ResWidth": uint
},
"Coverage": {
"InTriangles": uint,
"Percentage": float
},
"CoveragePerVP": [float, ..., float],
"Duration": {
"OptimizationSec": float,
"RayTracingSec": float
},
"Model": {
"FaceCount": uint,
"Name": string,
"VertexCount": uint
},
"OptimizationType": string,
"TimeStamp": string,
"TriangleCoveragePerVP": [uint, ..., uint],
"VPC": {
"Count": uint,
"DiscardedCount": uint,
"Functional": string,
"ListName": string,
"Threshold": string
},
"VPSelectionOrder": [uint, ..., uint]
},
"OVP": {
"Count": uint,
"List": [array of viewpoint objects]
}
}
```
## Ourputs
Outputs in
`/data`
directory:
*
coverage convergence graphs
*
best performance table in LaTex (
`performance_table.tex`
)
*
best performance table with information about the number of discarded viewpoints in LaTex (
`performance_table_discarded.tex`
)
*
complete performance table containing all the optimal viewpoint sets
*
average discarded statistic per approach
*
average discarded statistic per method
Example call:
## Test data available at:
https://owncloud.fraunhofer.de/index.php/s/H8jV9rwGN84knzP
## Example call
`python3 vob.py object_space_exploration_per_approach_methods.json ovp_paths.json 2020-08-15`
## Args
[1]
`object_space_exploration_per_approach_methods.json`
- list of methods names assigned to corresponding approach
[2]
`ovp_paths.json`
- an array of paths to the directory containing the ovp files (not recursive)
[3] optional string - optional string which will be prepended to the coverage graphs
### `object_space_exploration_per_approach_methods.json` example:
```
{
"SpaceSampling": [
"MixedRepositionedNormal",
"NoDisplacement"],
"VertexSampling": [
"VertexBBoxCenter",
"VertexGronle"],
"PatchSampling": [
"Area",
"NoSubdivision"]
]
}
```
### `ovp_paths.json` example:
```
[
"path/to/OVP/directory/"
]
```
This diff is collapsed.
Click to expand it.
vob.py
+
0
−
1
View file @
538398ab
...
...
@@ -67,7 +67,6 @@ def main():
log
=
Log
(
filename
)
logs
.
append
(
log
)
except
Exception
as
e
:
# TODO add verbose
# print("Error: {}\nSkipping file".format(e))
continue
...
...
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