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
I trained an LSTM network without any problems. However if I load the network in Python 3.5.2 the following error occures:
Traceback (most recent call last):
File "../../evaluate.py", line 78, in
print(net.params['conv1'])
File "/caffe/python/caffe/pycaffe.py", line 67, in _Net_params
self._layer_names, self.layers)
File "/caffe/python/caffe/pycaffe.py", line 68, in
if len(lr.blobs) > 0])
OverflowError: cannot fit 'int' into an index-sized integer
Steps to reproduce
I trained several networks. Only the two networks using LSTM crash when accessing the data. I might provide the network and model if requested.
Tried solutions
Apparently the number returned from len is too big. Therefore I tried commenting if len(lr.blobs) > 0 but then a SegmentationFault occured.
I also tried this: net = caffe.Net(args.model, args.weights, caffe.TEST) for name, lr in zip(net._layer_names, net.layers): print(name) try: print(' ',len(lr.blobs)) except: print(' ?')
which showed that the numbers for all my layers are in fact large and random. If I execute it multiple times the numbers varry.
System configuration
Operating system: Ubuntu 16.04
Compiler: GCC 5.4.0
CUDA version (if applicable): 9.0
CUDNN version (if applicable): v7.1
Python version (if using pycaffe): 3.5.2
Cheers,
Thomy800
The text was updated successfully, but these errors were encountered:
In the meantime I figured out it does not relate to LSTM. The same script and model works on a different machine. Apparently it's connected with the caffe installation itself...
Hi
Issue summary
I trained an LSTM network without any problems. However if I load the network in Python 3.5.2 the following error occures:
Steps to reproduce
I trained several networks. Only the two networks using LSTM crash when accessing the data. I might provide the network and model if requested.
Tried solutions
Apparently the number returned from len is too big. Therefore I tried commenting
if len(lr.blobs) > 0
but then a SegmentationFault occured.I also tried this:
net = caffe.Net(args.model, args.weights, caffe.TEST) for name, lr in zip(net._layer_names, net.layers): print(name) try: print(' ',len(lr.blobs)) except: print(' ?')
which showed that the numbers for all my layers are in fact large and random. If I execute it multiple times the numbers varry.
System configuration
Cheers,
Thomy800
The text was updated successfully, but these errors were encountered: