Skip to content

Instantly share code, notes, and snippets.

View tetsugps's full-sized avatar
🎯
Focusing

tetsugps tetsugps

🎯
Focusing
View GitHub Profile
@charlesreid1
charlesreid1 / doit.sh
Last active March 28, 2024 06:07
Download the Large-scale CelebFaces Attributes (CelebA) Dataset from their Google Drive link
#!/bin/bash
#
# Download the Large-scale CelebFaces Attributes (CelebA) Dataset
# from their Google Drive link.
#
# CelebA: http://mmlab.ie.cuhk.edu.hk/projects/CelebA.html
#
# Google Drive: https://drive.google.com/drive/folders/0B7EVK8r0v71pWEZsZE9oNnFzTm8
python3 get_drive_file.py 0B7EVK8r0v71pZjFTYXZWM3FlRnM celebA.zip
@yampy
yampy / ykov8_ssd_keras.yaml
Created September 3, 2017 09:12
Anaconca env file for ykov8_ssd_keras
name: rykov8_ssd_keras
channels:
- anaconda
- defaults
dependencies:
- appnope=0.1.0=py35_0
- bleach=1.5.0=py35_0
- colorama=0.3.9=py35_0
- decorator=4.1.2=py35_0
- entrypoints=0.2.3=py35_0
@talegari
talegari / cor2.R
Last active August 9, 2021 04:48
Find correlation matrix for a dataframe with mixed column types
###############################################################################
#
# cor2
# -- Compute correlations of columns of a dataframe of mixed types
#
###############################################################################
#
# author : Srikanth KS (talegari)
# license : GNU AGPLv3 (http://choosealicense.com/licenses/agpl-3.0/)
#
@ado3s
ado3s / FbLoginSample.cs
Created December 25, 2016 17:02
【Unity】Facebook SDK のログイン処理
using Facebook.Unity;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class SampleView : MonoBehaviour
{
void Awake()
{
@katsugeneration
katsugeneration / iris_tensorflow.py
Created July 18, 2016 07:34
TensorFlow basic DNN
import tensorflow as tf
import numpy as np
import pandas as pd
import math
# Data sets
IRIS_TRAINING = "iris_training.csv"
IRIS_TEST = "iris_test.csv"
IRIS_DATA_SIZE = 4
CLASS_SIZE = 3
@uramonk
uramonk / mnist_for_ml_beginners.py
Created May 12, 2016 02:31
TensorFlow MNIST For ML Beginners チュートリアルのコード
# -*- coding: utf-8 -*-
# TensowFlowのインポート
import tensorflow as tf
# MNISTを読み込むためinput_data.pyを同じディレクトリに置きインポートする
# input_data.pyはチュートリアル内にリンクがあるのでそこから取得する
# https://tensorflow.googlesource.com/tensorflow/+/master/tensorflow/examples/tutorials/mnist/input_data.py
import input_data
import time
@fernandoaleman
fernandoaleman / fix-libv8-mac.txt
Created May 5, 2016 15:14
Fixing libv8 and therubyracer on Mac
brew tap homebrew/versions
brew install v8-315
gem install libv8 -v '3.16.14.13' -- --with-system-v8
gem install therubyracer -- --with-v8-dir=/usr/local/opt/v8-315
bundle install
@noriaki
noriaki / command line
Last active April 7, 2016 17:09
LINE BOT APIにちゃんとアカウント登録できてるか確認するためのcurlコマンド。{ほげほげ}の部分には管理画面の各値をあてはめる。レスポンスに自分の設定したアカウント情報が返ってくれば正しく登録できてる
curl -H "X-Line-ChannelID: {Channel ID}" \
-H "X-Line-ChannelSecret: {Channe lSecret}" \
-H "X-Line-Trusted-User-With-ACL: {MID}" \
"https://trialbot-api.line.me/v1/profiles?mids={MID}"
@Mooan
Mooan / misawa.md
Last active September 17, 2020 14:36

顔画像から地獄のミサワ顔を生成する.

OpenCVの勉強のため、題記のとおり課題設定し、取り組んでみた記録.

以下のステップで地獄のミサワ顔を作る.

  1. 入力画像から顔を検出し、抽出する.
  2. 1.で抽出した画像を切り出す.
  3. 2.で切り出した画像を、顔を中心部に寄せる感じで画像処理で変形する