??xml version="1.0" encoding="utf-8" standalone="yes"?>久久精品草草草,国产精品久久永久免费,91麻精品国产91久久久久http://m.shnenglu.com/guijie/archive/2021/01/14/217571.html杰哥杰哥Thu, 14 Jan 2021 11:17:00 GMThttp://m.shnenglu.com/guijie/archive/2021/01/14/217571.htmlhttp://m.shnenglu.com/guijie/comments/217571.htmlhttp://m.shnenglu.com/guijie/archive/2021/01/14/217571.html#Feedback0http://m.shnenglu.com/guijie/comments/commentRss/217571.htmlhttp://m.shnenglu.com/guijie/services/trackbacks/217571.htmlhttps://www.jianshu.com/p/92d7f6eaacf5

杰哥 2021-01-14 19:17 发表评论
]]>
[zz] 电脑|页打不开怎么?/title><link>http://m.shnenglu.com/guijie/archive/2020/10/30/217496.html</link><dc:creator>杰哥</dc:creator><author>杰哥</author><pubDate>Fri, 30 Oct 2020 14:47:00 GMT</pubDate><guid>http://m.shnenglu.com/guijie/archive/2020/10/30/217496.html</guid><wfw:comment>http://m.shnenglu.com/guijie/comments/217496.html</wfw:comment><comments>http://m.shnenglu.com/guijie/archive/2020/10/30/217496.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.shnenglu.com/guijie/comments/commentRss/217496.html</wfw:commentRss><trackback:ping>http://m.shnenglu.com/guijie/services/trackbacks/217496.html</trackback:ping><description><![CDATA[<div>https://jingyan.baidu.com/article/75ab0bcb8001e5d6864db232.html</div><img src ="http://m.shnenglu.com/guijie/aggbug/217496.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.shnenglu.com/guijie/" target="_blank">杰哥</a> 2020-10-30 22:47 <a href="http://m.shnenglu.com/guijie/archive/2020/10/30/217496.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>[zz]python 二维列表按列取元?/title><link>http://m.shnenglu.com/guijie/archive/2020/09/11/217442.html</link><dc:creator>杰哥</dc:creator><author>杰哥</author><pubDate>Thu, 10 Sep 2020 23:21:00 GMT</pubDate><guid>http://m.shnenglu.com/guijie/archive/2020/09/11/217442.html</guid><wfw:comment>http://m.shnenglu.com/guijie/comments/217442.html</wfw:comment><comments>http://m.shnenglu.com/guijie/archive/2020/09/11/217442.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.shnenglu.com/guijie/comments/commentRss/217442.html</wfw:commentRss><trackback:ping>http://m.shnenglu.com/guijie/services/trackbacks/217442.html</trackback:ping><description><![CDATA[<p style="box-sizing: border-box; outline: 0px; margin: 0px 0px 16px; padding: 0px; font-family: "Microsoft YaHei", "SF Pro Display", Roboto, Noto, Arial, "PingFang SC", sans-serif; font-size: 18px; color: #4d4d4d; line-height: 26px; overflow-wrap: break-word; font-variant-ligatures: common-ligatures; background-color: #ffffff;">直接切片是不行的Q?/p><pre name="code" style="box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 24px; padding: 8px 16px 6px 56px; position: relative; font-family: "Source Code Pro", "DejaVu Sans Mono", "Ubuntu Mono", "Anonymous Pro", "Droid Sans Mono", Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, "PingFang SC", "Microsoft YaHei", sans-serif; overflow: auto hidden; line-height: 22px; overflow-wrap: break-word; background-color: #f6f8fa; border: none; font-variant-ligatures: common-ligatures;"><code lua="" has-numbering"="" style="box-sizing: border-box; outline: 0px; margin: 0px; padding: 8px; font-family: "Source Code Pro", "DejaVu Sans Mono", "Ubuntu Mono", "Anonymous Pro", "Droid Sans Mono", Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, "PingFang SC", "Microsoft YaHei", sans-serif; display: block; overflow-x: auto; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; line-height: 22px; border-radius: 4px; overflow-wrap: break-word; min-width: 94%; text-size-adjust: none; position: unset; color: #4f4f4f !important;">>>> a=<span style="box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; font-family: "Microsoft YaHei", "SF Pro Display", Roboto, Noto, Arial, "PingFang SC", sans-serif; font-size: inherit; overflow-wrap: break-word; color: #009900 !important;">[[1,2,3], [4,5,6]]</span> >>> a[:, <span style="box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; font-family: "Microsoft YaHei", "SF Pro Display", Roboto, Noto, Arial, "PingFang SC", sans-serif; font-size: inherit; overflow-wrap: break-word; color: #006666 !important;">0</span>] # 试用数l的Ҏd一列失?TypeError: list indices must be integers <span style="box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; font-family: "Microsoft YaHei", "SF Pro Display", Roboto, Noto, Arial, "PingFang SC", sans-serif; font-size: inherit; overflow-wrap: break-word; color: #000088 !important;">or</span> slices, <span style="box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; font-family: "Microsoft YaHei", "SF Pro Display", Roboto, Noto, Arial, "PingFang SC", sans-serif; font-size: inherit; overflow-wrap: break-word; color: #000088 !important;">not</span> tuple</code><ul style="box-sizing: border-box; outline: 0px; margin: 0px; padding: 8px 0px; list-style: none; font-family: "Microsoft YaHei", "SF Pro Display", Roboto, Noto, Arial, "PingFang SC", sans-serif; font-size: 18px; overflow-wrap: break-word; position: absolute; width: 48px; background-color: #eef0f4; top: 0px; left: 0px;"><li style="box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px 8px; list-style: none; font-size: inherit; overflow-wrap: break-word; color: #999999;">1</li><li style="box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px 8px; list-style: none; font-size: inherit; overflow-wrap: break-word; color: #999999;">2</li><li style="box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px 8px; list-style: none; font-size: inherit; overflow-wrap: break-word; color: #999999;">3</li></ul></pre><p style="box-sizing: border-box; outline: 0px; margin: 0px 0px 16px; padding: 0px; font-family: "Microsoft YaHei", "SF Pro Display", Roboto, Noto, Arial, "PingFang SC", sans-serif; font-size: 18px; color: #4d4d4d; line-height: 26px; overflow-wrap: break-word; font-variant-ligatures: common-ligatures; background-color: #ffffff;">我们可以直接构造:</p><pre name="code" style="box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 24px; padding: 8px 16px 6px 56px; position: relative; font-family: "Source Code Pro", "DejaVu Sans Mono", "Ubuntu Mono", "Anonymous Pro", "Droid Sans Mono", Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, "PingFang SC", "Microsoft YaHei", sans-serif; overflow: auto hidden; line-height: 22px; overflow-wrap: break-word; background-color: #f6f8fa; border: none; font-variant-ligatures: common-ligatures;"><code python="" has-numbering"="" style="box-sizing: border-box; outline: 0px; margin: 0px; padding: 8px; font-family: "Source Code Pro", "DejaVu Sans Mono", "Ubuntu Mono", "Anonymous Pro", "Droid Sans Mono", Menlo, Monaco, Consolas, Inconsolata, Courier, monospace, "PingFang SC", "Microsoft YaHei", sans-serif; display: block; overflow-x: auto; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; line-height: 22px; border-radius: 4px; overflow-wrap: break-word; min-width: 94%; text-size-adjust: none; position: unset; color: #4f4f4f !important;"><span style="box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; font-family: "Microsoft YaHei", "SF Pro Display", Roboto, Noto, Arial, "PingFang SC", sans-serif; font-size: inherit; overflow-wrap: break-word; color: #006666 !important;">>>> </span>b = [i[<span style="box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; font-family: "Microsoft YaHei", "SF Pro Display", Roboto, Noto, Arial, "PingFang SC", sans-serif; font-size: inherit; overflow-wrap: break-word; color: #006666 !important;">0</span>] <span style="box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; font-family: "Microsoft YaHei", "SF Pro Display", Roboto, Noto, Arial, "PingFang SC", sans-serif; font-size: inherit; overflow-wrap: break-word; color: #000088 !important;">for</span> i <span style="box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; font-family: "Microsoft YaHei", "SF Pro Display", Roboto, Noto, Arial, "PingFang SC", sans-serif; font-size: inherit; overflow-wrap: break-word; color: #000088 !important;">in</span> a] <span style="box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; font-family: "Microsoft YaHei", "SF Pro Display", Roboto, Noto, Arial, "PingFang SC", sans-serif; font-style: italic; font-size: inherit; overflow-wrap: break-word; color: #880000 !important;"># 从a中的每一行取W一个元素?/span> <span style="box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; font-family: "Microsoft YaHei", "SF Pro Display", Roboto, Noto, Arial, "PingFang SC", sans-serif; font-size: inherit; overflow-wrap: break-word; color: #006666 !important;">>>> </span>print(b) [<span style="box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; font-family: "Microsoft YaHei", "SF Pro Display", Roboto, Noto, Arial, "PingFang SC", sans-serif; font-size: inherit; overflow-wrap: break-word; color: #006666 !important;">1</span>, <span style="box-sizing: border-box; outline: 0px; margin: 0px; padding: 0px; font-family: "Microsoft YaHei", "SF Pro Display", Roboto, Noto, Arial, "PingFang SC", sans-serif; font-size: inherit; overflow-wrap: break-word; color: #006666 !important;">4</span>]<br /><br />Reference:<br /><br /><div>https://blog.csdn.net/xiaotao_1/article/details/80729458</div></code></pre><img src ="http://m.shnenglu.com/guijie/aggbug/217442.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.shnenglu.com/guijie/" target="_blank">杰哥</a> 2020-09-11 07:21 <a href="http://m.shnenglu.com/guijie/archive/2020/09/11/217442.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>[zz]Python中下划线?U含?/title><link>http://m.shnenglu.com/guijie/archive/2019/02/02/216230.html</link><dc:creator>杰哥</dc:creator><author>杰哥</author><pubDate>Fri, 01 Feb 2019 17:51:00 GMT</pubDate><guid>http://m.shnenglu.com/guijie/archive/2019/02/02/216230.html</guid><wfw:comment>http://m.shnenglu.com/guijie/comments/216230.html</wfw:comment><comments>http://m.shnenglu.com/guijie/archive/2019/02/02/216230.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.shnenglu.com/guijie/comments/commentRss/216230.html</wfw:commentRss><trackback:ping>http://m.shnenglu.com/guijie/services/trackbacks/216230.html</trackback:ping><description><![CDATA[<div><div style="overflow: hidden; width: 690px; margin: 0px auto; color: #1a1a1a; font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", "WenQuanYi Micro Hei", sans-serif; font-size: medium; background-color: #ffffff;"><div ztext="" post-richtext"="" style="word-break: break-word; line-height: 1.6; margin-top: 20px;"><p style="margin: 0px 0px 1.4em;">分n一文章:<a wrap="" external"="" target="_blank" rel="nofollow noreferrer" data-za-detail-view-id="1043" style="text-decoration-line: none; cursor: pointer; border-bottom: 1px solid #808080;">The Meaning of Underscores in Python</a>?/p><p style="margin: 1.4em 0px;">本文介绍了Python中单下划U和双下划线Q?dunder"Q的各种含义和命名约定,名称修饰Qname manglingQ的工作原理Q以及它如何影响你自qPythoncR?/p><p style="margin: 1.4em 0px;">单下划线和双下划U在Python变量和方法名UC都各有其含义。有一些含义仅仅是依照U定Q被视作是对E序员的提示 - 而有一些含义是由Python解释器严格执行的?/p><p style="margin: 1.4em 0px;">如果你想知道“Python变量和方法名UC单下划线和双下划U的含义是什么?”Q我会尽我所能在q里Z解答?/p><p style="margin: 1.4em 0px;">在本文中Q我讨Z下五U下划线模式和命名约定,以及它们如何影响PythonE序的行为:</p><ul style="padding: 0px; margin: 1.4em 0px; display: table;"><li style="list-style: none; display: table-row;">单前g划线Q_var</li><li style="list-style: none; display: table-row;">单末下划线Qvar_</li><li style="list-style: none; display: table-row;">双前g划线Q__var</li><li style="list-style: none; display: table-row;">双前导和末尾下划U:__var__</li><li style="list-style: none; display: table-row;">单下划线Q_</li></ul><p style="margin: 1.4em 0px;">在文章结֤Q你可以扑ֈ一个简短的“速查?#8221;Qȝ了五U不同的下划U命名约定及其含义,以及一个简短的视频教程Q可让你亲n体验它们的行为?/p><p style="margin: 1.4em 0px;">让我们马上开始!</p><h2>1. 单前g划线 _var</h2><p style="margin: 1.4em 0px;">当涉及到变量和方法名U时Q单个下划线前缀有一个约定俗成的含义?它是对程序员的一个提C?- 意味着PythonC֌一致认为它应该是什么意思,但程序的行ؓ不受影响?/p><p style="margin: 1.4em 0px;">下划U前~的含义是告知其他E序员:以单个下划线开头的变量或方法仅供内部用?该约定在PEP 8中有定义?/p><p style="margin: 1.4em 0px;">q不是Python强制规定的?Python不像Java那样?#8220;U有”?#8220;公共”变量之间有很强的区别?q就像有人提Z一个小的下划U警告标志,_</p><blockquote style="margin: 1.4em 0px; padding-left: 1em; color: #646464; border-left-width: 3px; border-left-color: #d3d3d3;">“嘿,q不是真的要成ؓcȝ公共接口的一部分。不ȝ它就好?#8220;</blockquote><p style="margin: 1.4em 0px;">看看下面的例子:</p><div style="margin: 1em 0px;"><pre style="margin-top: 0px; margin-bottom: 0px; padding: calc(0.888889em); font-size: 0.9em; word-break: initial; overflow-wrap: initial; overflow: auto; background: #f6f6f6; border-radius: 4px;"><code style="margin: 0px; padding: 0px; border-radius: 0px; font-family: Menlo, Monaco, Consolas, "Andale Mono", "lucida console", "Courier New", monospace; font-size: inherit; background-color: inherit;">class Test: def __init__(self): self.foo = 11 self._bar = 23 </code></pre></div><p style="margin: 1.4em 0px;">如果你实例化此类Qƈ试讉K在__init__构造函C定义的foo和_bar属性,会发生什么情况? 让我们来看看Q?/p><div style="margin: 1em 0px;"><pre style="margin-top: 0px; margin-bottom: 0px; padding: calc(0.888889em); font-size: 0.9em; word-break: initial; overflow-wrap: initial; overflow: auto; background: #f6f6f6; border-radius: 4px;"><code style="margin: 0px; padding: 0px; border-radius: 0px; font-family: Menlo, Monaco, Consolas, "Andale Mono", "lucida console", "Courier New", monospace; font-size: inherit; background-color: inherit;">>>> t = Test() >>> t.foo 11 >>> t._bar 23 </code></pre></div><p style="margin: 1.4em 0px;">你会看到_bar中的单个下划Uƈ没有L我们“q入”cdƈ讉K该变量的倹{?/p><p style="margin: 1.4em 0px;">q是因ؓPython中的单个下划U前~仅仅是一个约?- 臛_相对于变量和Ҏ名而言?/p><p style="margin: 1.4em 0px;">但是Q前g划线的确会媄响从模块中导入名U的方式?/p><p style="margin: 1.4em 0px;">假设你在一个名为my_module的模块中有以下代码:</p><div style="margin: 1em 0px;"><pre style="margin-top: 0px; margin-bottom: 0px; padding: calc(0.888889em); font-size: 0.9em; word-break: initial; overflow-wrap: initial; overflow: auto; background: #f6f6f6; border-radius: 4px;"><code style="margin: 0px; padding: 0px; border-radius: 0px; font-family: Menlo, Monaco, Consolas, "Andale Mono", "lucida console", "Courier New", monospace; font-size: inherit; background-color: inherit;"># This is my_module.py: def external_func(): return 23 def _internal_func(): return 42 </code></pre></div><p style="margin: 1.4em 0px;">现在Q如果用通配W从模块中导入所有名Uͼ则Python不会导入带有前导下划U的名称Q除非模块定义了覆盖此行为的__all__列表Q:</p><div style="margin: 1em 0px;"><pre style="margin-top: 0px; margin-bottom: 0px; padding: calc(0.888889em); font-size: 0.9em; word-break: initial; overflow-wrap: initial; overflow: auto; background: #f6f6f6; border-radius: 4px;"><code style="margin: 0px; padding: 0px; border-radius: 0px; font-family: Menlo, Monaco, Consolas, "Andale Mono", "lucida console", "Courier New", monospace; font-size: inherit; background-color: inherit;">>>> from my_module import * >>> external_func() 23 >>> _internal_func() NameError: "name '_internal_func' is not defined" </code></pre></div><p style="margin: 1.4em 0px;">Z说一下,应该避免通配W导入,因ؓ它们使名U空间中存在哪些名称不清楚?Z清楚赯Q坚持常规导入更好?br /></p><p style="margin: 1.4em 0px;">与通配W导入不同,常规导入不受前导单个下划U命名约定的影响Q?/p><div style="margin: 1em 0px;"><pre style="margin-top: 0px; margin-bottom: 0px; padding: calc(0.888889em); font-size: 0.9em; word-break: initial; overflow-wrap: initial; overflow: auto; background: #f6f6f6; border-radius: 4px;"><code style="margin: 0px; padding: 0px; border-radius: 0px; font-family: Menlo, Monaco, Consolas, "Andale Mono", "lucida console", "Courier New", monospace; font-size: inherit; background-color: inherit;">>>> import my_module >>> my_module.external_func() 23 >>> my_module._internal_func() 42 </code></pre></div><p style="margin: 1.4em 0px;">我知道这一点可能有点o人困惑?如果你遵循PEP 8推荐Q避免通配W导入,那么你真正需要记住的只有q个Q?/p><blockquote style="margin: 1.4em 0px; padding-left: 1em; color: #646464; border-left-width: 3px; border-left-color: #d3d3d3;">单个下划U是一个Python命名U定Q表C个名U是供内部用的?它通常不由Python解释器强制执行,仅仅作ؓ一U对E序员的提示?/blockquote><h2>2. 单末下划线 var_</h2><p style="margin: 1.4em 0px;">有时候,一个变量的最合适的名称已经被一个关键字所占用?因此Q像class或defq样的名UC能用作Python中的变量名称?在这U情况下Q你可以附加一个下划线来解军_名冲H:</p><div style="margin: 1em 0px;"><pre style="margin-top: 0px; margin-bottom: 0px; padding: calc(0.888889em); font-size: 0.9em; word-break: initial; overflow-wrap: initial; overflow: auto; background: #f6f6f6; border-radius: 4px;"><code style="margin: 0px; padding: 0px; border-radius: 0px; font-family: Menlo, Monaco, Consolas, "Andale Mono", "lucida console", "Courier New", monospace; font-size: inherit; background-color: inherit;">>>> def make_object(name, class): SyntaxError: "invalid syntax" >>> def make_object(name, class_): ... pass </code></pre></div><p style="margin: 1.4em 0px;">MQ单个末下划线Q后~Q是一个约定,用来避免与Python关键字生命名冲H?PEP 8解释了这个约定?/p><h2>3. 双前g划线 __var</h2><p style="margin: 1.4em 0px;">到目前ؓ止,我们所涉及的所有命名模式的含义Q来自于已达成共识的U定?而对于以双下划线开头的Pythoncȝ属性(包括变量和方法)Q情况就有点不同了?/p><p style="margin: 1.4em 0px;">双下划线前缀会导致Python解释器重写属性名Uͼ以避免子cM的命名冲H?/p><p style="margin: 1.4em 0px;">q也叫做名称修饰Qname manglingQ?- 解释器更改变量的名称Q以便在c被扩展的时候不Ҏ产生冲突?/p><p style="margin: 1.4em 0px;">我知道这听v来很抽象?因此Q我l合了一个小的代码CZ来予以说明:</p><div style="margin: 1em 0px;"><pre style="margin-top: 0px; margin-bottom: 0px; padding: calc(0.888889em); font-size: 0.9em; word-break: initial; overflow-wrap: initial; overflow: auto; background: #f6f6f6; border-radius: 4px;"><code style="margin: 0px; padding: 0px; border-radius: 0px; font-family: Menlo, Monaco, Consolas, "Andale Mono", "lucida console", "Courier New", monospace; font-size: inherit; background-color: inherit;">class Test: def __init__(self): self.foo = 11 self._bar = 23 self.__baz = 23 </code></pre></div><p style="margin: 1.4em 0px;">让我们用内置的dir()函数来看看这个对象的属性:</p><div style="margin: 1em 0px;"><pre style="margin-top: 0px; margin-bottom: 0px; padding: calc(0.888889em); font-size: 0.9em; word-break: initial; overflow-wrap: initial; overflow: auto; background: #f6f6f6; border-radius: 4px;"><code style="margin: 0px; padding: 0px; border-radius: 0px; font-family: Menlo, Monaco, Consolas, "Andale Mono", "lucida console", "Courier New", monospace; font-size: inherit; background-color: inherit;">>>> t = Test() >>> dir(t) ['_Test__baz', '__class__', '__delattr__', '__dict__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__gt__', '__hash__', '__init__', '__le__', '__lt__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', '_bar', 'foo'] </code></pre></div><p style="margin: 1.4em 0px;">以上是这个对象属性的列表?让我们来看看q个列表QƈL我们的原始变量名UfooQ_bar和__baz - 我保证你会注意到一些有的变化?br /></p><ul style="padding: 0px; margin: 1.4em 0px; display: table;"><li style="list-style: none; display: table-row;">self.foo变量在属性列表中昄为未修改为foo?/li><li style="list-style: none; display: table-row;">self._bar的行为方式相?- 它以_bar的Ş式显C在cM?像我之前说q的Q在q种情况下,前导下划U仅仅是一个约定?l程序员一个提C已?/li><li style="list-style: none; display: table-row;">然而,对于self.__baz而言Q情늜h有点不同?当你在该列表中搜索__bazӞ你会看不到有q个名字的变量?/li></ul><p style="margin: 1.4em 0px;">__bazZ么情况了Q?/p><p style="margin: 1.4em 0px;">如果你仔l观察,你会看到此对象上有一个名为_Test__baz的属性?q就是Python解释器所做的名称修饰?它这样做是ؓ了防止变量在子类中被重写?/p><p style="margin: 1.4em 0px;">让我们创建另一个扩展Testcȝc,q尝试重写构造函Cd的现有属性:</p><div style="margin: 1em 0px;"><pre style="margin-top: 0px; margin-bottom: 0px; padding: calc(0.888889em); font-size: 0.9em; word-break: initial; overflow-wrap: initial; overflow: auto; background: #f6f6f6; border-radius: 4px;"><code style="margin: 0px; padding: 0px; border-radius: 0px; font-family: Menlo, Monaco, Consolas, "Andale Mono", "lucida console", "Courier New", monospace; font-size: inherit; background-color: inherit;">class ExtendedTest(Test): def __init__(self): super().__init__() self.foo = 'overridden' self._bar = 'overridden' self.__baz = 'overridden' </code></pre></div><p style="margin: 1.4em 0px;">现在Q你认ؓfooQ_bar和__baz的g出现在这个ExtendedTestcȝ实例上吗Q?我们来看一看:</p><div style="margin: 1em 0px;"><pre style="margin-top: 0px; margin-bottom: 0px; padding: calc(0.888889em); font-size: 0.9em; word-break: initial; overflow-wrap: initial; overflow: auto; background: #f6f6f6; border-radius: 4px;"><code style="margin: 0px; padding: 0px; border-radius: 0px; font-family: Menlo, Monaco, Consolas, "Andale Mono", "lucida console", "Courier New", monospace; font-size: inherit; background-color: inherit;">>>> t2 = ExtendedTest() >>> t2.foo 'overridden' >>> t2._bar 'overridden' >>> t2.__baz AttributeError: "'ExtendedTest' object has no attribute '__baz'" </code></pre></div><p style="margin: 1.4em 0px;">{一下,当我们尝试查看t2 .__ baz的值时Qؓ什么我们会得到AttributeErrorQ?名称修饰被再ơ触发了Q?事实证明Q这个对象甚x有__baz属性:</p><div style="margin: 1em 0px;"><pre style="margin-top: 0px; margin-bottom: 0px; padding: calc(0.888889em); font-size: 0.9em; word-break: initial; overflow-wrap: initial; overflow: auto; background: #f6f6f6; border-radius: 4px;"><code style="margin: 0px; padding: 0px; border-radius: 0px; font-family: Menlo, Monaco, Consolas, "Andale Mono", "lucida console", "Courier New", monospace; font-size: inherit; background-color: inherit;">>>> dir(t2) ['_ExtendedTest__baz', '_Test__baz', '__class__', '__delattr__', '__dict__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__gt__', '__hash__', '__init__', '__le__', '__lt__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', '_bar', 'foo', 'get_vars'] </code></pre></div><p style="margin: 1.4em 0px;">正如你可以看到__baz变成_ExtendedTest__baz以防止意外修改:</p><div style="margin: 1em 0px;"><pre style="margin-top: 0px; margin-bottom: 0px; padding: calc(0.888889em); font-size: 0.9em; word-break: initial; overflow-wrap: initial; overflow: auto; background: #f6f6f6; border-radius: 4px;"><code style="margin: 0px; padding: 0px; border-radius: 0px; font-family: Menlo, Monaco, Consolas, "Andale Mono", "lucida console", "Courier New", monospace; font-size: inherit; background-color: inherit;">>>> t2._ExtendedTest__baz 'overridden' </code></pre></div><p style="margin: 1.4em 0px;">但原来的_Test__bazq在Q?/p><div style="margin: 1em 0px;"><pre style="margin-top: 0px; margin-bottom: 0px; padding: calc(0.888889em); font-size: 0.9em; word-break: initial; overflow-wrap: initial; overflow: auto; background: #f6f6f6; border-radius: 4px;"><code style="margin: 0px; padding: 0px; border-radius: 0px; font-family: Menlo, Monaco, Consolas, "Andale Mono", "lucida console", "Courier New", monospace; font-size: inherit; background-color: inherit;">>>> t2._Test__baz 42 </code></pre></div><p style="margin: 1.4em 0px;">双下划线名称修饰对程序员是完全透明的?下面的例子证实了q一点:</p><div style="margin: 1em 0px;"><pre style="margin-top: 0px; margin-bottom: 0px; padding: calc(0.888889em); font-size: 0.9em; word-break: initial; overflow-wrap: initial; overflow: auto; background: #f6f6f6; border-radius: 4px;"><code style="margin: 0px; padding: 0px; border-radius: 0px; font-family: Menlo, Monaco, Consolas, "Andale Mono", "lucida console", "Courier New", monospace; font-size: inherit; background-color: inherit;">class ManglingTest: def __init__(self): self.__mangled = 'hello' def get_mangled(self): return self.__mangled >>> ManglingTest().get_mangled() 'hello' >>> ManglingTest().__mangled AttributeError: "'ManglingTest' object has no attribute '__mangled'" </code></pre></div><p style="margin: 1.4em 0px;">名称修饰是否也适用于方法名Uͼ 是的Q也适用。名UCC影响在一个类的上下文中,以两个下划线字符Q?dunders"Q开头的<span style="font-weight: 600;">所?/span>名称Q?/p><div style="margin: 1em 0px;"><pre style="margin-top: 0px; margin-bottom: 0px; padding: calc(0.888889em); font-size: 0.9em; word-break: initial; overflow-wrap: initial; overflow: auto; background: #f6f6f6; border-radius: 4px;"><code style="margin: 0px; padding: 0px; border-radius: 0px; font-family: Menlo, Monaco, Consolas, "Andale Mono", "lucida console", "Courier New", monospace; font-size: inherit; background-color: inherit;">class MangledMethod: def __method(self): return 42 def call_it(self): return self.__method() >>> MangledMethod().__method() AttributeError: "'MangledMethod' object has no attribute '__method'" >>> MangledMethod().call_it() 42 </code></pre></div><p style="margin: 1.4em 0px;">q是另一个也o人惊讶的q用名称修饰的例子:</p><div style="margin: 1em 0px;"><pre style="margin-top: 0px; margin-bottom: 0px; padding: calc(0.888889em); font-size: 0.9em; word-break: initial; overflow-wrap: initial; overflow: auto; background: #f6f6f6; border-radius: 4px;"><code style="margin: 0px; padding: 0px; border-radius: 0px; font-family: Menlo, Monaco, Consolas, "Andale Mono", "lucida console", "Courier New", monospace; font-size: inherit; background-color: inherit;">_MangledGlobal__mangled = 23 class MangledGlobal: def test(self): return __mangled >>> MangledGlobal().test() 23 </code></pre></div><p style="margin: 1.4em 0px;">在这个例子中Q我声明了一个名为_MangledGlobal__mangled的全局变量。然后我在名为MangledGlobal的类的上下文中访问变量。由于名UC饎ͼ我能够在cȝtest()Ҏ内,以__mangled来引用_MangledGlobal__mangled全局变量?br /><br />Python解释器自动将名称__mangled扩展为_MangledGlobal__mangledQ因为它以两个下划线字符开头。这表明名称修饰不是专门与类属性关联的。它适用于在cM下文中用的两个下划U字W开头的M名称?br /><br />有很多要吸收的内容吧?br /><br />老实_q些例子和解释不是从我脑子里y出来的。我作了一些研I和加工才弄出来。我一直用PythonQ有很多q了Q但是像q样的规则和Ҏ情况q不L现在脑里?br /><br />有时候程序员最重要的技能是“模式识别”Q而且知道在哪里查阅信息。如果您在这一点上感到有点不知所措,请不要担心。慢慢来Q试试这文章中的一些例子?br /><br />让这些概念完全沉怸来,以便你能够理解名UC饰的M思\Q以及我向您展示的一些其他的行ؓ。如果有一天你和它们不期而遇Q你会知道在文档中按什么来查?/p><h2>4. 双前导和双末下划线 _var_</h2><p style="margin: 1.4em 0px;">也许令h惊讶的是Q如果一个名字同时以双下划线开始和l束Q则不会应用名称修饰?由双下划U前~和后~包围的变量不会被Python解释器修改:</p><div style="margin: 1em 0px;"><pre style="margin-top: 0px; margin-bottom: 0px; padding: calc(0.888889em); font-size: 0.9em; word-break: initial; overflow-wrap: initial; overflow: auto; background: #f6f6f6; border-radius: 4px;"><code style="margin: 0px; padding: 0px; border-radius: 0px; font-family: Menlo, Monaco, Consolas, "Andale Mono", "lucida console", "Courier New", monospace; font-size: inherit; background-color: inherit;">class PrefixPostfixTest: def __init__(self): self.__bam__ = 42 >>> PrefixPostfixTest().__bam__ 42 </code></pre></div><p style="margin: 1.4em 0px;">但是QPython保留了有双前导和双末下划线的名Uͼ用于Ҏ用途?q样的例子有Q__init__对象构造函敎ͼ或__call__ --- 它得一个对象可以被调用?/p><p style="margin: 1.4em 0px;">q些dunderҎ通常被称为神奇方?- 但PythonC֌中的许多人(包括我自己)都不喜欢q种Ҏ?/p><p style="margin: 1.4em 0px;">最好避免在自己的程序中使用以双下划U(“dunders”Q开头和l尾的名Uͼ以避免与来Python语言的变化生冲H?/p><h2>5.单下划线 _</h2><p style="margin: 1.4em 0px;">按照习惯Q有时候单个独立下划线是用作一个名字,来表C某个变量是临时的或无关紧要的?br /></p><p style="margin: 1.4em 0px;">例如Q在下面的@环中Q我们不需要访问正在运行的索引Q我们可以?#8220;_”来表C它只是一个时|</p><div style="margin: 1em 0px;"><pre style="margin-top: 0px; margin-bottom: 0px; padding: calc(0.888889em); font-size: 0.9em; word-break: initial; overflow-wrap: initial; overflow: auto; background: #f6f6f6; border-radius: 4px;"><code style="margin: 0px; padding: 0px; border-radius: 0px; font-family: Menlo, Monaco, Consolas, "Andale Mono", "lucida console", "Courier New", monospace; font-size: inherit; background-color: inherit;">>>> for _ in range(32): ... print('Hello, World.') </code></pre></div><p style="margin: 1.4em 0px;">你也可以在拆?unpacking)表达式中单个下划线用作“不关心的”变量Q以忽略特定的倹{?同样Q这个含义只?#8220;依照U定”Qƈ不会在Python解释器中触发Ҏ的行为?单个下划U仅仅是一个有效的变量名称Q会有这个用途而已?/p><p style="margin: 1.4em 0px;">在下面的代码CZ中,我将汽R元组拆分为单独的变量Q但我只寚w色和里程值感兴趣?但是Qؓ了拆分表达式成功运行,我需要将包含在元l中的所有值分配给变量?在这U情况下Q?#8220;_”作ؓ占位W变量可以派上用场:</p><div style="margin: 1em 0px;"><pre style="margin-top: 0px; margin-bottom: 0px; padding: calc(0.888889em); font-size: 0.9em; word-break: initial; overflow-wrap: initial; overflow: auto; background: #f6f6f6; border-radius: 4px;"><code style="margin: 0px; padding: 0px; border-radius: 0px; font-family: Menlo, Monaco, Consolas, "Andale Mono", "lucida console", "Courier New", monospace; font-size: inherit; background-color: inherit;">>>> car = ('red', 'auto', 12, 3812.4) >>> color, _, _, mileage = car >>> color 'red' >>> mileage 3812.4 >>> _ 12 </code></pre></div><p style="margin: 1.4em 0px;">除了用作临时变量之外Q?#8220;_”是大多数Python REPL中的一个特D变量,它表C由解释器评估的最q一个表辑ּ的结果?/p><p style="margin: 1.4em 0px;">q样很方便了,比如你可以在一个解释器会话中访问先前计的l果Q或者,你是在动态构建多个对象ƈ与它们交互,无需事先l这些对象分配名字:</p><div style="margin: 1em 0px;"><pre style="margin-top: 0px; margin-bottom: 0px; padding: calc(0.888889em); font-size: 0.9em; word-break: initial; overflow-wrap: initial; overflow: auto; background: #f6f6f6; border-radius: 4px;"><code style="margin: 0px; padding: 0px; border-radius: 0px; font-family: Menlo, Monaco, Consolas, "Andale Mono", "lucida console", "Courier New", monospace; font-size: inherit; background-color: inherit;">>>> 20 + 3 23 >>> _ 23 >>> print(_) 23 >>> list() [] >>> _.append(1) >>> _.append(2) >>> _.append(3) >>> _ [1, 2, 3] </code></pre></div><h2>Python下划U命名模?- 结</h2><p style="margin: 1.4em 0px;">以下是一个简短的结Q即“速查?#8221;Q罗列了我在本文中谈到的五种Python下划U模式的含义Q?/p><figure style="margin: 1.4em 0px;"><img src="https://pic3.zhimg.com/80/v2-cbc5c6037101c7d33cf0acd9f00a8cfa_hd.jpg" data-caption="" data-size="normal" data-rawwidth="732" data-rawheight="314" zh-lightbox-thumb="" lazy"="" width="732" data-original="https://pic3.zhimg.com/v2-cbc5c6037101c7d33cf0acd9f00a8cfa_r.jpg" data-actualsrc="https://pic3.zhimg.com/v2-cbc5c6037101c7d33cf0acd9f00a8cfa_b.jpg" style="display: block; max-width: 100%; margin: 0px auto; cursor: zoom-in;" alt="" /></figure><hr style="margin: 4em auto; width: 240px; max-width: 100%; border-right: none; border-bottom: none; border-left: none; border-image: initial; border-top-style: solid; border-top-color: #d3d3d3;" /><p style="margin: 1.4em 0px;">你想更深入了解学习Python知识体系Q你可以看一下我们花费了一个多月整理了上百时的几百个知识点体pd容:</p><p style="margin: 1.4em 0px 0px;"><a wrap="" external"="" target="_blank" rel="nofollow noreferrer" data-za-detail-view-id="1043" style="text-decoration-line: none; cursor: pointer; border-bottom: 1px solid #808080;">【超全整理】《Python自动化全能开发从入门到精通》python基础教程W记</a></p></div></div><div style="margin: 0px auto; color: #8590a6; padding-top: 16px; padding-bottom: 16px; overflow: hidden; width: 690px; font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", "WenQuanYi Micro Hei", sans-serif; background-color: #ffffff;">发布?2018-04-26</div><div style="overflow: hidden; width: 690px; margin: 0px auto; display: flex; color: #1a1a1a; font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", "WenQuanYi Micro Hei", sans-serif; font-size: medium; background-color: #ffffff;"><div post-topics"="" style="display: flex; flex-flow: row wrap; align-items: center; margin-bottom: -10px; padding-top: 16px; padding-bottom: 16px;"><div topic"="" data-za-detail-view-path-module="TopicItem" data-za-extra-module="{"card":{"content":{"type":"Topic","token":"19552832"}}}" style="position: relative; display: inline-block; height: 33px; padding-right: 12px; padding-left: 12px; font-size: 13px; line-height: 33px; color: #0084ff; vertical-align: top; border-radius: 100px; background: rgba(0, 132, 255, 0.1); margin-right: 5px; overflow: hidden; margin-bottom: 10px;"><a target="_blank" style="text-decoration-line: none;"><div style="position: relative; display: inline-block;"><div class="wi4cos8" id="Popover3-toggle" aria-haspopup="true" aria-expanded="false" aria-owns="Popover3-content">Python</div></div></a></div></div></div><br />Reference:<br />https://zhuanlan.zhihu.com/p/36173202</div><img src ="http://m.shnenglu.com/guijie/aggbug/216230.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.shnenglu.com/guijie/" target="_blank">杰哥</a> 2019-02-02 01:51 <a href="http://m.shnenglu.com/guijie/archive/2019/02/02/216230.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>How to read *.data in Matlab and Pythonhttp://m.shnenglu.com/guijie/archive/2018/10/13/216005.html杰哥杰哥Fri, 12 Oct 2018 20:33:00 GMThttp://m.shnenglu.com/guijie/archive/2018/10/13/216005.htmlhttp://m.shnenglu.com/guijie/comments/216005.htmlhttp://m.shnenglu.com/guijie/archive/2018/10/13/216005.html#Feedback0http://m.shnenglu.com/guijie/comments/commentRss/216005.htmlhttp://m.shnenglu.com/guijie/services/trackbacks/216005.htmlSee P2 of "HW2_545_2018_"

In Matlab:
z = dlmread('spambase.data',',');
In Python:
import numpy as np
z = np.genfromtxt('spambase.data', dtype=float, delimiter=',')


杰哥 2018-10-13 04:33 发表评论
]]>
[zz] Adversarial Nets Papershttp://m.shnenglu.com/guijie/archive/2018/09/28/215982.html杰哥杰哥Fri, 28 Sep 2018 14:02:00 GMThttp://m.shnenglu.com/guijie/archive/2018/09/28/215982.htmlhttp://m.shnenglu.com/guijie/comments/215982.htmlhttp://m.shnenglu.com/guijie/archive/2018/09/28/215982.html#Feedback0http://m.shnenglu.com/guijie/comments/commentRss/215982.htmlhttp://m.shnenglu.com/guijie/services/trackbacks/215982.html阅读全文

杰哥 2018-09-28 22:02 发表评论
]]>
[zz] 2018 CVPR GAN 相关论文调研http://m.shnenglu.com/guijie/archive/2018/09/28/215981.html杰哥杰哥Fri, 28 Sep 2018 14:00:00 GMThttp://m.shnenglu.com/guijie/archive/2018/09/28/215981.htmlhttp://m.shnenglu.com/guijie/comments/215981.htmlhttp://m.shnenglu.com/guijie/archive/2018/09/28/215981.html#Feedback0http://m.shnenglu.com/guijie/comments/commentRss/215981.htmlhttp://m.shnenglu.com/guijie/services/trackbacks/215981.html风格q移

