This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Coursera subtitles(outside the video) | |
// @description Coursera subtitles outside the video. | |
// @namespace http://tampermonkey.net/ | |
// @version 0.2 | |
// @author 木杉, [email protected] | |
// @include http://www.coursera.org/* | |
// @include https://www.coursera.org/* | |
// @grant none | |
// @run-at document-end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
"""Inception v3 architecture 모델을 이용한 간단한 Transfer Learning (TensorBoard 포함) | |
This example shows how to take a Inception v3 architecture model trained on | |
ImageNet images, and train a new top layer that can recognize other classes of | |
images. | |
The top layer receives as input a 2048-dimensional vector for each image. We | |
train a softmax layer on top of this representation. Assuming the softmax layer |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
"""Inception v3 architecture 모델을 retraining한 모델을 이용해서 이미지에 대한 추론(inference)을 진행하는 예제""" | |
import numpy as np | |
import tensorflow as tf | |
imagePath = '/tmp/test_chartreux.jpg' # 추론을 진행할 이미지 경로 | |
modelFullPath = '/tmp/output_graph.pb' # 읽어들일 graph 파일 경로 | |
labelsFullPath = '/tmp/output_labels.txt' # 읽어들일 labels 파일 경로 |