text: from subprocess import call
  
  import os
  
  out_dir = '/media/hdd1/pkao/brats2018/output/validation/'
  
  model = 'deepmedic_ce_c25_75_100_125_b50_mb50'
  
  if not os.path.exists(os.path.join(out_dir, model)): os.mkdir(os.path.join(out_dir, model))
  
  folds = ['fold0', 'fold1', 'fold2', 'fold3', 'fold4']
  
  for fold in folds:
  	cfg_name = model+'_'+fold
  
  	out = os.path.join(out_dir, model)
  	#out=''
  	call(['python', 'train.py', '--gpu', '1', '--cfg', cfg_name, '--out', out])
  