blob: 8165713672745fe2acbcd7ab8040b7b6969c3d33 [file] [log] [blame]
<!DOCTYPE html>
<!--[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 name="viewport" content="width=device-width, initial-scale=1.0">
<title>图像工具 &mdash; singa 2.0.0 documentation</title>
<script type="text/javascript" src="../_static/js/modernizr.min.js"></script>
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT:'../',
VERSION:'2.0.0',
LANGUAGE:'None',
COLLAPSE_INDEX:false,
FILE_SUFFIX:'.html',
HAS_SOURCE: true,
SOURCELINK_SUFFIX: '.txt'
};
</script>
<script type="text/javascript" src="../_static/jquery.js"></script>
<script type="text/javascript" src="../_static/underscore.js"></script>
<script type="text/javascript" src="../_static/doctools.js"></script>
<script type="text/javascript" src="../_static/js/theme.js"></script>
<link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
<link rel="index" title="Index" href="../genindex.html" />
<link rel="search" title="Search" href="../search.html" />
<link rel="next" title="Snapshot" href="snapshot.html" />
<link rel="prev" title="数据(Data)" href="data.html" />
<link href="../_static/style.css" rel="stylesheet" type="text/css">
<!--link href="../_static/fontawesome-all.min.css" rel="stylesheet" type="text/css"-->
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.13/css/all.css"
integrity="sha384-DNOHZ68U8hZfKXOrtjWvjxusGo9WQnrNx2sqG0tfsghAvtVlRW3tvkXWZh58N9jp" crossorigin="anonymous">
<style>
.fa:hover {
opacity: 0.7;
}
.fab:hover {
opacity: 0.7;
}
</style>
</head>
<body class="wy-body-for-nav">
<div class="wy-grid-for-nav">
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
<div class="wy-side-scroll">
<div class="wy-side-nav-search" >
<a href="../index.html" class="icon icon-home"> singa
<img src="../_static/singa.png" class="logo" alt="Logo"/>
</a>
<div class="version">
latest
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="../search.html" method="get">
<input type="text" name="q" placeholder="Search docs" />
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
</div>
</div>
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
<ul class="current">
<li class="toctree-l1 current"><a class="reference internal" href="index.html">文档</a><ul class="current">
<li class="toctree-l2"><a class="reference internal" href="installation.html">安装</a></li>
<li class="toctree-l2"><a class="reference internal" href="software_stack.html">软件架构</a></li>
<li class="toctree-l2"><a class="reference internal" href="device.html">设备(Device)</a></li>
<li class="toctree-l2"><a class="reference internal" href="tensor.html">张量(Tensor)</a></li>
<li class="toctree-l2"><a class="reference internal" href="layer.html">层(Layer)</a></li>
<li class="toctree-l2"><a class="reference internal" href="net.html">前馈网络</a></li>
<li class="toctree-l2"><a class="reference internal" href="initializer.html">初始化器(Initializer)</a></li>
<li class="toctree-l2"><a class="reference internal" href="loss.html">损失(Loss)</a></li>
<li class="toctree-l2"><a class="reference internal" href="metric.html">度量(Metric)</a></li>
<li class="toctree-l2"><a class="reference internal" href="optimizer.html">优化器(Optimizer)</a></li>
<li class="toctree-l2"><a class="reference internal" href="data.html">数据(Data)</a></li>
<li class="toctree-l2 current"><a class="current reference internal" href="#">图像工具</a><ul>
<li class="toctree-l3"><a class="reference internal" href="#class-singa-image-tool-imagetool">class singa.image_tool.ImageTool</a><ul>
<li class="toctree-l4"><a class="reference internal" href="#color-cast-offset-20-inplace-true">color_cast(offset=20, inplace=True)</a></li>
<li class="toctree-l4"><a class="reference internal" href="#crop3-patch-num-case-1-inplace-true">crop3(patch, num_case=1, inplace=True)</a></li>
<li class="toctree-l4"><a class="reference internal" href="#crop5-patch-num-case-1-inplace-true">crop5(patch, num_case=1, inplace=True)</a></li>
<li class="toctree-l4"><a class="reference internal" href="#crop8-patch-num-case-1-inplace-true">crop8(patch, num_case=1, inplace=True)</a></li>
<li class="toctree-l4"><a class="reference internal" href="#enhance-scale-0-2-inplace-true">enhance(scale=0.2, inplace=True)</a></li>
<li class="toctree-l4"><a class="reference internal" href="#flip-num-case-1-inplace-true">flip(num_case=1, inplace=True)</a></li>
<li class="toctree-l4"><a class="reference internal" href="#num-augmentation">num_augmentation()</a></li>
<li class="toctree-l4"><a class="reference internal" href="#random-crop-patch-inplace-true">random_crop(patch, inplace=True)</a></li>
<li class="toctree-l4"><a class="reference internal" href="#resize-by-list-size-list-num-case-1-inplace-true">resize_by_list(size_list, num_case=1, inplace=True)</a></li>
<li class="toctree-l4"><a class="reference internal" href="#resize-by-range-rng-inplace-true">resize_by_range(rng, inplace=True)</a></li>
<li class="toctree-l4"><a class="reference internal" href="#rotate-by-list-angle-list-num-case-1-inplace-true">rotate_by_list(angle_list, num_case=1, inplace=True)</a></li>
<li class="toctree-l4"><a class="reference internal" href="#rotate-by-range-rng-inplace-true">rotate_by_range(rng, inplace=True)</a></li>
<li class="toctree-l4"><a class="reference internal" href="#singa-image-tool-color-cast-img-offset">singa.image_tool.color_cast(img, offset)</a></li>
<li class="toctree-l4"><a class="reference internal" href="#singa-image-tool-crop-img-patch-position">singa.image_tool.crop(img, patch, position)</a></li>
<li class="toctree-l4"><a class="reference internal" href="#singa-image-tool-crop-and-resize-img-patch-position">singa.image_tool.crop_and_resize(img, patch, position)</a></li>
<li class="toctree-l4"><a class="reference internal" href="#singa-image-tool-enhance-img-scale">singa.image_tool.enhance(img, scale)</a></li>
<li class="toctree-l4"><a class="reference internal" href="#singa-image-tool-load-img-path-grayscale-false">singa.image_tool.load_img(path, grayscale=False)</a></li>
<li class="toctree-l4"><a class="reference internal" href="#singa-image-tool-resize-img-small-size">singa.image_tool.resize(img, small_size)</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="snapshot.html">Snapshot</a></li>
<li class="toctree-l2"><a class="reference internal" href="utils.html">Utils</a></li>
<li class="toctree-l2"><a class="reference internal" href="model_zoo/index.html">模型库</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="../downloads.html">下载 SINGA</a></li>
</ul>
<p class="caption"><span class="caption-text">开发</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../develop/schedule.html">开发时间表</a></li>
<li class="toctree-l1"><a class="reference internal" href="../develop/how-contribute.html">如何贡献给 SINGA</a></li>
<li class="toctree-l1"><a class="reference internal" href="../develop/contribute-code.html">如何贡献代码</a></li>
</ul>
<p class="caption"><span class="caption-text">社区</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../community/source-repository.html">源代码库</a></li>
<li class="toctree-l1"><a class="reference internal" href="../community/mail-lists.html">项目邮件列表</a></li>
<li class="toctree-l1"><a class="reference internal" href="../community/issue-tracking.html">问题追踪</a></li>
<li class="toctree-l1"><a class="reference internal" href="../community/team-list.html">SINGA团队</a></li>
</ul>
</div>
</div>
</nav>
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
<nav class="wy-nav-top" aria-label="top navigation">
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
<a href="../index.html">singa</a>
</nav>
<div class="wy-nav-content">
<div class="rst-content">
<div role="navigation" aria-label="breadcrumbs navigation">
<ul class="wy-breadcrumbs">
<li><a href="../index.html">Docs</a> &raquo;</li>
<li><a href="index.html">文档</a> &raquo;</li>
<li>图像工具</li>
<li class="wy-breadcrumbs-aside">
</li>
</ul>
<hr/>
</div>
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
<div itemprop="articleBody">
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
--><div class="section" id="id1">
<h1>图像工具<a class="headerlink" href="#id1" title="Permalink to this headline"></a></h1>
<p>图像增强的模型。</p>
<p>示例用法:</p>
<div class="highlight-python"><div class="highlight"><pre><span></span><span class="kn">from</span> <span class="nn">singa</span> <span class="kn">import</span> <span class="n">image_tool</span>
<span class="n">tool</span> <span class="o">=</span> <span class="n">image_tool</span><span class="o">.</span><span class="n">ImageTool</span><span class="p">()</span>
<span class="n">imgs</span> <span class="o">=</span> <span class="n">tool</span><span class="o">.</span><span class="n">load</span><span class="p">(</span><span class="s1">&#39;input.png&#39;</span><span class="p">)</span><span class="o">.</span><span class="n">resize_by_list</span><span class="p">([</span><span class="mi">112</span><span class="p">])</span><span class="o">.</span><span class="n">crop5</span><span class="p">((</span><span class="mi">96</span><span class="p">,</span> <span class="mi">96</span><span class="p">),</span> <span class="mi">5</span><span class="p">)</span><span class="o">.</span><span class="n">enhance</span><span class="p">()</span><span class="o">.</span><span class="n">flip</span><span class="p">()</span><span class="o">.</span><span class="n">get</span><span class="p">()</span>
<span class="k">for</span> <span class="n">idx</span><span class="p">,</span> <span class="n">img</span> <span class="ow">in</span> <span class="nb">enumerate</span><span class="p">(</span><span class="n">imgs</span><span class="p">):</span>
<span class="n">img</span><span class="o">.</span><span class="n">save</span><span class="p">(</span><span class="s1">&#39;</span><span class="si">%d</span><span class="s1">.png&#39;</span> <span class="o">%</span> <span class="n">idx</span><span class="p">)</span>
</pre></div>
</div>
<hr class="docutils" />
<div class="section" id="class-singa-image-tool-imagetool">
<h2>class singa.image_tool.ImageTool<a class="headerlink" href="#class-singa-image-tool-imagetool" title="Permalink to this headline"></a></h2>
<p>一个图像增强工具。 对于inplace = True的操作,返回的值是ImageTool实例,用于链接多个操作; 否则,将返回预处理过的图像。 对于具有可数预处理情况的操作,可以设置参数num_case来决定要应用的预处理情况的数量。 通常,训练阶段设置为1,测试阶段设置为最大。</p>
<hr class="docutils" />
<div class="section" id="color-cast-offset-20-inplace-true">
<h3>color_cast(offset=20, inplace=True)<a class="headerlink" href="#color-cast-offset-20-inplace-true" title="Permalink to this headline"></a></h3>
<p>对每个通道加上一个随机偏移值[-offset, offset]。</p>
<p><strong>参数:</strong></p>
<ul class="simple">
<li><strong>offset</strong> – 偏移, &gt;0 and &lt;255</li>
<li><strong>inplace</strong> – 对原图对象操作或返回一张新图</li>
</ul>
</div>
<hr class="docutils" />
<div class="section" id="crop3-patch-num-case-1-inplace-true">
<h3>crop3(patch, num_case=1, inplace=True)<a class="headerlink" href="#crop3-patch-num-case-1-inplace-true" title="Permalink to this headline"></a></h3>
<p>对给定位置,截取可能的最大方框并缩放到给定尺寸。 按照图像尺寸,截取位置可以是(左, 中, 右)或(上, 中, 下)之一。</p>
<p><strong>参数:</strong></p>
<ul class="simple">
<li><strong>patch (tuple)</strong> – 输出图像的高和宽</li>
<li><strong>num_case</strong> – 情况数目, 必须在[1,3]</li>
<li><strong>inplace</strong> – 对原图对象操作或返回一张新图</li>
</ul>
</div>
<hr class="docutils" />
<div class="section" id="crop5-patch-num-case-1-inplace-true">
<h3>crop5(patch, num_case=1, inplace=True)<a class="headerlink" href="#crop5-patch-num-case-1-inplace-true" title="Permalink to this headline"></a></h3>
<p>截取位置可以是[左上, 左下, 右上, 右下, 中间]。</p>
<p><strong>参数:</strong></p>
<ul class="simple">
<li><strong>patch (tuple)</strong> – 输出图像的高和宽</li>
<li><strong>num_case</strong> – 情况数目, 必须在[1,5]</li>
<li><strong>inplace</strong> – 对原图对象操作或返回一张新图</li>
</ul>
</div>
<hr class="docutils" />
<div class="section" id="crop8-patch-num-case-1-inplace-true">
<h3>crop8(patch, num_case=1, inplace=True)<a class="headerlink" href="#crop8-patch-num-case-1-inplace-true" title="Permalink to this headline"></a></h3>
<p>这是patch_5和patch_and_scale的并集。 你可以依照这个例子取任何情况的并集。</p>
</div>
<hr class="docutils" />
<div class="section" id="enhance-scale-0-2-inplace-true">
<h3>enhance(scale=0.2, inplace=True)<a class="headerlink" href="#enhance-scale-0-2-inplace-true" title="Permalink to this headline"></a></h3>
<p>对色度、对比度、亮度和锐度采用随机增强。</p>
<p><strong>参数:</strong></p>
<ul class="simple">
<li><strong>scale (float)</strong> – 增强范围 [1-scale, 1+scale]</li>
<li><strong>inplace</strong> – 对原图对象操作或返回一张新图</li>
</ul>
</div>
<hr class="docutils" />
<div class="section" id="flip-num-case-1-inplace-true">
<h3>flip(num_case=1, inplace=True)<a class="headerlink" href="#flip-num-case-1-inplace-true" title="Permalink to this headline"></a></h3>
<p>随机向左或向右翻转图像。</p>
<p><strong>参数:</strong></p>
<ul class="simple">
<li><strong>num_case</strong> – 情况数目,必须是 {1,2}; 如果是2,则会返回原图以及翻转的图像。</li>
<li><strong>inplace</strong> – 对原图对象操作或返回一张新图</li>
</ul>
</div>
<hr class="docutils" />
<div class="section" id="num-augmentation">
<h3>num_augmentation()<a class="headerlink" href="#num-augmentation" title="Permalink to this headline"></a></h3>
<p>返回每张图像被增强后的总数</p>
</div>
<hr class="docutils" />
<div class="section" id="random-crop-patch-inplace-true">
<h3>random_crop(patch, inplace=True)<a class="headerlink" href="#random-crop-patch-inplace-true" title="Permalink to this headline"></a></h3>
<p>根据随机偏移截取指定大小的图像</p>
<p><strong>参数:</strong></p>
<ul class="simple">
<li><strong>patch (tuple)</strong> – 截取图像块的高和宽</li>
<li><strong>inplace (Boolean)</strong> – 如果为真,直接用新图像块替换原始图像内容;否则返回新图像块。</li>
</ul>
</div>
<hr class="docutils" />
<div class="section" id="resize-by-list-size-list-num-case-1-inplace-true">
<h3>resize_by_list(size_list, num_case=1, inplace=True)<a class="headerlink" href="#resize-by-list-size-list-num-case-1-inplace-true" title="Permalink to this headline"></a></h3>
<p><strong>参数:</strong></p>
<ul class="simple">
<li><strong>num_case</strong> – 缩放操作数目, 必须不超过size_list的长度</li>
<li><strong>inplace</strong> – 对原图对象操作或返回一张新图</li>
</ul>
</div>
<hr class="docutils" />
<div class="section" id="resize-by-range-rng-inplace-true">
<h3>resize_by_range(rng, inplace=True)<a class="headerlink" href="#resize-by-range-rng-inplace-true" title="Permalink to this headline"></a></h3>
<p><strong>参数:</strong></p>
<ul class="simple">
<li><strong>rng</strong> – 元组 (起始值, 结束值), 包括起始值但不包括结束值</li>
<li><strong>inplace</strong> – 对原图对象操作或返回一张新图</li>
</ul>
</div>
<hr class="docutils" />
<div class="section" id="rotate-by-list-angle-list-num-case-1-inplace-true">
<h3>rotate_by_list(angle_list, num_case=1, inplace=True)<a class="headerlink" href="#rotate-by-list-angle-list-num-case-1-inplace-true" title="Permalink to this headline"></a></h3>
<p><strong>参数:</strong></p>
<ul class="simple">
<li><strong>num_case</strong> – 旋转操作数目, 必须不超过angle_list的长度</li>
<li><strong>inplace</strong> – 对原图对象操作或返回一张新图</li>
</ul>
</div>
<hr class="docutils" />
<div class="section" id="rotate-by-range-rng-inplace-true">
<h3>rotate_by_range(rng, inplace=True)<a class="headerlink" href="#rotate-by-range-rng-inplace-true" title="Permalink to this headline"></a></h3>
<p><strong>参数:</strong></p>
<ul class="simple">
<li><strong>rng</strong> – 表示旋转角度范围的元组 (起始值, 结束值), 包括起始值但不包括结束值</li>
<li><strong>inplace</strong> – 对原图对象操作或返回一张新图</li>
</ul>
</div>
<hr class="docutils" />
<div class="section" id="singa-image-tool-color-cast-img-offset">
<h3>singa.image_tool.color_cast(img, offset)<a class="headerlink" href="#singa-image-tool-color-cast-img-offset" title="Permalink to this headline"></a></h3>
<p>对每个通道加上一个随机偏移值[-offset, offset]。</p>
</div>
<hr class="docutils" />
<div class="section" id="singa-image-tool-crop-img-patch-position">
<h3>singa.image_tool.crop(img, patch, position)<a class="headerlink" href="#singa-image-tool-crop-img-patch-position" title="Permalink to this headline"></a></h3>
<p>截取给定位置和给定大小的图像块。</p>
<p><strong>参数:</strong></p>
<ul class="simple">
<li><strong>patch (tuple)</strong> – 宽,高</li>
<li><strong>position (list(str))</strong> – 左上,左下,右上,右下,中间</li>
</ul>
</div>
<hr class="docutils" />
<div class="section" id="singa-image-tool-crop-and-resize-img-patch-position">
<h3>singa.image_tool.crop_and_resize(img, patch, position)<a class="headerlink" href="#singa-image-tool-crop-and-resize-img-patch-position" title="Permalink to this headline"></a></h3>
<p>对给定位置,截取可能的最大方框并缩放到给定尺寸。</p>
<p><strong>参数:</strong></p>
<ul class="simple">
<li><strong>patch (tuple)</strong> – 宽,高</li>
<li><strong>position (list(str))</strong> – 左,中,右,上,中,下</li>
</ul>
</div>
<hr class="docutils" />
<div class="section" id="singa-image-tool-enhance-img-scale">
<h3>singa.image_tool.enhance(img, scale)<a class="headerlink" href="#singa-image-tool-enhance-img-scale" title="Permalink to this headline"></a></h3>
<p>对色度、对比度、亮度和锐度采用随机增强。</p>
<p><strong>参数:</strong></p>
<ul class="simple">
<li><strong>scale (float)</strong> – 增强范围 [1-scale, 1+scale]</li>
</ul>
</div>
<hr class="docutils" />
<div class="section" id="singa-image-tool-load-img-path-grayscale-false">
<h3>singa.image_tool.load_img(path, grayscale=False)<a class="headerlink" href="#singa-image-tool-load-img-path-grayscale-false" title="Permalink to this headline"></a></h3>
<p>从给定路径读取图像。</p>
</div>
<hr class="docutils" />
<div class="section" id="singa-image-tool-resize-img-small-size">
<h3>singa.image_tool.resize(img, small_size)<a class="headerlink" href="#singa-image-tool-resize-img-small-size" title="Permalink to this headline"></a></h3>
<p>缩放图像使得最短边达到给定大小。</p>
<hr class="docutils" />
</div>
</div>
</div>
</div>
</div>
<footer>
<div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
<a href="snapshot.html" class="btn btn-neutral float-right" title="Snapshot" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right"></span></a>
<a href="data.html" class="btn btn-neutral float-left" title="数据(Data)" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left"></span> Previous</a>
</div>
<hr/>
<div role="contentinfo">
<p>
&copy; Copyright 2019 The Apache Software Foundation. All rights reserved. Apache SINGA, Apache, the Apache feather logo, and the Apache SINGA project logos are trademarks of The Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their respective owners.
</p>
</div>
Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/rtfd/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>.
</footer>
</div>
</div>
</section>
</div>
<script type="text/javascript">
jQuery(function () {
SphinxRtdTheme.Navigation.enable(true);
});
</script>
<div class="rst-versions" data-toggle="rst-versions" role="note" aria-label="versions">
<span class="rst-current-version" data-toggle="rst-current-version">
<span class="fa fa-book"> singa </span>
v: latest
<span class="fa fa-caret-down"></span>
</span>
<div class="rst-other-versions">
<dl>
<dt>Languages</dt>
<dd><a href="../../index.html">English</a></dd>
<dd><a href=".././index.html">中文</a></dd>
</dl>
<dl>
<dt>Versions</dt>
<dd><a href="http://singa.apache.org/v0.3.0/">0.3</a></dd>
<dd><a href="http://singa.apache.org/v1.1.0/">1.1</a></dd>
</dl>
</div>
<a href="http://www.apache.org"
style="color:lightblue;padding: 5px; font-size: 10px; text-align: center; text-decoration: none; margin: 5px 2px;">Foundation</a>
<a href="http://www.apache.org/events/current-event"
style="color:lightblue;padding: 5px; font-size: 10px; text-align: center; text-decoration: none; margin: 5px 2px;">Events</a>
<a href="http://www.apache.org/foundation/thanks.html"
style="color:lightblue;padding: 5px; font-size: 10px; text-align: center; text-decoration: none; margin: 5px 2px;">Thanks</a>
<a href="http://www.apache.org/foundation/sponsorship.html"
style="color:lightblue;padding: 5px; font-size: 10px; text-align: center; text-decoration: none; margin: 5px 2px;">Sponsorship</a>
<a href="http://www.apache.org/licenses/"
style="color:lightblue;padding: 5px; font-size: 10px; text-align: center; text-decoration: none; margin: 5px 2px;">License</a>
<br>
<a href="https://github.com/apache/singa" class="fa fa-github"
style="padding: 10px; font-size: 20px; width: 30px; text-align: center; text-decoration: none; margin: 5px 2px;"></a>
<a href="https://aws.amazon.com/marketplace/seller-profile?id=5bcac385-12c4-4802-aec7-351e09b77b4c" class="fab fa-aws"
style="padding: 10px; font-size: 20px; width: 30px; text-align: center; text-decoration: none; margin: 5px 2px;"></a>
<a href="https://hub.docker.com/r/apache/singa/" class="fab fa-docker"
style="padding: 10px; font-size: 20px; width: 30px; text-align: center; text-decoration: none; margin: 5px 2px;"></a>
<a href="https://www.linkedin.com/groups/13550034" class="fa fa-linkedin"
style="padding: 10px; font-size: 20px; width: 30px; text-align: center; text-decoration: none; margin: 5px 2px;"></a>
<a href="https://twitter.com/ApacheSinga" class="fa fa-twitter"
style="padding: 10px; font-size: 20px; width: 30px; text-align: center; text-decoration: none; margin: 5px 2px;"></a>
<a href="https://www.facebook.com/Apache-SINGA-347284219056544/" class="fa fa-facebook"
style="padding: 10px; font-size: 20px; width: 30px; text-align: center; text-decoration: none; margin: 5px 2px;"></a>
<a href="https://www.researchgate.net/project/Apache-SINGA" class="fab fa-researchgate"
style="padding: 10px; font-size: 20px; width: 30px; text-align: center; text-decoration: none; margin: 5px 2px;"></a>
</div>
<a href="https://github.com/apache/singa">
<img style="position: absolute; top: 0; right: 0; border: 0; z-index: 10000;"
src="https://s3.amazonaws.com/github/ribbons/forkme_right_orange_ff7600.png" alt="Fork me on GitHub">
</a>
</body>
</html>