<s> """<STR_LIT>""" <EOL> __sets = { } <EOL> import datasets . pascal_voc <EOL> import numpy as np <EOL> def _selective_search_IJCV_top_k ( split , year , top_k ) : <EOL> """<STR_LIT>""" <EOL> imdb = datasets . pascal_voc ( split , year ) <EOL> imdb . roidb_handler = imdb . selective_search_IJCV_roidb <EOL> imdb . config [ '<STR_LIT>' ] = top_k <EOL> return imdb <EOL> for year in [ '<STR_LIT>' , '<STR_LIT>' ] : <EOL> for split in [ '<STR_LIT:train>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT:test>' ] : <EOL> name = '<STR_LIT>' . format ( year , split ) <EOL> __sets [ name ] = ( lambda split = split , year = year : <EOL> datasets . pascal_voc ( split , year ) ) <EOL> for top_k in np . arange ( <NUM_LIT:1000> , <NUM_LIT> , <NUM_LIT:1000> ) : <EOL> for year in [ '<STR_LIT>' , '<STR_LIT>' ] : <EOL> for split in [ '<STR_LIT:train>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT:test>' ] : <EOL> name = '<STR_LIT>' . format ( year , split , top_k ) <EOL> __sets [ name ] = ( lambda split = split , year = year , top_k = top_k : <EOL> _selective_search_IJCV_top_k ( split , year , top_k ) ) <EOL> def get_imdb ( name ) : <EOL> """<STR_LIT>""" <EOL> if not __sets . has_key ( name ) : <EOL> raise KeyError ( '<STR_LIT>' . format ( name ) ) <EOL> return __sets [ name ] ( ) <EOL> def list_imdbs ( ) : <EOL> """<STR_LIT>""" <EOL> return __sets . keys ( ) </s>
