モヒカンslackのチャネルリスト(毎日 AM 5:00 自動更新)
詳細はQiita:究極のIT系最新技術情報収集用Slackチーム公開 - モヒカンSlack -を参照。
参加は
モヒカンslackのチャネルリスト(毎日 AM 5:00 自動更新)
詳細はQiita:究極のIT系最新技術情報収集用Slackチーム公開 - モヒカンSlack -を参照。
参加は
| class ConvolutionalAutoencoder(FunctionSet): | |
| def __init__(self, n_in, n_out, ksize, stride=1, pad=0, wscale=1, bias=0, nobias=False): | |
| super(ConvolutionalAutoencoder, self).__init__( | |
| encode=F.Convolution2D(n_in, n_out, ksize, stride=stride, pad=pad, wscale=wscale, bias=bias, nobias=nobias), | |
| decode=F.Convolution2D(n_out, n_in, ksize, stride=stride, pad=pad, wscale=wscale, bias=bias, nobias=nobias) | |
| ) | |
| def forward(self, x_data, train=True): | |
| x = Variable(x_data) | |
| t = Variable(x_data) |
| import argparse | |
| import numpy as np | |
| from chainer import Variable, FunctionSet, optimizers, cuda | |
| import chainer.functions as F | |
| import cv2 | |
| import random | |
| import cPickle as pickle | |
| import sys | |
| class ConvolutionalAutoencoder(FunctionSet): |
| % We are generating HTML + MathML code | |
| \Preamble{xhtml,mathml} | |
| % We don't want to translate font suggestions with ugly wrappers like | |
| % <span class="cmti-10"> for italic text | |
| \NoFonts | |
| % Don't output xml version tag | |
| \Configure{VERSION}{} |