Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
recursive-gmconvert
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
Riccardo PELLARIN
recursive-gmconvert
Commits
4ab1e431
Commit
4ab1e431
authored
7 years ago
by
samuel hanot
Browse files
Options
Downloads
Patches
Plain Diff
added new option (-0 n0) that can be used to specify number of gaussians at first iteration
parent
2e6c0aa6
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
README.md
+2
-0
2 additions, 0 deletions
README.md
recursive_gmconvert.sh
+5
-3
5 additions, 3 deletions
recursive_gmconvert.sh
with
7 additions
and
3 deletions
README.md
+
2
−
0
View file @
4ab1e431
...
...
@@ -27,6 +27,8 @@ ${SRC_DIR}/recursive_gmconvert.sh -f map_filename -t threshold -n num_gaussians
`-n num_gaussians`
: number of gaussians per sub-process
`-0 num_gaussians0`
: number of gaussians for first iteration
`-N num_iterations`
: number of recursion levels
### Optional arguments:
...
...
This diff is collapsed.
Click to expand it.
recursive_gmconvert.sh
+
5
−
3
View file @
4ab1e431
...
...
@@ -7,6 +7,7 @@ Required arguments:
-f map_filename: the file name of the input EM map
-t threshold: the density threshold
-n num_gaussians: number of gaussians per sub-process
-0 num_gaussians0: number of gaussians for first iteration
-N num_iterations: number of recursion levels
Optional arguments:
-i first_iteration: initial recursion level (defaults to 1)
...
...
@@ -18,16 +19,18 @@ Optional arguments:
map_name
=
threshold
=
n_gaussians
=
n_gaussians0
=
N
=
i0
=
1
serial
=
0
while
getopts
f:t:n:N:i:sh opt
while
getopts
f:t:n:N:i:
0:
sh opt
do
case
"
$opt
"
in
f
)
map_name
=
"
$OPTARG
"
;;
t
)
threshold
=
"
$OPTARG
"
;;
n
)
n_gaussians
=
"
$OPTARG
"
;;
0
)
n_gaussians0
=
"
$OPTARG
"
;;
N
)
N
=
"
$OPTARG
"
;;
i
)
i0
=
"
$OPTARG
"
;;
s
)
serial
=
1
;;
...
...
@@ -67,7 +70,6 @@ cd $map_root_dir
mkdir
-p
converged
for
((
i
=
$i0
;
i<
=
N
;
i++
))
do
n
=
$((
n_gaussians
**
i
))
n
=
$((
i
))
jobname
=
${
map_name
}
_
${
n
}
...
...
@@ -78,7 +80,7 @@ do
then
${
gmconvert
}
-imap
${
map_name
}
-zth
${
threshold
}
-oimap
threshold.map
-ogmm
/dev/null
-ng
0
fi
echo
${
profile_cmd
}
${
gmconvert
}
-imap
${
map_name
}
-ogmm
$n
/
${
n
}
_0.gmm
-ng
${
n_gaussians
}
-zth
${
threshold
}
echo
${
profile_cmd
}
${
gmconvert
}
-imap
${
map_name
}
-ogmm
$n
/
${
n
}
_0.gmm
-ng
${
n_gaussians
0
}
-zth
${
threshold
}
echo
${
gmconvert
}
-igmm
$n
/
${
n
}
_0.gmm
-imap
${
map_name
}
-omap
/dev/null
else
n_prev
=
$((
i-1
))
...
...
This diff is collapsed.
Click to expand it.
Samuel HANOT
@shanot
mentioned in issue
#7 (closed)
·
7 years ago
mentioned in issue
#7 (closed)
mentioned in issue #7
Toggle commit list
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