RaphaelMeudec / deblur-gan

Keras implementation of "DeblurGAN: Blind Motion Deblurring Using Conditional Adversarial Networks"
590 stars 245 forks source link

ModuleNotFoundError: No module named 'deblurgan' #40

Open w3aryb0arpig opened 5 years ago

w3aryb0arpig commented 5 years ago

When calling 'scripts/deblur_image.py', I receive the below:-

Traceback (most recent call last):
  File "/content/deblur-gan/scripts/deblur_image.py", line 5, in <module>
    from deblurgan.model import generator_model
ModuleNotFoundError: No module named 'deblurgan'
hala3 commented 5 years ago

when i test the pretrained model i have a problem with preprocess_image and depreprocess_image how i can delete this function to have a RGB image without preprocess or depreprocess

ChristianoPenaldo commented 5 years ago

cp scripts/* . (in deblur-gan, i.e., root file), to copy the files from scripts/ to the root directory. That fixes. Well, the training process is extremely slow with 2 NVIDIA Tesla K80s.

rahulvigneswaran commented 5 years ago

cp scripts/* . (in deblur-gan, i.e., root file), to copy the files from scripts/ to the root directory. That fixes. Well, the training process is extremely slow with 2 NVIDIA Tesla K80s.

@ChristianoPenaldo Can you explain the work around a bit more clearly ?

jpds commented 5 years ago

I fixed this with:

$ PYTHONPATH=. python3 scripts/train.py --n_images=512 --batch_size=16 --log_dir logs
dyfloveslife commented 5 years ago

@jpds you are train, not deblur_image