Annotated transformer

This Harvard blog post is really nice. It filled in the detail implementation for the “Attention is all you need” paper.

Experience with Windows subsystem for Linux

Tried to play opencv on my old surface pro 3. Somehow face_recognition is running very slow on Anaconda python. I suspected that dlib was not optimized somehow. Try out Windows subsystem for Linux and see how it goes. It is actually quite decent. Many has problem install opencv (with library link problem). It can be…

Pseudo-random pattern

Thinking to get a pseudo-random patern projector for 3d reconstruction. Come across this nice discussion. Probably the best solution is a laser source with a holograhic diffuser.

Conda is hell

I use Ubuntu and virtualenv and so I don’t see a need of using conda previously. But I recently tested something on windows and was forced to used conda. I ended up wasting whole two days to resolve package conflict. Conda cannot install all packages (for example cvui) and this force me to fall back…

face_recognition

Playing with face_recognition in python. It was doing well on my 18.04 ubuntu laptop. But face_recognition.face_encoding run super slow on my old surface pro 3. It needs ~0.7s per encoding, 10 times more on my ubuntu laptop. I checked the cpu speed. The ubuntu laptop is newer but should be only 50% faster. Cannot think…

Adventure capitalist

It is a review of a causal game I played recently. It is getting very tedious for special event. It is impossible to fund the last manager without buying with real money. Or I estimated you may click a button ~ 5000 times (12 sec cool down). It will be about ~ 17 hours of…

Deep learning and CV on windows

I mostly use Linux but I tried to setup a windows machine just for the sake of testing. Near the end of 2019, things become extremely easy. It seems the easiest way to get a system ready and going will be Install anaconda Install pytorch with conda Install fastai with conda Install opencv with pip…

Don’t forget to update

I wasted a couple hours trying to fix my website this morning. It took me half an hour to realize that my domain name registrar has expired. After renew my domain name, it was still not connecting. I suspected a problem from letsencrypt. I tried to run a dry run on renewal but got another…