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 : 3097412 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 : ['2622157'] with mtr_portfolio_ids : ['20899997'] and first list_photo_ids : [] new path : /proc/3097412/ 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.07967519760131836 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 05:28: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', 91), ('02', 259), ('03', 272), ('04', 42), ('05', 86)) ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {1: 902} 28022025 20899997 Nombre de photos uploadées : 256 / 23040 (1%) 28022025 20899997 Nombre de photos taguées (types de déchets): 902 / 256 (352%) 28022025 20899997 Nombre de photos taguées (volume) : 902 / 256 (352%) elapsed_time : load_data_split_time_score 3.337860107421875e-06 elapsed_time : order_list_meta_photo_and_scores 0.0003466606140136719 ?????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.01265406608581543 elapsed_time : insert_dashboard_record_day_entry 0.023897171020507812 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 elapsed_time : list_photo_by_hashtags 0.015662431716918945 photos_removed : len 0 elapsed_time : load_duplicate_info 0.012491941452026367 ***** BEGIN SPLIT TIME ***** True 1740700800.0 `1740709673.009132 1740708900.0 `1740709683.010152 1740708900.0 `1740709693.010143 1740708900.0 `1740709703.010137 1740708900.0 `1740709713.010133 1740708900.0 `1740709744.010147 1740708900.0 `1740709753.009124 1740708900.0 `1740709944.010136 1740709800.0 `1740709973.010135 1740709800.0 `1740709983.01015 1740709800.0 `1740709993.010138 1740709800.0 `1740710003.010136 1740709800.0 `1740710014.010142 1740709800.0 `1740710023.009445 1740709800.0 `1740710033.010136 1740709800.0 `1740710043.010161 1740709800.0 `1740710064.010134 1740709800.0 `1740710074.010137 1740709800.0 `1740710083.009128 1740709800.0 `1740710093.010139 1740709800.0 `1740710103.010163 1740709800.0 `1740710134.010137 1740709800.0 `1740710303.009124 1740709800.0 `1740710313.010136 1740709800.0 `1740710323.010138 1740709800.0 `1740710333.01014 1740709800.0 `1740710343.010135 1740709800.0 `1740710354.010135 1740709800.0 `1740710364.010134 1740709800.0 `1740710373.009131 1740709800.0 `1740710383.010142 1740709800.0 `1740710393.010137 1740709800.0 `1740710403.010152 1740709800.0 `1740710413.01014 1740709800.0 `1740710443.009129 1740709800.0 `1740710453.010136 1740709800.0 `1740710463.010155 1740709800.0 `1740710473.01014 1740709800.0 `1740710483.010143 1740709800.0 `1740710493.010143 1740709800.0 `1740710504.010147 1740709800.0 `1740710523.010146 1740709800.0 `1740710533.010138 1740709800.0 `1740710543.010134 1740709800.0 `1740710553.010171 1740709800.0 `1740710563.010134 1740709800.0 `1740710574.010134 1740709800.0 `1740710603.010133 1740709800.0 `1740710613.010133 1740709800.0 `1740710623.010134 1740709800.0 `1740710633.010134 1740709800.0 `1740710644.010141 1740709800.0 `1740710663.009128 1740709800.0 `1740710683.010141 1740709800.0 `1740710693.010139 1740709800.0 `1740710703.010148 1740710700.0 `1740710724.010142 1740710700.0 `1740710733.009134 1740710700.0 `1740710763.010145 1740710700.0 `1740710773.010146 1740710700.0 `1740710784.010138 1740710700.0 `1740710794.010144 1740710700.0 `1740710803.00913 1740710700.0 `1740710813.010134 1740710700.0 `1740710823.01015 1740710700.0 `1740710833.010139 1740710700.0 `1740710843.010143 1740710700.0 `1740710854.010135 1740710700.0 `1740710864.010133 1740710700.0 `1740710883.010147 1740710700.0 `1740710893.010139 1740710700.0 `1740710903.010135 1740710700.0 `1740710913.010136 1740710700.0 `1740710923.010137 1740710700.0 `1740710934.010138 1740710700.0 `1740710943.009133 1740710700.0 `1740710953.01014 1740710700.0 `1740710963.010138 1740710700.0 `1740710973.010139 1740710700.0 `1740710993.010138 1740710700.0 `1740711004.010157 1740710700.0 `1740711033.010132 1740710700.0 `1740711043.010135 1740710700.0 `1740711053.010137 1740710700.0 `1740711063.010161 1740710700.0 `1740711074.010138 1740710700.0 `1740711083.009151 1740710700.0 `1740711093.010136 1740710700.0 `1740711103.010138 1740710700.0 `1740711113.010137 1740710700.0 `1740711123.010138 1740710700.0 `1740711133.010144 1740710700.0 `1740711144.010137 1740710700.0 `1740711154.010138 1740710700.0 `1740711193.010138 1740710700.0 `1740711203.010138 1740710700.0 `1740711214.010149 1740710700.0 `1740711224.01015 1740710700.0 `1740711233.00913 1740710700.0 `1740711243.010138 1740710700.0 `1740711253.010143 1740710700.0 `1740711263.010139 1740710700.0 `1740711273.010137 1740710700.0 `1740711284.01014 1740710700.0 `1740711294.010139 1740710700.0 `1740711303.00914 1740710700.0 `1740711333.010137 1740710700.0 `1740711343.010138 1740710700.0 `1740711354.01014 1740710700.0 `1740711364.01015 1740710700.0 `1740711373.009154 1740710700.0 `1740711383.010139 1740710700.0 `1740711393.010135 1740710700.0 `1740711403.010138 1740710700.0 `1740711413.010135 1740710700.0 `1740711424.01015 1740710700.0 `1740711434.010139 1740710700.0 `1740711443.00913 1740710700.0 `1740711453.010135 1740710700.0 `1740711463.010138 1740710700.0 `1740711473.010137 1740710700.0 `1740711513.009123 1740710700.0 `1740711533.010133 1740710700.0 `1740711553.010018 1740710700.0 `1740711563.010145 1740710700.0 `1740711573.010136 1740710700.0 `1740711583.010137 1740710700.0 `1740711593.01014 1740710700.0 `1740711603.010137 1740711600.0 `1740711624.010139 1740711600.0 `1740711643.010137 1740711600.0 `1740711673.010139 1740711600.0 `1740711684.010137 1740711600.0 `1740711694.010146 1740711600.0 `1740711703.009134 1740711600.0 `1740711713.010137 1740711600.0 `1740711733.010139 1740711600.0 `1740711754.010136 1740711600.0 `1740711764.010138 1740711600.0 `1740711773.009128 1740711600.0 `1740711793.010142 1740711600.0 `1740711803.010144 1740711600.0 `1740711843.009126 1740711600.0 `1740711853.010143 1740711600.0 `1740711863.010137 1740711600.0 `1740711873.010145 1740711600.0 `1740711883.010143 1740711600.0 `1740711904.010158 1740711600.0 `1740711923.010135 1740711600.0 `1740711933.010135 1740711600.0 `1740711943.010139 1740711600.0 `1740711953.010137 1740711600.0 `1740711964.01015 1740711600.0 `1740711974.010137 1740711600.0 `1740711983.009124 1740711600.0 `1740711993.010135 1740711600.0 `1740712003.010134 1740711600.0 `1740712033.010135 1740711600.0 `1740712044.010133 1740711600.0 `1740712063.009128 1740711600.0 `1740712083.010156 1740711600.0 `1740712093.010139 1740711600.0 `1740712114.010138 1740711600.0 `1740712124.010142 1740711600.0 `1740712163.010141 1740711600.0 `1740712173.010134 1740711600.0 `1740712223.010135 1740711600.0 `1740712544.010141 1740712500.0 `1740713094.010136 1740712500.0 `1740713153.010136 1740712500.0 `1740715264.010157 1740715200.0 `1740715344.01014 1740715200.0 `1740715355.010143 1740715200.0 `1740715414.010137 1740715200.0 `1740715424.010135 1740715200.0 `1740715484.010138 1740715200.0 `1740715494.010135 1740715200.0 `1740715524.010145 1740715200.0 `1740715544.010142 1740715200.0 `1740715624.010143 1740715200.0 `1740715645.010137 1740715200.0 `1740715654.009131 1740715200.0 `1740715664.010138 1740715200.0 `1740715674.010136 1740715200.0 `1740715684.010163 1740715200.0 `1740715694.010138 1740715200.0 `1740715704.010138 1740715200.0 `1740715724.010032 1740715200.0 `1740715744.01016 1740715200.0 `1740715754.010133 1740715200.0 `1740715814.010135 1740715200.0 `1740715845.010134 1740715200.0 `1740715864.010152 1740715200.0 `1740715894.010134 1740715200.0 `1740715904.010136 1740715200.0 `1740715985.010156 1740715200.0 `1740715994.009127 1740715200.0 `1740716034.010139 1740715200.0 `1740716055.010139 1740715200.0 `1740716074.010143 1740715200.0 `1740716084.010135 1740715200.0 `1740716094.010135 1740715200.0 `1740716104.010138 1740716100.0 `1740716114.010136 1740716100.0 `1740716125.010134 1740716100.0 `1740716164.010152 1740716100.0 `1740716174.010146 1740716100.0 `1740716184.010135 1740716100.0 `1740716195.010143 1740716100.0 `1740716205.010138 1740716100.0 `1740716214.00913 1740716100.0 `1740716224.010152 1740716100.0 `1740716234.01014 1740716100.0 `1740716244.010136 1740716100.0 `1740716254.010137 1740716100.0 `1740716264.010137 1740716100.0 `1740716284.009123 1740716100.0 `1740716304.010132 1740716100.0 `1740716314.010133 1740716100.0 `1740716324.010134 1740716100.0 `1740716334.010137 1740716100.0 `1740716345.010153 1740716100.0 `1740716355.010137 1740716100.0 `1740716364.009124 1740716100.0 `1740716374.010144 1740716100.0 `1740716384.010134 1740716100.0 `1740716415.010136 1740716100.0 `1740716425.010133 1740716100.0 `1740716434.009124 1740716100.0 `1740716444.010137 1740716100.0 `1740716454.010139 1740716100.0 `1740716464.010144 1740716100.0 `1740716474.010136 1740716100.0 `1740716485.010135 1740716100.0 `1740716495.010135 1740716100.0 `1740716504.009127 1740716100.0 `1740716534.010139 1740716100.0 `1740716544.010132 1740716100.0 `1740716554.010135 1740716100.0 `1740716565.010139 1740716100.0 `1740716574.009131 1740716100.0 `1740716584.010172 1740716100.0 `1740716594.010137 1740716100.0 `1740716604.010134 1740716100.0 `1740716614.010135 1740716100.0 `1740716635.010137 1740716100.0 `1740716644.009131 1740716100.0 `1740716654.010137 1740716100.0 `1740716694.010133 1740716100.0 `1740716705.010159 1740716100.0 `1740716715.010137 1740716100.0 `1740716724.009124 1740716100.0 `1740716744.010137 1740716100.0 `1740716754.010138 1740716100.0 `1740716764.01014 1740716100.0 `1740716775.010137 1740716100.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]] forced_hashtag: JRM force hashtag to JRM elapsed_time : SPLIT_TIME 0.014967203140258789 ***** 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: 9, 1: 38, 2: 1, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 749.0000030994415, 'nb_balles_papier': 0.0004800000000000006, 'begin_time_port': 'image_28022025_03_32_24_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) : 0.0004800000000000006 We reject this portfolio because of the condition_save_data : 2025-02-28 03:32:24.010136 result_one_balle_Type_JRM:{'day': '28022025', 'map_nb_amount': {0: 8, 1: 63, 2: 2, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 889.9999918937683, 'nb_balles_papier': 0.0007300000000000013, 'begin_time_port': 'image_28022025_03_45_03_010148m0.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-02-28 03:45:03.010148 ERROR missing amount info result_one_balle_Type_JRM:{'day': '28022025', 'map_nb_amount': {0: 3, 1: 32, 2: 3, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 619.9999978542328, 'nb_balles_papier': 0.00038000000000000035, 'begin_time_port': 'image_28022025_04_00_03_010137m0.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.00038000000000000035 We reject this portfolio because of the condition_save_data : 2025-02-28 04:00:03.010137 ERROR missing amount info result_one_balle_Type_JRM:{'day': '28022025', 'map_nb_amount': {0: 1, 1: 28, 2: 2, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 829.9999778270721, 'nb_balles_papier': 0.00031000000000000016, 'begin_time_port': 'image_28022025_05_01_04_10157.jpg'} Production hashtag (incorrect ponderation at 20-10-18) : 0.00031000000000000016 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: 38, 2: 1, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 670.9999990463257, 'nb_balles_papier': 0.0004100000000000004, 'begin_time_port': 'image_28022025_05_15_04_010138m0.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.0004100000000000004 We have rejected 10 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 : {1340069569, 1340069571, 1340069603, 1340069605, 1340069575, 1340069577, 1340069610, 1340069567} Still a lot to verify ! Qualite : 0.11103720881979344 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`=20909166 AND mptpi.`type`=3726 To do Qualite : 0.09228954258795637 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`=20909596 AND mptpi.`type`=3726 To do elapsed_time : count_nb_balles_and_create_portfolio 0.4568638801574707 # DISPLAY ALL COLLECTED DATA : {'28022025': {'nb_upload': 256, 'nb_taggue_class': 902, 'nb_taggue_densite': 902}} Inside saveOutput : final : True verbose : 0 saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1340069610, 1340069605, 1340069603, 1340069577, 1340069575, 1340069571, 1340069569, 1340069567, 1340069528, 1340069526, 1340069524, 1340069506, 1340069503, 1340069499, 1340069498, 1340069495, 1340069467, 1340069458, 1340069452, 1340069449, 1340069446, 1340069303, 1340069279, 1340069202, 1340069125, 1340069123, 1340069099, 1340069090, 1340069086, 1340069084, 1340069081, 1340069040, 1340069035, 1340069012, 1340068969, 1340068967, 1340068798, 1340068723, 1340068527, 1340068417, 1340068353, 1340068092, 1340068090, 1340068087, 1340068086, 1340068085, 1340068054, 1340068047, 1340068044, 1340068042, 1340068041, 1340068040, 1340068015, 1340068014, 1340068013, 1340067950, 1340067948, 1340067947, 1340067944, 1340067908, 1340067907, 1340067906, 1340067851, 1340067850, 1340067831, 1340067556, 1340067555, 1340067531, 1340067521, 1340067412, 1340067409, 1340067408, 1340067407, 1340067386, 1340067383, 1340067380, 1340067379, 1340067378, 1340067210, 1340067209, 1340066898, 1340066897, 1340066067, 1340066066, 1340066032, 1340066031, 1340065828, 1340060872, 1340060850, 1340058911, 1340058708, 1340058674, 1340058661, 1340058605, 1340058588, 1340058579, 1340058526, 1340058181, 1340058179, 1340058177] 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, '2622157') ('4876', '20899997', '1340069610', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340069605', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340069603', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340069577', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340069575', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340069571', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340069569', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340069567', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340069528', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340069526', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340069524', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340069506', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340069503', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340069499', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340069498', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340069495', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340069467', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340069458', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340069452', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340069449', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340069446', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340069303', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340069279', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340069202', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340069125', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340069123', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340069099', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340069090', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340069086', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340069084', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340069081', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340069040', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340069035', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340069012', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340068969', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340068967', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340068798', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340068723', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340068527', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340068417', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340068353', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340068092', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340068090', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340068087', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340068086', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340068085', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340068054', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340068047', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340068044', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340068042', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340068041', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340068040', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340068015', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340068014', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340068013', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340067950', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340067948', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340067947', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340067944', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340067908', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340067907', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340067906', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340067851', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340067850', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340067831', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340067556', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340067555', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340067531', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340067521', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340067412', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340067409', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340067408', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340067407', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340067386', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340067383', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340067380', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340067379', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340067378', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340067210', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340067209', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340066898', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340066897', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340066067', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340066066', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340066032', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340066031', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340065828', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340060872', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340060850', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340058911', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340058708', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340058674', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340058661', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340058605', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340058588', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340058579', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340058526', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340058181', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340058179', None, None, None, None, None, '2622157') ('4876', None, None, None, None, None, None, None, '2622157') ('4876', '20899997', '1340058177', None, None, None, None, None, '2622157') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 101 time used for this insertion : 0.04436492919921875 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.6780309677124023 time spend to save output : 0.04526877403259277 total time spend for step 1 : 0.7232997417449951 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.44user 0.49system 0:04.28elapsed 45%CPU (0avgtext+0avgdata 101632maxresident)k 0inputs+88outputs (1major+48983minor)pagefaults 0swaps