[ 
https://issues.apache.org/jira/browse/SINGA-369?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16476960#comment-16476960
 ] 

SHEYUJIAN edited comment on SINGA-369 at 5/18/18 7:06 AM:
----------------------------------------------------------

*3.char-rnn*

use python train.py linux_input.txt to run and get an error:

Traceback (most recent call last):
  File "train.py", line 230, in <module>
    data = Data(args.data, batch_size=args.b, seq_length=args.l)
  File "train.py", line 51, in __init__
    self.raw_data = open(fpath, 'r').read()  # read text file
  File "/root/miniconda3/lib/python3.6/encodings/ascii.py", line 26, in decode
    return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 2588282: 
ordinal not in range(128)

After revising, it can run.


was (Author: sheyujian):
*3.char-rnn*

use python train.py linux_input.txt to run and get an error:

Traceback (most recent call last):
  File "train.py", line 230, in <module>
    data = Data(args.data, batch_size=args.b, seq_length=args.l)
  File "train.py", line 51, in __init__
    self.raw_data = open(fpath, 'r').read()  # read text file
  File "/root/miniconda3/lib/python3.6/encodings/ascii.py", line 26, in decode
    return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 2588282: 
ordinal not in range(128)



> 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
> SINGA Version: singa-1.1.1_gpu
> OS: Ubuntu 16.04.4 LTS
>            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 errors:
> 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)

Reply via email to