Closed xerebz closed 6 years ago
Hi! Cannot reproduce, works for me. Can you please give more details about your system and try to find the exact point where it breaks?
New install -> Cuda 9.0 -> CUDNN 7.0.5 -> Miniconda3 -> Pytorch 0.3.0
RuntimeError Traceback (most recent call last)
Unfortunately, I have no idea how to solve unknown errors...
When running the code on my machine another error is provided for the same piece of code, which might help you to track down the source of the error.
TypeError Traceback (most recent call last)
<ipython-input-4-86a46ec7bdd9> in <module>()
20 num_channels_skip = [0, 0, 0, 4, 4],
21 upsample_mode='bilinear',
---> 22 need_sigmoid=True, need_bias=True, pad=pad, act_fun='LeakyReLU')
23
24 net = net.type(dtype)
/mnt/3E6227E362279F21/scriptie/deep-image-prior/models/skip.py in skip(num_input_channels, num_output_channels, num_channels_down, num_channels_up, num_channels_skip, filter_size_down, filter_size_up, filter_skip_size, need_sigmoid, need_bias, pad, upsample_mode, downsample_mode, act_fun, need1x1_up)
51 model_tmp.add(Concat(1, skip, deeper))
52 else:
---> 53 model_tmp.add(deeper)
54
55 model_tmp.add(bn(num_channels_skip[i] + (num_channels_up[i + 1] if i < last_scale else num_channels_down[i])))
/mnt/3E6227E362279F21/scriptie/deep-image-prior/models/common.py in add_module(self, module)
4
5 def add_module(self, module):
----> 6 self.add_module(str(len(self) + 1), module)
7
8 torch.nn.Module.add = add_module
TypeError: object of type 'Sequential' has no len()
Problem was solved by changing the kernel of the jupyter notebook to python 3...
Just the same problem as "TypeError: object of type 'Sequential' has no len()". Why is it useless for me when I change the kernel of jupyter to python3
Denoising demo just hangs on Setup step