DmitryUlyanov / deep-image-prior

Image restoration with neural networks but without learning.

Home Page:https://dmitryulyanov.github.io/deep_image_prior

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

some problem of the code

fengyayuan opened this issue · comments

commented

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.

commented

`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`