1. PairedCycleGAN: Asymmetric Style Transfer for Applying and Removing Makeup

Q给化妆的风D{U)

http://openaccess.thecvf.com/content_cvpr_2018/papers/Chang_PairedCycleGAN_Asymmetric_Style_CVPR_2018_paper.pdf

 

2.CartoonGAN: Generative Adversarial Networks for Photo Cartoonization

Q将囄转化为卡通风格的GANQ?/p>

http://openaccess.thecvf.com/content_cvpr_2018/papers/Chen_CartoonGAN_Generative_Adversarial_CVPR_2018_paper.pdf

 

3.StarGAN: Unified Generative Adversarial Networks for Multi-Domain Image-to-Image Translation

Qh脸多U风D{换)

http://openaccess.thecvf.com/content_cvpr_2018/papers/Choi_StarGAN_Unified_Generative_CVPR_2018_paper.pdf

 

4.Multi-Content GAN for Few-Shot Font Style Transfer

Q字体风D{换)

http://openaccess.thecvf.com/content_cvpr_2018/papers/Azadi_Multi-Content_GAN_for_CVPR_2018_paper.pdf

 

5.DA-GAN: Instance-level Image Translation by Deep Attention Generative Adversarial Networks

Q图到图转换Q?/p>

http://openaccess.thecvf.com/content_cvpr_2018/papers/Ma_DA-GAN_Instance-Level_Image_CVPR_2018_paper.pdf

 

