AutoSeries Challenge :: Feedback Phase Forum

Go back to competition Back to thread list Post in this thread

> save/load 是必须的嘛?

load函数报错了,但我没改过save 和 load,感觉不是我能解决的问题。。
Traceback (most recent call last):
File "/tmp/codalab/tmp4XMVSZ/run/ingestion_program/ingestion.py", line 305, in <module>
main()
File "/tmp/codalab/tmp4XMVSZ/run/ingestion_program/ingestion.py", line 289, in main
idx, next_step, is_end = _predict(umodel, args, idx, timer)
File "/tmp/codalab/tmp4XMVSZ/run/ingestion_program/ingestion.py", line 198, in _predict
umodel.load(args.temp_dir, timer.get_all_remain())
File "/tmp/codalab/tmp4XMVSZ/run/submission/model.py", line 166, in load
setattr(self, attr, pickle.load(open(os.path.join(model_dir, f'{attr}.pkl'), 'rb')))
EOFError: Ran out of input

Posted by: qijiaheng @ Dec. 10, 2019, 12:28 p.m.

Hi,
Yes, the save and load methods is required.
The traceback you provided shows that the error occurs in your model.py file, not caused by the competition programs directly.
It's likely an error when you call pickle.load, you could debug it locally with the starting kit, check the pkl file and try again.

Posted by: liushouxiang @ Dec. 11, 2019, 12:49 p.m.

本地从来没遇到过这个问题,今天也没再遇到这个问题,也不知道我只是怎么解决的,感觉是平台的问题。。

Posted by: qijiaheng @ Dec. 11, 2019, 1 p.m.

Thanks for your feedback, if the problem occurs again, please provide us with the submission ID, so we could locate the problem and try our best to fix it.

Posted by: liushouxiang @ Dec. 19, 2019, 7:22 a.m.
Post in this thread