leftthomas / ImageDeblurring

A Keras implementation of image deblurring based on ICCV 2017 paper "Deep Generative Filter for motion deblurring"
82 stars 30 forks source link

no data/data.h5 file #13

Closed yunlongdong closed 6 years ago

yunlongdong commented 6 years ago

In data_utils.py, code with h5py.File('data/data.h5', 'r') as f:, there is no data.h5 in data/.

leftthomas commented 6 years ago

@yunlongdong do you really conscientious read my code? In data.utils.py, you could see the main function, so you just type python data.utils.py, then it will generate data.h5.

TrinhQuocNguyen commented 6 years ago

One more thing is that: converting float to int in data.utils.py file

    # slice image into full and blur images
    image_full = image.crop((0, 0, int(image.size[0] / 2), image.size[1]))
    # Note the full image in left, the blur image in right
    image_blur = image.crop((int(image.size[0] / 2), 0, image.size[0], image.size[1]))