You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "main.py", line 88, in
tf.app.run()
File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\platform\app.py", line 48, in run
_sys.exit(main(_sys.argv[:1] + flags_passthrough))
File "main.py", line 60, in main
model = denoiser(sess)
File "C:\Users\liu\Downloads\DnCNN-tensorflow-master\model.py", line 39, in init
self.dataset = dataset(sess)
File "C:\Users\liu\Downloads\DnCNN-tensorflow-master\model.py", line 202, in init
random.shuffle(ind)
File "C:\ProgramData\Anaconda3\lib\random.py", line 274, in shuffle
x[i], x[j] = x[j], x[i]
TypeError: 'range' object does not support item assignment
The text was updated successfully, but these errors were encountered:
------------------ 原始邮件 ------------------
发件人: "RavenKang"<notifications@github.com>;
发送时间: 2019年12月27日(星期五) 下午5:28
收件人: "wbhu/DnCNN-tensorflow"<DnCNN-tensorflow@noreply.github.com>;
抄送: "经常不上qq"<7172217@qq.com>;"Author"<author@noreply.github.com>;
主题: Re: [wbhu/DnCNN-tensorflow] help (#51)
You are using python3. In python3 'range' object does not a list.
You should change ind = range(len(filepaths)) to ind = list(range(len(filepaths)))
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
I run the main.py,but there are still some errors even some error is to random.py. why?I am a littlewhite,Wish some good people could help me,3x!
(base) C:\Users\liu\Downloads\DnCNN-tensorflow-master>python model.py
(base) C:\Users\liu\Downloads\DnCNN-tensorflow-master>python main.py
GPU
Traceback (most recent call last):
File "main.py", line 88, in
tf.app.run()
File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\platform\app.py", line 48, in run
_sys.exit(main(_sys.argv[:1] + flags_passthrough))
File "main.py", line 60, in main
model = denoiser(sess)
File "C:\Users\liu\Downloads\DnCNN-tensorflow-master\model.py", line 39, in init
self.dataset = dataset(sess)
File "C:\Users\liu\Downloads\DnCNN-tensorflow-master\model.py", line 202, in init
random.shuffle(ind)
File "C:\ProgramData\Anaconda3\lib\random.py", line 274, in shuffle
x[i], x[j] = x[j], x[i]
TypeError: 'range' object does not support item assignment
The text was updated successfully, but these errors were encountered: