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

AttributeError: 'NoneType' object has no attribute 'decode' #17

Open
hkkevinhf opened this issue Jul 2, 2019 · 1 comment
Open

AttributeError: 'NoneType' object has no attribute 'decode' #17

hkkevinhf opened this issue Jul 2, 2019 · 1 comment

Comments

@hkkevinhf
Copy link

No description provided.

@JanySunny
Copy link

JanySunny commented Jul 12, 2019

Try to fix the src/dataset_lmdb_generator.py, delete the 'ascii' as follows:
with env.begin(write=True) as txn:
# txn.put(d.encode('ascii'), files_str_vec.encode())
txn.put(d.encode(), files_str_vec.encode())

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