Skip to content

Commit 6ea5764

Browse files
committed
trunk: Documentation changes including improvements to the look of the website; minor script improvement (limit jobs of I/O intensive process)
git-svn-id: https://svn.code.sf.net/p/kaldi/code/trunk@4936 5e6a8d80-dfce-4ca6-a32a-6e07a63d50c8
1 parent 9e5816f commit 6ea5764

File tree

9 files changed

+117
-135
lines changed

9 files changed

+117
-135
lines changed

egs/wsj/s5/steps/decode_fmllr.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ num_threads=1 # if >1, will use gmm-latgen-faster-parallel
4545
parallel_opts= # If you supply num-threads, you should supply this too.
4646
skip_scoring=false
4747
scoring_opts=
48-
# End configuration section
48+
max_fmllr_jobs=25 # I've seen the fMLLR jobs overload NFS badly if the decoding
49+
# was started with a lot of many jobs, so we limit the number of
50+
# parallel jobs to 25 by default. End configuration section
4951
echo "$0 $@" # Print the command line for logging
5052

5153
[ -f ./path.sh ] && . ./path.sh; # source the path.
@@ -147,7 +149,7 @@ esac
147149
## Now get the first-pass fMLLR transforms.
148150
if [ $stage -le 1 ]; then
149151
echo "$0: getting first-pass fMLLR transforms."
150-
$cmd JOB=1:$nj $dir/log/fmllr_pass1.JOB.log \
152+
$cmd --max-jobs-run $max_fmllr_jobs JOB=1:$nj $dir/log/fmllr_pass1.JOB.log \
151153
gunzip -c $si_dir/lat.JOB.gz \| \
152154
lattice-to-post --acoustic-scale=$acwt ark:- ark:- \| \
153155
weight-silence-post $silence_weight $silphonelist $alignment_model ark:- ark:- \| \
@@ -183,7 +185,7 @@ fi
183185
## $dir/trans.1, etc.
184186
if [ $stage -le 3 ]; then
185187
echo "$0: estimating fMLLR transforms a second time."
186-
$cmd JOB=1:$nj $dir/log/fmllr_pass2.JOB.log \
188+
$cmd --max-jobs-run $max_fmllr_jobs JOB=1:$nj $dir/log/fmllr_pass2.JOB.log \
187189
lattice-determinize-pruned$thread_string --acoustic-scale=$acwt --beam=4.0 \
188190
"ark:gunzip -c $dir/lat.tmp.JOB.gz|" ark:- \| \
189191
lattice-to-post --acoustic-scale=$acwt ark:- ark:- \| \

misc/logo/KaldiIco.png

4.74 KB
Loading

misc/logo/KaldiTextAndLogoSmall.png

12.1 KB
Loading

src/Doxyfile

Lines changed: 50 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,28 @@
1717
# The PROJECT_NAME tag is a single word (or a sequence of words surrounded
1818
# by quotes) that should identify the project.
1919

20-
PROJECT_NAME = 'KALDI'
20+
PROJECT_NAME = Kaldi
2121

2222
# The PROJECT_NUMBER tag can be used to enter a project or revision number.
2323
# This could be handy for archiving the generated documentation or
2424
# if some version control system is used.
2525

2626
PROJECT_NUMBER =
2727

28+
29+
# Using the PROJECT_BRIEF tag one can provide an optional one line description
30+
# for a project that appears at the top of each page and should give viewer
31+
# a quick idea about the purpose of the project. Keep the description short.
32+
33+
# PROJECT_BRIEF = "Open source speech recognition"
34+
35+
# With the PROJECT_LOGO tag one can specify an logo or icon that is
36+
# included in the documentation. The maximum height of the logo should not
37+
# exceed 55 pixels and the maximum width should not exceed 200 pixels.
38+
# Doxygen will copy the logo to the output directory.
39+
40+
PROJECT_LOGO = ../misc/logo/KaldiTextAndLogoSmall.png
41+
2842
# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute)
2943
# base path where the generated documentation will be put.
3044
# If a relative path is entered, it will be relative to the location
@@ -639,7 +653,40 @@ HTML_FILE_EXTENSION = .html
639653
# each generated HTML page. If it is left blank doxygen will generate a
640654
# standard header.
641655

642-
HTML_HEADER =
656+
## Note: doc/header.html is a modified version of the standard header which was generated
657+
## using "doxygen -w html header.html footer.html stylesheet.css Doxyfile" (note, this may
658+
## have to be updated if the doxygen version changes), and then the following line was added:
659+
## <link rel="icon" type="image/png" href="http://kaldi.sf.net/favicon.ico">
660+
661+
HTML_HEADER = doc/header.html
662+
663+
664+
# The HTML_COLORSTYLE_HUE tag controls the color of the HTML output.
665+
# Doxygen will adjust the colors in the style sheet and background images
666+
# according to this color. Hue is specified as an angle on a colorwheel,
667+
# see http://en.wikipedia.org/wiki/Hue for more information.
668+
# For instance the value 0 represents red, 60 is yellow, 120 is green,
669+
# 180 is cyan, 240 is blue, 300 purple, and 360 is red again.
670+
# The allowed range is 0 to 359.
671+
672+
HTML_COLORSTYLE_HUE = 26
673+
674+
# The HTML_COLORSTYLE_SAT tag controls the purity (or saturation) of
675+
# the colors in the HTML output. For a value of 0 the output will use
676+
# grayscales only. A value of 255 will produce the most vivid colors.
677+
678+
HTML_COLORSTYLE_SAT = 80
679+
680+
# The HTML_COLORSTYLE_GAMMA tag controls the gamma correction applied to
681+
# the luminance component of the colors in the HTML output. Values below
682+
# 100 gradually make the output lighter, whereas values above 100 make
683+
# the output darker. The value divided by 100 is the actual gamma applied,
684+
# so 80 represents a gamma of 0.8, The value 220 represents a gamma of 2.2,
685+
# and 100 does not change the gamma.
686+
687+
HTML_COLORSTYLE_GAMMA = 90
688+
689+
643690

644691
# The HTML_FOOTER tag can be used to specify a personal HTML footer for
645692
# each generated HTML page. If it is left blank doxygen will generate a
@@ -654,8 +701,7 @@ HTML_FOOTER =
654701
# the style sheet file to the HTML output directory, so don't put your own
655702
# stylesheet in the HTML output directory as well, or it will be erased!
656703

657-
HTML_STYLESHEET =
658-
704+
HTML_STYLESHEET =
659705

660706
# If the GENERATE_HTMLHELP tag is set to YES, additional index files
661707
# will be generated that can be used as input for tools like the

src/doc/README

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ doxygen
2424
cp doc/*.pptx html/;
2525

2626
if [[ $(hostname -f) == *.clsp.jhu.edu ]]; then
27+
cp ../misc/logo/KaldiIco.png html/favicon.ico
2728
tar -czf html.tar.gz html
2829
scp html.tar.gz [email protected]:/home/project-web/kaldi/htdocs/
2930

@@ -49,3 +50,10 @@ fi
4950
# I added figures that I manually excerpted from https://sourceforge.net/p/kaldi/mailman/kaldi-users/?viewmonth=201203
5051
# and https://sourceforge.net/p/kaldi/mailman/kaldi-developers/?viewmonth=201203
5152
# this is june 13, 2014, 6:11pm, check my email.
53+
54+
# Note (RE adding favicon): I generated the default header files like this (from
55+
# src/) doxygen -w html header.html footer.html stylesheet.css Doxyfile then
56+
# moved the header.html to doc/ and edited it to include the following snippet,
57+
# and added it to the repo.
58+
#<link rel="icon" type="image/png" href="http://kaldi.sf.net/favicon.ico">
59+

src/doc/build_setup.dox

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ preprocessor variables, setting compile options, linking with libraries, and so
144144
\section build_setup_platforms Which platforms has Kaldi been compiled on?
145145

146146
We have compiled Kaldi on Windows, Cygwin, various flavors of Linux (including
147-
Ubuntu, CentOS, Debian and SUSE), and Darwin. We recommend you use g++ version
148-
4.4 or above for the source to compile.
147+
Ubuntu, CentOS, Debian, Red Hat and SUSE), and Darwin. We recommend you use g++ version
148+
4.4 or above, although other compilers such as llvm and Intel's icc are also known to work.
149149

150150
*/

