clustering.py 文件源码

python
阅读 28 收藏 0 点赞 0 评论 0

项目:wi_wacv14 作者: VChristlein 项目源码 文件源码
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
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号