Skip to content

Instantly share code, notes, and snippets.

@Saqoosha
Saqoosha / file0.txt
Created August 21, 2015 16:32
OpenType フォントのカーニング情報をぶっこぬく ref: http://qiita.com/Saqoosha/items/8a9bb825e02db770408e
(OTF
(OffsetTable
(sfnt-version 20308.21583)
(numTables 25)
(searchRange 256)
(enterSelector 4)
(rangeShift 384))
(Table 0 (tag "BASE" #x42415345)
(checkSum 6962C672) (offset #x00000430) (length: #x000001C8))
(Table 1 (tag "CFF " #x43464620)
import numpy as np
import scipy.ndimage as nd
import PIL.Image
from google.protobuf import text_format
import caffe
model_path = 'caffe/models/finetune_flickr_style/' # substitute your path here
net_fn = model_path + 'deploy.prototxt'
param_fn = model_path + 'finetune_flickr_style.caffemodel'