In [1]:
import os
import subprocess
In [2]:
import datetime
time_start = datetime.datetime.now()
print time_start
2015-02-05 13:34:55.322921

In [3]:
BASEDIR = "/home/efg/2015/Kaggle/Plankton/"

# DIRWALK = [dirpath, direnames, filenames]
DIRWALK = [fileNameDir for fileNameDir in os.walk(BASEDIR)]
In [4]:
for i in range(len(DIRWALK)):  
    print i, DIRWALK[i][0], DIRWALK[i][1], len(DIRWALK[i][2])
0 /home/efg/2015/Kaggle/Plankton/ ['train', 'test'] 0
1 /home/efg/2015/Kaggle/Plankton/train ['appendicularian_slight_curve', 'chaetognath_other', 'hydromedusae_typeE', 'copepod_calanoid_large_side_antennatucked', 'copepod_calanoid_flatheads', 'shrimp-like_other', 'protist_dark_center', 'decapods', 'echinoderm_larva_pluteus_urchin', 'heteropod', 'acantharia_protist_big_center', 'hydromedusae_typeD_bell_and_tentacles', 'ctenophore_lobate', 'unknown_unclassified', 'protist_other', 'fish_larvae_medium_body', 'copepod_calanoid_large', 'copepod_calanoid_octomoms', 'hydromedusae_shapeB', 'echinoderm_larva_pluteus_early', 'hydromedusae_h15', 'copepod_cyclopoid_oithona_eggs', 'invertebrate_larvae_other_B', 'ctenophore_cydippid_tentacles', 'hydromedusae_liriope', 'detritus_blob', 'copepod_cyclopoid_copilia', 'hydromedusae_narco_young', 'siphonophore_calycophoran_sphaeronectes_young', 'unknown_sticks', 'siphonophore_calycophoran_sphaeronectes_stem', 'tunicate_doliolid', 'fish_larvae_leptocephali', 'trichodesmium_multiple', 'detritus_filamentous', 'tunicate_partial', 'fecal_pellet', 'hydromedusae_shapeA', 'siphonophore_calycophoran_rocketship_adult', 'radiolarian_chain', 'shrimp_zoea', 'tunicate_salp', 'trichodesmium_bowtie', 'copepod_calanoid_small_longantennae', 'hydromedusae_other', 'hydromedusae_typeF', 'protist_noctiluca', 'chaetognath_non_sagitta', 'echinoderm_larva_seastar_brachiolaria', 'pteropod_butterfly', 'echinopluteus', 'ephyra', 'ctenophore_cydippid_no_tentacles', 'artifacts_edge', 'echinoderm_seacucumber_auricularia_larva', 'trichodesmium_puff', 'protist_star', 'tunicate_salp_chains', 'echinoderm_larva_pluteus_typeC', 'artifacts', 'euphausiids_young', 'copepod_other', 'amphipods', 'diatom_chain_tube', 'siphonophore_physonect', 'hydromedusae_solmundella', 'chordate_type1', 'invertebrate_larvae_other_A', 'siphonophore_physonect_young', 'hydromedusae_haliscera', 'fish_larvae_myctophids', 'siphonophore_other_parts', 'hydromedusae_shapeA_sideview_small', 'siphonophore_partial', 'hydromedusae_typeD', 'siphonophore_calycophoran_sphaeronectes', 'pteropod_theco_dev_seq', 'protist_fuzzy_olive', 'chaetognath_sagitta', 'hydromedusae_bell_and_tentacles', 'shrimp_sergestidae', 'radiolarian_colony', 'echinoderm_larva_pluteus_brittlestar', 'stomatopod', 'pteropod_triangle', 'tunicate_doliolid_nurse', 'polychaete', 'hydromedusae_haliscera_small_sideview', 'detritus_other', 'copepod_cyclopoid_oithona', 'unknown_blobs_and_smudges', 'shrimp_caridean', 'hydromedusae_narco_dark', 'copepod_calanoid_eucalanus', 'appendicularian_straight', 'appendicularian_s_shape', 'hydromedusae_aglaura', 'crustacean_other', 'trochophore_larvae', 'siphonophore_calycophoran_rocketship_young', 'hydromedusae_partial_dark', 'echinoderm_larva_seastar_bipinnaria', 'acantharia_protist_halo', 'acantharia_protist', 'copepod_calanoid_frillyAntennae', 'diatom_chain_string', 'hydromedusae_narcomedusae', 'ctenophore_cestid', 'trichodesmium_tuft', 'copepod_calanoid', 'hydromedusae_solmaris', 'euphausiids', 'fish_larvae_very_thin_body', 'fish_larvae_thin_body', 'tornaria_acorn_worm_larvae', 'copepod_calanoid_eggs', 'hydromedusae_sideview_big', 'appendicularian_fritillaridae', 'siphonophore_calycophoran_abylidae', 'fish_larvae_deep_body', 'jellies_tentacles'] 0
2 /home/efg/2015/Kaggle/Plankton/train/appendicularian_slight_curve [] 483
3 /home/efg/2015/Kaggle/Plankton/train/chaetognath_other [] 1934
4 /home/efg/2015/Kaggle/Plankton/train/hydromedusae_typeE [] 14
5 /home/efg/2015/Kaggle/Plankton/train/copepod_calanoid_large_side_antennatucked [] 106
6 /home/efg/2015/Kaggle/Plankton/train/copepod_calanoid_flatheads [] 178
7 /home/efg/2015/Kaggle/Plankton/train/shrimp-like_other [] 52
8 /home/efg/2015/Kaggle/Plankton/train/protist_dark_center [] 108
9 /home/efg/2015/Kaggle/Plankton/train/decapods [] 55
10 /home/efg/2015/Kaggle/Plankton/train/echinoderm_larva_pluteus_urchin [] 88
11 /home/efg/2015/Kaggle/Plankton/train/heteropod [] 10
12 /home/efg/2015/Kaggle/Plankton/train/acantharia_protist_big_center [] 13
13 /home/efg/2015/Kaggle/Plankton/train/hydromedusae_typeD_bell_and_tentacles [] 56
14 /home/efg/2015/Kaggle/Plankton/train/ctenophore_lobate [] 38
15 /home/efg/2015/Kaggle/Plankton/train/unknown_unclassified [] 425
16 /home/efg/2015/Kaggle/Plankton/train/protist_other [] 1172
17 /home/efg/2015/Kaggle/Plankton/train/fish_larvae_medium_body [] 85
18 /home/efg/2015/Kaggle/Plankton/train/copepod_calanoid_large [] 286
19 /home/efg/2015/Kaggle/Plankton/train/copepod_calanoid_octomoms [] 49
20 /home/efg/2015/Kaggle/Plankton/train/hydromedusae_shapeB [] 150
21 /home/efg/2015/Kaggle/Plankton/train/echinoderm_larva_pluteus_early [] 92
22 /home/efg/2015/Kaggle/Plankton/train/hydromedusae_h15 [] 35
23 /home/efg/2015/Kaggle/Plankton/train/copepod_cyclopoid_oithona_eggs [] 1189
24 /home/efg/2015/Kaggle/Plankton/train/invertebrate_larvae_other_B [] 24
25 /home/efg/2015/Kaggle/Plankton/train/ctenophore_cydippid_tentacles [] 53
26 /home/efg/2015/Kaggle/Plankton/train/hydromedusae_liriope [] 19
27 /home/efg/2015/Kaggle/Plankton/train/detritus_blob [] 363
28 /home/efg/2015/Kaggle/Plankton/train/copepod_cyclopoid_copilia [] 30
29 /home/efg/2015/Kaggle/Plankton/train/hydromedusae_narco_young [] 336
30 /home/efg/2015/Kaggle/Plankton/train/siphonophore_calycophoran_sphaeronectes_young [] 247
31 /home/efg/2015/Kaggle/Plankton/train/unknown_sticks [] 175
32 /home/efg/2015/Kaggle/Plankton/train/siphonophore_calycophoran_sphaeronectes_stem [] 57
33 /home/efg/2015/Kaggle/Plankton/train/tunicate_doliolid [] 439
34 /home/efg/2015/Kaggle/Plankton/train/fish_larvae_leptocephali [] 31
35 /home/efg/2015/Kaggle/Plankton/train/trichodesmium_multiple [] 54
36 /home/efg/2015/Kaggle/Plankton/train/detritus_filamentous [] 394
37 /home/efg/2015/Kaggle/Plankton/train/tunicate_partial [] 352
38 /home/efg/2015/Kaggle/Plankton/train/fecal_pellet [] 511
39 /home/efg/2015/Kaggle/Plankton/train/hydromedusae_shapeA [] 412
40 /home/efg/2015/Kaggle/Plankton/train/siphonophore_calycophoran_rocketship_adult [] 135
41 /home/efg/2015/Kaggle/Plankton/train/radiolarian_chain [] 287
42 /home/efg/2015/Kaggle/Plankton/train/shrimp_zoea [] 174
43 /home/efg/2015/Kaggle/Plankton/train/tunicate_salp [] 236
44 /home/efg/2015/Kaggle/Plankton/train/trichodesmium_bowtie [] 708
45 /home/efg/2015/Kaggle/Plankton/train/copepod_calanoid_small_longantennae [] 87
46 /home/efg/2015/Kaggle/Plankton/train/hydromedusae_other [] 12
47 /home/efg/2015/Kaggle/Plankton/train/hydromedusae_typeF [] 61
48 /home/efg/2015/Kaggle/Plankton/train/protist_noctiluca [] 625
49 /home/efg/2015/Kaggle/Plankton/train/chaetognath_non_sagitta [] 815
50 /home/efg/2015/Kaggle/Plankton/train/echinoderm_larva_seastar_brachiolaria [] 536
51 /home/efg/2015/Kaggle/Plankton/train/pteropod_butterfly [] 108
52 /home/efg/2015/Kaggle/Plankton/train/echinopluteus [] 27
53 /home/efg/2015/Kaggle/Plankton/train/ephyra [] 14
54 /home/efg/2015/Kaggle/Plankton/train/ctenophore_cydippid_no_tentacles [] 42
55 /home/efg/2015/Kaggle/Plankton/train/artifacts_edge [] 170
56 /home/efg/2015/Kaggle/Plankton/train/echinoderm_seacucumber_auricularia_larva [] 96
57 /home/efg/2015/Kaggle/Plankton/train/trichodesmium_puff [] 1979
58 /home/efg/2015/Kaggle/Plankton/train/protist_star [] 113
59 /home/efg/2015/Kaggle/Plankton/train/tunicate_salp_chains [] 73
60 /home/efg/2015/Kaggle/Plankton/train/echinoderm_larva_pluteus_typeC [] 80
61 /home/efg/2015/Kaggle/Plankton/train/artifacts [] 393
62 /home/efg/2015/Kaggle/Plankton/train/euphausiids_young [] 38
63 /home/efg/2015/Kaggle/Plankton/train/copepod_other [] 24
64 /home/efg/2015/Kaggle/Plankton/train/amphipods [] 49
65 /home/efg/2015/Kaggle/Plankton/train/diatom_chain_tube [] 500
66 /home/efg/2015/Kaggle/Plankton/train/siphonophore_physonect [] 128
67 /home/efg/2015/Kaggle/Plankton/train/hydromedusae_solmundella [] 123
68 /home/efg/2015/Kaggle/Plankton/train/chordate_type1 [] 77
69 /home/efg/2015/Kaggle/Plankton/train/invertebrate_larvae_other_A [] 14
70 /home/efg/2015/Kaggle/Plankton/train/siphonophore_physonect_young [] 21
71 /home/efg/2015/Kaggle/Plankton/train/hydromedusae_haliscera [] 229
72 /home/efg/2015/Kaggle/Plankton/train/fish_larvae_myctophids [] 114
73 /home/efg/2015/Kaggle/Plankton/train/siphonophore_other_parts [] 29
74 /home/efg/2015/Kaggle/Plankton/train/hydromedusae_shapeA_sideview_small [] 274
75 /home/efg/2015/Kaggle/Plankton/train/siphonophore_partial [] 30
76 /home/efg/2015/Kaggle/Plankton/train/hydromedusae_typeD [] 43
77 /home/efg/2015/Kaggle/Plankton/train/siphonophore_calycophoran_sphaeronectes [] 179
78 /home/efg/2015/Kaggle/Plankton/train/pteropod_theco_dev_seq [] 13
79 /home/efg/2015/Kaggle/Plankton/train/protist_fuzzy_olive [] 372
80 /home/efg/2015/Kaggle/Plankton/train/chaetognath_sagitta [] 694
81 /home/efg/2015/Kaggle/Plankton/train/hydromedusae_bell_and_tentacles [] 75
82 /home/efg/2015/Kaggle/Plankton/train/shrimp_sergestidae [] 153
83 /home/efg/2015/Kaggle/Plankton/train/radiolarian_colony [] 158
84 /home/efg/2015/Kaggle/Plankton/train/echinoderm_larva_pluteus_brittlestar [] 36
85 /home/efg/2015/Kaggle/Plankton/train/stomatopod [] 24
86 /home/efg/2015/Kaggle/Plankton/train/pteropod_triangle [] 65
87 /home/efg/2015/Kaggle/Plankton/train/tunicate_doliolid_nurse [] 417
88 /home/efg/2015/Kaggle/Plankton/train/polychaete [] 131
89 /home/efg/2015/Kaggle/Plankton/train/hydromedusae_haliscera_small_sideview [] 9
90 /home/efg/2015/Kaggle/Plankton/train/detritus_other [] 914
91 /home/efg/2015/Kaggle/Plankton/train/copepod_cyclopoid_oithona [] 899
92 /home/efg/2015/Kaggle/Plankton/train/unknown_blobs_and_smudges [] 317
93 /home/efg/2015/Kaggle/Plankton/train/shrimp_caridean [] 49
94 /home/efg/2015/Kaggle/Plankton/train/hydromedusae_narco_dark [] 23
95 /home/efg/2015/Kaggle/Plankton/train/copepod_calanoid_eucalanus [] 96
96 /home/efg/2015/Kaggle/Plankton/train/appendicularian_straight [] 242
97 /home/efg/2015/Kaggle/Plankton/train/appendicularian_s_shape [] 696
98 /home/efg/2015/Kaggle/Plankton/train/hydromedusae_aglaura [] 127
99 /home/efg/2015/Kaggle/Plankton/train/crustacean_other [] 201
100 /home/efg/2015/Kaggle/Plankton/train/trochophore_larvae [] 29
101 /home/efg/2015/Kaggle/Plankton/train/siphonophore_calycophoran_rocketship_young [] 483
102 /home/efg/2015/Kaggle/Plankton/train/hydromedusae_partial_dark [] 190
103 /home/efg/2015/Kaggle/Plankton/train/echinoderm_larva_seastar_bipinnaria [] 385
104 /home/efg/2015/Kaggle/Plankton/train/acantharia_protist_halo [] 71
105 /home/efg/2015/Kaggle/Plankton/train/acantharia_protist [] 889
106 /home/efg/2015/Kaggle/Plankton/train/copepod_calanoid_frillyAntennae [] 63
107 /home/efg/2015/Kaggle/Plankton/train/diatom_chain_string [] 519
108 /home/efg/2015/Kaggle/Plankton/train/hydromedusae_narcomedusae [] 132
109 /home/efg/2015/Kaggle/Plankton/train/ctenophore_cestid [] 113
110 /home/efg/2015/Kaggle/Plankton/train/trichodesmium_tuft [] 678
111 /home/efg/2015/Kaggle/Plankton/train/copepod_calanoid [] 681
112 /home/efg/2015/Kaggle/Plankton/train/hydromedusae_solmaris [] 703
113 /home/efg/2015/Kaggle/Plankton/train/euphausiids [] 136
114 /home/efg/2015/Kaggle/Plankton/train/fish_larvae_very_thin_body [] 16
115 /home/efg/2015/Kaggle/Plankton/train/fish_larvae_thin_body [] 64
116 /home/efg/2015/Kaggle/Plankton/train/tornaria_acorn_worm_larvae [] 38
117 /home/efg/2015/Kaggle/Plankton/train/copepod_calanoid_eggs [] 173
118 /home/efg/2015/Kaggle/Plankton/train/hydromedusae_sideview_big [] 76
119 /home/efg/2015/Kaggle/Plankton/train/appendicularian_fritillaridae [] 16
120 /home/efg/2015/Kaggle/Plankton/train/siphonophore_calycophoran_abylidae [] 212
121 /home/efg/2015/Kaggle/Plankton/train/fish_larvae_deep_body [] 10
122 /home/efg/2015/Kaggle/Plankton/train/jellies_tentacles [] 141
123 /home/efg/2015/Kaggle/Plankton/test [] 130400

