Open chr10003566 opened 5 years ago
hi, You can modify some codes in m2det.py to solve this problem. From: self.leach = nn.ModuleList([BasicConv( deep_out+shallow_out, self.planes//2, kernel_size=(1, 1), stride=(1, 1))]*self.num_levels) To: self.leach = nn.ModuleList([BasicConv( deep_out+shallow_out, self.planes//2, kernelsize=(1, 1), stride=(1, 1)) for in range(self.num_levels)])
I want to visualize the M2Det network, using the following code.
It would raise the error
TypeError: conv2d(): argument 'input' (position 1) must be Tensor, not tuple
but when I change the last line to
w.add_graph(net, dummy_input)
it would raise
ValueError: Auto nesting doesn't know how to process an input object of type str. Accepted types: Tensors, or lists/tuples of them
Anyone have the experience to visualize the network structure? Please help me , Thx