liuzhuang13 / DenseNet

Densely Connected Convolutional Networks, In CVPR 2017 (Best Paper Award).
BSD 3-Clause "New" or "Revised" License
4.71k stars 1.07k forks source link

./checkpoints.lua:52: attempt to call method 'clearState' (a nil value) #2

Closed pannous closed 8 years ago

pannous commented 8 years ago

1) Great work, a milestone! Never seen top5 go down so seamlessly.

2) little bug:

th main.lua -netType densenet -depth 40 -dataset cifar10 -batchSize 64 -nEpochs 300 -optnet true
...
 | Test: [1][157/157]    Time 0.021  Data 0.000  top1  87.500 ( 83.420)  top5  50.000 ( 55.870) 
 * Finished epoch # 1     top1:  83.420  top5:  55.870
 * Best model   83.42   55.87   

./checkpoints.lua:52: attempt to call method 'clearState' (a nil value)
pannous commented 8 years ago

seems to be caused by -optnet true

liuzhuang13 commented 8 years ago

Yeah we recommend to install optnet first.

We haven't see bugs about the method 'clearState', this part was written by fb.resnet.torch. Check if you can train resnet using fb.resnet.torch.

In our experiment with DenseNet (L=40, k=12), the top 1 error rate on CIFAR-10+ after one epoch is typically ~50%, so there might be some other bugs.

Thanks

liuzhuang13 commented 8 years ago

Maybe try updating/reinstalling fb.resnet.torch? There have been changes recently:)