seung-lab / znn-release

Multi-core CPU implementation of deep learning for 2D and 3D sliding window convolutional networks (ConvNets).
GNU General Public License v3.0
94 stars 33 forks source link

AttributeError: CLearnCurve instance has no attribute 'tn_mc' #35

Closed petteriTeikari closed 8 years ago

petteriTeikari commented 8 years ago

I get the following error with train.py when saving the network:


save as  ../../../znnData/experiments/VD2D3D_tanh_even/net_187451.h5
Traceback (most recent call last):
  File "train.py", line 191, in <module>
    main( sys.argv[1] )
  File "train.py", line 179, in main
    lc.save( pars, elapsed )
  File "./znn-release/python/zstatistics.py", line 234, in save
    f.create_dataset('/train/mc',  data=self.tn_mc )
AttributeError: CLearnCurve instance has no attribute 'tn_mc'
xiuliren commented 8 years ago

Just pushed a fix. I'll move my experimental code to malis branch and keep the master clean.

petteriTeikari commented 8 years ago

I pulled again, and now it was with this error:

defining initial dict
performing consolidation
Traceback (most recent call last):
  File "train.py", line 191, in <module>
    main( sys.argv[1] )
  File "train.py", line 31, in main
    lc = zstatistics.CLearnCurve( pars['train_load_net'] )
  File "/home/petteri/Dropbox/znn-release/python/zstatistics.py", line 26, in __init__
    self._read_curve( fname )
  File "/home/petteri/Dropbox/znn-release/python/zstatistics.py", line 65, in _read_curve
    self.tn_mc = lis()
NameError: global name 'lis' is not defined

And when running the train.py with the default config.cfg I get:

construct the network class using the edges and nodes...
if unseccessful, please check the network config file (networks/XXX.znn).
Segmentation fault (core dumped)
xiuliren commented 8 years ago

Sorry for the problems. I tested this fix. Please pull and try again. The segmentation fault may due to the missing file of N4.znn, which was added now.

Hopefully, after fixing these issues, I'll move to malis branch keep the master stable.