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
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): |
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
# (c) Tariq Rashid 2019 | |
# GPL v2 | |
import h5py | |
import imageio | |
import os | |
import PIL.Image | |
import numpy |
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
# (c) Tariq Rashid 2019 | |
# GPL v2 | |
import h5py | |
import imageio | |
import os | |
import PIL.Image | |
import numpy |
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
# (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: |