AI-GrandChallenge / round-1

14 stars 11 forks source link

[Track-3] root_path가 없다고 나오는 에러 문의드립니다. #56

Open KOR-PAIR opened 4 years ago

KOR-PAIR commented 4 years ago

[root@localhost iitp_trash]# nsml submit t0023/tr-3/87 checkpoint ...Warning: Your session has a total size of over 10 MB You may want to add unnecessary files and directories to the ignore list (e.g. the .git directory) .... Building docker image. It may take a while .........load nsml model takes 0.7184584140777588 seconds .Infer test set. The inference should be completed within 3600 seconds. .Error occurred while inference. You can check error 'nsml submit --test' TypeError: infer() missing 1 required positional argument: 'root_path'

Infer test set takes 0.1839311122894287 seconds ..Error: Fail to get prediction result: t0023/tr-3/87/checkpoint FATA[2020/07/28 15:08:09.485] Internal server error

nsml-admin commented 4 years ago

https://github.com/AI-GrandChallenge/round-1/blob/master/iitp_trash/main.py#L104 처럼 nsml.bind(infer=infer) 에 바인드된 infer함수가 첫번째 인자로 root_path라는 argument를 받을수있어야 합니다.

해당 path에서 테스트데이터를 읽고 prediction값을 도출해내는 방식입니다.