yossigandelsman / DoubleDIP

Official implementation of the paper "Double-DIP: Unsupervised Image Decomposition via Coupled Deep-Image-Priors"
514 stars 95 forks source link

I am new with python and unable to execute this program #4

Closed Guguskis closed 5 years ago

Guguskis commented 5 years ago

Hello, I installed python on my PC, set up environmental variables and try to run dehazing.py, but get:

Traceback (most recent call last): File "c:\Users\Matas Liutikas\source\repos\DoubleDIP\dehazing.py", line 3, in from cv2.ximgproc import guidedFilter ModuleNotFoundError: No module named 'cv2.ximgproc'

I cannot find anything online and I assume there are more dependencies I have to install. Is there a way to do it easily?

kssvrkrishna commented 5 years ago

Type this in your terminal. pip install opencv--contrib-python

Worked for me.

Guguskis commented 5 years ago

Thank you, that worked. But now I am stuck on missing torch package and I guess there are more packages to install so I won't bother you anymore.

ghost commented 5 years ago

Thank you, that worked. But now I am stuck on missing torch package and I guess there are more packages to install so I won't bother you anymore.

Did you ever get this working? I am at a loss for how to execute this code. Any help would be appreciated. Thanks!

Guguskis commented 5 years ago

No, I didn't get this working :/

ghost commented 5 years ago

Ok. Thanks for letting me know. All the best.

On Mon, Sep 30, 2019 at 8:27 PM Guguskis notifications@github.com wrote:

No, I didn't get this working :/

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/yossigandelsman/DoubleDIP/issues/4?email_source=notifications&email_token=AAHX3PA4A2EO76DJKZHHWSDQMLUWLA5CNFSM4IX2AKIKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAAED6I#issuecomment-536887801, or mute the thread https://github.com/notifications/unsubscribe-auth/AAHX3PEJUC7PMBQKE7JHNQLQMLUWLANCNFSM4IX2AKIA .

-- —

Garrett Guynn Web Developer

(808) 990-0445 (650) 733-HTTP

garrett@gguynn.com

21071997 commented 4 years ago

Hello everyone, I am an undergraduate student, newbie to Deep Learning and a beginner in python. I am trying to run this code dehazing.py, but I am getting this error (in the screenshot). I am not able to figure out why this is coming. Can anyone please guide me in this. Is this error due to the different versions of Python? I have already installed all the necessary libraries like OpenCV, progressbar in Anaconda3. Thank You in advance!

Screenshot (65)

IpsumDominum commented 4 years ago

@21071997

end='' is a python3 syntax,

You are probably running python2. :) try type "python" in the terminal and see what version your python is.