You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@singa.apache.org by "SHEYUJIAN (JIRA)" <ji...@apache.org> on 2018/05/16 07:06:00 UTC

[jira] [Updated] (SINGA-369) the errors of examples in testing

     [ https://issues.apache.org/jira/browse/SINGA-369?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

SHEYUJIAN updated SINGA-369:
----------------------------
    Description: 
1.Cifar10
After getting data from Cifar-10 dataset 
I use python train.py vgg cifar-10-batches-py  --use_cpu to train in cpu
and get an error:

Traceback (most recent call last):
  File "train.py", line 42, in <module>
    import alexnet
ImportError: No module named alexnet

Here I comment the line: #import alexnet
and then have a new error:

Traceback (most recent call last):
  File "train.py", line 212, in <module>
    use_cpu=args.use_cpu)
  File "train.py", line 156, in train
    grads, (l, a) = net.train(tx, ty)
  File "/Users/sheyujian/anaconda3/envs/a/lib/python2.7/site-packages/singa/net.py", line 185, in train
    return backprob(x, y)
NameError: global name 'backprob' is not defined

After revising according to SINGA-368, we can solve the probelm, but it has another error:

Start intialization............
Using CPU
Epoch 0
-->conv1_1_1: 0.252035
WARNING: Logging before InitGoogleLogging() is written to STDERR
F0516 13:19:27.929081 2490057600 batchnorm.cc:100] Trainning SpatialBatchNormalization has not been implemented yet...
*** Check failure stack trace: ***
Abort trap: 6




  was:
1.Cifar10
After getting data from Cifar-10 dataset 
I use python train.py vgg cifar-10-batches-py  --use_cpu to train in cpu
and get an error:

Traceback (most recent call last):
  File "train.py", line 42, in <module>
    import alexnet
ImportError: No module named alexnet

Here I comment the line: #import alexnet
and then have a new error:

Traceback (most recent call last):
  File "train.py", line 212, in <module>
    use_cpu=args.use_cpu)
  File "train.py", line 156, in train
    grads, (l, a) = net.train(tx, ty)
  File "/Users/sheyujian/anaconda3/envs/a/lib/python2.7/site-packages/singa/net.py", line 185, in train
    return backprob(x, y)
NameError: global name 'backprob' is not defined

After revising the return backprob(x,y) in line 185 to return self.backprob(x, y), get:

Start intialization............
Using CPU
Epoch 0
-->conv1_1_1: 0.252035
WARNING: Logging before InitGoogleLogging() is written to STDERR
F0516 13:19:27.929081 2490057600 batchnorm.cc:100] Trainning SpatialBatchNormalization has not been implemented yet...
*** Check failure stack trace: ***
Abort trap: 6





> the errors of examples in testing
> ---------------------------------
>
>                 Key: SINGA-369
>                 URL: https://issues.apache.org/jira/browse/SINGA-369
>             Project: Singa
>          Issue Type: Bug
>         Environment: SINGA Version:  osx-64/singa-1.1.1-py27_cpu
> OS: Mac OS 10.13.4
>            Reporter: SHEYUJIAN
>            Priority: Major
>
> 1.Cifar10
> After getting data from Cifar-10 dataset 
> I use python train.py vgg cifar-10-batches-py  --use_cpu to train in cpu
> and get an error:
> Traceback (most recent call last):
>   File "train.py", line 42, in <module>
>     import alexnet
> ImportError: No module named alexnet
> Here I comment the line: #import alexnet
> and then have a new error:
> Traceback (most recent call last):
>   File "train.py", line 212, in <module>
>     use_cpu=args.use_cpu)
>   File "train.py", line 156, in train
>     grads, (l, a) = net.train(tx, ty)
>   File "/Users/sheyujian/anaconda3/envs/a/lib/python2.7/site-packages/singa/net.py", line 185, in train
>     return backprob(x, y)
> NameError: global name 'backprob' is not defined
> After revising according to SINGA-368, we can solve the probelm, but it has another error:
> Start intialization............
> Using CPU
> Epoch 0
> -->conv1_1_1: 0.252035
> WARNING: Logging before InitGoogleLogging() is written to STDERR
> F0516 13:19:27.929081 2490057600 batchnorm.cc:100] Trainning SpatialBatchNormalization has not been implemented yet...
> *** Check failure stack trace: ***
> Abort trap: 6



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)