dongheehand / DeblurGAN-tf

Tensorflow implementation of DeblurGAN(Blind Motion Deblurring Using Conditional Adversarial Networks)
80 stars 24 forks source link

Error when trying to deblur my own image #1

Closed ShubhamRane closed 5 years ago

ShubhamRane commented 5 years ago

!python 'drive/My Drive/Pretrained/DeblurGAN-tf/main.py' --mode test_only --pre_trained_model 'drive/My Drive/Pretrained/DeblurrGAN_last.index' --test_Blur_path 'drive/My Drive/Rafting/' ValueError: The passed save_path is not a valid checkpoint: drive/My Drive/Pretrained/DeblurrGAN_last.index

I think there should be a meta file in addition to the two files in trained model

jpds commented 5 years ago

I'm also having this issue - how did you fix it @ShubhamRane ?

ShubhamRane commented 5 years ago

@jpds In my case i was using the wrong path for the trained model. Initially I used pretrained model path as drive/My Drive/Pretrained/DeblurrGAN_last.index However it should be drive/My Drive/Pretrained/DeblurrGAN_last

The complete command for reference python main.py --mode test_only --pre_trained_model "drive/My Drive/Pretrained/DeblurrGAN_last" --test_Blur_path "drive/My Drive/sample/"