Skip to content

Instantly share code, notes, and snippets.

View makeyourownalgorithmicart's full-sized avatar

Make Your Own Algorithmic Art makeyourownalgorithmicart

View GitHub Profile
@makeyourownalgorithmicart
makeyourownalgorithmicart / downloading_images_from_colab.py
Last active July 3, 2019 01:13
downloading images from colab, note doesn't work on its own
from google.colab import drive
drive.mount('./data')
from google.colab import files
###
# plot 6-image samples, save to file
f, axarr = plt.subplots(2,3, figsize=(16,8))
for i in range(2):
# (c) Tariq Rashid 2019
# GPL v2
import h5py
import imageio
import os
import PIL.Image
import numpy
# (c) Tariq Rashid 2019
# GPL v2
import h5py
import imageio
import os
import PIL.Image
import numpy
@makeyourownalgorithmicart
makeyourownalgorithmicart / celeba_zip_to_h5py
Created May 21, 2019 16:08
coverts celebaA zip file of images to h5py dataset
# (c) Tariq Rashid 2019
# GPL v2
import h5py
import zipfile
import imageio
import os
with h5py.File('celeba_dataset/celeba_aligned_small.h5py', 'w') as hf: