deblur-gan icon indicating copy to clipboard operation
deblur-gan copied to clipboard

ModuleNotFoundError: No module named 'deblurgan'

Open w3aryb0arpig opened this issue 5 years ago • 5 comments

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'

w3aryb0arpig avatar Jan 15 '19 17:01 w3aryb0arpig

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

hala3 avatar Jan 21 '19 08:01 hala3

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 avatar Jan 21 '19 13:01 ChristianoPenaldo

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 ?

rahulvigneswaran avatar Feb 07 '19 11:02 rahulvigneswaran

I fixed this with:

$ PYTHONPATH=. python3 scripts/train.py --n_images=512 --batch_size=16 --log_dir logs

jpds avatar Mar 04 '19 16:03 jpds

@jpds you are train, not deblur_image

dyfloveslife avatar Apr 12 '19 13:04 dyfloveslife