<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>人工智能</title>
	<atom:link href="http://www.newlifeclan.com/ai/feed" rel="self" type="application/rss+xml" />
	<link>http://www.newlifeclan.com/ai</link>
	<description>深入学习</description>
	<lastBuildDate>Tue, 16 Aug 2022 08:59:48 +0000</lastBuildDate>
	<language>zh-CN</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.0.38</generator>
	<item>
		<title>flutter DropDownButton 更换数据后重置上一次选择</title>
		<link>http://www.newlifeclan.com/ai/archives/1002</link>
		<comments>http://www.newlifeclan.com/ai/archives/1002#comments</comments>
		<pubDate>Tue, 16 Aug 2022 08:59:48 +0000</pubDate>
		<dc:creator><![CDATA[napoleon]]></dc:creator>
				<category><![CDATA[未分类]]></category>

		<guid isPermaLink="false">http://www.newlifeclan.com/ai/?p=1002</guid>
		<description><![CDATA[在开发flutter中使用dropdownbutton作为选择组件，但是当切换数据后，原来的数据还在，我希望重 [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>在开发flutter中使用dropdownbutton作为选择组件，但是当切换数据后，原来的数据还在，我希望重置成默认提示字的样子。</p>
<p><img class="alignnone size-full wp-image-1003" src="http://www.newlifeclan.com/ai/wp-content/uploads/sites/9/2022/08/20220816AA2295D7-D9CB-46c7-A256-20819ED5ACA4.png" alt="20220816AA2295D7-D9CB-46c7-A256-20819ED5ACA4" width="371" height="232" /><span id="more-1002"></span></p>
<p><strong>这可咋办？</strong></p>
<p>我的解决方案是：利用dropdownbutton的key</p>
<p>因为我的页面里面有不固定的多个dropdownbutton，所以我将key封装到一个数组中</p><pre class="crayon-plain-tag">var dropdownKeys = [];
for (int i = 0; i &lt; XXX.length; i++) {
        dropdownKeys.add(GlobalKey()) ;
}</pre><p>Widget</p><pre class="crayon-plain-tag">@override
  Widget build(BuildContext context) {
......
 for (int i = 0;i &lt; XXXX.length;i++)
return DropdownButton(
 key: dropdownKeys[i],</pre><p>切换数据时，记得清空key数组，再重新指派key就可以了</p><pre class="crayon-plain-tag">dropdownKeys = []
for (int i = 0; i &lt; XXX.length; i++) {
        dropdownKeys.add(GlobalKey()) ;
}</pre><p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.newlifeclan.com/ai/archives/1002/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>实用工具：图片低分辨率到高分辨率转换</title>
		<link>http://www.newlifeclan.com/ai/archives/987</link>
		<comments>http://www.newlifeclan.com/ai/archives/987#comments</comments>
		<pubDate>Mon, 01 Aug 2022 09:27:10 +0000</pubDate>
		<dc:creator><![CDATA[napoleon]]></dc:creator>
				<category><![CDATA[未分类]]></category>

		<guid isPermaLink="false">http://www.newlifeclan.com/ai/?p=987</guid>
		<description><![CDATA[https://bigjpg.com/]]></description>
				<content:encoded><![CDATA[<p>https://bigjpg.com/</p>
]]></content:encoded>
			<wfw:commentRss>http://www.newlifeclan.com/ai/archives/987/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ubuntu无法进入系统：A start job is running for Hold until boot process finishes up (Xmin Xs/no limit)</title>
		<link>http://www.newlifeclan.com/ai/archives/833</link>
		<comments>http://www.newlifeclan.com/ai/archives/833#comments</comments>
		<pubDate>Tue, 29 Mar 2022 05:45:33 +0000</pubDate>
		<dc:creator><![CDATA[napoleon]]></dc:creator>
				<category><![CDATA[未分类]]></category>

		<guid isPermaLink="false">http://www.newlifeclan.com/ai/?p=833</guid>
		<description><![CDATA[按住ESC进入安全模式，选择Network，root运行一下命令 [crayon-69ea47f7e9c2e8 [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>按住ESC进入安全模式，选择Network，root运行一下命令</p><pre class="crayon-plain-tag">sudo apt-get remove plymouth
sudo apt-get remove xserver-xorg-video-intel</pre><p><span id="more-833"></span>重新启动，</p>
<p>重新启动时，仍然可能出现黑屏或紫屏，</p>
<p>按<code>Ctrl+Alt+F1</code>并使用您的用户名和密码登录。</p>
<p>我从 gdm3 切换到 lightdm 作为显示管理器</p><pre class="crayon-plain-tag">sudo apt-get install lightdm
sudo dpkg-reconfigure lightdm</pre><p>出现提示时，选择默认显示管理器作为<strong>lightdm</strong></p>
<p>安装：</p><pre class="crayon-plain-tag">sudo apt-get install ubuntu-desktop</pre><p>现在，在此之后<strong>重新启动</strong>。</p>
<p>桌面回来了！</p>
<p>现在，您可以再次安装英特尔图形驱动程序，</p><pre class="crayon-plain-tag">sudo apt-get install xserver-xorg-video-intel</pre><p><strong>现在重新启动</strong>。完成！</p>
<div class="mt24"></div>
]]></content:encoded>
			<wfw:commentRss>http://www.newlifeclan.com/ai/archives/833/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>kaldi查看fst内容</title>
		<link>http://www.newlifeclan.com/ai/archives/495</link>
		<comments>http://www.newlifeclan.com/ai/archives/495#comments</comments>
		<pubDate>Thu, 26 Aug 2021 10:24:14 +0000</pubDate>
		<dc:creator><![CDATA[napoleon]]></dc:creator>
				<category><![CDATA[未分类]]></category>

		<guid isPermaLink="false">http://www.newlifeclan.com/ai/?p=495</guid>
		<description><![CDATA[~/tmp/kaldi/tools/openfst-1.7.2/bin/fstprint HCLG.fst]]></description>
				<content:encoded><![CDATA[<p>~/tmp/kaldi/tools/openfst-1.7.2/bin/fstprint HCLG.fst</p>
]]></content:encoded>
			<wfw:commentRss>http://www.newlifeclan.com/ai/archives/495/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>sox: command not found</title>
		<link>http://www.newlifeclan.com/ai/archives/423</link>
		<comments>http://www.newlifeclan.com/ai/archives/423#comments</comments>
		<pubDate>Tue, 08 Jun 2021 02:00:17 +0000</pubDate>
		<dc:creator><![CDATA[napoleon]]></dc:creator>
				<category><![CDATA[未分类]]></category>

		<guid isPermaLink="false">http://www.newlifeclan.com/ai/?p=423</guid>
		<description><![CDATA[sudo apt-get install sox]]></description>
				<content:encoded><![CDATA[<p>sudo apt-get install sox</p>
]]></content:encoded>
			<wfw:commentRss>http://www.newlifeclan.com/ai/archives/423/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>哈鱼矿工新版发布：小白一键挖矿赚钱</title>
		<link>http://www.newlifeclan.com/ai/archives/357</link>
		<comments>http://www.newlifeclan.com/ai/archives/357#comments</comments>
		<pubDate>Tue, 04 Sep 2018 08:21:54 +0000</pubDate>
		<dc:creator><![CDATA[napoleon]]></dc:creator>
				<category><![CDATA[未分类]]></category>

		<guid isPermaLink="false">http://www.newlifeclan.com/ai/?p=357</guid>
		<description><![CDATA[北京哈希章鱼科技有限公司发布了哈鱼矿工的最新版1.2.0.1073，新版本加入了对STAK算法的支持、实现了多 [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>北京哈希章鱼科技有限公司发布了哈鱼矿工的最新版1.2.0.1073，<strong>新版本加入了对STAK算法的支持、实现了多端远程监控，增加了对显卡的温度检测，让用户对于电脑的挖矿状态更加了如指掌。</strong><span id="more-357"></span></p>
<p>据了解，哈鱼矿工与市面上常见的面向专业矿工的挖矿软件不同，<strong>它是一款真正面向普通小白的挖矿软件，他能让你在自己的电脑上体验到数字货币的价值</strong>，近距离的感受到区块链中的“挖矿”，同时还能获取到相对应的金钱报酬。</p>
<p><img class="alignnone size-full wp-image-358" src="http://www.newlifeclan.com/ai/wp-content/uploads/sites/9/2018/09/a5865ab7-8c9a-4ad9-a278-4754c6438022.jpg" alt="a5865ab7-8c9a-4ad9-a278-4754c6438022" width="698" height="438" /></p>
<p>之所以说哈鱼矿工不同，原因在于以下几点：</p>
<p><strong>一、操作简单</strong></p>
<p>哈鱼矿工利用手机号作为绑定收益的钱包账户， 用户只需要输入手机号码后点击“一键挖矿”就能运行软件进行挖矿。</p>
<p><strong>二、提现到账方便</strong></p>
<p>哈鱼矿工支持支付宝提现，提现门槛为0.0001btc ≈4rmb且已安卓端、iOS端，用户除了可在电脑程序上点击提现外，还可以下载哈鱼手机端进行提现，到账周期很短，一般当天到账。</p>
<p>&nbsp;</p>
<p><img class="alignnone size-large wp-image-359" src="http://www.newlifeclan.com/ai/wp-content/uploads/sites/9/2018/09/8c5aeda3-d2f0-4b34-8f6f-fe2cdfee9ebe-575x1024.jpg" alt="8c5aeda3-d2f0-4b34-8f6f-fe2cdfee9ebe" width="575" height="1024" /></p>
<p><strong>三、多端监控</strong></p>
<p>哈鱼矿工的手机端可以清楚的看到当前你的设备状态，算力多少，当前收益多少，当然，也支持多台设备绑定一个账户。</p>
<p><img class="alignnone size-large wp-image-360" src="http://www.newlifeclan.com/ai/wp-content/uploads/sites/9/2018/09/0f1b3abc-2436-4cdd-83df-70667de05f9c-574x1024.jpg" alt="0f1b3abc-2436-4cdd-83df-70667de05f9c" width="574" height="1024" /></p>
<p>&nbsp;</p>
<p>从哈鱼矿工官方了解到，北京哈希章鱼科技有限公司已经获得了来自真格基金、顺为、中国平安和策源创投等创投界的大佬的投资。</p>
<p>此外，哈鱼矿工也通过360安全卫士、电脑管家等安全认证，解决挖矿软件最大的问题&#8212;-安全问题。</p>
<p>&nbsp;</p>
<p><img class="alignnone size-full wp-image-361" src="http://www.newlifeclan.com/ai/wp-content/uploads/sites/9/2018/09/298fc13b-4bf7-4c3f-9a5c-12e6243055a7.jpg" alt="298fc13b-4bf7-4c3f-9a5c-12e6243055a7" width="700" height="476" /></p>
<p>官网地址：<a class="f14_link" href="http://hashfish.net/" target="_blank">点此</a>。</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>转载自：http://news.mydrivers.com/1/593/593314.htm</p>
]]></content:encoded>
			<wfw:commentRss>http://www.newlifeclan.com/ai/archives/357/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>对抗网络相关论文</title>
		<link>http://www.newlifeclan.com/ai/archives/349</link>
		<comments>http://www.newlifeclan.com/ai/archives/349#comments</comments>
		<pubDate>Sun, 05 Aug 2018 13:22:04 +0000</pubDate>
		<dc:creator><![CDATA[napoleon]]></dc:creator>
				<category><![CDATA[未分类]]></category>

		<guid isPermaLink="false">http://www.newlifeclan.com/ai/?p=349</guid>
		<description><![CDATA[https://github.com/shawnyuen/GANsPaperCollection]]></description>
				<content:encoded><![CDATA[<p>https://github.com/shawnyuen/GANsPaperCollection</p>
]]></content:encoded>
			<wfw:commentRss>http://www.newlifeclan.com/ai/archives/349/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CycleGAN 男人变女人</title>
		<link>http://www.newlifeclan.com/ai/archives/344</link>
		<comments>http://www.newlifeclan.com/ai/archives/344#comments</comments>
		<pubDate>Sun, 05 Aug 2018 13:18:55 +0000</pubDate>
		<dc:creator><![CDATA[napoleon]]></dc:creator>
				<category><![CDATA[未分类]]></category>

		<guid isPermaLink="false">http://www.newlifeclan.com/ai/?p=344</guid>
		<description><![CDATA[讲一讲如何在TensorFlow中实验CycleGAN，打开全球最大的同性交友网站Github，我们可以发现C [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>讲一讲如何在TensorFlow中实验CycleGAN，打开全球最大的同性交友网站<a class=" wrap external" href="https://link.zhihu.com/?target=https%3A//github.com/" target="_blank" rel="nofollow noreferrer">Github</a>，我们可以发现CycleGAN在TensorFlow中已经有很多轮子了，我使用的代码是：<a class=" wrap external" href="https://link.zhihu.com/?target=https%3A//github.com/vanhuyz/CycleGAN-TensorFlow" target="_blank" rel="nofollow noreferrer">vanhuyz/CycleGAN-TensorFlow</a>。<span id="more-344"></span></p>
<p>利用这个代码，我训练了一个从男性和女性图片互换的模型，比如将男人转换成女人（<b>左侧为原图，右侧为模型自动生成的图片</b>）：</p>
<p><img class="alignnone size-full wp-image-345" src="http://www.newlifeclan.com/ai/wp-content/uploads/sites/9/2018/08/v2-dace98659b3f39eedd7b574d51fd4426_r.jpg" alt="v2-dace98659b3f39eedd7b574d51fd4426_r" width="652" height="643" /></p>
<p>还可以将女性转换成男性：</p>
<p><img class="alignnone size-full wp-image-346" src="http://www.newlifeclan.com/ai/wp-content/uploads/sites/9/2018/08/v2-0828b25a2ea4c82d4ce7b5f47adebb6a_hd.jpg" alt="v2-0828b25a2ea4c82d4ce7b5f47adebb6a_hd" width="636" height="645" /></p>
<p>为了训练这么一个模型，我们需要分别准备好男性的图片和女性的图片。在实践中，我使用了CelebA数据集，分别取出其中男性和女性的图片并统一缩放到256&#215;256的大小，然后存入两个文件夹中：</p>
<p><img class="alignnone size-full wp-image-347" src="http://www.newlifeclan.com/ai/wp-content/uploads/sites/9/2018/08/v2-b8bb3b3a92d6f61ab66577014f59d9bf_hd.jpg" alt="v2-b8bb3b3a92d6f61ab66577014f59d9bf_hd" width="407" height="199" /></p>
<p><b>如果你对这个实验有兴趣，可以直接在地址<a class=" external" href="https://link.zhihu.com/?target=https%3A//pan.baidu.com/s/1i5qY3yt" target="_blank" rel="nofollow noreferrer"><span class="invisible">https://</span><span class="visible">pan.baidu.com/s/1i5qY3y</span><span class="invisible">t</span></a>下载到我使用的数据集。当然，也可以使用自己的数据，只需要将它们存为jpg格式并统一缩放到256&#215;256的大小就可以了。</b>接下来的步骤为：</p>
<p><b>1. 下载项目代码</b></p><pre class="crayon-plain-tag">git clone https://github.com/vanhuyz/CycleGAN-TensorFlow.git</pre><p>&nbsp;</p>
<p><b>2. 将图片转换成tfrecords格式</b></p>
<p>这个项目中提供了一个build_data脚本，用于将图片转换成tfrecords形式。假设我们的图片存放在~/datasets/man2woman/a_resized/和 ~/datasets/man2woman/b_resized目录下，对应的命令就是：</p><pre class="crayon-plain-tag">python build_data.py \
    --X_input_dir ~/datasets/man2woman/a_resized/ \
    --Y_input_dir ~/datasets/man2woman/b_resized/ \
    --X_output_file ~/datasets/man2woman/man.tfrecords \
    --Y_output_file ~/datasets/man2woman/woman.tfrecords</pre><p>&nbsp;</p>
<p><b>3. 训练</b></p>
<p>训练的命令为：</p><pre class="crayon-plain-tag">python train.py \
    --X ~/datasets/man2woman/man.tfrecords \
    --Y ~/datasets/man2woman/woman.tfrecords \
    --image_size 256</pre><p>训练的过程比较漫长，此时可以打开TensorBoard来观察训练情况（运行这个命令时需要将“20170715-1622”改成机器中对应的文件夹，下同）：</p><pre class="crayon-plain-tag">tensorboard --logdir checkpoints/20170715-1622</pre><p>我训练了一段时间得到如下tensorboard scalars，我的机器一般，训练时间较长</p>
<p><img class="alignnone size-large wp-image-353" src="http://www.newlifeclan.com/ai/wp-content/uploads/sites/9/2018/08/20180805212547-978x1024.jpg" alt="20180805212547" width="780" height="816" /></p>
<p>&nbsp;</p>
<p><b>4. 导出模型并执行单张图片</b></p>
<p>导出模型的方法为：</p><pre class="crayon-plain-tag">python export_graph.py \
    --checkpoint_dir checkpoints/20170715-1622 \
    --XtoY_model man2woman.pb \
    --YtoX_model woman2man.pb  \
    --image_size 256</pre><p>对单张图片进行转换（将data/test.jpg替换为对应的输入图片地址）：</p><pre class="crayon-plain-tag">python inference.py \
--model pretrained/man2woman.pb  \
--input data/test.jpg  \
--output data/output.jpg \
--image_size 256</pre><p>&nbsp;</p>
<h2>总结</h2>
<p>因为CycleGAN只需要两类图片就可以训练出一个模型，所以它的应用十分广泛，个人感觉是近期最好玩的一个深度学习模型。这篇文章介绍了CycleGAN的一些有趣的应用、Cycle的原理以及和其他模型的对比，最后加了一个TensorFlow中的CycleGAN小实验，希望大家喜欢~</p>
]]></content:encoded>
			<wfw:commentRss>http://www.newlifeclan.com/ai/archives/344/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>tensorboard command not found</title>
		<link>http://www.newlifeclan.com/ai/archives/339</link>
		<comments>http://www.newlifeclan.com/ai/archives/339#comments</comments>
		<pubDate>Sun, 05 Aug 2018 13:11:22 +0000</pubDate>
		<dc:creator><![CDATA[napoleon]]></dc:creator>
				<category><![CDATA[未分类]]></category>

		<guid isPermaLink="false">http://www.newlifeclan.com/ai/?p=339</guid>
		<description><![CDATA[因为我的tensorflow 安装在python的虚拟环境中，所以进入虚拟环境输入命令： tensorboar [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>因为我的tensorflow 安装在python的虚拟环境中，所以进入虚拟环境输入命令：<br />
tensorboard –logdir=’logs/’ 后，提示tensorboard:command not found, 图片上的tensorbard是输入错误，改为tensorboard后依然是command not found, 懒得截图就还用这个吧 <span id="more-339"></span></p>
<p><img class="alignnone size-full wp-image-340" src="http://www.newlifeclan.com/ai/wp-content/uploads/sites/9/2018/08/20170809105210268.png" alt="20170809105210268" width="750" height="173" /></p>
<p>其实这个错误的原因不是tensorboard没有安装，因为我用的tensorflow-gpu-1.2.1的版本，也就是说安装tensorflow的同时已经将tensorboard安装了。但是命令提醒tensorboard找不到，针对这个问题，网上也给出了一些解决方案：<br />
<a href="http://blog.csdn.net/uestc_c2_403/article/details/73457368" target="_blank" rel="nofollow">http://blog.csdn.net/uestc_c2_403/article/details/73457368</a><br />
<a href="http://www.linuxdiyf.com/linux/30595.html" target="_blank" rel="nofollow">http://www.linuxdiyf.com/linux/30595.html</a> (详细版)</p>
<p>就认为把tensorboard的路径加上。首先利用命令pip show tensorflow-gpu找到 tensorflow的安装路径（如果安装的是不支持gpu的tensorflow，则命令是：pip show tensorflow）</p>
<p><img class="alignnone size-full wp-image-341" src="http://www.newlifeclan.com/ai/wp-content/uploads/sites/9/2018/08/20170809105225765.png" alt="20170809105225765" width="752" height="217" /></p>
<p>注意：1，tensorboard文件夹不在tensorflow文件下下面，也就是说tensorboard不是tensorflow的子文件夹，两个文件夹是平级结构，都在site-packages文件夹下<br />
2， tensorboard文件下的的文件是main.py不是tensorboard.py<br />
3, 命令中python 的p是小写，</p>
<p>&nbsp;</p>
<p><img class="alignnone size-full wp-image-342" src="http://www.newlifeclan.com/ai/wp-content/uploads/sites/9/2018/08/20170809105351654.png" alt="20170809105351654" width="753" height="172" /></p>
<p>针对上面给出的地址，复制到浏览器地址栏，查看graph</p>
]]></content:encoded>
			<wfw:commentRss>http://www.newlifeclan.com/ai/archives/339/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>安装tensorflowjs时报错解决</title>
		<link>http://www.newlifeclan.com/ai/archives/330</link>
		<comments>http://www.newlifeclan.com/ai/archives/330#comments</comments>
		<pubDate>Thu, 26 Jul 2018 13:55:23 +0000</pubDate>
		<dc:creator><![CDATA[napoleon]]></dc:creator>
				<category><![CDATA[未分类]]></category>

		<guid isPermaLink="false">http://www.newlifeclan.com/ai/?p=330</guid>
		<description><![CDATA[使用pip install tensorflowjs 来安装tensorflowjs出现了一个错误。 出现了这 [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>使用pip install tensorflowjs 来安装tensorflowjs出现了一个错误。<span id="more-330"></span></p>
<p><img class="alignnone size-full wp-image-331" src="http://www.newlifeclan.com/ai/wp-content/uploads/sites/9/2018/07/20180726214724.jpg" alt="20180726214724" width="931" height="164" /></p>
<p>出现了这样一个问题，如何解决呢？</p>
<p>不用更新pip就可以，输入一下命令：</p><pre class="crayon-plain-tag">pip install tensorflowjs --user</pre><p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.newlifeclan.com/ai/archives/330/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
