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
It seems that the parameter enabling CPU inference is not correctly passed to the function
get_infer_dataset
. Actually, the functionget_eval_dataset
has the same issue.Those who have this problem can edit the code in
/bin/translator.py
and append the parametercpu=args.cpu