Advertisement
Guest User

Untitled

a guest
May 20th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.32 KB | None | 0 0
  1. from PIL import Image #pip install pillow
  2. import h5py
  3. with h5py.File('./data/dataset_big.h5', 'r') as h5:
  4.     display(Image.fromarray(h5['P'][1000]))#display in jupyter
  5.     #Image.fromarray(h5['P'][1000]).save('./data/png/1000.png')#save to file instead if you're not using jupyter
  6.     print(h5['W'][1000])#the blend shape values
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement