aimbrain / vqa-project

Code for our paper: Learning Conditioned Graph Structures for Interpretable Visual Question Answering
Apache License 2.0
148 stars 35 forks source link

python preprocess_image.py --data trainval #7

Closed AIstudentSH closed 5 years ago

AIstudentSH commented 5 years ago

Traceback (most recent call last): File "preprocess_image.py", line 138, in features_to_zarr(phase) File "preprocess_image.py", line 100, in features_to_zarr dest.close() File "/usr/lib/python2.7/site-packages/zarr/hierarchy.py", line 355, in getattr raise AttributeError AttributeError

amritasaha1812 commented 5 years ago

I am also getting the same error .. i am using zarr 2.2.0rc3

Writing zarr file... Traceback (most recent call last): File "/dccstor/cssblr/amrita/miniconda3/lib/python3.6/site-packages/zarr-2.2.0rc3-py3.6.egg/zarr/hierarchy.py", line 353, in getattr File "/dccstor/cssblr/amrita/miniconda3/lib/python3.6/site-packages/zarr-2.2.0rc3-py3.6.egg/zarr/hierarchy.py", line 334, in getitem KeyError: 'close'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "preprocess_image.py", line 138, in features_to_zarr(phase) File "preprocess_image.py", line 100, in features_to_zarr dest.close() File "/dccstor/cssblr/amrita/miniconda3/lib/python3.6/site-packages/zarr-2.2.0rc3-py3.6.egg/zarr/hierarchy.py", line 355, in getattr AttributeError

TheShadow29 commented 5 years ago

In case anyone else is facing this issue, simply comment out dest.close() at two places in the file. This is because zarr no longer requires the object to be closed. https://zarr.readthedocs.io/en/stable/tutorial.html?highlight=close#persistent-arrays

wnorcbrown commented 5 years ago

hi, i've fixed this is the latest update @AIstudentSH @amritasaha1812