DmitryUlyanov / deep-image-prior

Image restoration with neural networks but without learning.
https://dmitryulyanov.github.io/deep_image_prior
Other
7.79k stars 1.42k forks source link

some problem of the code #60

Closed fengyayuan closed 5 years ago

fengyayuan commented 5 years ago

hello, I couldn‘t run the code of "restoration".I had this problem when I run "restoration":name 'Concat' is not defined.(the "concat" from the "skip.py"). My python and pytorch versions are 3.6 and 0.4,but i couldn't run the code successfully.Anybody know how to solve this problem?Thank you.

fengyayuan commented 5 years ago

`Traceback (most recent call last):

File "", line 1, in runfile('C:/Users/57680/image/restoration.py', wdir='C:/Users/57680/image')

File "D:\Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 827, in runfile execfile(filename, namespace)

File "D:\Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 110, in execfile exec(compile(f.read(), filename, 'exec'), namespace)

File "C:/Users/57680/image/restoration.py", line 90, in upsample_mode='bilinear').type(dtype)

File "C:\Users\57680\image\model__init__.py", line 17, in get_net need_sigmoid=True, need_bias=True, pad=pad, act_fun=act_fun)

File "C:\Users\57680\image\model\skip.py", line 52, in skip model_tmp.add(Concat(1, skip, deeper))

NameError: name 'Concat' is not defined`