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

unhashable type: 'slice' #4

Open
furukawayuan-Yao opened this issue Jan 6, 2022 · 2 comments
Open

unhashable type: 'slice' #4

furukawayuan-Yao opened this issue Jan 6, 2022 · 2 comments

Comments

@furukawayuan-Yao
Copy link

furukawayuan-Yao commented Jan 6, 2022

Thank you very much for your open source code.
According to the prompt on the homepage, the flickr30K feature used is in mdb format, and msgpack is used to read it~

When using the flickr30K image feature file you provided, this error occurred when reading feats and boxes_feats:
unhashable type: 'slice'

This error occurred in this paragraph:
dump = self.txn.get(img_id.encode("utf-8"))\ nbb = self.name2nbb[img_id]\ img_dump = msgpack.loads(dump, raw=False)\ feats = img_dump["features"][:nbb, :]\ img_bb = img_dump["norm_bb"][:nbb, :]\
feats = img_dump["features"][:nbb, :]
img_bb = img_dump["norm_bb"][:nbb, :]
The two lines in bold appear where this bug appears. What is the reason for this?

@maximek3
Copy link
Owner

maximek3 commented Jan 8, 2022

Hey, are using the environment file eUG.yml that I provided? Especially all the packages related to reading the .mdb data

@furukawayuan-Yao
Copy link
Author

Hey, are using the environment file eUG.yml that I provided? Especially all the packages related to reading the .mdb data

Thanks for your reply~
Today I changed the version of lmdb, msgpack and msgpack_numpy to match eUG.yml However, the same bug occured. I think it might be better to provide the screeshot of those features as below:
image

Is there anything different here from your experiment?
Thanks a lot~

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