It seems that the parameter enabling CPU inference is not correctly passed to the function get_infer_dataset. Actually, the function get_eval_dataset has the same issue.

Those who have this problem can edit the code in /bin/translator.py and append the parameter cpu=args.cpu
data.MTPipeline.get_infer_dataset(args.input[0], params, cpu=args.cpu)
It seems that the parameter enabling CPU inference is not correctly passed to the function
get_infer_dataset. Actually, the functionget_eval_datasethas the same issue.Those who have this problem can edit the code in
/bin/translator.pyand append the parametercpu=args.cpu