Alex

Results 14 comments of Alex

> 你有指定保存的目录吗,你可以打个断点调试下, 保存模型的代码在 codem/utils/models.py torch.save(self.model.state_dict(), self.save_path + '/pytorch_model.bin') > > > 运行run.sh,训练过程没问题,到test.py时,报错: FileNotFoundError: [Errno 2] No such file or directory: 'user_data/model_param/saved_model/nezha_base/0/pytorch_model.bin' 貌似没有保存模型……请问是什么原因啊 run.sh 中指定了保存的目录,train.py 中main函数里save_path是否有误呀? ![image](https://user-images.githubusercontent.com/84332561/190392983-888acbde-c5ce-4a60-84af-bab88656d363.png)

python == 3.7 pytorch == 1.6 files2rouge == 2.1.0 jieba == 0.42.1 numpy == 1.19.1 tensorboard == 2.3.0 tensorboardx == 2.1 cytoolz == 0.11.0 每一项都核对了,全部一致的~ 下面是报错的全貌: ![CSDS00](https://user-images.githubusercontent.com/84332561/141684789-0ffd190c-1fd5-4232-b84d-e8cee78927a4.png) ![CSDS01](https://user-images.githubusercontent.com/84332561/141684792-85c9af70-07b1-4a53-8e9c-a574ff904e57.png)

过程中又出现以下报错: ![CSDS02](https://user-images.githubusercontent.com/84332561/141729424-6468a31e-ad0f-451e-8dad-458e4687423a.png)

使用:wget https://github.com/xiaolinAndy/CSDS/blob/main/models/BERT/models/predictor.py下载新文件后,运行时出现如下报错: ![CSDS03](https://user-images.githubusercontent.com/84332561/141763408-33723ff6-4da2-487f-af31-4b544eca03b7.png) 打开新文件发现下载的是类似Java的代码~

请问这个结果的意义是什么呀,为什么重复出现呢 ![CSDS04](https://user-images.githubusercontent.com/84332561/141785792-f2e6be61-5cb2-40ad-b5bb-de732b4423de.png) ~(预想的结果是:一段对话的摘要)

今天运行仍然是如下结果: ![CSDS04](https://user-images.githubusercontent.com/84332561/141891886-9f63578f-b5e2-4af8-ae9c-ac1da8c10c4b.png)

你好作者~preprocess.py以及prepro/data_builder中处理数据的代码基本没有注释,难以着手将自己数据变成模型所需的数据格式。非常希望您能出个tutorial指导大家更方便地学习。