index.html 9.9 KB
Newer Older
1
<!DOCTYPE html>
2 3 4 5 6 7 8 9 10
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta name="description" content="None">
  
  <link rel="shortcut icon" href="img/favicon.ico">
11
  <title>Home - PaddleSlim Docs</title>
12
  <link href='https://fonts.googleapis.com/css?family=Lato:400,700|Roboto+Slab:400,700|Inconsolata:400,700' rel='stylesheet' type='text/css'>
13

14 15 16
  <link rel="stylesheet" href="css/theme.css" type="text/css" />
  <link rel="stylesheet" href="css/theme_extra.css" type="text/css" />
  <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/github.min.css">
17
  <link href="extra.css" rel="stylesheet">
18 19 20
  
  <script>
    // Current page data
21
    var mkdocs_page_name = "Home";
22 23 24 25 26 27 28 29 30 31
    var mkdocs_page_input_path = "index.md";
    var mkdocs_page_url = null;
  </script>
  
  <script src="js/jquery-2.1.1.min.js" defer></script>
  <script src="js/modernizr-2.8.3.min.js" defer></script>
  <script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/highlight.min.js"></script>
  <script>hljs.initHighlightingOnLoad();</script> 
  
</head>
32

33
<body class="wy-body-for-nav" role="document">
34

35
  <div class="wy-grid-for-nav">
36

37 38 39
    
    <nav data-toggle="wy-nav-shift" class="wy-nav-side stickynav">
      <div class="wy-side-nav-search">
40
        <a href="." class="icon icon-home"> PaddleSlim Docs</a>
41 42 43 44 45 46
        <div role="search">
  <form id ="rtd-search-form" class="wy-form" action="./search.html" method="get">
    <input type="text" name="q" placeholder="Search docs" title="Type search term here" />
  </form>
</div>
      </div>
47

48 49 50 51 52 53
      <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
	<ul class="current">
	  
          
            <li class="toctree-l1 current">
		
54
    <a class="current" href=".">Home</a>
55
    <ul class="subnav">
56
            
57
    <li class="toctree-l2"><a href="#paddleslim">PaddleSlim</a></li>
58 59 60
    
        <ul>
        
61
            <li><a class="toctree-l3" href="#_1">功能</a></li>
62
        
63
            <li><a class="toctree-l3" href="#_2">安装</a></li>
64
        
65
            <li><a class="toctree-l3" href="#_3">使用</a></li>
66
        
67
            <li><a class="toctree-l3" href="#_4">贡献与反馈</a></li>
68 69 70 71
        
        </ul>
    

72
    </ul>
73 74 75 76
	    </li>
          
            <li class="toctree-l1">
		
77 78 79 80 81
    <a class="" href="model_zoo/">模型库</a>
	    </li>
          
            <li class="toctree-l1">
		
82
    <span class="caption-text">教程</span>
83 84 85
    <ul class="subnav">
                <li class="">
                    
86
    <a class="" href="tutorials/quant_post_demo/">离线量化</a>
87
                </li>
88
                <li class="">
89
                    
90
    <a class="" href="tutorials/quant_aware_demo/">量化训练</a>
91
                </li>
92 93
                <li class="">
                    
94
    <a class="" href="tutorials/quant_embedding_demo/">Embedding量化</a>
95
                </li>
96
                <li class="">
97
                    
98
    <a class="" href="tutorials/nas_demo/">SA搜索</a>
99
                </li>
100
                <li class="">
101
                    
102
    <a class="" href="search_space/">搜索空间</a>
103 104 105
                </li>
                <li class="">
                    
106
    <a class="" href="tutorials/distillation_demo/">知识蒸馏</a>
107
                </li>
108 109 110 111 112
    </ul>
	    </li>
          
            <li class="toctree-l1">
		
113
    <span class="caption-text">API</span>
114
    <ul class="subnav">
115
                <li class="">
116
                    
117
    <a class="" href="api/quantization_api/">量化</a>
118
                </li>
119
                <li class="">
120
                    
121
    <a class="" href="api/prune_api/">剪枝与敏感度</a>
122
                </li>
123
                <li class="">
124
                    
125
    <a class="" href="api/analysis_api/">模型分析</a>
126
                </li>
127 128
                <li class="">
                    
129
    <a class="" href="api/single_distiller_api/">知识蒸馏</a>
130
                </li>
131 132
                <li class="">
                    
133 134 135 136 137
    <a class="" href="api/nas_api/">SA搜索</a>
                </li>
                <li class="">
                    
    <a class="" href="table_latency/">硬件延时评估表</a>
138
                </li>
139
    </ul>
140 141
	    </li>
          
142 143 144 145 146
            <li class="toctree-l1">
		
    <a class="" href="algo/algo/">算法原理</a>
	    </li>
          
147 148 149 150
        </ul>
      </div>
      &nbsp;
    </nav>
151

152
    <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
153

154 155 156
      
      <nav class="wy-nav-top" role="navigation" aria-label="top navigation">
        <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
157
        <a href=".">PaddleSlim Docs</a>
158
      </nav>
159

160 161 162 163 164 165 166 167 168
      
      <div class="wy-nav-content">
        <div class="rst-content">
          <div role="navigation" aria-label="breadcrumbs navigation">
  <ul class="wy-breadcrumbs">
    <li><a href=".">Docs</a> &raquo;</li>
    
      
    
169
    <li>Home</li>
170 171
    <li class="wy-breadcrumbs-aside">
      
172
        <a href="https://github.com/PaddlePaddle/PaddleSlim/edit/master/docs/index.md"
173 174
          class="icon icon-github"> Edit on GitHub</a>
      
