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 : 1317184 load datou : 4876 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) DONE and to test : checkNoCycle ! We are managing only one step so we do not consider checkConsistencyNbInputNbOutput ! We are managing only one step so we do not consider checkConsistencyTypeOutputInput ! Unexpected type for variable list_input_json ERROR or WARNING : can't parse json string Expecting value: line 1 column 1 (char 0) Tried to parse : None was removed should we ? donnée sous forme de texte was removed should we ? [ptf_id0,ptf_id1...] was removed should we ? load thcls load pdts Running datou job : batch_current TODO datou_current to load to do maybe to take outside batchDatouExec no input labels no input values updating current state to 1 we have a portfolio with more photos than limit : 1243>1000 please execute split_portfolio.py -i 21928783 -l 1000 size over we load limit photo not treated list_input_json: {} Current got : datou_id : 4876, datou_cur_ids : ['2713365'] with mtr_portfolio_ids : ['21928783'] and first list_photo_ids : [] new path : /proc/1317184/ 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.11578083038330078 About to test input to load Calling datou_exec Inside datou_exec : verbose : 0 number of steps : 1 step1:split_time_score Tue Apr 1 15: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', 14), ('01', 12), ('02', 20), ('03', 25), ('04', 8), ('05', 222), ('06', 246), ('07', 246), ('08', 249), ('09', 5), ('10', 5), ('11', 6), ('12', 3), ('13', 1), ('14', 108), ('15', 73)) ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {1: 1156} 01042025 21928783 Nombre de photos uploadées : 183 / 23040 (0%) 01042025 21928783 Nombre de photos taguées (types de déchets): 1156 / 183 (631%) 01042025 21928783 Nombre de photos taguées (volume) : 1156 / 183 (631%) elapsed_time : load_data_split_time_score 6.198883056640625e-06 elapsed_time : order_list_meta_photo_and_scores 0.0010149478912353516 ?????? elapsed_time : fill_and_build_computed_from_old_data 0.014512300491333008 elapsed_time : insert_dashboard_record_day_entry 0.024560213088989258 Creating list_photo_by_hashtags 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.012737274169921875 photos_removed : len 0 elapsed_time : load_duplicate_info 0.011226654052734375 ***** BEGIN SPLIT TIME ***** True 1743465600.0 `1743498994.009132 1743498900.0 `1743508384.010151 1743507900.0 `1743508874.009125 1743508800.0 `1743508884.010135 1743508800.0 `1743509534.010136 1743508800.0 `1743509564.010136 1743508800.0 `1743509574.010134 1743508800.0 `1743509604.010165 1743508800.0 `1743509614.010142 1743508800.0 `1743509624.01014 1743508800.0 `1743509644.010147 1743508800.0 `1743509655.010138 1743508800.0 `1743509664.009126 1743508800.0 `1743509674.010142 1743508800.0 `1743509684.010141 1743508800.0 `1743509694.010139 1743508800.0 `1743509704.010151 1743509700.0 `1743509714.010135 1743509700.0 `1743509744.010134 1743509700.0 `1743509754.010134 1743509700.0 `1743509764.010162 1743509700.0 `1743509774.010135 1743509700.0 `1743509794.010134 1743509700.0 `1743509805.010138 1743509700.0 `1743509814.009126 1743509700.0 `1743509824.010151 1743509700.0 `1743509834.010136 1743509700.0 `1743509844.010136 1743509700.0 `1743509864.010137 1743509700.0 `1743509884.009132 1743509700.0 `1743509894.010135 1743509700.0 `1743509904.010133 1743509700.0 `1743509934.010136 1743509700.0 `1743509945.010184 1743509700.0 `1743509954.009124 1743509700.0 `1743509964.010136 1743509700.0 `1743509974.010136 1743509700.0 `1743509984.010136 1743509700.0 `1743509994.010137 1743509700.0 `1743510004.010148 1743509700.0 `1743510015.010138 1743509700.0 `1743510024.009122 1743509700.0 `1743510034.010135 1743509700.0 `1743510044.010133 1743509700.0 `1743510054.010135 1743509700.0 `1743510064.010158 1743509700.0 `1743510104.009126 1743509700.0 `1743510114.010136 1743509700.0 `1743510134.010135 1743509700.0 `1743510154.010146 1743509700.0 `1743510165.010136 1743509700.0 `1743510174.009125 1743509700.0 `1743510194.010136 1743509700.0 `1743510204.010133 1743509700.0 `1743510544.010157 1743509700.0 `1743510574.010135 1743509700.0 `1743510604.00914 1743510600.0 `1743510614.010137 1743510600.0 `1743510624.010135 1743510600.0 `1743510674.00913 1743510600.0 `1743510684.010135 1743510600.0 `1743510704.010143 1743510600.0 `1743510714.010147 1743510600.0 `1743510735.010148 1743510600.0 `1743510754.010136 1743510600.0 `1743510764.010138 1743510600.0 `1743510774.010139 1743510600.0 `1743510794.010137 1743510600.0 `1743510805.010136 1743510600.0 `1743510814.009125 1743510600.0 `1743510824.010134 1743510600.0 `1743511144.010147 1743510600.0 `1743511154.010143 1743510600.0 `1743511574.010136 1743511500.0 `1743511584.010134 1743511500.0 `1743511595.010142 1743511500.0 `1743511604.009126 1743511500.0 `1743511614.010139 1743511500.0 `1743511634.010134 1743511500.0 `1743511644.010136 1743511500.0 `1743511654.010135 1743511500.0 `1743511664.010136 1743511500.0 `1743511675.010137 1743511500.0 `1743511684.009133 1743511500.0 `1743511694.010138 1743511500.0 `1743511704.010138 1743511500.0 `1743511764.010137 1743511500.0 `1743511774.010142 1743511500.0 `1743511784.010139 1743511500.0 `1743511794.010137 1743511500.0 `1743511834.010136 1743511500.0 `1743512035.010135 1743511500.0 `1743512044.009141 1743511500.0 `1743512054.010136 1743511500.0 `1743512064.010138 1743511500.0 `1743512074.010143 1743511500.0 `1743512084.01014 1743511500.0 `1743512094.010136 1743511500.0 `1743512105.010163 1743511500.0 `1743512114.009125 1743511500.0 `1743512124.010142 1743511500.0 `1743512134.010136 1743511500.0 `1743512144.010138 1743511500.0 `1743512154.010139 1743511500.0 `1743512194.010136 1743511500.0 `1743512204.010135 1743511500.0 `1743512224.01015 1743511500.0 `1743512245.010136 1743511500.0 `1743512254.009134 1743511500.0 `1743512264.010137 1743511500.0 `1743512534.010137 1743512400.0 `1743512554.010141 1743512400.0 `1743512584.010154 1743512400.0 `1743512594.010137 1743512400.0 `1743512604.010144 1743512400.0 `1743512614.009134 1743512400.0 `1743512624.010142 1743512400.0 `1743512634.010135 1743512400.0 `1743512644.010163 1743512400.0 `1743512714.010137 1743512400.0 `1743512724.010136 1743512400.0 `1743512744.010136 1743512400.0 `1743512754.009125 1743512400.0 `1743512764.010146 1743512400.0 `1743512774.010135 1743512400.0 `1743512825.010154 1743512400.0 `1743512834.009124 1743512400.0 `1743512854.010146 1743512400.0 `1743512864.010138 1743512400.0 `1743512884.010141 1743512400.0 `1743512924.010137 1743512400.0 `1743512934.010142 1743512400.0 `1743512954.010135 1743512400.0 `1743512964.010135 1743512400.0 `1743512974.009131 1743512400.0 `1743512994.010138 1743512400.0 `1743513024.010135 1743512400.0 `1743513034.010139 1743512400.0 `1743513044.00913 1743512400.0 `1743513054.010136 1743512400.0 `1743513074.010137 1743512400.0 `1743513084.010136 1743512400.0 `1743513094.010137 1743512400.0 `1743513104.010143 1743512400.0 `1743513144.010134 1743512400.0 `1743513154.01014 1743512400.0 `1743513174.010137 1743512400.0 `1743513184.010137 1743512400.0 `1743513194.009128 1743512400.0 `1743513204.010138 1743512400.0 `1743513214.010139 1743512400.0 `1743513234.010136 1743512400.0 `1743513264.009124 1743512400.0 `1743513284.010137 1743512400.0 `1743513294.010137 1743512400.0 `1743513324.010133 1743513300.0 `1743513334.009131 1743513300.0 `1743513344.010136 1743513300.0 `1743513364.010153 1743513300.0 `1743513374.010139 1743513300.0 `1743513394.010139 1743513300.0 `1743513414.009128 1743513300.0 `1743513424.010151 1743513300.0 `1743513434.010135 1743513300.0 `1743513454.010139 1743513300.0 `1743513464.01014 1743513300.0 `1743513484.009138 1743513300.0 `1743513504.010136 1743513300.0 `1743513514.010139 1743513300.0 `1743513524.010136 1743513300.0 `1743513534.010136 1743513300.0 `1743513544.010141 1743513300.0 `1743513554.009127 1743513300.0 `1743513604.010138 1743513300.0 `1743513624.009125 1743513300.0 `1743513644.010142 1743513300.0 `1743513654.010137 1743513300.0 `1743513664.01017 1743513300.0 `1743513674.010136 1743513300.0 `1743513684.010133 1743513300.0 `1743513694.009133 1743513300.0 `1743513704.010139 1743513300.0 `1743513924.010143 1743513300.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]] forced_hashtag: JRM force hashtag to JRM elapsed_time : SPLIT_TIME 0.011984586715698242 ***** END SPLIT TIME ***** NUMBER BATCH : 8 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': '01042025', 'map_nb_amount': {0: 0, 1: 14, 2: 0, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 820.0010139942169, 'nb_balles_papier': 0.00014000000000000001, 'begin_time_port': 'image_01042025_14_01_14_009125m0.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.00014000000000000001 We reject this portfolio because of the condition_save_data : 2025-04-01 14:01:14.009125 result_one_balle_Type_JRM:{'day': '01042025', 'map_nb_amount': {0: 1, 1: 31, 2: 8, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 869.9999840259552, 'nb_balles_papier': 0.0004000000000000004, 'begin_time_port': 'image_01042025_14_15_04_010151m0.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.0004000000000000004 We reject this portfolio because of the condition_save_data : 2025-04-01 14:15:04.010151 result_one_balle_Type_JRM:{'day': '01042025', 'map_nb_amount': {0: 1, 1: 14, 2: 2, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 550.0010030269623, 'nb_balles_papier': 0.00017, 'begin_time_port': 'image_01042025_14_30_04_009140m0.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.00017 We reject this portfolio because of the condition_save_data : 2025-04-01 14:30:04.009140 ERROR missing amount info ERROR missing amount info result_one_balle_Type_JRM:{'day': '01042025', 'map_nb_amount': {0: 1, 1: 30, 2: 4, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 690.0000011920929, 'nb_balles_papier': 0.00035000000000000027, 'begin_time_port': 'image_01042025_14_46_14_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.00035000000000000027 ERROR missing amount info result_one_balle_Type_JRM:{'day': '01042025', 'map_nb_amount': {0: 4, 1: 39, 2: 1, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 760.0, 'nb_balles_papier': 0.0004400000000000005, 'begin_time_port': 'image_01042025_15_02_14_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.0004400000000000005 ERROR missing amount info result_one_balle_Type_JRM:{'day': '01042025', 'map_nb_amount': {0: 3, 1: 21, 2: 3, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 600.0000100135803, 'nb_balles_papier': 0.00027000000000000006, 'begin_time_port': 'image_01042025_15_15_24_010133m0.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.00027000000000000006 We have rejected 2 photos because of the batch_size condition ! NUMBER BATCH list_of_portfolios_to_create : 3 Still a lot to verify ! Still a lot to verify ! Still a lot to verify ! Qualite : 0.046229559805410304 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`=21946263 AND mptpi.`type`=3726 To do Qualite : 0.03950082123681036 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`=21946690 AND mptpi.`type`=3726 To do Qualite : 0.05714715433500383 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`=21947123 AND mptpi.`type`=3726 To do elapsed_time : count_nb_balles_and_create_portfolio 0.47100329399108887 # DISPLAY ALL COLLECTED DATA : {'01042025': {'nb_upload': 183, 'nb_taggue_class': 1156, 'nb_taggue_densite': 1156}} Inside saveOutput : final : True verbose : 0 saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1349293995, 1349293878, 1349292969, 1349292965, 1349292961, 1349292956, 1349292953, 1349292886, 1349292866, 1349292863, 1349292859, 1349292812, 1349292806, 1349292718, 1349292712, 1349292703, 1349292698, 1349292696, 1349292610, 1349292603, 1349292599, 1349292596, 1349292460, 1349292457, 1349292430, 1349292426, 1349292390, 1349292386, 1349292383, 1349292330, 1349292326, 1349292322, 1349292297, 1349292294, 1349292289, 1349292285, 1349292261, 1349292093, 1349292072, 1349292068, 1349292020, 1349292017, 1349292014, 1349292012, 1349291920, 1349291917, 1349291914, 1349291910, 1349291816, 1349291813, 1349291810, 1349291806, 1349291778, 1349291774, 1349291771, 1349291751, 1349291749, 1349291745, 1349291737, 1349291579, 1349291576, 1349291526, 1349291522, 1349291515, 1349291512, 1349291427, 1349291408, 1349291404, 1349291400, 1349291397, 1349291393, 1349291388, 1349291352, 1349291339, 1349289832, 1349289827, 1349289822, 1349289818, 1349289661, 1349289644, 1349289610, 1349289606, 1349289601, 1349289596, 1349289592, 1349289588, 1349289567, 1349289564, 1349289561, 1349289557, 1349289552, 1349289548, 1349289378, 1349289115, 1349289024, 1349289020, 1349289015, 1349289011, 1349288977, 1349288974] Looping around the photos to save general results len do output : 1 /21928783Didn'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, '2713365') ('4876', '21928783', '1349293995', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349293878', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349292969', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349292965', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349292961', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349292956', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349292953', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349292886', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349292866', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349292863', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349292859', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349292812', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349292806', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349292718', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349292712', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349292703', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349292698', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349292696', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349292610', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349292603', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349292599', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349292596', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349292460', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349292457', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349292430', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349292426', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349292390', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349292386', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349292383', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349292330', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349292326', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349292322', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349292297', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349292294', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349292289', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349292285', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349292261', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349292093', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349292072', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349292068', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349292020', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349292017', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349292014', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349292012', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349291920', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349291917', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349291914', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349291910', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349291816', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349291813', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349291810', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349291806', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349291778', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349291774', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349291771', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349291751', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349291749', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349291745', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349291737', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349291579', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349291576', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349291526', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349291522', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349291515', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349291512', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349291427', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349291408', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349291404', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349291400', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349291397', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349291393', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349291388', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349291352', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349291339', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349289832', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349289827', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349289822', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349289818', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349289661', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349289644', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349289610', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349289606', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349289601', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349289596', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349289592', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349289588', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349289567', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349289564', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349289561', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349289557', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349289552', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349289548', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349289378', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349289115', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349289024', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349289020', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349289015', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349289011', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349288977', None, None, None, None, None, '2713365') ('4876', None, None, None, None, None, None, None, '2713365') ('4876', '21928783', '1349288974', None, None, None, None, None, '2713365') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 101 time used for this insertion : 0.027979135513305664 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.7041141986846924 time spend to save output : 0.029180049896240234 total time spend for step 1 : 0.7332942485809326 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.32user 0.43system 0:04.10elapsed 42%CPU (0avgtext+0avgdata 101500maxresident)k 16inputs+88outputs (5major+49028minor)pagefaults 0swaps