Skip to content

Instantly share code, notes, and snippets.

import math
from moviepy.editor import concatenate, ImageClip
import os
import platform
import subprocess
import random
import torch
# pip install pytorch-pretrained-biggan
from pytorch_pretrained_biggan import (BigGAN, truncated_noise_sample, convert_to_images)
import numpy as np
@htoyryla
htoyryla / neural_mirage5.lua
Last active September 2, 2018 14:26
Neural-style modified to use also fc layers
--[[
Neural-mirage 5
by @htoyryla 3/2016, 3/2017
based on neural-style by @jcjohnson
for more info see
http://liipetti.net/erratic/2016/03/31/i-have-seen-a-neural-mirage/
http://liipetti.net/erratic/2016/04/20/getting-the-space-back/
@farrajota
farrajota / pretrained_models.lua
Last active August 8, 2021 12:22
Torch7 trained models available
-- Available torch7 pre-trained models for download
Alexnet (trained by me)
cudnn: https://ln.sync.com/dl/3d9c28e80#cvjp4mjs-mc2y8jrt-9wq5yebx-yrdchcei
mean = {0.48037518790839, 0.45039056120456, 0.39922636057037}
std = {0.27660147027775, 0.26883440068399, 0.28014687231841}
img size: 3x224x224
overfeat: https://github.com/jhjin/overfeat-torch
mean = {118.380948, 118.380948, 118.380948}
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active May 11, 2024 07:10
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname