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

PPBFaceEvaluator : ValueError: too many values to unpack #21

Closed
cyckop opened this issue Feb 25, 2019 · 1 comment
Closed

PPBFaceEvaluator : ValueError: too many values to unpack #21

cyckop opened this issue Feb 25, 2019 · 1 comment

Comments

@cyckop
Copy link

cyckop commented Feb 25, 2019

Hi,
in Lab2, in the beginning of part 2. When i called PPBFaceEvaluator. I got error like below

**---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
in ()
----> 1 ppb = util.PPBFaceEvaluator() #create dataset handler

~\Python\introtodeeplearning_labs\lab2\util.py in init(self, skip)
72 with open(ppb_anno) as f:
73 for line in f.read().split('\r'):
---> 74 ind, name, gender, numeric, skin, country = line.split(',')
75 self.anno_dict[name] = (gender.lower(),skin.lower())
76

ValueError: too many values to unpack (expected 6)**

I use Python 3.7 run on Jupyter Notebook
Thank you in advance

@cyckop
Copy link
Author

cyckop commented Feb 25, 2019

I used '\n' instead of '\r' in line 73 ( for line in f.read().split('\r') ) and now it's working

@cyckop cyckop closed this as completed Feb 26, 2019
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

1 participant