src/doc/header.html

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2+
<html xmlns="http://www.w3.org/1999/xhtml">
3+
<head>
4+
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
5+
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
6+
<!--BEGIN PROJECT_NAME--><title>$projectname: $title</title><!--END PROJECT_NAME-->
7+
<!--BEGIN !PROJECT_NAME--><title>$title</title><!--END !PROJECT_NAME-->
8+
<link href="$relpath$tabs.css" rel="stylesheet" type="text/css"/>
9+
<link rel="icon" href="favicon.ico" type="image/x-icon" />
10+
<script type="text/javascript" src="$relpath$jquery.js"></script>
11+
<script type="text/javascript" src="$relpath$dynsections.js"></script>
12+
$treeview
13+
$search
14+
$mathjax
15+
<link href="stylesheet.css" rel="stylesheet" type="text/css" />
16+
</head>
17+
<body>
18+
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
19+
20+
<!--BEGIN TITLEAREA-->
21+
<div id="titlearea">
22+
<table cellspacing="0" cellpadding="0">
23+
<tbody>
24+
<tr style="height: 56px;">
25+
<!--BEGIN PROJECT_LOGO-->
26+
<td id="projectlogo"><img alt="Logo" src="$relpath$$projectlogo"/ style="padding: 4px 5px 1px 5px"></td>
27+
<!--END PROJECT_LOGO-->
28+
<!--BEGIN PROJECT_NAME-->
29+
<td style="padding-left: 0.5em;">
30+
<div id="projectname" style="display:none">$projectname
31+
<!--BEGIN PROJECT_NUMBER-->&#160;<span id="projectnumber">$projectnumber</span><!--END PROJECT_NUMBER-->
32+
</div>
33+
<!--BEGIN PROJECT_BRIEF--><div id="projectbrief">$projectbrief</div><!--END PROJECT_BRIEF-->
34+
</td>
35+
<!--END PROJECT_NAME-->
36+
<td style="padding-left: 0.5em;">
37+
<div id="projectbrief" style="display:none">$projectbrief</div>
38+
</td>
39+
<!--END PROJECT_BRIEF-->
40+
<!--END !PROJECT_NAME-->
41+
<!--BEGIN DISABLE_INDEX-->
42+
<!--BEGIN SEARCHENGINE-->
43+
<td>$searchbox</td>
44+
<!--END SEARCHENGINE-->
45+
<!--END DISABLE_INDEX-->
46+
</tr>
47+
</tbody>
48+
</table>
49+
</div>
50+
<!--END TITLEAREA-->
51+
<!-- end header part -->

src/doc/mainpage.dox

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,7 @@
3030
/**
3131
\mainpage Kaldi
3232

33-
Please see the \ref install_warning "instructions" on upgrading your repository to the
34-
new location, following our upgrade to the "new" Sourceforge.
35-
36-
(see also Kaldi's <a href=http://sourceforge.net/projects/kaldi/> project page on Sourceforge </a>,
33+
See also Kaldi's <a href=http://sourceforge.net/projects/kaldi/>project page on Sourceforge</a>,
3734
and <a href=http://kaldi-asr.org>kaldi-asr.org</a> where you can download pre-built models.
3835

3936
<p>
@@ -42,7 +39,6 @@
4239
- \subpage install
4340
- \subpage dependencies
4441
- \subpage legal
45-
- \subpage roadmap
4642
- \subpage tutorial
4743
- \subpage data_prep
4844
- \subpage build_setup

src/doc/roadmap.dox

Lines changed: 0 additions & 121 deletions
This file was deleted.

0 commit comments

Comments
 (0)