I am Charmie

メモとログ

2018-05-01から1ヶ月間の記事一覧

sed: replace and in-place edit

The following command delete all lines starting with WORD_TO_DELETE and overwrite the original file. sed -i -e '/WORD_TO_DELETE/d' FILE_NAME

Beamer: font of equations

Default beamer settings provide weird font equations. This problem is solved by adding the following command in preamble. \usefonttheme[onlymath]{serif}

Seminar on Computer Vision 2018

For newbie in the lab, I'll give a seminar series on computer vision. I selected lecture slides published by Professor Shapiro. Week 1 (2018/05/11) Introduction Image and filtering Week 2 (2018/05/18) Morphology operations Edge detection (…

Anaconda: install OpenCV 3.4.1 on Windows 10

conda install ... opencv, conda install ... opencv-python ruined my environment built on Windows 10. The error seemed to related to PyQt and authentication/path setting but couldn't specify the true cause. So, instead of using anaconda bin…

Anaconda: OpenCV for Python 3.6 on Windows 10

OpenCV installation on Windows via Anaconda with conda -c conda-forge opencv makes import error like ImportError: DLL load failed: access denied. The solution is to use pip instead as pip install opencv-python.

python: natural sort for a list of strings

See this. The process is super simple. stack a set of strings into a list. define a function converts a string object to its corresponding int object. define a function runs through a list to extract numbers from strings. sort a list with …

PyTorch: fine-tune a pre-trained model

See the tutorial. Important note: torchvision provides several pre-trained models with their trained parameters. AlexNet, DenseNet, Inception, ResNet, VGG are available, see here. With pretrained=True, pre-trained parameters are available.…