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 : 2395055 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 list_input_json: {} Current got : datou_id : 4876, datou_cur_ids : ['2621648'] with mtr_portfolio_ids : ['20899997'] and first list_photo_ids : [] new path : /proc/2395055/ 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.05646944046020508 About to test input to load Calling datou_exec Inside datou_exec : verbose : 0 number of steps : 1 step1:split_time_score Fri Feb 28 01:58: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', 179), ('01', 89)) ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {1: 217} 28022025 20899997 Nombre de photos uploadées : 268 / 23040 (1%) 28022025 20899997 Nombre de photos taguées (types de déchets): 217 / 268 (80%) 28022025 20899997 Nombre de photos taguées (volume) : 217 / 268 (80%) elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 5.793571472167969e-05 ??????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.008370399475097656 elapsed_time : insert_dashboard_record_day_entry 0.03559136390686035 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 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 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 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.010894775390625 photos_removed : len 0 elapsed_time : load_duplicate_info 0.011186599731445312 ***** BEGIN SPLIT TIME ***** True 1740700800.0 `1740697204.010164 1740697200.0 `1740697215.010154 1740697200.0 `1740697244.010135 1740697200.0 `1740697254.010132 1740697200.0 `1740697264.01015 1740697200.0 `1740697284.010134 1740697200.0 `1740697295.010135 1740697200.0 `1740697304.009123 1740697200.0 `1740697314.010136 1740697200.0 `1740697324.010166 1740697200.0 `1740697334.010137 1740697200.0 `1740697344.010134 1740697200.0 `1740697354.010135 1740697200.0 `1740697365.010134 1740697200.0 `1740697374.009124 1740697200.0 `1740697394.010136 1740697200.0 `1740697404.010133 1740697200.0 `1740697414.010133 1740697200.0 `1740697435.010136 1740697200.0 `1740697444.009128 1740697200.0 `1740697464.010136 1740697200.0 `1740697474.010145 1740697200.0 `1740697484.010148 1740697200.0 `1740697494.010137 1740697200.0 `1740697505.010152 1740697200.0 `1740697514.009126 1740697200.0 `1740697524.010144 1740697200.0 `1740697534.010138 1740697200.0 `1740697544.010141 1740697200.0 `1740697574.010133 1740697200.0 `1740697585.010133 1740697200.0 `1740697594.009125 1740697200.0 `1740697604.010137 1740697200.0 `1740697614.01015 1740697200.0 `1740697624.010147 1740697200.0 `1740697634.010138 1740697200.0 `1740697644.010136 1740697200.0 `1740697655.010138 1740697200.0 `1740697664.009127 1740697200.0 `1740697674.01014 1740697200.0 `1740697684.010158 1740697200.0 `1740697704.010135 1740697200.0 `1740697714.010134 1740697200.0 `1740697754.010134 1740697200.0 `1740697765.010133 1740697200.0 `1740697774.009131 1740697200.0 `1740697794.010135 1740697200.0 `1740697804.010147 1740697200.0 `1740697814.010137 1740697200.0 `1740697824.010138 1740697200.0 `1740697834.010142 1740697200.0 `1740697845.010138 1740697200.0 `1740697854.009127 1740697200.0 `1740697864.010151 1740697200.0 `1740697874.010136 1740697200.0 `1740697884.010145 1740697200.0 `1740697924.009153 1740697200.0 `1740697934.010136 1740697200.0 `1740697944.010134 1740697200.0 `1740697954.01014 1740697200.0 `1740697964.010143 1740697200.0 `1740697974.010139 1740697200.0 `1740697994.009125 1740697200.0 `1740698004.01014 1740697200.0 `1740698014.010136 1740697200.0 `1740698024.010137 1740697200.0 `1740698034.010143 1740697200.0 `1740698044.010139 1740697200.0 `1740698055.010137 1740697200.0 `1740698084.010136 1740697200.0 `1740698094.010135 1740697200.0 `1740698104.010141 1740698100.0 `1740698114.010137 1740698100.0 `1740698125.010134 1740698100.0 `1740698134.009133 1740698100.0 `1740698144.01014 1740698100.0 `1740698154.010137 1740698100.0 `1740698164.010155 1740698100.0 `1740698174.010138 1740698100.0 `1740698184.010136 1740698100.0 `1740698194.010135 1740698100.0 `1740698205.010135 1740698100.0 `1740698244.010133 1740698100.0 `1740698264.010135 1740698100.0 `1740698284.009129 1740698100.0 `1740698304.010136 1740698100.0 `1740698314.010143 1740698100.0 `1740698324.009683 1740698100.0 `1740698334.010137 1740698100.0 `1740698344.010154 1740698100.0 `1740698354.010136 1740698100.0 `1740698364.010144 1740698100.0 `1740698375.010137 1740698100.0 `1740698384.009126 1740698100.0 `1740698424.010135 1740698100.0 `1740698434.010135 1740698100.0 `1740698445.010141 1740698100.0 `1740698454.009127 1740698100.0 `1740698464.010151 1740698100.0 `1740698474.010141 1740698100.0 `1740698484.010139 1740698100.0 `1740698494.010146 1740698100.0 `1740698514.010138 1740698100.0 `1740698524.009152 1740698100.0 `1740698544.010135 1740698100.0 `1740698554.010135 1740698100.0 `1740698595.010137 1740698100.0 `1740698604.009122 1740698100.0 `1740698614.010136 1740698100.0 `1740698624.010137 1740698100.0 `1740698634.010136 1740698100.0 `1740698644.010156 1740698100.0 `1740698654.01014 1740698100.0 `1740698665.010136 1740698100.0 `1740698674.009127 1740698100.0 `1740698684.01014 1740698100.0 `1740698694.010137 1740698100.0 `1740698704.010167 1740698100.0 `1740698714.010136 1740698100.0 `1740698724.010135 1740698100.0 `1740698735.010136 1740698100.0 `1740698744.009126 1740698100.0 `1740698784.010134 1740698100.0 `1740698794.010132 1740698100.0 `1740698804.010135 1740698100.0 `1740698815.010136 1740698100.0 `1740698824.009156 1740698100.0 `1740698844.010142 1740698100.0 `1740698854.010141 1740698100.0 `1740698864.010141 1740698100.0 `1740698874.01014 1740698100.0 `1740698885.010143 1740698100.0 `1740698894.00913 1740698100.0 `1740698904.010137 1740698100.0 `1740698914.010136 1740698100.0 `1740698924.010139 1740698100.0 `1740698934.010137 1740698100.0 `1740698974.010136 1740698100.0 `1740698984.010136 1740698100.0 `1740699004.010164 1740699000.0 `1740699014.010139 1740699000.0 `1740699025.010135 1740699000.0 `1740699034.009133 1740699000.0 `1740699044.010142 1740699000.0 `1740699054.010136 1740699000.0 `1740699064.01015 1740699000.0 `1740699074.010136 1740699000.0 `1740699084.010133 1740699000.0 `1740699095.010134 1740699000.0 `1740699104.009126 1740699000.0 `1740699134.010138 1740699000.0 `1740699144.010134 1740699000.0 `1740699154.010134 1740699000.0 `1740699164.010135 1740699000.0 `1740699184.009132 1740699000.0 `1740699194.010139 1740699000.0 `1740699204.010143 1740699000.0 `1740699214.010143 1740699000.0 `1740699224.010147 1740699000.0 `1740699234.010138 1740699000.0 `1740699244.009155 1740699000.0 `1740699254.010139 1740699000.0 `1740699294.010136 1740699000.0 `1740699304.010147 1740699000.0 `1740699315.010138 1740699000.0 `1740699324.009128 1740699000.0 `1740699334.010146 1740699000.0 `1740699344.010136 1740699000.0 `1740699354.010139 1740699000.0 `1740699364.010145 1740699000.0 `1740699374.010144 1740699000.0 `1740699385.010137 1740699000.0 `1740699394.009126 1740699000.0 `1740699404.010138 1740699000.0 `1740699414.010137 1740699000.0 `1740699424.010149 1740699000.0 `1740699455.010134 1740699000.0 `1740699464.009131 1740699000.0 `1740699494.010135 1740699000.0 `1740701584.010159 1740700800.0 `1740702134.010144 1740701700.0 `1740702474.010139 1740701700.0 `1740702624.010139 1740702600.0 `1740702634.010137 1740702600.0 `1740702683.010135 1740702600.0 `1740702804.01014 1740702600.0 `1740702813.009126 1740702600.0 `1740702823.010143 1740702600.0 `1740702833.010137 1740702600.0 `1740702844.010145 1740702600.0 `1740702854.010136 1740702600.0 `1740702864.010136 1740702600.0 `1740703084.010145 1740702600.0 `1740703093.009131 1740702600.0 `1740703103.010135 1740702600.0 `1740703113.010141 1740702600.0 `1740703124.010142 1740702600.0 `1740703134.010138 1740702600.0 `1740703144.010137 1740702600.0 `1740703154.010138 1740702600.0 `1740703183.010133 1740702600.0 `1740703193.010132 1740702600.0 `1740703204.010149 1740702600.0 `1740703233.009262 1740702600.0 `1740703243.010146 1740702600.0 `1740703253.010138 1740702600.0 `1740703264.010154 1740702600.0 `1740703274.010137 1740702600.0 `1740703294.010135 1740702600.0 `1740703313.010136 1740702600.0 `1740703323.010138 1740702600.0 `1740703334.010137 1740702600.0 `1740703344.010136 1740702600.0 `1740703354.010142 1740702600.0 `1740703364.010137 1740702600.0 `1740703404.010135 1740702600.0 `1740703414.010135 1740702600.0 `1740703424.010141 1740702600.0 `1740703434.010139 1740702600.0 `1740703453.010142 1740702600.0 `1740703463.010137 1740702600.0 `1740703473.010139 1740702600.0 `1740703484.01014 1740702600.0 `1740703494.01014 1740702600.0 `1740703504.010147 1740703500.0 `1740703513.009125 1740703500.0 `1740703523.010142 1740703500.0 `1740703663.009133 1740703500.0 `1740703673.010137 1740703500.0 `1740703683.010154 1740703500.0 `1740703694.010142 1740703500.0 `1740703704.010135 1740703500.0 `1740703714.010141 1740703500.0 `1740703733.009127 1740703500.0 `1740703743.010135 1740703500.0 `1740703753.010145 1740703500.0 `1740703764.010137 1740703500.0 `1740703774.010138 1740703500.0 `1740703784.010139 1740703500.0 `1740703794.010136 1740703500.0 `1740703803.009133 1740703500.0 `1740703813.010164 1740703500.0 `1740703823.010135 1740703500.0 `1740703854.010139 1740703500.0 `1740703864.010148 1740703500.0 `1740703873.009125 1740703500.0 `1740703883.01014 1740703500.0 `1740703904.010143 1740703500.0 `1740703924.010141 1740703500.0 `1740703934.010136 1740703500.0 `1740703943.009124 1740703500.0 `1740703963.010143 1740703500.0 `1740703984.010136 1740703500.0 `1740703994.010134 1740703500.0 `1740704004.010135 1740703500.0 `1740704023.009134 1740703500.0 `1740704043.010149 1740703500.0 `1740704054.010139 1740703500.0 `1740704064.010135 1740703500.0 `1740704074.010142 1740703500.0 `1740704093.009131 1740703500.0 `1740704103.010147 1740703500.0 `1740704113.010142 1740703500.0 `1740704124.010142 1740703500.0 `1740704134.010136 1740703500.0 `1740704144.010138 1740703500.0 `1740704154.010138 1740703500.0 `1740704163.009134 1740703500.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, 260, 261, 262, 263, 264, 265, 266, 267]] forced_hashtag: JRM force hashtag to JRM elapsed_time : SPLIT_TIME 0.013763189315795898 ***** 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': '28022025', 'map_nb_amount': {0: 7, 1: 61, 2: 3, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 889.9999709129333, 'nb_balles_papier': 0.0007100000000000012, 'begin_time_port': 'image_28022025_00_00_04_010164m0.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.0007100000000000012 We reject this portfolio because of the condition_save_data : 2025-02-28 00:00:04.010164 result_one_balle_Type_JRM:{'day': '28022025', 'map_nb_amount': {0: 7, 1: 61, 2: 0, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 879.9999949932098, 'nb_balles_papier': 0.0006800000000000011, 'begin_time_port': 'image_28022025_00_15_04_010141m0.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.0006800000000000011 We reject this portfolio because of the condition_save_data : 2025-02-28 00:15:04.010141 ERROR missing amount info result_one_balle_Type_JRM:{'day': '28022025', 'map_nb_amount': {0: 4, 1: 35, 2: 0, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 489.99997091293335, 'nb_balles_papier': 0.00039000000000000037, 'begin_time_port': 'image_28022025_00_30_04_010164m0.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.00039000000000000037 We reject this portfolio because of the condition_save_data : 2025-02-28 00:30:04.010164 ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info 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': '28022025', 'map_nb_amount': {0: 2, 1: 17, 2: 4, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 870.0000009536743, 'nb_balles_papier': 0.00023, 'begin_time_port': 'image_28022025_01_30_24_010139m0.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.00023 ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info 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': '28022025', 'map_nb_amount': {0: 2, 1: 14, 2: 0, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 658.9989869594574, 'nb_balles_papier': 0.00016, 'begin_time_port': 'image_28022025_01_45_04_10147.jpg'} Production hashtag (incorrect ponderation at 20-10-18) : 0.00016 We have rejected 3 photos because of the batch_size condition ! NUMBER BATCH list_of_portfolios_to_create : 2 Still a lot to verify ! We need to add photos : {1340030917, 1340030982, 1340030890, 1340030891, 1340030927, 1340031055, 1340030897, 1340031058} Still a lot to verify ! Qualite : 0.10364050651387023 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`=20901979 AND mptpi.`type`=3726 To do Qualite : 0.10770843000465166 Since we have set only the same portfolio in list_same_port_ids, it means the datou_current is finished and we need to re-insert it with the same id to finish the job (if we added new photos to the portfolio) We may have found the correct datou result for the same portfolio, but we will rerun it, since the portfolio may have been updated ! This function is not protected ! # 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`=20902324 AND mptpi.`type`=3726 To do elapsed_time : count_nb_balles_and_create_portfolio 0.4139416217803955 # DISPLAY ALL COLLECTED DATA : {'28022025': {'nb_upload': 268, 'nb_taggue_class': 217, 'nb_taggue_densite': 217}} Inside saveOutput : final : True verbose : 0 saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1340031058, 1340031055, 1340030982, 1340030927, 1340030917, 1340030897, 1340030891, 1340030890, 1340030497, 1340030397, 1340030393, 1340030390, 1340030387, 1340030337, 1340030333, 1340030323, 1340030315, 1340030283, 1340030279, 1340030276, 1340030273, 1340030250, 1340030246, 1340030242, 1340030231, 1340030131, 1340030127, 1340030122, 1340030118, 1340029857, 1340029844, 1340029765, 1340029689, 1340029597, 1340029523, 1340029484, 1340029480, 1340029477, 1340029474, 1340029471, 1340029434, 1340029432, 1340029189, 1340029187, 1340029184, 1340029088, 1340029083, 1340029079, 1340029076, 1340029073, 1340028888, 1340028884, 1340028881, 1340028877, 1340028858, 1340028854, 1340028848, 1340028831, 1340028827, 1340028784, 1340028769, 1340028619, 1340028453, 1340028410, 1340028407, 1340028402, 1340028391, 1340028056, 1340028049, 1340028046, 1340028043, 1340027516, 1340027274, 1340027143, 1340027138, 1340027134, 1340027129, 1340026600, 1340026597, 1340026593, 1340026514, 1340026474, 1340026457, 1340026453, 1340026236, 1340026118, 1340026115, 1340026025, 1340025802, 1340024058, 1340018460, 1340018407, 1340018403, 1340018400, 1340018374, 1340018371, 1340018367, 1340018363, 1340018360, 1340018357] Looping around the photos to save general results len do output : 1 /20899997Didn'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, '2621648') ('4876', '20899997', '1340031058', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340031055', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340030982', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340030927', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340030917', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340030897', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340030891', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340030890', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340030497', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340030397', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340030393', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340030390', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340030387', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340030337', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340030333', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340030323', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340030315', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340030283', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340030279', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340030276', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340030273', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340030250', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340030246', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340030242', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340030231', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340030131', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340030127', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340030122', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340030118', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340029857', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340029844', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340029765', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340029689', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340029597', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340029523', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340029484', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340029480', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340029477', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340029474', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340029471', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340029434', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340029432', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340029189', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340029187', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340029184', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340029088', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340029083', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340029079', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340029076', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340029073', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340028888', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340028884', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340028881', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340028877', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340028858', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340028854', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340028848', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340028831', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340028827', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340028784', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340028769', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340028619', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340028453', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340028410', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340028407', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340028402', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340028391', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340028056', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340028049', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340028046', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340028043', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340027516', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340027274', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340027143', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340027138', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340027134', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340027129', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340026600', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340026597', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340026593', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340026514', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340026474', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340026457', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340026453', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340026236', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340026118', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340026115', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340026025', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340025802', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340024058', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340018460', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340018407', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340018403', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340018400', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340018374', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340018371', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340018367', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340018363', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340018360', None, None, None, None, None, '2621648') ('4876', None, None, None, None, None, None, None, '2621648') ('4876', '20899997', '1340018357', None, None, None, None, None, '2621648') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 101 time used for this insertion : 0.03885483741760254 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.5928161144256592 time spend to save output : 0.039563655853271484 total time spend for step 1 : 0.6323797702789307 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.15user 0.56system 0:03.17elapsed 54%CPU (0avgtext+0avgdata 102704maxresident)k 0inputs+80outputs (12major+48860minor)pagefaults 0swaps