name 'unicode' is not defined in object_detection/utils ... - GitHub
文章推薦指數: 80 %
pkulzc I ran the legacy/eval.py and the error shows up NameError: name 'unicode' is not defined in ... Skiptocontent {{message}} tensorflow / models Public Notifications Fork 46k Star 74.5k Code Issues 1.1k Pullrequests 176 Actions Projects 4 Wiki Security Insights More Code Issues Pullrequests Actions Projects Wiki Security Insights Newissue Haveaquestionaboutthisproject?SignupforafreeGitHubaccounttoopenanissueandcontactitsmaintainersandthecommunity. Pickausername EmailAddress Password SignupforGitHub Byclicking“SignupforGitHub”,youagreetoourtermsofserviceand privacystatement.We’lloccasionallysendyouaccountrelatedemails. AlreadyonGitHub? Signin toyouraccount Jumptobottom NameError:name'unicode'isnotdefinedinobject_detection/utils/object_detection_evaluation.py #5203 Closed schen119openedthisissue Aug29,2018 ·7comments Closed NameError:name'unicode'isnotdefinedinobject_detection/utils/object_detection_evaluation.py #5203 schen119openedthisissue Aug29,2018 ·7comments Comments Copylink schen119 commented Aug29,2018 @pkulzcIranthelegacy/eval.pyandtheerrorshowsupNameError:name'unicode'isnotdefinedinobject_detection/utils/object_detection_evaluation.py,line332 try: category_name=unicode(category_name,'utf-8') exceptTypeError: pass ThePython3doesn'thavethetypeunicodeanymoreandithasbeenrenamedtostr. Isthereanybetterwaytoavoidthiserror? MostpeopleworkinPython3,it'sgreattobecompatiblewithpython3. Thetextwasupdatedsuccessfully,buttheseerrorswereencountered: Allreactions Copylink Collaborator pkulzc commented Aug29,2018 #4982(comment) 👍 7 schen119,Manish-rai21bit,cemicel,akablacksun,manolomirandac,nrjkhtr1,andsamuellohkreactedwiththumbsupemoji Allreactions 👍 7reactions Sorry,somethingwentwrong. Copylink Collaborator pkulzc commented Aug29,2018 @jillelajittaIt'sbettertoaskthisquestiononStackOverflow.Addingmoreclassincreasetheconvnodesindetectionhead,soitshouldbeslower. Allreactions Sorry,somethingwentwrong. pkulzc closedthisascompleted Aug29,2018 Copylink kunerer commented Nov9,2018 anyonesolutetheproblem?iamnot Allreactions Sorry,somethingwentwrong. Copylink Manish-rai21bit commented Jan2,2019 @kunererAsmentionedbypkulzc,Youneedtoreplacetheunicodebystringintheparticularlineofcodementionedintheerror. Allreactions Sorry,somethingwentwrong. Copylink omkarvijay5 commented Feb6,2019 Python3renamedtheunicodetypetostr,theoldstrtypehasbeenreplacedbybytes renamingunicodeoccurrencestostrworkedforme Allreactions Sorry,somethingwentwrong. Copylink rhimanshu909 commented Apr30,2019 WriteforPython3 item=str(item.encode('utf-8')) 👍 1 godfather-ranareactedwiththumbsupemoji Allreactions 👍 1reaction Sorry,somethingwentwrong. Copylink Subodhrai898 commented Jun4,2019 justreplaceunicode(category_name,'utf-8')tostr(category_name.encode('utf-8'))everywhereinthedocument. 👍 3 tohow06,schen119,andarminf82reactedwiththumbsupemoji ❤️ 2 waqaskayaniandtesterOMGreactedwithheartemoji Allreactions 👍 3reactions ❤️ 2reactions Sorry,somethingwentwrong. Signupforfree tojointhisconversationonGitHub. Alreadyhaveanaccount? Signintocomment Assignees Nooneassigned Labels Noneyet Projects Noneyet Milestone Nomilestone Development Nobranchesorpullrequests 7participants Youcan’tperformthatactionatthistime. Yousignedinwithanothertaborwindow.Reloadtorefreshyoursession. Yousignedoutinanothertaborwindow.Reloadtorefreshyoursession.
延伸文章資訊
- 1NameError: name 'unicode' is not defined in Python | bobbyhadz
The Python "NameError name 'unicode' is not defined" occurs when using the unicode object in Pyth...
- 2name 'unicode' is not defined in object_detection/utils ... - GitHub
pkulzc I ran the legacy/eval.py and the error shows up NameError: name 'unicode' is not defined i...
- 3Solve the NameError: Global Name 'unicode' Is Not Defined in ...
Solve the 'NameError: Global Name 'Unicode' Is Not Defined' in Python · In Python 3.x, the unicod...
- 4Error NameError: name 'unicode' is not defined in Python
I get an exception throw NameError: name 'unicode' is not defined in Python 3.8.2 when I trying t...
- 5nameerror: name 'unicode' is not defined [duplicate] - splunktool
The Python "NameError name 'unicode' is not defined" occurs when using the unicode object in Pyth...