Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

eval.py Error #10

Open
sangheonEN opened this issue May 20, 2021 · 1 comment
Open

eval.py Error #10

sangheonEN opened this issue May 20, 2021 · 1 comment

Comments

@sangheonEN
Copy link

sangheonEN commented May 20, 2021

python eval.py 실행 시 오류가 발생합니다.

image

image

image

처음엔 a bytes-like object is required, not 'str' 오류가 발생해서

label 데이터를 byte형으로 받을려고 with tf.gfile.GFile(path, 'r') as fid: 에서 with tf.gfile.GFile(path, 'rb') as fid: 으로 변경해줬구요.
'r' -> 'rb'

하지만, 변경하니까 google.protobuf.message.DecodeError: Error parsing message 이 오류가 발생하네요.

image

해결 방안이 있을까요??

@jamesKoo
Copy link
Collaborator

첫번째 에러 캡처 이미지를 봤을때, label_map을 파싱하면서 에러가 발생한 것처럼 보이네요. label_map에서 괄호가 제대로 매칭되었는지, 오타가 없는지 확인해보세요.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants