imatge-upc / detection-2016-nipsws

Hierarchical Object Detection with Deep Reinforcement Learning
http://imatge-upc.github.io/detection-2016-nipsws/
MIT License
423 stars 129 forks source link

OSError: [Errno 24] Too many open files: './VOC2012//JPEGImages/2008_008190.jpg' #24

Open priyashkla opened 6 years ago

priyashkla commented 6 years ago

this error i m getting in def get_all_images(image_names, path_voc):

Bingoyww commented 5 years ago

I have the same problem. And I have solved it. Just let it close. For example,
from PIL import Image img=Image.open(...); keep=img.copy(); images.append(keep); img.close();