Skip to content

Instantly share code, notes, and snippets.

View joohaeng's full-sized avatar

Joo-Haeng Lee joohaeng

  • ETRI
  • Daejeon, KOREA
View GitHub Profile
anonymous
anonymous / mnist_gan.m
Created April 5, 2017 19:55
trainingData = <|
"random" -> RandomInteger[{1, 10}, Length[mnistDigits]],
"Input" ->
Map[RandomReal[{-0.05, 0.05}, {1, 28, 28}] +
ArrayReshape[ImageData[#], {1, 28, 28}] &, mnistDigits]|>;
generator =
NetChain[{EmbeddingLayer[8*6*6, 10], ReshapeLayer[{8, 6, 6}],
DeconvolutionLayer[8, 4, "Stride" -> 2], Ramp,
DeconvolutionLayer[1, 4, "Stride" -> 2, "PaddingSize" -> 1],
LogisticSigmoid}];
#!/bin/bash
################################################################################
### OpenCV2 Installation Script ###
################################################################################
# Source code at https://github.com/arthurbeggs/scripts #
################################################################################
# #
# Feel free to copy and modify this file. Giving me credit for it is your #
# choice, but please keep references to other people's work, which I don't #
@wangruohui
wangruohui / Install NVIDIA Driver and CUDA.md
Last active May 17, 2024 09:02
Install NVIDIA Driver and CUDA on Ubuntu / CentOS / Fedora Linux OS
@AlephAlpha
AlephAlpha / Gomoku.nb
Last active April 29, 2022 10:34
Gomoku game in Mathematica.
DynamicModule[{board, winner, p, pmouse, ppossible, v, Reset},
Reset[] := {winner, board} = {"", ConstantArray[0, {20, 20}]};
Reset[]; Deploy@
Graphics[Button[{Brown, Rectangle[{0, 0}, {20, 20}], Black,
Line[Join @@
Table[{{{i, 0}, {i, 20}}, {{0, i}, {20, i}}}, {i, .5, 19.5}]],
Dynamic[pmouse =
Ceiling@MousePosition["Graphics", {-1, -1}] /. {0 -> 1,
21 -> 20};
If[1 <= Min@pmouse <= Max@pmouse <= 20 &&