6. Conditional Image-to-Image translation

Q图到图的{换)

http://openaccess.thecvf.com/content_cvpr_2018/papers/Lin_Conditional_Image-to-Image_Translation_CVPR_2018_paper.pdf

 

囄处理

1. DeblurGAN: Blind Motion Deblurring Using Conditional Adversarial Networks

Q去模糊Q?/p>

http://openaccess.thecvf.com/content_cvpr_2018/papers/Kupyn_DeblurGAN_Blind_Motion_CVPR_2018_paper.pdf

 

2.Attentive Generative Adversarial Network for Raindrop Removal from A Single Image

Q去除图片中的雨_

http://openaccess.thecvf.com/content_cvpr_2018/papers/Qian_Attentive_Generative_Adversarial_CVPR_2018_paper.pdf

 

3. Deep Photo Enhancer: Unpaired Learning for Image Enhancement from Photographs with GANs

Q用于照片增强)

http://openaccess.thecvf.com/content_cvpr_2018/papers/Chen_Deep_Photo_Enhancer_CVPR_2018_paper.pdf

 

4. SeGAN: Segmenting and Generating the Invisible

Q去遮挡Q?/p>

http://openaccess.thecvf.com/content_cvpr_2018/papers/Ehsani_SeGAN_Segmenting_and_CVPR_2018_paper.pdf

 

