bipedalBit
bipedalBit
`detecting02-trainer-2bnnd Succeeded 2018-03-23T12:41:10Z 0 Failed trainer count beyond the threshold: 0` What does this mean? Why don't the trainer restart itself?
I've try code like this: ~~~~{.python} def get_param_attr(local_lr, regularization): is_static = False if local_lr == 0.0: is_static = True return paddle.attr.ParamAttr(initializer=fluid.initializer.Xavier(), learning_rate=local_lr, l2_rate=regularization, is_static=is_static) conv = paddle.layer.img_conv( param_attr=get_param_attr(1, default_l2regularization), ......
修改[fuid图像分类例子](https://github.com/PaddlePaddle/models/tree/develop/fluid/image_classification)中的se_resnext.py,为所有可学习layer设置name。 在train.py执行`fluid.io.save_persistables(exe, model_path)`之前执行`print list(fluid.default_main_program().list_vars())`,发现各layer的name没有设置成功。 但是执行infer.py中`fluid.io.load_vars(exe, args.model_dir, predicate=fluid.io.is_persistable)`时,报错如下: Traceback (most recent call last): File "infer.py", line 75, in infer(args) File "infer.py", line 43, in infer fluid.io.load_vars(exe, args.model_dir, predicate=fluid.io.is_persistable) File "/usr/local/lib/python2.7/dist-packages/paddle/fluid/io.py", line...
[models/fluid/ocr_recognition](https://github.com/PaddlePaddle/models/blob/develop/fluid/ocr_recognition)例子中的模型训练脚本ctc_train.py,缺少文档中提及的几个命令行参数的接收与解析过程。  
```python def train(self): """模型训练""" # 创建模型 avg_cost, acc, prediction = self._build_model() # 初始化模型并为模型测试做准备 test_exe = fluid.Executor(fluid.CPUPlace()) test_exe.run(fluid.default_startup_program()) infer_program = fluid.default_main_program().clone(for_test=True) # 获取数据reader train_reader = self._train_reader() test_reader = self._test_reader() # 训练配置...
- 我在MacOS系统中用docker起了一个Ubuntu 16.04的容器 - 严格按说明安装了[mkldnn](https://github.com/intel/mkl-dnn) - `pip install paddlepaddle`安装了paddle 0.14.0 - 使用fluid搭建了一个3层fc的简单模型 - fluid.layers.fc的use_mkldnn参数置True - 使用fluid.ParallelExecutor运行模型训练程序 日志如下: ``` INFO: 07-13 05:43:43: model.py:107 * 139679863383808 Train: epoch 0, average cost: 3.017329,...
- PaddlePaddle版本:1.5 - CPU - 系统环境:Ubuntu1604 - Python版本号: 3.7 - 复现信息:把paddle官方的ERNIE模型cast成半精度的版本(加-fp16选项)然后保存inference_model - 问题描述: 虽然我也不知道哪里用到了lookup_table,请问lookup_table op目前不支持fp16吗?我把paddle官方的ERNIE模型存成半精度的inference_model时报了下面的错: ```op lookup_table does not have kernel for data_type[::paddle::platform::float16]...```
我能不能这么理解: - ERNIE学习词级别先验知识:就是说任意下游任务中,利用ERNIE的seg_label,输入自定义分词结果; - ERNIE学习实体先验知识:就是说用ERNIE跑多任务预训练时,包含一个通过序列标注任务实现的实体识别任务; - ERNIE学习实体关系先验知识:就是说用ERNIE跑多任务预训练时,包含一个通过单句分类任务实现的实体关系分类任务。
[bert-as-service](https://github.com/hanxiao/bert-as-service)是一个很方便的BERT句向量编码服务的封装。 我在尝试用ERNIE做相同的事时,发现目前paddle模型的图优化工具还没有覆盖NLP模型。 自测4个CPU的条件下,bert-as-service编码句子的速度是ERNIE的3倍左右,我猜这个差距是因为没有做图优化。
No matter in PC or PaddleCloud, when I change the CLASS_NUM for the SSD model other than 21(class num of VOC dataset) and use my own dataset, the training cannot...