vq-vae-2-pytorch icon indicating copy to clipboard operation
vq-vae-2-pytorch copied to clipboard

[extract_code] error in lmdb

Open kimdn opened this issue 5 years ago • 1 comments
trafficstars

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

kimdn avatar Sep 02 '20 20:09 kimdn

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

rosinality avatar Sep 03 '20 00:09 rosinality