aditya9211 / Blur-and-Clear-Classification

Classifying the Blur and Clear Images
119 stars 24 forks source link

Memory Error #9

Closed DecentMakeover closed 5 years ago

DecentMakeover commented 5 years ago

Hi thanks for sharing your work.

but i get this error when running train.py

Train Data Path Success .....
Train Label Path Success .....  
Test Data Path Success .....
Test Label Path Success .....

Saving the splitting results......

Traceback (most recent call last):
 File "train.py", line 564, in <module>
  main()
 File "train.py", line 532, in main
 train_images = np.insert(train_images, 0, 1, axis=1) 
 File "/home/jeniffer/.local/lib/python2.7/site-packages/numpy/lib/function_base.py", line 4431, in   insert
new = empty(newshape, arr.dtype, arrorder)
  MemoryError`

Any ideas?

aditya9211 commented 5 years ago

Maybe your data size may be too big to fit in the memory after adding bias term in the big input array. Or check the data type of _trainimages Maybe this can help you https://github.com/numpy/numpy/issues/9960

aditya9211 commented 5 years ago

Closing issue due to no further activity for a long time. In case it doesn't resolve, kindly state the error.