Tech Note

Dynamic Visualization in Python

Motivation Unlike matlab, plotting dynamics in python is not as easy or straight forward to use. And to interact with the figure is not always as simple as matlab native plotting routines.

Nov 17, 2019

Computer Graphics Environment in Matlab

Computer Graphics environment in Matlab @(515.1 Computer Graphics)[matlab] Recently, we are using matlab to do computer vision experiments. Thus this note introduces some function controlling the elementary graphics environment. For Computer Graphics, the basic 3 components are

Nov 14, 2019

LBFGS Algorithm

TOC {:toc} L-BFGS algorithm Motivation L-BFGS is one of the not so simple optimization algorithm that we may encounter in large scale optimization problems. Not so simple means it’s not simply a first order algorithm, and the deviation from that is well motivated by theoretical arguments. So this note target to understand this algorithm

Nov 11, 2019

Multi-platform Matlab compiling

Multi-platform Matlab compiling When trying to compile a matlab code, I faced and solved many errors either on the Windows platform and the MacOS platform. Here I note some prominent difference across platform and how to debug the compiling process.

Nov 3, 2019

Working with Caffe

Installation Official note on installation https://caffe.berkeleyvision.org/installation.html Installing CPU version on CHPC Install Miniconda Install caffe using condaconda install -c intel caffe lsb_release -d Description: CentOS release 6.10 (Final) Building GPU version on CHPC (Not succeeded yet…. aborted)

Oct 27, 2019

Some Computation on Sphere

Some Computation on Sphere (Updating) Motivation Recently, in research, we encounter quite a few statistical problems on sphere. For example, Head direction tuning 3d direction of object 3d direction of body parts Some 3d tuning There are many standard statistical operations on Euclidean space, like getting mean, standard deviation and generate uniform distribution, fitting a model etc. We can perform these operation without thinking.

Oct 13, 2019

Note on Optimization on Manifold

Note on Optimization on Manifold Manifold is locally similar to $\R^n$ flat space, but globally not. Manifold is locally homeomorphic to a Euclidean space of the same dimension. Besides there is Riemann logrithm map that connect the local vector space $T_p$ to the neighbourhood of $p$ on the manifold. Thus, many local optimization algorithm that work on flat $\R^n$ space can work the same on neighborhood of a manifold. The unique thing of working on a manifold is how to transport the local direction information in one neighborhood into another neighborhood.

Sep 29, 2019

Using Google Cloud Service for Large Scale Image Labelling

Using Google Cloud Service for Large Scale Image Labelling Installing Google SDK https://cloud.google.com/sdk/docs/quickstart-windows New a Google Cloud Platform Project Download Google Cloud SDK After installation run gcloud init and log in to your account there! Select the GCP Project and the computing zone Finish the SDK configuration! Installing Google API for different programs (like Vision we use) https://cloud.google.com/python/

Sep 11, 2019

How to Parse Anatomical/Physiological Terms in Latin/Greek

How to Parse Latin/Greek Anatomical/Physiological Terms TOC {:toc} 大部分现代医学 解剖术语似乎是文艺复兴之后生理学家创造的,但为了显得高端,使用当时的国际学术语言Latin书写。因为当时Latin在当时早已不是日常语言,所以大多是科学家们非常规整的用Classic Latin/Greek 的词根Root 词缀Pre-/Suffix 变位法Conjugation,人工构词产生的,算New Latin。所以知道了词根之后拼写起来单词就会像写中文组词一样,记忆起来也容易1,也更容易根据词形记忆解剖结构的位置。 词根 单个词大多是由词根词缀组合而成 比如 肋骨rib= costa costae(单数形容词) costarum(复数形容词) 腹股沟groin= Ilium Ilio(变位形式) 合在一起成了Iliocostalis 髂肋肌 Wikipedia List of medical roots, suffixes and prefixes

Sep 7, 2019

Understanding conda and python package management (Updating)

TOC {:toc} Python is a script language. Most of the packages are written in python, and they are just a bunch of script files in a folder hierachy. For these packages, it’s just as easy as find the script file and run them.

Jul 25, 2019