python /home/admin/mtr/script_for_cron.py -j datou_current3 -m 20 -a ' -a 4876' -s datou_current_4876 -M 0 -S 0 -U 95,95,120 import MySQLdb succeeded Import error (python version) ['/Users/moilerat/Documents/Fotonower/install/caffe/distribute/python', '/home/admin/workarea/git/Velours/python/prod', '/home/admin/workarea/install/caffe_cuda8_python3/python', '/home/admin/workarea/install/darknet', '/home/admin/workarea/git/Velours/python', '/home/admin/workarea/install/caffe_frcnn_python3/py-faster-rcnn/caffe-fast-rcnn/python', '/home/admin/mtr/.credentials', '/home/admin/workarea/install/caffe/python', '/home/admin/workarea/install/caffe_frcnn/py-faster-rcnn/tools', '/home/admin/workarea/git/fotonowerpip', '/home/admin/workarea/install/segment-anything', '/home/admin/workarea/git/pyfvs', '/usr/lib/python38.zip', '/usr/lib/python3.8', '/usr/lib/python3.8/lib-dynload', '/home/admin/.local/lib/python3.8/site-packages', '/usr/local/lib/python3.8/dist-packages', '/usr/lib/python3/dist-packages'] process id : 2429389 load datou : 4876 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) DONE and to test : checkNoCycle ! We are managing only one step so we do not consider checkConsistencyNbInputNbOutput ! We are managing only one step so we do not consider checkConsistencyTypeOutputInput ! Unexpected type for variable list_input_json ERROR or WARNING : can't parse json string Expecting value: line 1 column 1 (char 0) Tried to parse : None was removed should we ? donnée sous forme de texte was removed should we ? [ptf_id0,ptf_id1...] was removed should we ? load thcls load pdts Running datou job : batch_current TODO datou_current to load to do maybe to take outside batchDatouExec no input labels no input values updating current state to 1 we have a portfolio with more photos than limit : 4358>1000 please execute split_portfolio.py -i 21758531 -l 1000 size over we load limit photo not treated list_input_json: {} Current got : datou_id : 4876, datou_cur_ids : ['2699387'] with mtr_portfolio_ids : ['21758531'] and first list_photo_ids : [] new path : /proc/2429389/ Inside batchDatouExec : verbose : 0 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) DONE and to test : checkNoCycle ! We are managing only one step so we do not consider checkConsistencyNbInputNbOutput ! We are managing only one step so we do not consider checkConsistencyTypeOutputInput ! List Step Type Loaded in datou : split_time_score over limit max, limiting to limit_max 100 list_input_json : {} origin We have 1 , WARNING: data may be incomplete, need to offset and complete ! we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB time to download the photos : 0.041265249252319336 About to test input to load Calling datou_exec Inside datou_exec : verbose : 0 number of steps : 1 step1:split_time_score Thu Mar 27 21:56:28 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec begin split time score 2022-04-13 10:29:59 0 TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 3379, 'mtr_user_id': 31, 'name': 'learn_classif_flux_maj_generique_effnet_v2_s_02062022', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'aluminium,ela,film_pedb,flux_dev,jrm,pcm,pcnc,pehd_pp,pet_clair,refus,tapis_vide', 'svm_portfolios_learning': '5515864,5515840,5515844,5515850,6244400,6237996,6237998,5515847,5515841,5515868,5515866', 'photo_hashtag_type': 4374, 'photo_desc_type': 5680, 'type_classification': 'tf_classification2', 'hashtag_id_list': '493546845,492741797,2107760237,2107760238,495916461,560181804,1284539308,2107760239,2107755846,538914404,2107748999'}] thcls : [{'id': 3513, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2_tf', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 4557, 'photo_desc_type': 5767, 'type_classification': 'tf_classification2', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] (('00', 273), ('01', 118), ('02', 269), ('03', 270), ('04', 55), ('05', 227), ('06', 269), ('07', 308), ('08', 220), ('09', 133), ('10', 242), ('11', 248), ('12', 45), ('13', 51), ('14', 225), ('15', 259), ('16', 273), ('17', 139), ('18', 244), ('19', 256), ('20', 198), ('21', 36)) ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {1: 4243} 27032025 21758531 Nombre de photos uploadées : 260 / 23040 (1%) 27032025 21758531 Nombre de photos taguées (types de déchets): 4243 / 260 (1631%) 27032025 21758531 Nombre de photos taguées (volume) : 4243 / 260 (1631%) elapsed_time : load_data_split_time_score 4.0531158447265625e-06 elapsed_time : order_list_meta_photo_and_scores 0.0017919540405273438 ?????????????? elapsed_time : fill_and_build_computed_from_old_data 0.013641834259033203 elapsed_time : insert_dashboard_record_day_entry 0.022524118423461914 Creating list_photo_by_hashtags Hashtag is None Hashtag is None Hashtag is None Hashtag is None Hashtag is None Hashtag is None Hashtag is None Hashtag is None Hashtag is None Hashtag is None Hashtag is None Hashtag is None Hashtag is None Hashtag is None elapsed_time : list_photo_by_hashtags 0.015766620635986328 photos_removed : len 0 elapsed_time : load_duplicate_info 0.013019323348999023 ***** BEGIN SPLIT TIME ***** True 1743033600.0 `1743101694.010136 1743101100.0 `1743101704.010144 1743101100.0 `1743101715.010136 1743101100.0 `1743101725.010137 1743101100.0 `1743101734.009127 1743101100.0 `1743101744.010136 1743101100.0 `1743101754.010138 1743101100.0 `1743101764.010157 1743101100.0 `1743101774.010136 1743101100.0 `1743101784.010134 1743101100.0 `1743101795.010133 1743101100.0 `1743101824.010165 1743101100.0 `1743101834.010133 1743101100.0 `1743101844.010134 1743101100.0 `1743101854.01014 1743101100.0 `1743101865.010137 1743101100.0 `1743101875.010136 1743101100.0 `1743101884.00914 1743101100.0 `1743101894.010137 1743101100.0 `1743101904.010136 1743101100.0 `1743101914.010136 1743101100.0 `1743101924.010136 1743101100.0 `1743101964.010146 1743101100.0 `1743101974.010136 1743101100.0 `1743101984.010136 1743101100.0 `1743101994.010135 1743101100.0 `1743102004.01016 1743102000.0 `1743102013.009124 1743102000.0 `1743102024.010135 1743102000.0 `1743102034.010136 1743102000.0 `1743102044.010138 1743102000.0 `1743102054.010135 1743102000.0 `1743102064.010149 1743102000.0 `1743102074.010135 1743102000.0 `1743102083.009124 1743102000.0 `1743102093.010139 1743102000.0 `1743102114.010135 1743102000.0 `1743102124.01015 1743102000.0 `1743102134.010142 1743102000.0 `1743102144.010136 1743102000.0 `1743102154.010137 1743102000.0 `1743102163.009131 1743102000.0 `1743102174.010138 1743102000.0 `1743102184.010166 1743102000.0 `1743102194.010143 1743102000.0 `1743102204.010136 1743102000.0 `1743102214.010135 1743102000.0 `1743102224.010135 1743102000.0 `1743102233.009127 1743102000.0 `1743102244.010146 1743102000.0 `1743102274.010133 1743102000.0 `1743102284.010134 1743102000.0 `1743102294.010135 1743102000.0 `1743102303.009135 1743102000.0 `1743102314.010137 1743102000.0 `1743102324.010134 1743102000.0 `1743102334.010139 1743102000.0 `1743102344.01014 1743102000.0 `1743102354.010139 1743102000.0 `1743102364.010139 1743102000.0 `1743102373.009124 1743102000.0 `1743102404.010133 1743102000.0 `1743102414.010135 1743102000.0 `1743102424.010155 1743102000.0 `1743102434.010136 1743102000.0 `1743102444.010134 1743102000.0 `1743102453.009124 1743102000.0 `1743102464.010134 1743102000.0 `1743102474.010135 1743102000.0 `1743102484.010162 1743102000.0 `1743102494.010137 1743102000.0 `1743102504.010134 1743102000.0 `1743102514.010133 1743102000.0 `1743102534.010134 1743102000.0 `1743102544.010161 1743102000.0 `1743102554.010137 1743102000.0 `1743102564.01014 1743102000.0 `1743102574.010134 1743102000.0 `1743102593.009127 1743102000.0 `1743102604.010146 1743102000.0 `1743102624.010133 1743102000.0 `1743102634.010135 1743102000.0 `1743102644.010136 1743102000.0 `1743102654.010136 1743102000.0 `1743102664.010149 1743102000.0 `1743102704.010134 1743102000.0 `1743102714.010134 1743102000.0 `1743102724.010146 1743102000.0 `1743102734.010136 1743102000.0 `1743102743.009125 1743102000.0 `1743102754.010141 1743102000.0 `1743102764.01014 1743102000.0 `1743102774.010138 1743102000.0 `1743102784.010144 1743102000.0 `1743102794.010208 1743102000.0 `1743102804.010134 1743102000.0 `1743102813.009123 1743102000.0 `1743102824.010134 1743102000.0 `1743102854.010134 1743102000.0 `1743102864.010133 1743102000.0 `1743102883.009126 1743102000.0 `1743102894.010137 1743102000.0 `1743102904.010197 1743102900.0 `1743102914.010138 1743102900.0 `1743102924.010141 1743102900.0 `1743102934.010135 1743102900.0 `1743102944.010137 1743102900.0 `1743102953.009123 1743102900.0 `1743102964.010148 1743102900.0 `1743102974.010138 1743102900.0 `1743102984.010134 1743102900.0 `1743102994.010133 1743102900.0 `1743103034.010144 1743102900.0 `1743103044.010139 1743102900.0 `1743103054.010135 1743102900.0 `1743103064.010137 1743102900.0 `1743103074.010136 1743102900.0 `1743103084.01017 1743102900.0 `1743103093.009127 1743102900.0 `1743103104.010137 1743102900.0 `1743103114.010135 1743102900.0 `1743103124.010135 1743102900.0 `1743103134.010138 1743102900.0 `1743103154.010136 1743102900.0 `1743103164.010133 1743102900.0 `1743103184.010136 1743102900.0 `1743103194.010135 1743102900.0 `1743103204.010156 1743102900.0 `1743103214.010138 1743102900.0 `1743103224.010138 1743102900.0 `1743103234.010138 1743102900.0 `1743103243.009125 1743102900.0 `1743103254.010138 1743102900.0 `1743103264.010141 1743102900.0 `1743103274.010142 1743102900.0 `1743103284.010137 1743102900.0 `1743103294.010135 1743102900.0 `1743103304.010134 1743102900.0 `1743103324.010136 1743102900.0 `1743103334.010141 1743102900.0 `1743103374.010138 1743102900.0 `1743103383.009147 1743102900.0 `1743103394.010139 1743102900.0 `1743103404.01014 1743102900.0 `1743103424.010141 1743102900.0 `1743103434.010138 1743102900.0 `1743103444.010143 1743102900.0 `1743103454.010139 1743102900.0 `1743103463.009125 1743102900.0 `1743103474.010136 1743102900.0 `1743103484.010135 1743102900.0 `1743103494.010145 1743102900.0 `1743103514.010137 1743102900.0 `1743103524.010135 1743102900.0 `1743103564.010151 1743102900.0 `1743103574.010135 1743102900.0 `1743103584.010136 1743102900.0 `1743103594.010139 1743102900.0 `1743103603.009128 1743102900.0 `1743103614.010138 1743102900.0 `1743103624.010135 1743102900.0 `1743103634.010136 1743102900.0 `1743103644.010135 1743102900.0 `1743103654.010137 1743102900.0 `1743103664.010137 1743102900.0 `1743103683.010138 1743102900.0 `1743103704.010138 1743102900.0 `1743103714.010137 1743102900.0 `1743103734.010142 1743102900.0 `1743103744.010152 1743102900.0 `1743103753.009123 1743102900.0 `1743103764.010135 1743102900.0 `1743103774.010135 1743102900.0 `1743103784.010136 1743102900.0 `1743103794.010137 1743102900.0 `1743103804.010141 1743103800.0 `1743103823.009124 1743103800.0 `1743103834.010138 1743103800.0 `1743103844.010138 1743103800.0 `1743103854.010137 1743103800.0 `1743103864.01016 1743103800.0 `1743103874.010134 1743103800.0 `1743103904.010135 1743103800.0 `1743103914.010135 1743103800.0 `1743103924.010151 1743103800.0 `1743103934.010135 1743103800.0 `1743103944.010136 1743103800.0 `1743103954.010142 1743103800.0 `1743103964.010135 1743103800.0 `1743103973.009126 1743103800.0 `1743103984.010142 1743103800.0 `1743103994.010144 1743103800.0 `1743104004.010135 1743103800.0 `1743104014.010134 1743103800.0 `1743104024.010136 1743103800.0 `1743104034.010136 1743103800.0 `1743104043.009132 1743103800.0 `1743104084.010134 1743103800.0 `1743104094.010136 1743103800.0 `1743104104.01016 1743103800.0 `1743104113.009124 1743103800.0 `1743104124.01014 1743103800.0 `1743104134.010134 1743103800.0 `1743104144.010136 1743103800.0 `1743104164.010143 1743103800.0 `1743104174.010139 1743103800.0 `1743104183.009127 1743103800.0 `1743104194.010141 1743103800.0 `1743104204.01014 1743103800.0 `1743104214.010137 1743103800.0 `1743104234.010137 1743103800.0 `1743104244.010134 1743103800.0 `1743104254.010133 1743103800.0 `1743104263.009125 1743103800.0 `1743104274.010136 1743103800.0 `1743104284.010145 1743103800.0 `1743104294.010137 1743103800.0 `1743104304.010136 1743103800.0 `1743104314.010136 1743103800.0 `1743104324.010136 1743103800.0 `1743104333.009127 1743103800.0 `1743104344.010147 1743103800.0 `1743104354.010136 1743103800.0 `1743104364.010133 1743103800.0 `1743105774.010136 1743105600.0 `1743105784.01015 1743105600.0 `1743105814.010145 1743105600.0 `1743105823.009125 1743105600.0 `1743105834.010139 1743105600.0 `1743105844.010163 1743105600.0 `1743105864.010137 1743105600.0 `1743105874.010135 1743105600.0 `1743105934.010139 1743105600.0 `1743105954.01014 1743105600.0 `1743106084.010153 1743105600.0 `1743106164.010138 1743105600.0 `1743106184.010139 1743105600.0 `1743106214.010136 1743105600.0 `1743106234.010141 1743105600.0 `1743106294.010141 1743105600.0 `1743106314.010134 1743105600.0 `1743106354.010147 1743105600.0 `1743106374.010136 1743105600.0 `1743106384.010153 1743105600.0 `1743106434.010137 1743105600.0 `1743106444.010134 1743105600.0 `1743106454.010137 1743105600.0 `1743106464.010134 1743105600.0 `1743106544.010136 1743106500.0 `1743106554.010134 1743106500.0 `1743106694.010136 1743106500.0 `1743106704.009392 1743106500.0 `1743106753.009122 1743106500.0 `1743106794.010136 1743106500.0 `1743106984.010137 1743106500.0 `1743107294.010138 1743106500.0 `1743107424.010137 1743107400.0 `1743107524.010154 1743107400.0 `1743108274.010141 1743107400.0 `1743108284.010139 1743107400.0 list printed: [[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25], [26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101], [102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174], [175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223], [224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247], [248, 249, 250, 251, 252, 253, 254, 255], [256, 257, 258, 259]] forced_hashtag: JRM force hashtag to JRM elapsed_time : SPLIT_TIME 0.014373302459716797 ***** END SPLIT TIME ***** NUMBER BATCH : 7 list_ponderation used : [1e-05, 1e-05, 1e-05, 1e-05, 1e-05] , list_hashtag_class_create_as_list : ['jrm'] result_one_balle_Type_JRM:{'day': '27032025', 'map_nb_amount': {0: 0, 1: 25, 2: 1, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 299.9999990463257, 'nb_balles_papier': 0.00026000000000000003, 'begin_time_port': 'image_27032025_19_54_54_010136m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'} Production hashtag (incorrect ponderation at 20-10-18) : 0.00026000000000000003 We reject this portfolio because of the condition_save_data : 2025-03-27 19:54:54.010136 ERROR missing amount info ERROR missing amount info ERROR missing amount info result_one_balle_Type_JRM:{'day': '27032025', 'map_nb_amount': {0: 4, 1: 53, 2: 15, 3: 1, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 889.9999771118164, 'nb_balles_papier': 0.0007300000000000013, 'begin_time_port': 'image_27032025_20_00_04_010160m0.jpg 1e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'} Production hashtag (incorrect ponderation at 20-10-18) : 0.0007300000000000013 We reject this portfolio because of the condition_save_data : 2025-03-27 20:00:04.010160 result_one_balle_Type_JRM:{'day': '27032025', 'map_nb_amount': {0: 7, 1: 51, 2: 15, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 889.9999401569366, 'nb_balles_papier': 0.0007300000000000013, 'begin_time_port': 'image_27032025_20_15_04_010197m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'} Production hashtag (incorrect ponderation at 20-10-18) : 0.0007300000000000013 We reject this portfolio because of the condition_save_data : 2025-03-27 20:15:04.010197 result_one_balle_Type_JRM:{'day': '27032025', 'map_nb_amount': {0: 1, 1: 27, 2: 21, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 559.9999921321869, 'nb_balles_papier': 0.0004900000000000006, 'begin_time_port': 'image_27032025_20_30_04_010141m0.jpg 1e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'} Production hashtag (incorrect ponderation at 20-10-18) : 0.0004900000000000006 We reject this portfolio because of the condition_save_data : 2025-03-27 20:30:04.010141 ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info result_one_balle_Type_JRM:{'day': '27032025', 'map_nb_amount': {0: 2, 1: 10, 2: 7, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 689.9999980926514, 'nb_balles_papier': 0.00019, 'begin_time_port': 'image_27032025_21_02_54_10136.jpg'} Production hashtag (incorrect ponderation at 20-10-18) : 0.00019 ERROR missing amount info ERROR missing amount info result_one_balle_Type_JRM:{'day': '27032025', 'map_nb_amount': {0: 0, 1: 6, 2: 0, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 750.0000021457672, 'nb_balles_papier': 6e-05, 'begin_time_port': 'image_27032025_21_15_44_010136m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'} Production hashtag (incorrect ponderation at 20-10-18) : 6e-05 We have rejected 4 photos because of the batch_size condition ! NUMBER BATCH list_of_portfolios_to_create : 2 Still a lot to verify ! Still a lot to verify ! Qualite : 0.045569047496461484 We don't need to reset the datou_current for this portfolio, que ce soit dans le cas ou il est fini (et found_correct devrait etre vrai, ou dans le cas ou il n'est pas fini, mais du coup on le retrouvera et mettra simplement à jour) # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21815996 AND mptpi.`type`=3726 To do Qualite : 0.03707308759656309 We don't need to reset the datou_current for this portfolio, que ce soit dans le cas ou il est fini (et found_correct devrait etre vrai, ou dans le cas ou il n'est pas fini, mais du coup on le retrouvera et mettra simplement à jour) # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21816974 AND mptpi.`type`=3726 To do elapsed_time : count_nb_balles_and_create_portfolio 0.44681382179260254 # DISPLAY ALL COLLECTED DATA : {'27032025': {'nb_upload': 260, 'nb_taggue_class': 4243, 'nb_taggue_densite': 4243}} Inside saveOutput : final : True verbose : 0 saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1348038252, 1348035950, 1348035911, 1348030859, 1348030499, 1348029849, 1348027368, 1348025116, 1348025100, 1348024563, 1348024560, 1348023823, 1348023813, 1348023552, 1348023490, 1348023434, 1348023057, 1348023012, 1348022807, 1348022803, 1348022752, 1348022728, 1348022365, 1348022340, 1348021828, 1348021780, 1348021104, 1348020487, 1348020470, 1348020411, 1348020388, 1348020384, 1348020240, 1348020227, 1348020206, 1348020181, 1348020008, 1348010022, 1348009972, 1348009878, 1348009364, 1348009325, 1348009288, 1348009245, 1348009211, 1348009160, 1348008813, 1348008785, 1348008774, 1348008770, 1348008768, 1348008734, 1348008726, 1348008699, 1348008694, 1348008683, 1348008672, 1348008512, 1348008509, 1348008505, 1348008488, 1348008481, 1348008179, 1348008147, 1348008113, 1348007940, 1348007922, 1348007888, 1348007754, 1348007709, 1348007678, 1348007260, 1348007242, 1348007227, 1348007200, 1348007169, 1348007152, 1348006578, 1348006572, 1348006562, 1348006548, 1348006404, 1348006370, 1348006340, 1348006305, 1348006269, 1348006214, 1348006211, 1348006201, 1348006196, 1348006182, 1348006177, 1348006152, 1348006146, 1348006141, 1348006113, 1348006002, 1348005979, 1348005959, 1348005955] Looping around the photos to save general results len do output : 1 /21758531Didn't retrieve data . before output type Here is an output not treated by saveGeneral : Managing all output in save final without adding information in the mtr_datou_result ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348038252', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348035950', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348035911', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348030859', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348030499', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348029849', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348027368', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348025116', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348025100', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348024563', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348024560', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348023823', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348023813', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348023552', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348023490', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348023434', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348023057', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348023012', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348022807', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348022803', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348022752', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348022728', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348022365', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348022340', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348021828', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348021780', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348021104', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348020487', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348020470', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348020411', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348020388', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348020384', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348020240', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348020227', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348020206', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348020181', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348020008', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348010022', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348009972', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348009878', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348009364', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348009325', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348009288', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348009245', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348009211', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348009160', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348008813', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348008785', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348008774', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348008770', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348008768', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348008734', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348008726', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348008699', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348008694', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348008683', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348008672', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348008512', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348008509', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348008505', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348008488', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348008481', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348008179', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348008147', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348008113', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348007940', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348007922', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348007888', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348007754', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348007709', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348007678', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348007260', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348007242', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348007227', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348007200', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348007169', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348007152', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348006578', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348006572', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348006562', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348006548', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348006404', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348006370', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348006340', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348006305', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348006269', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348006214', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348006211', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348006201', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348006196', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348006182', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348006177', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348006152', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348006146', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348006141', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348006113', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348006002', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348005979', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348005959', None, None, None, None, None, '2699387') ('4876', None, None, None, None, None, None, None, '2699387') ('4876', '21758531', '1348005955', None, None, None, None, None, '2699387') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 101 time used for this insertion : 1.1894171237945557 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.9529004096984863 time spend to save output : 1.19071626663208 total time spend for step 1 : 2.1436166763305664 caffe_path_current : About to save ! 2 After save, about to update current ! ret : 2 len(input) + len(total_photo_id_missing) : 1 set_done_treatment 1.29user 0.66system 0:07.68elapsed 25%CPU (0avgtext+0avgdata 105364maxresident)k 0inputs+104outputs (0major+50018minor)pagefaults 0swaps