def parserArguments(parser):
parser.add_argument('--max_descriptors', nargs='*',
type=int, default=[150000],
help='load maximum descriptors')
parser.add_argument('--num_clusters', type=int, default=100,\
help='number of cluster-centers = size of vocabulary')
parser.add_argument('--vocabulary_filename', default='ubm',\
help='write vocabulary to this file')
parser.add_argument('--method', default='gmm',\
choices=['gmm'],
help=('method for clustering'))
parser.add_argument('--iterations', type=int, default=100,\
help=' number of iterations (if gmm, this is the gmm '
'part, not the kmeans-initialization part)')
parser.add_argument('--update', default='wmc',\
help='what to update w. GMM, w:weights, m:means, c:covars')
parser.add_argument('--covar_type', default='diag',
choices=['full','diag'],
help='covariance type for gmm')
return parser
评论列表
文章目录