Traceback (most recent call last):


 "train.py", line 2, in <module>

main(mode=1)


 "/home/mw/Desktop/codes/edge-connect-RNB+L/main.py", line 48, in main

model = EdgeConnect(config)


 "/home/mw/Desktop/codes/edge-connect-RNB+L/src/edge_connect.py", line 29, in __init__

self.inpaint_model = InpaintingModel(config).to(config.DEVICE)


 "/home/mw/Desktop/codes/edge-connect-RNB+L/src/models.py", line 159, in __init__

generator = InpaintGenerator()


 "/home/mw/Desktop/codes/edge-connect-RNB+L/src/networks.py", line 110, in __init__

self.init_weights()


 "/home/mw/Desktop/codes/edge-connect-RNB+L/src/networks.py", line 36, in init_weights

self.apply(init_func)


 "/home/mw/anaconda3/lib/python3.7/site-packages/torch/nn/modules/module.py", line 287, in apply

module.apply(fn)


 "/home/mw/anaconda3/lib/python3.7/site-packages/torch/nn/modules/module.py", line 287, in apply

module.apply(fn)


 "/home/mw/anaconda3/lib/python3.7/site-packages/torch/nn/modules/module.py", line 287, in apply

module.apply(fn)


 "/home/mw/anaconda3/lib/python3.7/site-packages/torch/nn/modules/module.py", line 288, in apply

fn(self)


 "/home/mw/Desktop/codes/edge-connect-RNB+L/src/networks.py", line 33, in init_func

nn.init.normal_(m.weight.data, 1.0, gain)
AttributeError: 'NoneType' object has no attribute 'data'

Traceback (most recent call last):


 "/home/prototype/Downloads/tvm/python/tvm/relay/backend/compile_engine.py", line 92, in lower

return _backend._CompileEngineLower(self, key)


 "/home/prototype/Downloads/tvm/python/tvm/_ffi/_ctypes/function.py", line 206, in __call__

raise get_last_ffi_error()


 "/home/prototype/Downloads/tvm/python/tvm/_ffi/base.py", line 297, in get_last_ffi_error

if err_type.startswith("tvm.error."):
AttributeError: 'NoneType' object has no attribute 'startswith'
