#NEWLINE# def test_loader( ) : #NEWLINE# #INDENT# print ( 'Testing image loader' ) #NEWLINE# parser = NeonArgparser ( __doc__ ) #NEWLINE# args = parser . parse_args ( ) #NEWLINE# train_dir = os . path . join ( args . data_dir , 'macrotrain' ) #NEWLINE# test_dir = os . path . join ( args . data_dir , 'macrotest' ) #NEWLINE# write_batches ( args , train_dir , trainimgs , 0 ) #NEWLINE# write_batches ( args , test_dir , testimgs , 1 ) #NEWLINE# train = ImageLoader ( set_name = 'train' , do_transforms = False , inner_size = 32 , scale_range = ( 32 , 32 ) , repo_dir = train_dir ) #NEWLINE# test = ImageLoader ( set_name = 'validation' , do_transforms = False , inner_size = 32 , scale_range = ( 32 , 32 ) , repo_dir = test_dir ) #NEWLINE# err = run ( args , train , test ) #NEWLINE# return err