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

NameError: name 'unicode' is not defined on object_detection_evaluation.py #5369

Closed
rootkitchao opened this issue Sep 24, 2018 · 6 comments
Closed
Assignees
Labels
stat:awaiting model gardener Waiting on input from TensorFlow model gardener

Comments

@rootkitchao
Copy link

rootkitchao commented Sep 24, 2018

System information

  • What is the top-level directory of the model you are using:tensorflow/models/
  • Have I written custom code (as opposed to using a stock example script provided in TensorFlow):yes
  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04):MS Windows 10 Pro 64bit Build 17134
  • TensorFlow installed from (source or binary):binary(tensorflow-gpu)
  • TensorFlow version (use command below):v1.10.0-rc1-19-g656e7a2b34' 1.10.0
  • Bazel version (if compiling from source):N/A
  • CUDA/cuDNN version:9.0/7.1
  • GPU model and memory:NVIDIA Geforce GTX1080TI 11GB
  • Exact command to reproduce:

Hello I have found a bug when I was trying to evaluate a model I trained myself.When i use the command python legacy/eval.py --logtostderr --checkpoint_dir= --pipeline_config_path= --eval_dir=.An error has occurred:File "\tensorflow-models\research\object_detection\utils\object_detection_evaluation.py", line 307, in evaluate
category_name = unicode(category_name, 'utf-8')
NameError: name 'unicode' is not defined

unicode() is note work on python 3.6,it should be str().I hope some people can fix this.
thanks.

@tensorflowbutler tensorflowbutler added the stat:awaiting response Waiting on input from the contributor label Sep 24, 2018
@tensorflowbutler
Copy link
Member

Thank you for your post. We noticed you have not filled out the following field in the issue template. Could you update them if they are relevant in your case, or leave them as N/A? Thanks.
What is the top-level directory of the model you are using

@rootkitchao
Copy link
Author

      Thank you for your post. We noticed you have not filled out the following field in the issue template. Could you update them if they are relevant in your case, or leave them as N/A? Thanks.

What is the top-level directory of the model you are using

I have fill it out.

@tensorflowbutler tensorflowbutler removed the stat:awaiting response Waiting on input from the contributor label Sep 27, 2018
@yhliang2018 yhliang2018 assigned pkulzc and unassigned yhliang2018 Sep 28, 2018
@yhliang2018 yhliang2018 added the stat:awaiting model gardener Waiting on input from TensorFlow model gardener label Sep 28, 2018
@gulingfengze
Copy link

@D-K-E
Copy link

D-K-E commented Feb 1, 2019

I also have the same problem and I am running on Ubuntu.

@Paulik8
Copy link

Paulik8 commented Feb 5, 2019

#4982 comment and you need to do the same with 351 line. It works for me!

@tensorflowbutler
Copy link
Member

Hi There,
We are checking to see if you still need help on this, as this seems to be considerably old issue. Please update this issue with the latest information, code snippet to reproduce your issue and error you are seeing.
If we don't hear from you in the next 7 days, this issue will be closed automatically. If you don't need help on this issue any more, please consider closing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stat:awaiting model gardener Waiting on input from TensorFlow model gardener
Projects
None yet
Development

No branches or pull requests

7 participants