5.Stacked Conditional Generative Adversarial Networks for Jointly Learning Shadow Detection and Shadow Removal

Q去阴媄Q?/p>

http://openaccess.thecvf.com/content_cvpr_2018/papers/Wang_Stacked_Conditional_Generative_CVPR_2018_paper.pdf

 

6.Image Blind Denoising With Generative Adversarial Network Based Noise Modeling

Q去噪声Q?/p>

http://openaccess.thecvf.com/content_cvpr_2018/papers/Chen_Image_Blind_Denoising_CVPR_2018_paper.pdf

 

7. Single Image Dehazing via Conditional Generative Adversarial Network

Q去噪声Q?/p>

http://openaccess.thecvf.com/content_cvpr_2018/papers/Li_Single_Image_Dehazing_CVPR_2018_paper.pdf

 

囄生成

1. ST-GAN: Spatial Transformer Generative Adversarial Networks for Image Compositing

Q空间{换生成图片)

http://openaccess.thecvf.com/content_cvpr_2018/papers/Lin_ST-GAN_Spatial_Transformer_CVPR_2018_paper.pdf

 

2. SketchyGAN: Towards Diverse and Realistic Sketch to Image Synthesis

Q由Ҏ生成囄Q?/p>

http://openaccess.thecvf.com/content_cvpr_2018/papers/Chen_SketchyGAN_Towards_Diverse_CVPR_2018_paper.pdf

 

