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

The protocol error while running the build the build_lmdb_dataset.py #361

Open
darkprices opened this issue Oct 8, 2024 · 0 comments
Open

Comments

@darkprices
Copy link

I create a custom dataset which contains about 1 million images and their cooresponding text title, when I translate them to the version of lmdb, the error is as below:

Traceback (most recent call last):
File "/code/hexufeng01/Chinese-CLIP/cn_clip/preprocess/build_lmdb_dataset.py", line 50, in
env_img = lmdb.open(lmdb_img,map_size=1024**4)
lmdb.Error: /code/hexufeng01/Chinese-CLIP/datasets/singleZF/lmdb/test/imgs: Protocol error.

NAME="Ubuntu"
VERSION="20.04.5 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.5 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal

Python version:3.9.7
lmbd version:1.4.1

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