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

loading attributes file #13

Open
koszilard opened this issue Jul 16, 2018 · 0 comments
Open

loading attributes file #13

koszilard opened this issue Jul 16, 2018 · 0 comments

Comments

@koszilard
Copy link

koszilard commented Jul 16, 2018

Hi,
I'm trying to get the project to run, but did not succeed:
symptoms:
sha1 sum for list_attr_celeba.txt did not match the one specified in deeppy source. I got over this issue by skipping this check for all other files it was correct.
Then, dataset.attributes.astype(dp.float_) fails in ./dataset/celeba.py with error:
attributes = dataset.attributes.astype(dp.float_) Traceback (most recent call last): File "/usr/lib/python3.5/code.py", line 91, in runcode exec(code, self.locals) File "<input>", line 1, in <module> TypeError: float() argument must be a string or a number, not 'map'
I suspect this originates from yet again deeppy, at deeppy/dataset/celeba.py
def _load(self): with open(self._npz_path, 'rb') as f: dic = np.load(f) return (dic['train_idxs'], dic['val_idxs'], dic['test_idxs'], dic['attribute_names'][()], dic['attributes'])
from which dict['attributes'] looks like this:
dic['attributes'] array([array(<map object at 0x7f03b4941da0>, dtype=object), array(<map object at 0x7f03b4953668>, dtype=object), array(<map object at 0x7f03b4958908>, dtype=object), ..., array(<map object at 0x7f0368bba748>, dtype=object), array(<map object at 0x7f0368bbada0>, dtype=object), array(<map object at 0x7f0368bbc588>, dtype=object)], dtype=object)

It might as well be some version incompatibility. Could you please specify the module versions of a running configuration (Python version, numpy, ...) or provide a solution for my problem?
thanks!

@koszilard koszilard changed the title module versions loading attributes file Jul 16, 2018
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