Update detect.py
Update detect.py

This generator causes an error in detect_windows because it is run twice there.
Better store it as a data structure instead.

CZCV/s-dilation-caffe,CZCV/s-dilation-caffe,wangg12/caffe,gnina/gnina,wangg12/caffe,gogartom/caffe-textmaps,gogartom/caffe-textmaps,tackgeun/caffe,gogartom/caffe-textmaps,longjon/caffe,CZCV/s-dilation-caffe,gogartom/caffe-textmaps,tackgeun/caffe,longjon/caffe,longjon/caffe,gnina/gnina,CZCV/s-dilation-caffe,longjon/caffe,wangg12/caffe,tackgeun/caffe,tackgeun/caffe,wangg12/caffe,gnina/gnina,gnina/gnina,gnina/gnina,gnina/gnina