Open ghost opened 4 years ago
python3 create_enet_prototxt.py --source /ENet/dataset/train_fine_cityscapes.txt --mode train_encoder Traceback (most recent call last): File "create_enet_prototxt.py", line 284, in network, prev_layer = bottleneck(n, prev_layer, 1, 0, 64, 'downsampling') # stage, number_bottleneck, num_input, File "create_enet_prototxt.py", line 210, in bottleneck return n.to_proto(), last_layer File "/ENet/caffe-enet/python/caffe/net_spec.py", line 189, in to_proto top._to_proto(layers, names, autonames) File "/ENet/caffe-enet/python/caffe/net_spec.py", line 97, in _to_proto return self.fn._to_proto(layers, names, autonames) File "/ENet/caffe-enet/python/caffe/net_spec.py", line 156, in _to_proto _param_names[self.type_name] + '_param'), k, v) File "/ENet/caffe-enet/python/caffe/net_spec.py", line 79, in assign_proto setattr(proto, name, val) TypeError: 16.0 has type float, but expected one of: int, long
Refer to this, https://github.com/TimoSaemann/ENet/compare/master...crazygeek22:patch-1. This will resolve your error.
python3 create_enet_prototxt.py --source /ENet/dataset/train_fine_cityscapes.txt --mode train_encoder Traceback (most recent call last): File "create_enet_prototxt.py", line 284, in
network, prev_layer = bottleneck(n, prev_layer, 1, 0, 64, 'downsampling') # stage, number_bottleneck, num_input,
File "create_enet_prototxt.py", line 210, in bottleneck
return n.to_proto(), last_layer
File "/ENet/caffe-enet/python/caffe/net_spec.py", line 189, in to_proto
top._to_proto(layers, names, autonames)
File "/ENet/caffe-enet/python/caffe/net_spec.py", line 97, in _to_proto
return self.fn._to_proto(layers, names, autonames)
File "/ENet/caffe-enet/python/caffe/net_spec.py", line 156, in _to_proto
_param_names[self.type_name] + '_param'), k, v)
File "/ENet/caffe-enet/python/caffe/net_spec.py", line 79, in assign_proto
setattr(proto, name, val)
TypeError: 16.0 has type float, but expected one of: int, long