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 : 3018348 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 : ['2585334'] with mtr_portfolio_ids : ['20528746'] and first list_photo_ids : [] new path : /proc/3018348/ 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.10761666297912598 About to test input to load Calling datou_exec Inside datou_exec : verbose : 0 number of steps : 1 step1:split_time_score Fri Feb 14 05:32:29 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', 265), ('01', 163), ('02', 145), ('03', 248), ('04', 52), ('05', 105)) ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {1: 872} 14022025 20528746 Nombre de photos uploadées : 281 / 23040 (1%) 14022025 20528746 Nombre de photos taguées (types de déchets): 872 / 281 (310%) 14022025 20528746 Nombre de photos taguées (volume) : 872 / 281 (310%) elapsed_time : load_data_split_time_score 2.1457672119140625e-06 elapsed_time : order_list_meta_photo_and_scores 0.00034308433532714844 ????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.012920618057250977 elapsed_time : insert_dashboard_record_day_entry 0.03270721435546875 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 elapsed_time : list_photo_by_hashtags 0.011245489120483398 photos_removed : len 0 elapsed_time : load_duplicate_info 0.01156473159790039 ***** BEGIN SPLIT TIME ***** True 1739491200.0 `1739500314.009126 1739500200.0 `1739500324.010143 1739500200.0 `1739500334.010139 1739500200.0 `1739500344.010142 1739500200.0 `1739500354.01014 1739500200.0 `1739500364.010163 1739500200.0 `1739500375.010155 1739500200.0 `1739500394.010148 1739500200.0 `1739500404.010138 1739500200.0 `1739500414.010135 1739500200.0 `1739500424.010137 1739500200.0 `1739500445.010157 1739500200.0 `1739500454.009125 1739500200.0 `1739500504.010151 1739500200.0 `1739500515.010145 1739500200.0 `1739500524.00913 1739500200.0 `1739500544.010151 1739500200.0 `1739500564.010254 1739500200.0 `1739500584.009124 1739500200.0 `1739500594.010146 1739500200.0 `1739500604.010146 1739500200.0 `1739500614.010138 1739500200.0 `1739500624.010153 1739500200.0 `1739500634.010135 1739500200.0 `1739500644.010136 1739500200.0 `1739500654.009124 1739500200.0 `1739500664.010133 1739500200.0 `1739500694.010137 1739500200.0 `1739500704.010134 1739500200.0 `1739500714.010139 1739500200.0 `1739500724.009134 1739500200.0 `1739500734.01014 1739500200.0 `1739500744.010162 1739500200.0 `1739500754.010144 1739500200.0 `1739500774.010141 1739500200.0 `1739500794.009134 1739500200.0 `1739500804.01015 1739500200.0 `1739500814.010143 1739500200.0 `1739500834.010154 1739500200.0 `1739500855.01015 1739500200.0 `1739500864.009158 1739500200.0 `1739500874.010141 1739500200.0 `1739500884.010152 1739500200.0 `1739500894.010149 1739500200.0 `1739500904.010152 1739500200.0 `1739500944.010147 1739500200.0 `1739500954.010149 1739500200.0 `1739500964.010139 1739500200.0 `1739500974.010138 1739500200.0 `1739500984.01016 1739500200.0 `1739500994.009124 1739500200.0 `1739501004.010153 1739500200.0 `1739501014.010151 1739500200.0 `1739501024.010148 1739500200.0 `1739501034.010137 1739500200.0 `1739501054.01014 1739500200.0 `1739501064.009125 1739500200.0 `1739501074.010151 1739500200.0 `1739501094.010141 1739500200.0 `1739501104.010154 1739501100.0 `1739501124.010135 1739501100.0 `1739501134.009131 1739501100.0 `1739501164.010136 1739501100.0 `1739501174.010134 1739501100.0 `1739501184.010138 1739501100.0 `1739501194.010147 1739501100.0 `1739501204.009131 1739501100.0 `1739501214.010137 1739501100.0 `1739501224.010142 1739501100.0 `1739501234.01014 1739501100.0 `1739501244.010135 1739501100.0 `1739501254.010134 1739501100.0 `1739501294.01014 1739501100.0 `1739501304.010134 1739501100.0 `1739501324.010142 1739501100.0 `1739501334.010138 1739501100.0 `1739501345.010157 1739501100.0 `1739501354.009125 1739501100.0 `1739501364.010154 1739501100.0 `1739501374.010152 1739501100.0 `1739501384.010144 1739501100.0 `1739501394.010135 1739501100.0 `1739501404.010161 1739501100.0 `1739501415.010134 1739501100.0 `1739501424.009124 1739501100.0 `1739501434.010148 1739501100.0 `1739501454.010137 1739501100.0 `1739501464.010166 1739501100.0 `1739501514.010139 1739501100.0 `1739501544.010135 1739501100.0 `1739501564.00913 1739501100.0 `1739501574.010149 1739501100.0 `1739501584.010149 1739501100.0 `1739501594.01014 1739501100.0 `1739501604.010135 1739501100.0 `1739501614.010143 1739501100.0 `1739501624.010146 1739501100.0 `1739501644.010148 1739501100.0 `1739501654.01014 1739501100.0 `1739501664.010136 1739501100.0 `1739501674.010135 1739501100.0 `1739501684.010137 1739501100.0 `1739501694.010143 1739501100.0 `1739501714.010141 1739501100.0 `1739501724.010136 1739501100.0 `1739501764.010154 1739501100.0 `1739501784.010142 1739501100.0 `1739501794.01016 1739501100.0 `1739501804.010156 1739501100.0 `1739501814.01014 1739501100.0 `1739501824.01016 1739501100.0 `1739501834.010136 1739501100.0 `1739501844.009125 1739501100.0 `1739501854.010135 1739501100.0 `1739501864.010137 1739501100.0 `1739501874.010147 1739501100.0 `1739501894.010137 1739501100.0 `1739501904.01014 1739501100.0 `1739501914.009125 1739501100.0 `1739501934.010141 1739501100.0 `1739501955.010987 1739501100.0 `1739501974.010134 1739501100.0 `1739501984.010135 1739501100.0 `1739501994.010139 1739501100.0 `1739502014.01014 1739502000.0 `1739502025.010138 1739502000.0 `1739502044.010136 1739502000.0 `1739502054.010137 1739502000.0 `1739502064.010147 1739502000.0 `1739502084.010135 1739502000.0 `1739502095.010149 1739502000.0 `1739502104.009135 1739502000.0 `1739502124.010192 1739502000.0 `1739502134.010153 1739502000.0 `1739502174.010152 1739502000.0 `1739502194.010133 1739502000.0 `1739502204.010133 1739502000.0 `1739502214.010148 1739502000.0 `1739502224.010148 1739502000.0 `1739502234.009132 1739502000.0 `1739502254.01014 1739502000.0 `1739502264.010143 1739502000.0 `1739502274.010137 1739502000.0 `1739502284.010137 1739502000.0 `1739502304.009135 1739502000.0 `1739502314.010139 1739502000.0 `1739502324.010147 1739502000.0 `1739502334.010142 1739502000.0 `1739502364.01015 1739502000.0 `1739502374.009125 1739502000.0 `1739502384.010135 1739502000.0 `1739502394.010144 1739502000.0 `1739502404.01014 1739502000.0 `1739502424.01015 1739502000.0 `1739502434.010136 1739502000.0 `1739502445.010135 1739502000.0 `1739502454.009126 1739502000.0 `1739502464.010138 1739502000.0 `1739502474.010144 1739502000.0 `1739502484.010147 1739502000.0 `1739502494.010137 1739502000.0 `1739502504.010141 1739502000.0 `1739502515.010136 1739502000.0 `1739502534.010144 1739502000.0 `1739502544.010155 1739502000.0 `1739502554.010135 1739502000.0 `1739502594.009128 1739502000.0 `1739502604.010155 1739502000.0 `1739502614.010141 1739502000.0 `1739502624.010141 1739502000.0 `1739502634.01015 1739502000.0 `1739502644.010159 1739502000.0 `1739502655.01014 1739502000.0 `1739502684.01015 1739502000.0 `1739502944.010145 1739502900.0 `1739503494.010145 1739502900.0 `1739505664.010141 1739505600.0 `1739505713.010139 1739505600.0 `1739505724.010179 1739505600.0 `1739506043.010146 1739505600.0 `1739506074.010138 1739505600.0 `1739506093.009134 1739505600.0 `1739506113.010149 1739505600.0 `1739506123.010143 1739505600.0 `1739506134.010143 1739505600.0 `1739506144.010162 1739505600.0 `1739506154.010141 1739505600.0 `1739506173.010149 1739505600.0 `1739506193.01014 1739505600.0 `1739506204.010177 1739505600.0 `1739506214.010145 1739505600.0 `1739506224.010142 1739505600.0 `1739506233.009129 1739505600.0 `1739506243.01015 1739505600.0 `1739506253.010138 1739505600.0 `1739506284.010134 1739505600.0 `1739506294.010136 1739505600.0 `1739506303.009129 1739505600.0 `1739506323.010165 1739505600.0 `1739506333.01015 1739505600.0 `1739506344.010138 1739505600.0 `1739506354.010146 1739505600.0 `1739506364.010145 1739505600.0 `1739506373.009129 1739505600.0 `1739506383.010171 1739505600.0 `1739506393.010144 1739505600.0 `1739506414.010137 1739505600.0 `1739506424.010139 1739505600.0 `1739506434.01014 1739505600.0 `1739506453.010141 1739505600.0 `1739506463.010138 1739505600.0 `1739506494.010142 1739505600.0 `1739506504.01018 1739506500.0 `1739506513.009131 1739506500.0 `1739506523.010139 1739506500.0 `1739506533.010142 1739506500.0 `1739506543.010148 1739506500.0 `1739506554.010143 1739506500.0 `1739506574.010137 1739506500.0 `1739506583.009125 1739506500.0 `1739506593.010137 1739506500.0 `1739506603.010137 1739506500.0 `1739506613.010144 1739506500.0 `1739506624.01015 1739506500.0 `1739506663.010135 1739506500.0 `1739506673.010141 1739506500.0 `1739506683.010153 1739506500.0 `1739506694.010141 1739506500.0 `1739506704.010136 1739506500.0 `1739506714.01014 1739506500.0 `1739506723.009135 1739506500.0 `1739506733.010136 1739506500.0 `1739506743.010156 1739506500.0 `1739506753.010144 1739506500.0 `1739506764.010144 1739506500.0 `1739506774.010135 1739506500.0 `1739506793.009126 1739506500.0 `1739506803.010144 1739506500.0 `1739506813.010143 1739506500.0 `1739506914.010142 1739506500.0 `1739506933.009133 1739506500.0 `1739506943.010152 1739506500.0 `1739506953.010148 1739506500.0 `1739506964.010146 1739506500.0 `1739506974.010139 1739506500.0 `1739506984.010156 1739506500.0 `1739506994.010136 1739506500.0 `1739507003.009124 1739506500.0 `1739507013.010135 1739506500.0 `1739507023.010151 1739506500.0 `1739507034.010147 1739506500.0 `1739507044.010189 1739506500.0 `1739507073.010132 1739506500.0 `1739507083.010136 1739506500.0 `1739507104.010162 1739506500.0 `1739507114.010139 1739506500.0 `1739507124.010147 1739506500.0 `1739507133.009132 1739506500.0 `1739507143.010155 1739506500.0 `1739507153.010141 1739506500.0 `1739507174.010137 1739506500.0 `1739507184.010135 1739506500.0 `1739507194.010143 1739506500.0 `1739507204.010141 1739506500.0 `1739507213.009128 1739506500.0 `1739507223.010156 1739506500.0 `1739507233.010141 1739506500.0 `1739507264.010135 1739506500.0 `1739507274.010133 1739506500.0 `1739507283.009157 1739506500.0 `1739507303.010136 1739506500.0 `1739507314.010137 1739506500.0 `1739507324.01015 1739506500.0 `1739507334.01015 1739506500.0 `1739507343.009165 1739506500.0 `1739507363.010152 1739506500.0 `1739507373.010148 1739506500.0 `1739507384.010149 1739506500.0 `1739507394.01015 1739506500.0 `1739507413.009135 1739507400.0 `1739507423.010153 1739507400.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, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278], [279, 280]] forced_hashtag: JRM force hashtag to JRM elapsed_time : SPLIT_TIME 0.015271186828613281 ***** 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': '14022025', 'map_nb_amount': {0: 6, 1: 36, 2: 17, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 780.0010149478912, 'nb_balles_papier': 0.0005900000000000009, 'begin_time_port': 'image_14022025_03_31_54_009126m0.jpg 4e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'} Production hashtag (incorrect ponderation at 20-10-18) : 0.0005900000000000009 We reject this portfolio because of the condition_save_data : 2025-02-14 03:31:54.009126 result_one_balle_Type_JRM:{'day': '14022025', 'map_nb_amount': {0: 5, 1: 51, 2: 9, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 889.9999849796295, 'nb_balles_papier': 0.0006500000000000011, 'begin_time_port': 'image_14022025_03_45_04_010154m0.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.0006500000000000011 We reject this portfolio because of the condition_save_data : 2025-02-14 03:45:04.010154 ERROR missing amount info result_one_balle_Type_JRM:{'day': '14022025', 'map_nb_amount': {0: 13, 1: 30, 2: 6, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 670.0000100135803, 'nb_balles_papier': 0.0004900000000000006, 'begin_time_port': 'image_14022025_04_00_14_010140m0.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.0004900000000000006 We reject this portfolio because of the condition_save_data : 2025-02-14 04:00:14.010140 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': '14022025', 'map_nb_amount': {0: 5, 1: 16, 2: 5, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 830.0000011920929, 'nb_balles_papier': 0.00026000000000000003, 'begin_time_port': 'image_14022025_05_01_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.00026000000000000003 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': '14022025', 'map_nb_amount': {0: 3, 1: 29, 2: 13, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 889.999969959259, 'nb_balles_papier': 0.00045000000000000053, 'begin_time_port': 'image_14022025_05_15_04_010180m0.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.00045000000000000053 We have rejected 4 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 : {1337537964} Still a lot to verify ! Qualite : 0.03757988496041821 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`=20539501 AND mptpi.`type`=3726 To do Qualite : 0.0404647690116879 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`=20539751 AND mptpi.`type`=3726 To do elapsed_time : count_nb_balles_and_create_portfolio 2.7861342430114746 # DISPLAY ALL COLLECTED DATA : {'14022025': {'nb_upload': 281, 'nb_taggue_class': 872, 'nb_taggue_densite': 872}} Inside saveOutput : final : True verbose : 0 saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1337537964, 1337537962, 1337537960, 1337537867, 1337537849, 1337537845, 1337537843, 1337537837, 1337537481, 1337537456, 1337537451, 1337537439, 1337537425, 1337536932, 1337536894, 1337536893, 1337536892, 1337536871, 1337536868, 1337536867, 1337536866, 1337536865, 1337536838, 1337536836, 1337536834, 1337536833, 1337536832, 1337536831, 1337536803, 1337536783, 1337536780, 1337536710, 1337536706, 1337536701, 1337536698, 1337536697, 1337536692, 1337536663, 1337536661, 1337536660, 1337536659, 1337536658, 1337536371, 1337536270, 1337536269, 1337536002, 1337536000, 1337535999, 1337535998, 1337535917, 1337535292, 1337535289, 1337535288, 1337535287, 1337535286, 1337535285, 1337535252, 1337535246, 1337535234, 1337534974, 1337534913, 1337534864, 1337534852, 1337534851, 1337534710, 1337534708, 1337534706, 1337534696, 1337534667, 1337534589, 1337534329, 1337534327, 1337534326, 1337533948, 1337533889, 1337533816, 1337533744, 1337533677, 1337533226, 1337533224, 1337533223, 1337533222, 1337533221, 1337533220, 1337533201, 1337533200, 1337533199, 1337533186, 1337533182, 1337533180, 1337533177, 1337533175, 1337533171, 1337533131, 1337533126, 1337533117, 1337533112, 1337533086, 1337533084, 1337533082] Looping around the photos to save general results len do output : 1 /20528746Didn'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, '2585334') ('4876', '20528746', '1337537964', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337537962', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337537960', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337537867', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337537849', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337537845', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337537843', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337537837', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337537481', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337537456', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337537451', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337537439', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337537425', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337536932', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337536894', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337536893', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337536892', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337536871', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337536868', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337536867', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337536866', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337536865', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337536838', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337536836', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337536834', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337536833', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337536832', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337536831', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337536803', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337536783', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337536780', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337536710', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337536706', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337536701', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337536698', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337536697', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337536692', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337536663', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337536661', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337536660', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337536659', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337536658', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337536371', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337536270', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337536269', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337536002', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337536000', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337535999', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337535998', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337535917', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337535292', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337535289', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337535288', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337535287', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337535286', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337535285', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337535252', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337535246', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337535234', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337534974', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337534913', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337534864', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337534852', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337534851', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337534710', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337534708', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337534706', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337534696', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337534667', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337534589', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337534329', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337534327', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337534326', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337533948', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337533889', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337533816', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337533744', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337533677', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337533226', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337533224', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337533223', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337533222', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337533221', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337533220', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337533201', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337533200', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337533199', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337533186', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337533182', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337533180', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337533177', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337533175', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337533171', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337533131', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337533126', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337533117', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337533112', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337533086', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337533084', None, None, None, None, None, '2585334') ('4876', None, None, None, None, None, None, None, '2585334') ('4876', '20528746', '1337533082', None, None, None, None, None, '2585334') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 101 time used for this insertion : 0.04555225372314453 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.0403149127960205 time spend to save output : 0.04636669158935547 total time spend for step 1 : 3.086681604385376 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.17user 0.57system 0:06.91elapsed 25%CPU (0avgtext+0avgdata 103664maxresident)k 3680inputs+88outputs (8major+58891minor)pagefaults 0swaps