SHARE
TWEET

Untitled

a guest May 20th, 2019 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top