knorth55's memo

Technical memo by @knorth55

FCIS: chainer implementation

I implemented Fully Convolutional Instance-aware Segmentation (FCIS) by Chainer.

All codes including training scripts is on Github.

I also made a explanation slide of FCIS on SlideShare.

ArXiv Github SlideShare

github.com

ThinkPad T450 cannot detect wifi adaptors

My T450 suddenly could not find wireless devices with lcpci.

$ uname -r
4.2.0-42-generic 

$ lspci -nn | grep -i net
00:19.0 Ethernet controller [0200]: Intel Corporation Ethernet Connection (3) I218-V [8086:15a3] (rev 03)

I upgrade BIOS version, reboot, and press Fn + F2 and now I can use wireless connection.

Python2.7でUnicode文字をjoin

Python2.7でUnicode文字をjoinすると不思議なことになる

>>> a = u'\U0001f607'
>>> a
u'\U0001f607'
>>> print(a)
😇
>>> a = a.join(u'\U0001f607')
>>> a
u'\ud83d\U0001f607\ude07'
>>> print(a)
???😇???

Unicode文字をつなげる際は

>>> a = u'\U0001f607'
>>> a
u'\U0001f607'
>>> print(a)
😇
>>> a = a + a
>>> a
u'\U0001f607\U0001f607'
>>> print(a)
😇😇

原因は探っていませんが見ていて面白いです

OSXのTerminalが起動はするがすぐ落ちる

OSXのTerminalを起動すると、起動はするがすぐに落ちて消えてしまう
一旦デフォルトのログインシェルに戻した上でbashを実行すると以下のエラーが返ってきた。

dyld: Library not loaded: /usr/local/opt/readline/lib/libreadline.6.dylib
  Referenced from: /usr/local/bin/bash
  Reason: image not found
Trace/BPT trap: 5

原因はよくわからないがbrewでbashをupgradeすれば解決する

brew upgrade bash


github.com