Mercurial > ift6266
diff data_generation/pipeline/pipeline.py @ 187:c03692aa6158
Merge
author | fsavard |
---|---|
date | Mon, 01 Mar 2010 11:45:59 -0500 |
parents | 992ca8035a4d |
children | dd2df78fcf47 |
line wrap: on
line diff
--- a/data_generation/pipeline/pipeline.py Mon Mar 01 11:45:25 2010 -0500 +++ b/data_generation/pipeline/pipeline.py Mon Mar 01 11:45:59 2010 -0500 @@ -8,7 +8,7 @@ import sys, os, getopt import numpy -import filetensor as ft +import ift6266.data_generation.transformations.filetensor as ft import random # To debug locally, also call with -s 100 (to stop after ~100) @@ -80,23 +80,21 @@ import pylab pylab.ion() -from ift6266.data_generation.transformations import * - -from PoivreSel import PoivreSel -from thick import Thick -from BruitGauss import BruitGauss -from DistorsionGauss import DistorsionGauss -from PermutPixel import PermutPixel -from gimp_script import GIMP1 -from Rature import Rature -from contrast import Contrast -from local_elastic_distortions import LocalElasticDistorter -from slant import Slant -from Occlusion import Occlusion -from add_background_image import AddBackground -from affine_transform import AffineTransformation -from ttf2jpg import ttf2jpg -from Facade import generateCaptcha +from ift6266.data_generation.transformations.PoivreSel import PoivreSel +from ift6266.data_generation.transformations.thick import Thick +from ift6266.data_generation.transformations.BruitGauss import BruitGauss +from ift6266.data_generation.transformations.DistorsionGauss import DistorsionGauss +from ift6266.data_generation.transformations.PermutPixel import PermutPixel +from ift6266.data_generation.transformations.gimp_script import GIMP1 +from ift6266.data_generation.transformations.Rature import Rature +from ift6266.data_generation.transformations.contrast import Contrast +from ift6266.data_generation.transformations.local_elastic_distortions import LocalElasticDistorter +from ift6266.data_generation.transformations.slant import Slant +from ift6266.data_generation.transformations.Occlusion import Occlusion +from ift6266.data_generation.transformations.add_background_image import AddBackground +from ift6266.data_generation.transformations.affine_transform import AffineTransformation +from ift6266.data_generation.transformations.ttf2jpg import ttf2jpg +from ift6266.data_generation.transformations.pycaptcha.Facade import generateCaptcha if DEBUG: from visualizer import Visualizer @@ -383,7 +381,10 @@ pl.run(img_it, cpx_it) pl.write_output(output_file_path, params_output_file_path, labels_output_file_path) -_main() +try: + _main() +except: + print "Unexpected error" if DEBUG_X: pylab.ioff()