OSError: Unable to open file (truncated file: eof = 1277952, sblock->base_addr = 0, stored_eof = 17225924)

0 votes

Hi Guys,

I am trying to load imagenet weights for my CNN model. But it gives me the below error.

MobileNet = MobileNet(weights = 'imagenet',  include_top = False, input_shape = (img_rows, img_cols, 3))
OSError: Unable to open file (truncated file: eof = 1277952, sblock->base_addr = 0, stored_eof = 17225924)

How can I solve this error?

May 18 in Machine Learning by akhtar
• 11,250 points
68 views

1 answer to this question.

0 votes

Hi@akhtar,

You may get this error if your model weights are corrupted. To avoid this error you can manually remove your downloaded weights from your keras folder. After that you can able to run your command. 

answered May 18 by MD
• 24,500 points

Related Questions In Machine Learning

0 votes
1 answer

Example to run KNN algorithm using python

Have a look at this one: from sklearn.datasets ...READ MORE

answered May 8, 2019 in Machine Learning by Harvy
351 views
0 votes
1 answer
+1 vote
2 answers

ValueError: Not enough values to unpack

Make the following changes in your script, ...READ MORE

answered Jun 24, 2019 in Machine Learning by Omkar
• 69,060 points
7,276 views
0 votes
1 answer
0 votes
1 answer

ImportError: `load_weights` requires h5py.

Hi@akhtar, You are trying to use pre-created weight of ...READ MORE

answered May 18 in Machine Learning by MD
• 24,500 points
47 views
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 6, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 963 views
0 votes
1 answer

not able to see all columns and rows of a pandas DataFrame?

Hi@akhtar, Your data set contains lots of rows ...READ MORE

answered Apr 8 in Machine Learning by MD
• 24,500 points
82 views
0 votes
1 answer

How to save machine learning model?

Hi@akhtar, To save your Machine Learning model, you ...READ MORE

answered Apr 13 in Machine Learning by MD
• 24,500 points
70 views