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

[extract_code] error in lmdb #46

Open
kimdn opened this issue Sep 2, 2020 · 1 comment
Open

[extract_code] error in lmdb #46

kimdn opened this issue Sep 2, 2020 · 1 comment

Comments

@kimdn
Copy link

kimdn commented Sep 2, 2020

I ran
python /people/kimd999/script/python/cryoEM/vq-vae-2-pytorch/train_vqvae.py /people/kimd999/MARScryo/dn/data/part/PDX_label_correct/exp_coexp/input --size 256

It seems to generate sample images and checkpoint files in checkpoint folder well.

However,
python /people/kimd999/script/python/cryoEM/vq-vae-2-pytorch/extract_code.py --size 256 --ckpt checkpoint/vqvae_560.pt --name small256 /people/kimd999/MARScryo/dn/data/part/PDX_label_correct/exp_coexp/input

resulted in
Traceback (most recent call last): File "/people/kimd999/script/python/cryoEM/vq-vae-2-pytorch/extract_code.py", line 66, in <module> env = lmdb.open(args.name, map_size=map_size) lmdb.Error: small256: Input/output error

In my same conda environment (conda activate pytorch), I already installed lmdb as
pip install lmdb

Can I have some guess/advice please?

Thank you

@rosinality
Copy link
Owner

Could you check free disk spaces? If it is enough then you can try to reduce map_size.

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