175 176 177 178 179 180 181
    </li>
  </ul>
  <hr/>
</div>
          <div role="main">
            <div class="section">
              
182
                <h1 id="paddleslim">PaddleSlim<a class="headerlink" href="#paddleslim" title="Permanent link">#</a></h1>
183 184
<p>PaddleSlim是PaddlePaddle框架的一个子模块,主要用于压缩图像领域模型。在PaddleSlim中,不仅实现了目前主流的网络剪枝、量化、蒸馏三种压缩策略,还实现了超参数搜索和小模型网络结构搜索功能。在后续版本中,会添加更多的压缩策略,以及完善对NLP领域模型的支持。</p>
<h2 id="_1">功能<a class="headerlink" href="#_1" title="Permanent link">#</a></h2>
185
<ul>
186 187
<li>模型剪裁</li>
<li>支持通道均匀模型剪裁(uniform pruning)</li>
188
<li>基于敏感度的模型剪裁</li>
189 190
<li>
<p>基于进化算法的自动模型剪裁三种方式</p>
191 192 193 194
</li>
<li>
<p>量化训练</p>
</li>
195 196
<li>在线量化训练(training aware)</li>
<li>离线量化(post training)</li>
197
<li>
198 199 200 201
<p>支持对权重全局量化和Channel-Wise量化</p>
</li>
<li>
<p>蒸馏</p>
202 203 204
</li>
<li>
<p>轻量神经网络结构自动搜索(Light-NAS)</p>
205
</li>
206 207 208
<li>支持基于进化算法的轻量神经网络结构自动搜索(Light-NAS)</li>
<li>支持 FLOPS / 硬件延时约束</li>
<li>支持多平台模型延时评估</li>
209
</ul>
210
<h2 id="_2">安装<a class="headerlink" href="#_2" title="Permanent link">#</a></h2>
211 212 213 214
<p>安装PaddleSlim前,请确认已正确安装Paddle1.6版本或更新版本。Paddle安装请参考:<a href="https://www.paddlepaddle.org.cn/install/quick">Paddle安装教程</a></p>
<ul>
<li>安装develop版本</li>
</ul>
215
<div class="codehilite"><pre><span></span>git clone https://github.com/PaddlePaddle/PaddleSlim.git
216
<span class="nb">cd</span> PaddleSlim
217
python setup.py install
218 219 220 221 222
</pre></div>

<ul>
<li>安装官方发布的最新版本</li>
</ul>
223
<div class="codehilite"><pre><span></span>pip install paddleslim -i https://pypi.org/simple
224 225 226 227 228 229
</pre></div>

<ul>
<li>安装历史版本</li>
</ul>
<p>请点击<a href="https://pypi.org/project/paddleslim/#history">pypi.org</a>查看可安装历史版本。</p>
230
<h2 id="_3">使用<a class="headerlink" href="#_3" title="Permanent link">#</a></h2>
231
<ul>
232 233 234 235 236 237
<li><a href="doc/api_guide.md">API文档</a>:API使用介绍,包括<a href="">蒸馏</a><a href="">剪裁</a><a href="">量化</a><a href="">模型结构搜索</a></li>
<li><a href="doc/demo_guide.md">示例</a>:基于mnist和cifar10等简单分类任务的模型压缩示例,您可以通过该部分快速体验和了解PaddleSlim的功能。</li>
<li><a href="">实践教程</a>:经典模型的分析和压缩实验教程。</li>
<li><a href="">模型库</a>:经过压缩的分类、检测、语义分割模型,包括权重文件、网络结构文件和性能数据。</li>
<li><a href="">Paddle检测库</a>:介绍如何在检测库中使用PaddleSlim。</li>
<li><a href="">Paddle分割库</a>:介绍如何在分割库中使用PaddleSlim。</li>
238 239
<li><a href="">PaddleLite</a>:介绍如何使用预测库PaddleLite部署PaddleSlim产出的模型。</li>
</ul>
240
<h2 id="_4">贡献与反馈<a class="headerlink" href="#_4" title="Permanent link">#</a></h2>
241
              
242
            </div>
243 244 245 246 247
          </div>
          <footer>
  
    <div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
      
248
        <a href="model_zoo/" class="btn btn-neutral float-right" title="模型库">Next <span class="icon icon-circle-arrow-right"></span></a>
249 250
      
      
251
    </div>
252 253 254 255 256 257 258 259 260 261 262 263
  

  <hr/>

  <div role="contentinfo">
    <!-- Copyright etc -->
    
  </div>

  Built with <a href="http://www.mkdocs.org">MkDocs</a> using a <a href="https://github.com/snide/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>.
</footer>
      
264
        </div>
265 266 267 268 269 270 271 272 273
      </div>

    </section>

  </div>

  <div class="rst-versions" role="note" style="cursor: pointer">
    <span class="rst-current-version" data-toggle="rst-current-version">
      
274 275
          <a href="https://github.com/PaddlePaddle/PaddleSlim/" class="fa fa-github" style="float: left; color: #fcfcfc"> GitHub</a>
      
276 277
      
      
278
        <span style="margin-left: 15px"><a href="model_zoo/" style="color: #fcfcfc">Next &raquo;</a></span>
279 280
      
    </span>
281
</div>
282 283
    <script>var base_url = '.';</script>
    <script src="js/theme.js" defer></script>
284
      <script src="mathjax-config.js" defer></script>
285
      <script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS-MML_HTMLorMML" defer></script>
286
      <script src="search/main.js" defer></script>
287

288
</body>
289 290 291 292
</html>

<!--
MkDocs version : 1.0.4
293
Build Date UTC : 2020-01-22 08:35:11
294
-->