📄 vqdesasc.1
字号:
.\" @(#)vqdesasc.1 3.6 4/7/97 ESI.\" Copyright (c) 1987 Entropic Speech, Inc.; All rights reserved.TH VQDESASC 1\-ESPS 4/7/97.ds ]W "\fI\s+4\ze\h'0.05'e\s-4\v'-0.4m'\fP\(*p\v'0.4m'\ Entropic Speech, Inc..SH "NAME"vqdesasc - design a vector quantization codebook from an ASCII training sequence.SH "SYNOPSIS".B vqdesasc[.BI \-x " debug_level"] [.BI \-P " param_file"] [.BI \-h " histfile"] [.BI \-k " checkfile"] [.BI \-l " max_line_len"] [.BI \-i ] [.BI \-c " comment"] [.BI \-C " comment_file"].I "input output.fea".SH "DESCRIPTION".PP.I Vqdesasctakes as input an ASCII file.I input containing a training sequence of feature vectors. The componentsof each vector are separated by white space, and the vectors areseparated by new-lines. .I Vqdesascdesigns a vector quantization codebook from the input training sequencewith codebook characteristics determined from information in the ESPSparameter file (see ESPS PARAMETERS). The dimension of the codewords in the codebook is set to the dimension of the first vector in the input file.I input,and all input vectors are assumed to be this length. .PPIf the \fB\-i\fR option is given, an initial codebook is read from a file determined by information in the ESPS parameter file. .PPThe codebook and all converged codebooks of intermediate sizes are output as records in an ESPS FEA_VQ file .I output.fea. If "\-" is supplied in place of .I output.fea, then standard output is used. .PPAfter every pass through the training sequence, the centroid-adjustedcodebook is output to a checkpoint file. Only a single record is keptin the checkpoint file (it is over-written each time). .PPFor record-keeping purposes,.I vqdesascstores an ASCII comment in the header of .I output.fea. If a comment is not supplied by means of the\fB\-c\fR or \fB\-C\fR options, the user is prompted for one. Thecomment should describe the origin of the training sequence. .PPFor a detailed description of the VQ design algorithm, see.I vqdesign(3\-ESPS). .PPIf the total memory required to store the contents of .I input is less than an internal limit of .I vqdesasc,the codebook design algorithm will run in memory. Otherwise, .I vqdesascwill obtain pieces from .I inputas necessary. .SH OPTIONS.PPThe following options are supported:.TP.BI \-x " debug_level \fR[2]\fP"If .I debug_levelis positive,.I vqdesascoutputs debugging messages and other information about the codebookdesign to a history file. The messages proliferate as .I debug_level increases. Levels up to 6 are supported currently. ForForinformation about what output results from each value of .I debug_level,see the discussion of the parameter .I hdetailin.I vqdesign(3\-ESPS). .IPFor the default level (2), a summary of the various design parameters isoutput to the history file at the beginning of the run. Then, thefollowing are written each time the codebook has converged at a given sizeor after an empty cell has been filled: current date and time, currentcodebook size, size of training sequence for current codebook, total numberof clustering iterations so far, average distortion of the currentcodebook, total number of empty cells found so far, and codebook entropy.Also, the average distortion with respect to the current codebook is outputeach time the full training sequence is encoded..TP.BI \-h " histfile \fR[vqdesaschist]\fP"Specifies the file to use for history and debugging output. .TP.BI \-k " checkfile \fR[vqdesasc.chk]\fP"Specifies the name of the checkpoint file written by .I vqdesasc. .TP.BI \-l " max_line_len \fR[500]\fP"Specifies the maximum length of input lines. .TP.B \-iSpecifies that an initial codebook is to be used (otherwise a rootcodebook is designed from the training sequence). The filename and record number for the initial codebook are given respectivelyby the parameters .I init_fileand.I init_recin the ESPS parameter file. The file must be of type FEA_VQ. Whether or not the initial codebook is clustered before splitting is determined by the parameter.I init_behavin the ESPS parameter file. .IPThe parameters.I conv_ratioand.I dist_typeapply whether or not the \fB\-i\fP option is used. .TP.BI \-c " comment"Specifies that the ASCII string .I commentbe added as a comment in the header of .I output.fea..TP.BI \-C " comment_file"Specifies that the contents of the file.I comment_filebe added as a comment in the header of .I output.fea. .SH "ESPS PARAMETERS".PPThe following parameters are read from the parameter or common file (see also the description of the \fB\-i\fP option):.sp.I "double conv_ratio".PPEach clustering iteration of the codebook design algorithm is repeated until the fractional decrease in the overall average distortion between successive iterations falls below.I conv_ratio. A reasonable initial value is .05.sp.I "int vq_size".PPSpecifies the size of the desired VQ codebook..sp.I "string dist_type".PPSpecifies the type of distortion measure to use. Currently supportedvalues are "MSE" (mean-square-error) and "MSE_LAR" (mean-square-error on logarea ratios, which assumes that the input vectors are reflectioncoefficients). .sp.I "string cbk_struct".PPSpecifies the search-structure of the desired codebook. "FULL_SEARCH"is the only value supported at this time. .sp.I "string init_file".PPSpecifies the name of the file containing the initial codebook (see\fB\-i\fP). .sp.I "int init_rec".PPSpecifies the record number of the initial codebook in .I init_file(see \fB\-i\fP). .sp.I "string init_behav".PPIf this parameter is "INIT_NOCLUSTER", the initial codebook is split right away. If it is "INIT_CLUSTER", the training sequence is used to recluster the initial codebook (until convergence) beforesplitting. (See \fB\-i\fP). .sp .I "int max_iter"Specifies the maximum number of iterations per level. If thisparameter is not present, a default value of 500 is used. .PPThe values of parameters obtained from the parameter file are printedif the environment variable ESPS_VERBOSE is 3 or greater. The defaultvalue is 3..SH ESPS COMMON.PPESPS Common is read if.I filenamein Common matches .I input. No values are written to ESPS Common. .PPESPS Common processing may be disabled by setting the environment variableUSE_ESPS_COMMON to "off". The default ESPS Common file is .espscom in the user's home directory. This may be overidden by settingthe environment variable ESPSCOM to the desired path. User feedback ofCommon processing is determined by the environment variable ESPS_VERBOSE,with 0 causing no feedback and increasing levels causing increasinglydetailed feedback. If ESPS_VERBOSE is not defined, a default value of 3 isassumed..SH ESPS HEADERS.PP.I Vqdesascsets .I hd.fea\->typeto FEA_VQ, and it fills in the other header fields so as to define FEA records of that type. The command line is added as a comment. It there is an initial codebook specified, its header is added as a source. .I Vqdesascalso writes the following generic header items:.sp.I "design_size".PPThis is the number of codewords in the codebook. .sp.I "codeword_dimen".PPThis is the dimension of each codeword. .PPNote that both of these generic header items are redundant since the same values are stored in the FEA record itself. However, they are also written in the header as they do determine the sizeof the FEA file records. .SH "FUTURE CHANGES".PPAdditional values for the parameters.I dist_type,and.I cbk_struct will be supported. .I Vqdesascwill be modified so that standard input can be used in place of .I input..SH "SEE ALSO".PPvqasc(1\-ESPS), vq(1\-ESPS), vqdes(1\-ESPS),vqdesign(3\-ESPS), FEA_VQ(5\-ESPS), ESPS(5-ESPS), FEA(5-ESPS).SH "WARNINGS AND DIAGNOSTICS".PP.I Vqdesascwill exit with appropriate messages if any of the following hold:.IPAn initial codebook is used and its file name is the same as that ofthe checkpoint file (this is for safety)..IPThere is no data in the input file..IPThe feature vectors in .I inputdo not all have the same dimension or their dimension is less than 2. .IPSufficient memory could not be allocated..IPIt can't read the ESPS header of the initial codebook file, or the fileis not of type FEA_VQ, or there are insufficient records in thefile. .IPThe dimension of the initial codebook doesn't match that of the training sequence. .IPAn invalid distortion type is specified. .PP.I Vqdesascperforms various consistency checks on the initial codebook. .SH "BUGS".PPNone known. .SH "REFERENCES".nf\fIvqdesign\fP(3\-\s-1ESPS\s+1), \fIvqasc\fP(1\-\s-1ESPS\s+1), \fIvqdes\fP(1\-\s-1ESPS\s+1), \fIvq\fP(1\-\s-1ESPS\s+1), \fIpplain\fP(1\-\s-1ESPS\s+1), \fIaddfea\fP(1\-\s-1ESPS\s+1). .fi.SH "AUTHOR".PPManual page by John Shore; program by John Shore.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -