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

Unable to open file (truncated file: eof = 96, sblock->base_addr = 0, stored_eof = 2048) #49

Open
cc5592 opened this issue Jun 12, 2021 · 0 comments

Comments

@cc5592
Copy link

cc5592 commented Jun 12, 2021

i followed the operation in the README.md, but when i run the sis_datareader.py
i get the error. it seems the alexnet_image_features.hdf5 is corrupted.

the function is:

def get_image_features_hash(self, file_name):

    image_features_file = h5py.File(file_name, 'r')
    image_features_ids = image_features_file["image_ids"]
    image_embeddings = image_features_file["embeddings"]
    dictionary = {}

Unable to open file (truncated file: eof = 96, sblock->base_addr = 0, stored_eof = 2048)
File "/data/cbw/ai-visual-storytelling-seq2seq-master/data_reader/sis_datareader.py", line 281, in get_image_features_hash
image_features_file = h5py.File(file_name, 'r')
File "/data/cbw/ai-visual-storytelling-seq2seq-master/data_reader/sis_datareader.py", line 113, in sentences_to_index
img_hash = self.get_image_features_hash(image_embedding_file)
File "/data/cbw/ai-visual-storytelling-seq2seq-master/data_reader/sis_datareader.py", line 295, in
object.sentences_to_index()

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