PaddlePaddle / Paddle

PArallel Distributed Deep LEarning: Machine Learning Framework from Industrial Practice (『飞桨』核心框架,深度学习&机器学习高性能单机、分布式训练和跨平台部署)
http://www.paddlepaddle.org/
Apache License 2.0
22.09k stars 5.55k forks source link

Loading model fails for book/06.label_semantic_roles #1887

Closed sanjaymeena closed 7 years ago

sanjaymeena commented 7 years ago

Hello,

Issue : Can train model successfully using the provided train.py and the program saves the parameters.
I tried loading the saved parameters using :

from  paddle.v2.parameters import  Parameters 
f="params_pass_2.tar.gz"
parameters=Parameters.from_tar(f)

It fails with following error :
image

luotao1 commented 7 years ago

you can use following codes to load the saved parameters:

with gzip.open('params.tar.gz', 'r') as f:
    parameters = Parameters.from_tar(f)
sanjaymeena commented 7 years ago

Hi, I am training a Semantic role labeling model on 20k chinese sentences in CONLL2005 format.

docker image : paddlepaddle/paddle:0.10.0rc3 demo : book/06.label_semantic_roles

I am getting following error . Can you help me decipher what may be going wrong. I checked and data format is correct and works for small amount of data ~100 sentences.

image

gangliao commented 7 years ago

Hi, @sanjaymeena

Why not fetch book docker image directly ?https://github.com/PaddlePaddle/book/blob/develop/README.en.md

In this book image, 06.label_semantic_roles has already been verified.

sanjaymeena commented 7 years ago

I had tried following images few times before as well just now :

I get the same error no module named evaluator :( what is the solution for this?

image

gangliao commented 7 years ago

please fetch docker.paddlepaddle.org/book:0.10.0rc3, I update it now.

@sanjaymeena You can also run Jupter notebook, because our regression test only covers *.ipynb

sanjaymeena commented 7 years ago

okay. I will try the jupyter notebook as it is still giving me following error : image

sanjaymeena commented 7 years ago

@gangliao I can run the train.py with my data. Turns out problem was with some syntax in data. Thanks for updated book:0.10.0rc3.

sanjaymeena commented 7 years ago

Hi, I still got this error using : book:0.10.0rc3. This was after 26th pass. So probably means something wrong with framework??

image

wanghaoshuang commented 7 years ago

About float point exception: #3076