3. TextureGAN: Controlling Deep Image Synthesis with Texture Patches

Q由U\生成囄Q?/p>

http://openaccess.thecvf.com/content_cvpr_2018/papers/Xian_TextureGAN_Controlling_Deep_CVPR_2018_paper.pdf

 

4. Eye In-Painting with Exemplar Generative Adversarial Networks

Q给人物ȝ睛)

http://openaccess.thecvf.com/content_cvpr_2018/papers/Dolhansky_Eye_In-Painting_With_CVPR_2018_paper.pdf

 

5.Photographic Text-to-Image Synthesis with a Hierarchically-nested Adversarial Network

Q文本生成图片)

http://openaccess.thecvf.com/content_cvpr_2018/papers/Zhang_Photographic_Text-to-Image_Synthesis_CVPR_2018_paper.pdf

 

6. Logo Synthesis and Manipulation with Clustered Generative Adversarial Networks

Q生成logoQ?/p>

http://openaccess.thecvf.com/content_cvpr_2018/papers/Sage_Logo_Synthesis_and_CVPR_2018_paper.pdf

 

7. Cross-View Image Synthesis Using Conditional GANs

Q街Z视图和直视{换)

http://openaccess.thecvf.com/content_cvpr_2018/papers/Regmi_Cross-View_Image_Synthesis_CVPR_2018_paper.pdf

 

8. AttnGAN: Fine-Grained Text to Image Generation with Attentional Generative Adversarial Networks

Q文本生成图片)

http://openaccess.thecvf.com/content_cvpr_2018/papers/Xu_AttnGAN_Fine-Grained_Text_CVPR_2018_paper.pdf

 

9. High-Resolution Image Synthesis and Semantic Manipulation with Conditional GANs

Q图像高分L率)

http://openaccess.thecvf.com/content_cvpr_2018/papers/Wang_High-Resolution_Image_Synthesis_CVPR_2018_paper.pdf

 

相关

1. Finding Tiny Faces in the Wild with Generative Adversarial Network

Q对低分辨率的h脸检)

http://openaccess.thecvf.com/content_cvpr_2018/papers/Bai_Finding_Tiny_Faces_CVPR_2018_paper.pdf

 

2. Learning Face Age Progression: A Pyramid Architecture of GANs

Q预年龄)

http://openaccess.thecvf.com/content_cvpr_2018/papers/Yang_Learning_Face_Age_CVPR_2018_paper.pdf

 

3. Super-FAN: Integrated facial landmark localization and super-resolution of real-world low resolution faces in arbitrary poses with GANs

Q对低分辨率分辨率Q?/p>

http://openaccess.thecvf.com/content_cvpr_2018/papers/Bulat_Super-FAN_Integrated_Facial_CVPR_2018_paper.pdf

4. Towards Open-Set Identity Preserving Face Synthesis

Qh脸合成)

http://openaccess.thecvf.com/content_cvpr_2018/papers/Bao_Towards_Open-Set_Identity_CVPR_2018_paper.pdf

 

5. Weakly Supervised Facial Action Unit Recognition through Adversarial Training

Qh脸表情识别)

http://openaccess.thecvf.com/content_cvpr_2018/papers/Peng_Weakly_Supervised_Facial_CVPR_2018_paper.pdf

 

6.FaceID-GAN: Learning a Symmetry Three-Player GAN for Identity-Preserving Face Synthesis

Q生成多角度Q?/p>

http://openaccess.thecvf.com/content_cvpr_2018/papers/Shen_FaceID-GAN_Learning_a_CVPR_2018_paper.pdf

 

7. UV-GAN: Adversarial Facial UV Map Completion for Pose-invariant Face Recognition

Qh脸生成)

http://openaccess.thecvf.com/content_cvpr_2018/papers/Deng_UV-GAN_Adversarial_Facial_CVPR_2018_paper.pdf

 

8.Face Aging with Identity-Preserved Conditional Generative Adversarial Networks

Qh脸老化Q?/p>

http://openaccess.thecvf.com/content_cvpr_2018/papers/Wang_Face_Aging_With_CVPR_2018_paper.pdf

 

Z相关

1. Deformable GANs for Pose-based Human Image Generation

Qh物姿态迁U)

http://openaccess.thecvf.com/content_cvpr_2018/papers/Siarohin_Deformable_GANs_for_CVPR_2018_paper.pdf

 

2. Social GAN: Socially Acceptable Trajectories with Generative Adversarial Networks

(用GAN生成q追t?

http://openaccess.thecvf.com/content_cvpr_2018/papers/Gupta_Social_GAN_Socially_CVPR_2018_paper.pdf

 

3. GANerated Hands for Real-Time 3D Hand Tracking from Monocular RGB

Q用GAN生成的手势图片做手势q踪的数据集Q?/p>

http://openaccess.thecvf.com/content_cvpr_2018/papers/Mueller_GANerated_Hands_for_CVPR_2018_paper.pdf

 

4. Multistage Adversarial Losses for Pose-Based Human Image Synthesis

Qh体姿态合成)

http://openaccess.thecvf.com/content_cvpr_2018/papers/Si_Multistage_Adversarial_Losses_CVPR_2018_paper.pdf

5. Disentangled Person Image Generation

Qh体合成)

http://openaccess.thecvf.com/content_cvpr_2018/papers/Ma_Disentangled_Person_Image_CVPR_2018_paper.pdf

 

domain adaptation

