Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from PIL import Image #pip install pillow
- import h5py
- with h5py.File('./data/dataset_big.h5', 'r') as h5:
- display(Image.fromarray(h5['P'][1000]))#display in jupyter
- #Image.fromarray(h5['P'][1000]).save('./data/png/1000.png')#save to file instead if you're not using jupyter
- print(h5['W'][1000])#the blend shape values
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement