Skip to content

Instantly share code, notes, and snippets.

View uetchy's full-sized avatar
🍵
Recovering

uetchy uetchy

🍵
Recovering
View GitHub Profile
@mitmul
mitmul / ResNet_A.py
Last active May 17, 2017 13:39
Deep Residual Network definition by Chainer
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import math
import chainer
import chainer.links as L
import chainer.functions as F
@pklaus
pklaus / get_name.py
Last active September 24, 2024 05:10 — forked from starrhorne/gist:1637310
Extracting font names from TTF/OTF files using Python and fontTools
#!/usr/bin/env python
"""
From
https://github.com/gddc/ttfquery/blob/master/ttfquery/describe.py
and
http://www.starrhorne.com/2012/01/18/how-to-extract-font-names-from-ttf-files-using-python-and-our-old-friend-the-command-line.html
ported to Python 3
"""

Contributing

When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.

Please note we have a code of conduct, please follow it in all your interactions with the project.

Pull Request Process

  1. Ensure any install or build dependencies are removed before the end of the layer when doing a
@baraldilorenzo
baraldilorenzo / readme.md
Last active January 14, 2025 11:07
VGG-16 pre-trained model for Keras

##VGG16 model for Keras

This is the Keras model of the 16-layer network used by the VGG team in the ILSVRC-2014 competition.

It has been obtained by directly converting the Caffe model provived by the authors.

Details about the network architecture can be found in the following arXiv paper:

Very Deep Convolutional Networks for Large-Scale Image Recognition

K. Simonyan, A. Zisserman

@Hi-king
Hi-king / crop.py
Last active January 24, 2019 04:14
chainerで画像分類するための補助スクリプト
!/usr/bin/python
# -*- coding: utf-8 -*-
import cv2
import argparse
import os
import numpy
parser = argparse.ArgumentParser()
parser.add_argument("source_dir")
parser.add_argument("target_dir")
@benkulbertis
benkulbertis / cloudflare-update-record.sh
Last active February 25, 2025 10:56
Cloudflare API v4 Dynamic DNS Update in Bash
#!/bin/bash
# CHANGE THESE
auth_email="[email protected]"
auth_key="c2547eb745079dac9320b638f5e225cf483cc5cfdda41" # found in cloudflare account settings
zone_name="example.com"
record_name="www.example.com"
# MAYBE CHANGE THESE
ip=$(curl -s http://ipv4.icanhazip.com)
@gunyarakun
gunyarakun / README.md
Last active September 26, 2022 18:21
旺文社『表現のための実践ロイヤル英文法』別冊付録「英作文のための暗記用例文300」JSON
@koba04
koba04 / .gitignore
Last active December 21, 2018 02:21
karma + mocha + browserify + babel + power-assert
node_modules/
@reiji1020
reiji1020 / WhatisCNN.md
Last active February 8, 2017 05:03
卒研用のメモ,機械学習の基礎と畳み込みニューラルネットワークとは何か

畳み込みニューラルネットワーク

RBMとは何か

  • Restricted Bolzmann Machine
  • 通常のボルツマンマシンとは違い,可視ユニット同士,不可視ユニット同士の連結を認めない 制限付きボルツマンマシン のことを指す
  • 通常1層ではなく,何層かに重ねて使われる
  • RBMを1段階学習した後,不可視ユニットの活性(値)をより高階層のRBMの入力データとする
  • 不可視ユニットを効率的に学習させることができ,また計算量を現実的な水準に落としている
  • ある訓練データvが与えられたとき、条件付き確率p(hj=1|v)が計算でき、その意味は「vが与えられたとき hjがONになる(1になる)確率 」
@Mierdin
Mierdin / pocketdedupe.py
Last active August 16, 2024 09:42
A Python script to intelligently remove duplicate entries from Pocket
#!/usr/bin/env python
from pocket import Pocket
import webbrowser, sys
# Get consumer key from cmd line
consumer_key = sys.argv[1]
request_token = Pocket.get_request_token(
consumer_key=consumer_key,