In [5]:
for i in range(len(DIRWALK)):
    print i, DIRWALK[i][0], len(DIRWALK[i][2])
    for j in range(len(DIRWALK[i][2])):        
        filename = DIRWALK[i][2][j]
        if j > 0 and j % 2500 == 0:
            print j, filename
        basename = os.path.join(DIRWALK[i][0], filename.rsplit(".",2)[0])
        # print j, filename
        subprocess.check_output(["convert", basename+".jpg", basename+".tif"])
        # Use print for debug
        # print subprocess.check_output(["convert", basename+".jpg", basename+".tif"])
        os.remove(basename+".jpg")
0 /home/efg/2015/Kaggle/Plankton/ 0
1 /home/efg/2015/Kaggle/Plankton/train 0
2 /home/efg/2015/Kaggle/Plankton/train/appendicularian_slight_curve 483
3 /home/efg/2015/Kaggle/Plankton/train/chaetognath_other 1934
4 /home/efg/2015/Kaggle/Plankton/train/hydromedusae_typeE 14
5 /home/efg/2015/Kaggle/Plankton/train/copepod_calanoid_large_side_antennatucked 106
6 /home/efg/2015/Kaggle/Plankton/train/copepod_calanoid_flatheads 178
7 /home/efg/2015/Kaggle/Plankton/train/shrimp-like_other 52
8 /home/efg/2015/Kaggle/Plankton/train/protist_dark_center 108
9 /home/efg/2015/Kaggle/Plankton/train/decapods 55
10 /home/efg/2015/Kaggle/Plankton/train/echinoderm_larva_pluteus_urchin 88
11 /home/efg/2015/Kaggle/Plankton/train/heteropod 10
12 /home/efg/2015/Kaggle/Plankton/train/acantharia_protist_big_center 13
13 /home/efg/2015/Kaggle/Plankton/train/hydromedusae_typeD_bell_and_tentacles 56
14 /home/efg/2015/Kaggle/Plankton/train/ctenophore_lobate 38
15 /home/efg/2015/Kaggle/Plankton/train/unknown_unclassified 425
16 /home/efg/2015/Kaggle/Plankton/train/protist_other 1172
17 /home/efg/2015/Kaggle/Plankton/train/fish_larvae_medium_body 85
18 /home/efg/2015/Kaggle/Plankton/train/copepod_calanoid_large 286
19 /home/efg/2015/Kaggle/Plankton/train/copepod_calanoid_octomoms 49
20 /home/efg/2015/Kaggle/Plankton/train/hydromedusae_shapeB 150
21 /home/efg/2015/Kaggle/Plankton/train/echinoderm_larva_pluteus_early 92
22 /home/efg/2015/Kaggle/Plankton/train/hydromedusae_h15 35
23 /home/efg/2015/Kaggle/Plankton/train/copepod_cyclopoid_oithona_eggs 1189
24 /home/efg/2015/Kaggle/Plankton/train/invertebrate_larvae_other_B 24
25 /home/efg/2015/Kaggle/Plankton/train/ctenophore_cydippid_tentacles 53
26 /home/efg/2015/Kaggle/Plankton/train/hydromedusae_liriope 19
27 /home/efg/2015/Kaggle/Plankton/train/detritus_blob 363
28 /home/efg/2015/Kaggle/Plankton/train/copepod_cyclopoid_copilia 30
29 /home/efg/2015/Kaggle/Plankton/train/hydromedusae_narco_young 336
30 /home/efg/2015/Kaggle/Plankton/train/siphonophore_calycophoran_sphaeronectes_young 247
31 /home/efg/2015/Kaggle/Plankton/train/unknown_sticks 175
32 /home/efg/2015/Kaggle/Plankton/train/siphonophore_calycophoran_sphaeronectes_stem 57
33 /home/efg/2015/Kaggle/Plankton/train/tunicate_doliolid 439
34 /home/efg/2015/Kaggle/Plankton/train/fish_larvae_leptocephali 31
35 /home/efg/2015/Kaggle/Plankton/train/trichodesmium_multiple 54
36 /home/efg/2015/Kaggle/Plankton/train/detritus_filamentous 394
37 /home/efg/2015/Kaggle/Plankton/train/tunicate_partial 352
38 /home/efg/2015/Kaggle/Plankton/train/fecal_pellet 511
39 /home/efg/2015/Kaggle/Plankton/train/hydromedusae_shapeA 412
40 /home/efg/2015/Kaggle/Plankton/train/siphonophore_calycophoran_rocketship_adult 135
41 /home/efg/2015/Kaggle/Plankton/train/radiolarian_chain 287
42 /home/efg/2015/Kaggle/Plankton/train/shrimp_zoea 174
43 /home/efg/2015/Kaggle/Plankton/train/tunicate_salp 236
44 /home/efg/2015/Kaggle/Plankton/train/trichodesmium_bowtie 708
45 /home/efg/2015/Kaggle/Plankton/train/copepod_calanoid_small_longantennae 87
46 /home/efg/2015/Kaggle/Plankton/train/hydromedusae_other 12
47 /home/efg/2015/Kaggle/Plankton/train/hydromedusae_typeF 61
48 /home/efg/2015/Kaggle/Plankton/train/protist_noctiluca 625
49 /home/efg/2015/Kaggle/Plankton/train/chaetognath_non_sagitta 815
50 /home/efg/2015/Kaggle/Plankton/train/echinoderm_larva_seastar_brachiolaria 536
51 /home/efg/2015/Kaggle/Plankton/train/pteropod_butterfly 108
52 /home/efg/2015/Kaggle/Plankton/train/echinopluteus 27
53 /home/efg/2015/Kaggle/Plankton/train/ephyra 14
54 /home/efg/2015/Kaggle/Plankton/train/ctenophore_cydippid_no_tentacles 42
55 /home/efg/2015/Kaggle/Plankton/train/artifacts_edge 170
56 /home/efg/2015/Kaggle/Plankton/train/echinoderm_seacucumber_auricularia_larva 96
57 /home/efg/2015/Kaggle/Plankton/train/trichodesmium_puff 1979
58 /home/efg/2015/Kaggle/Plankton/train/protist_star 113
59 /home/efg/2015/Kaggle/Plankton/train/tunicate_salp_chains 73
60 /home/efg/2015/Kaggle/Plankton/train/echinoderm_larva_pluteus_typeC 80
61 /home/efg/2015/Kaggle/Plankton/train/artifacts 393
62 /home/efg/2015/Kaggle/Plankton/train/euphausiids_young 38
63 /home/efg/2015/Kaggle/Plankton/train/copepod_other 24
64 /home/efg/2015/Kaggle/Plankton/train/amphipods 49
65 /home/efg/2015/Kaggle/Plankton/train/diatom_chain_tube 500
66 /home/efg/2015/Kaggle/Plankton/train/siphonophore_physonect 128
67 /home/efg/2015/Kaggle/Plankton/train/hydromedusae_solmundella 123
68 /home/efg/2015/Kaggle/Plankton/train/chordate_type1 77
69 /home/efg/2015/Kaggle/Plankton/train/invertebrate_larvae_other_A 14
70 /home/efg/2015/Kaggle/Plankton/train/siphonophore_physonect_young 21
71 /home/efg/2015/Kaggle/Plankton/train/hydromedusae_haliscera 229
72 /home/efg/2015/Kaggle/Plankton/train/fish_larvae_myctophids 114
73 /home/efg/2015/Kaggle/Plankton/train/siphonophore_other_parts 29
74 /home/efg/2015/Kaggle/Plankton/train/hydromedusae_shapeA_sideview_small 274
75 /home/efg/2015/Kaggle/Plankton/train/siphonophore_partial 30
76 /home/efg/2015/Kaggle/Plankton/train/hydromedusae_typeD 43
77 /home/efg/2015/Kaggle/Plankton/train/siphonophore_calycophoran_sphaeronectes 179
78 /home/efg/2015/Kaggle/Plankton/train/pteropod_theco_dev_seq 13
79 /home/efg/2015/Kaggle/Plankton/train/protist_fuzzy_olive 372
80 /home/efg/2015/Kaggle/Plankton/train/chaetognath_sagitta 694
81 /home/efg/2015/Kaggle/Plankton/train/hydromedusae_bell_and_tentacles 75
82 /home/efg/2015/Kaggle/Plankton/train/shrimp_sergestidae 153
83 /home/efg/2015/Kaggle/Plankton/train/radiolarian_colony 158
84 /home/efg/2015/Kaggle/Plankton/train/echinoderm_larva_pluteus_brittlestar 36
85 /home/efg/2015/Kaggle/Plankton/train/stomatopod 24
86 /home/efg/2015/Kaggle/Plankton/train/pteropod_triangle 65
87 /home/efg/2015/Kaggle/Plankton/train/tunicate_doliolid_nurse 417
88 /home/efg/2015/Kaggle/Plankton/train/polychaete 131
89 /home/efg/2015/Kaggle/Plankton/train/hydromedusae_haliscera_small_sideview 9
90 /home/efg/2015/Kaggle/Plankton/train/detritus_other 914
91 /home/efg/2015/Kaggle/Plankton/train/copepod_cyclopoid_oithona 899
92 /home/efg/2015/Kaggle/Plankton/train/unknown_blobs_and_smudges 317
93 /home/efg/2015/Kaggle/Plankton/train/shrimp_caridean 49
94 /home/efg/2015/Kaggle/Plankton/train/hydromedusae_narco_dark 23
95 /home/efg/2015/Kaggle/Plankton/train/copepod_calanoid_eucalanus 96
96 /home/efg/2015/Kaggle/Plankton/train/appendicularian_straight 242
97 /home/efg/2015/Kaggle/Plankton/train/appendicularian_s_shape 696
98 /home/efg/2015/Kaggle/Plankton/train/hydromedusae_aglaura 127
99 /home/efg/2015/Kaggle/Plankton/train/crustacean_other 201
100 /home/efg/2015/Kaggle/Plankton/train/trochophore_larvae 29
101 /home/efg/2015/Kaggle/Plankton/train/siphonophore_calycophoran_rocketship_young 483
102 /home/efg/2015/Kaggle/Plankton/train/hydromedusae_partial_dark 190
103 /home/efg/2015/Kaggle/Plankton/train/echinoderm_larva_seastar_bipinnaria 385
104 /home/efg/2015/Kaggle/Plankton/train/acantharia_protist_halo 71
105 /home/efg/2015/Kaggle/Plankton/train/acantharia_protist 889
106 /home/efg/2015/Kaggle/Plankton/train/copepod_calanoid_frillyAntennae 63
107 /home/efg/2015/Kaggle/Plankton/train/diatom_chain_string 519
108 /home/efg/2015/Kaggle/Plankton/train/hydromedusae_narcomedusae 132
109 /home/efg/2015/Kaggle/Plankton/train/ctenophore_cestid 113
110 /home/efg/2015/Kaggle/Plankton/train/trichodesmium_tuft 678
111 /home/efg/2015/Kaggle/Plankton/train/copepod_calanoid 681
112 /home/efg/2015/Kaggle/Plankton/train/hydromedusae_solmaris 703
113 /home/efg/2015/Kaggle/Plankton/train/euphausiids 136
114 /home/efg/2015/Kaggle/Plankton/train/fish_larvae_very_thin_body 16
115 /home/efg/2015/Kaggle/Plankton/train/fish_larvae_thin_body 64
116 /home/efg/2015/Kaggle/Plankton/train/tornaria_acorn_worm_larvae 38
117 /home/efg/2015/Kaggle/Plankton/train/copepod_calanoid_eggs 173
118 /home/efg/2015/Kaggle/Plankton/train/hydromedusae_sideview_big 76
119 /home/efg/2015/Kaggle/Plankton/train/appendicularian_fritillaridae 16
120 /home/efg/2015/Kaggle/Plankton/train/siphonophore_calycophoran_abylidae 212
121 /home/efg/2015/Kaggle/Plankton/train/fish_larvae_deep_body 10
122 /home/efg/2015/Kaggle/Plankton/train/jellies_tentacles 141
123 /home/efg/2015/Kaggle/Plankton/test 130400
2500 158086.jpg
5000 132335.jpg
7500 159026.jpg
10000 93161.jpg
12500 136555.jpg
15000 63147.jpg
17500 91110.jpg
20000 34373.jpg
22500 89004.jpg
25000 1780.jpg
27500 122235.jpg
30000 149123.jpg
32500 60227.jpg
35000 27417.jpg
37500 125703.jpg
40000 108674.jpg
42500 140703.jpg
45000 151135.jpg
47500 139508.jpg
50000 128485.jpg
52500 55155.jpg
55000 13274.jpg
57500 34116.jpg
60000 128514.jpg
62500 136437.jpg
65000 66989.jpg
67500 47413.jpg
70000 150790.jpg
72500 105792.jpg
75000 69515.jpg
77500 63993.jpg
80000 61366.jpg
82500 82072.jpg
85000 72013.jpg
87500 34920.jpg
90000 88508.jpg
92500 92806.jpg
95000 69394.jpg
97500 143819.jpg
100000 58018.jpg
102500 144858.jpg
105000 150355.jpg
107500 61202.jpg
110000 64491.jpg
112500 129543.jpg
115000 62005.jpg
117500 24454.jpg
120000 120641.jpg
122500 36036.jpg
125000 155778.jpg
127500 115612.jpg
130000 92894.jpg

In [6]:
time_stop = datetime.datetime.now()
print time_stop
print (time_stop - time_start), "overall convert time"
2015-02-05 14:33:54.136585
0:58:58.813664 overall convert time