Q这个没来得及找了,可能转行咯~ 唉)

1. Generate to Adapt: Aligning Domains Using Generative Adversarial Networks

 

2. Re-Weighted Adversarial Adaptation Network for Unsupervised Domain Adaptation

 

3. Adversarial Feature Augmentation for Unsupervised Domain Adaptation

 

4. Domain Generalization With Adversarial Feature Learning

 

5. Image to Image Translation for Domain Adaptation

 

6. Duplex Generative Adversarial Network for Unsupervised Domain Adaptation

 

7. Conditional Generative Adversarial Network for Structured Domain Adaptation

 

目标跟踪?/span>

1.Generative Adversarial Learning Towards Fast Weakly Supervised Detection

Q弱监督)

http://openaccess.thecvf.com/content_cvpr_2018/papers/Shen_Generative_Adversarial_Learning_CVPR_2018_paper.pdf

 

2. SINT++: Robust Visual Tracking via Adversarial Positive Instance Generation

Q对抗学习生成轨qҎ本)

http://openaccess.thecvf.com/content_cvpr_2018/papers/Wang_SINT_Robust_Visual_CVPR_2018_paper.pdf

 

3. VITAL: VIsual Tracking via Adversarial Learning

http://openaccess.thecvf.com/content_cvpr_2018/papers/Song_VITAL_VIsual_Tracking_CVPR_2018_paper.pdf

 

GAN模型优化

1. SGAN: An Alternative Training of Generative Adversarial Network

Q替代训lGANQ?/p>

http://openaccess.thecvf.com/content_cvpr_2018/papers/Chavdarova_SGAN_An_Alternative_CVPR_2018_paper.pdf

 

2. GAGAN: Geometry-Aware Generative Adversarial Networks

Q一U关注几何外形的GANQ?/p>

http://openaccess.thecvf.com/content_cvpr_2018/papers/Kossaifi_GAGAN_Geometry-Aware_Generative_CVPR_2018_paper.pdf

 

3.Global versus Localized Generative Adversarial Nets

(局部优化GAN)

http://openaccess.thecvf.com/content_cvpr_2018/papers/Qi_Global_Versus_Localized_CVPR_2018_paper.pdf

 

4. Generative Adversarial Image Synthesis with Decision Tree Latent Controller

Q决{树Q?/p>

http://openaccess.thecvf.com/content_cvpr_2018/papers/Kaneko_Generative_Adversarial_Image_CVPR_2018_paper.pdf

 

5. Unsupervised Deep Generative Adversarial Hashing Network

Q哈希GANQ?/p>

http://openaccess.thecvf.com/content_cvpr_2018/papers/Dizaji_Unsupervised_Deep_Generative_CVPR_2018_paper.pdf

 

6. Multi-Agent Diverse Generative Adversarial Networks

Q多个生成器GANQ?/p>

http://openaccess.thecvf.com/content_cvpr_2018/papers/Ghosh_Multi-Agent_Diverse_Generative_CVPR_2018_paper.pdf

 

7. Duplex Generative Adversarial Network for Unsupervised Domain Adaptation

Q双鉴别器GANQ?/p>

http://openaccess.thecvf.com/content_cvpr_2018/papers/Hu_Duplex_Generative_Adversarial_CVPR_2018_paper.pdf

 

囑փ分割

1. Translating and Segmenting Multimodal Medical Volumes With Cycle- and Shape-Consistency Generative Adversarial Network

Q图像分Ԍ

http://openaccess.thecvf.com/content_cvpr_2018/papers/Zhang_Translating_and_Segmenting_CVPR_2018_paper.pdf

 

行h重识?/span>

1. Person Transfer GAN to Bridge Domain Gap for Person Re-Identification

Q用GAN生成的h体检的囄Q?/p>

http://openaccess.thecvf.com/content_cvpr_2018/papers/Wei_Person_Transfer_GAN_CVPR_2018_paper.pdf

 

2. Image-Image Domain Adaptation with Preserved Self-Similarity and Domain-Dissimilarity for Person Re-identification

http://openaccess.thecvf.com/content_cvpr_2018/papers/Deng_Image-Image_Domain_Adaptation_CVPR_2018_paper.pdf

 

视觉特征提取

1. Visual Feature Attribution using Wasserstein GANs

http://openaccess.thecvf.com/content_cvpr_2018/papers/Baumgartner_Visual_Feature_Attribution_CVPR_2018_paper.pdf

 

域自适应学习

1. Generate To Adapt: Aligning Domains using Generative Adversarial Networks

Q视觉域自适应Q?/p>

http://openaccess.thecvf.com/content_cvpr_2018/papers/Sankaranarayanan_Generate_to_Adapt_CVPR_2018_paper.pdf

 

囑փ?/span>

1. HashGAN: Deep Learning to Hash with Pair Conditional Wasserstein GAN

http://openaccess.thecvf.com/content_cvpr_2018/papers/Cao_HashGAN_Deep_Learning_CVPR_2018_paper.pdf

 

q移学习

1.Partial Transfer Learning With Selective Adversarial Networks

http://openaccess.thecvf.com/content_cvpr_2018/papers/Cao_Partial_Transfer_Learning_CVPR_2018_paper.pdf

 

视频生成

1. MoCoGAN: Decomposing Motion and Content for Video Generation

Q用GAN生成视频Q?/p>

http://openaccess.thecvf.com/content_cvpr_2018/papers/Tulyakov_MoCoGAN_Decomposing_Motion_CVPR_2018_paper.pdf

2. Learning to Generate Time-Lapse Videos Using Multi-Stage Dynamic Generative Adversarial Networks

Q生成g时视频)

http://openaccess.thecvf.com/content_cvpr_2018/papers/Xiong_Learning_to_Generate_CVPR_2018_paper.pdf

 

结Q?/strong>

  可以看出GAN相关的论文还不少呀Q各个方面的都有Q可是我个h觉得Q可能没有U特别厉害的吧~hh

--------------------- 本文来自 眉间l雪 的CSDN 博客 Q全文地址L击:https://blog.csdn.net/weixin_42445501/article/details/82792311?utm_source=copy 

杰哥 2018-09-28 22:00 发表评论
]]>
޹Ʒþþѿ| þۺ϶㼤þ| Ʒþþþþ99| þþþþaŷa| 91þþƷһëƬ| þþþAVվ| þùŷպƷ| ŷһþ| þúݺݰۺӰԺ| ƷþþþþӰԺ| þþþþþŮú| 97þþƷҹһ| ˳wwwþþ| ƷŮþþ| ھƷþþþþ99| ɫۺϾþ| Ʒһþ| ޹˾Ʒþþþþۺ| ŷ˾þۺ| þþƷԴվ| þùƷþþƷ| ۺϾþϵ| þþƷһӰ| 鶹avþavʢav| ŮдþӰԺ| þˬƬţţ| 91þþƷ˾þ| 99Ʒþ| ˾Ʒ׽þ69| Ļձ޾þþ| Ժձһձþ | Ů˸߳þþýˮ| þ| ĻƷѾþþ| ȾþùƷ| Ʒ˾þþþҹӰ| þۺɫ| þùƷһ| Ʒþþ| þþùƷվ| ޾Ʒһþ|