python /home/admin/mtr/script_for_cron.py -j default -m 20 -a 'python3 ~/workarea/git/Velours/python/prod/datou.py -j batch_current -a 4878' -s traitement_4878 -M 0 -S 0 -U 100,80,95 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/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', '/home/admin/workarea/git/apy', '/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 : 2070883 load datou : 4878 # 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 : 4878, datou_cur_ids : ['3986121'] with mtr_portfolio_ids : ['28049571'] and first list_photo_ids : [] new path : /proc/2070883/ 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 , 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.02116227149963379 About to test input to load Calling datou_exec Inside datou_exec : verbose : 0 number of steps : 1 step1:split_time_score Mon Nov 3 15:47:38 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', 26), ('01', 17), ('02', 23), ('03', 18), ('04', 9)) ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {1: 34} 01112025 28049571 Nombre de photos uploadées : 93 / 23040 (0%) 01112025 28049571 Nombre de photos taguées (types de déchets): 34 / 93 (36%) 01112025 28049571 Nombre de photos taguées (volume) : 34 / 93 (36%) elapsed_time : load_data_split_time_score 2.1457672119140625e-06 elapsed_time : order_list_meta_photo_and_scores 2.4318695068359375e-05 ??????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.004467010498046875 Catched exception ! Connect or reconnect ! Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.2326512336730957 Creating list_photo_by_hashtags Hashtag is None Hashtag is None Hashtag is None Hashtag is None Hashtag is None Hashtag is None Hashtag is None Hashtag is None Hashtag is None Hashtag is None Hashtag is None Hashtag is None Hashtag is None Hashtag is None Hashtag is None Hashtag is None Hashtag is None Hashtag is None Hashtag is None Hashtag is None Hashtag is None Hashtag is None Hashtag is None Hashtag is None Hashtag is None Hashtag is None Hashtag is None Hashtag is None Hashtag is None Hashtag is None Hashtag is None Hashtag is None Hashtag is None Hashtag is None Hashtag is None Hashtag is None Hashtag is None Hashtag is None Hashtag is None Hashtag is None Hashtag is None Hashtag is None Hashtag is None Hashtag is None Hashtag is None Hashtag is None Hashtag is None Hashtag is None Hashtag is None Hashtag is None Hashtag is None 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.00603485107421875 photos_removed : len 0 elapsed_time : load_duplicate_info 0.04546856880187988 ***** BEGIN SPLIT TIME ***** `````````````````````````````````````````````````````````````````````````````````````````````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]] forced_hashtag: JRM force hashtag to JRM elapsed_time : SPLIT_TIME 0.008220672607421875 ***** END SPLIT TIME ***** NUMBER BATCH : 19 list_ponderation used : [1e-05, 1e-05, 1e-05, 1e-05, 1e-05] , list_hashtag_class_create_as_list : ['jrm'] 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': '01112025', 'map_nb_amount': {0: 2, 1: 4, 2: 0, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 781.0, 'nb_balles_papier': 6e-05, 'begin_time_port': 'image_01112025_00_15_54_10134.jpg'} Production hashtag (incorrect ponderation at 20-10-18) : 6e-05 ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info result_one_balle_Type_JRM:{'day': '01112025', 'map_nb_amount': {0: 1, 1: 3, 2: 0, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 740.0000100135803, 'nb_balles_papier': 4e-05, 'begin_time_port': 'image_01112025_00_45_14_10136.jpg'} Production hashtag (incorrect ponderation at 20-10-18) : 4e-05 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': '01112025', 'map_nb_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 470.0000030994415, 'nb_balles_papier': 0, 'begin_time_port': 'image_01112025_01_36_25_10136.jpg'} Production hashtag (incorrect ponderation at 20-10-18) : 0 ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info result_one_balle_Type_JRM:{'day': '01112025', 'map_nb_amount': {0: 1, 1: 5, 2: 0, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 751.0000009536743, 'nb_balles_papier': 6e-05, 'begin_time_port': 'image_01112025_02_01_54_10137.jpg'} Production hashtag (incorrect ponderation at 20-10-18) : 6e-05 ERROR missing amount info ERROR missing amount info result_one_balle_Type_JRM:{'day': '01112025', 'map_nb_amount': {0: 0, 1: 6, 2: 0, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 649.9999988079071, 'nb_balles_papier': 6e-05, 'begin_time_port': 'image_01112025_02_32_34_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) : 6e-05 ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info result_one_balle_Type_JRM:{'day': '01112025', 'map_nb_amount': {0: 1, 1: 2, 2: 1, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 719.9999969005585, 'nb_balles_papier': 4e-05, 'begin_time_port': 'image_01112025_03_15_14_010137m0.jpg 1e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'} Production hashtag (incorrect ponderation at 20-10-18) : 4e-05 We have rejected 40 photos because of the batch_size condition ! NUMBER BATCH list_of_portfolios_to_create : 6 Internal error, should be audited in sarching same port with keep_same_batch_live Still a lot to verify ! Internal error, should be audited in sarching same port with keep_same_batch_live Still a lot to verify ! Internal error, should be audited in sarching same port with keep_same_batch_live Still a lot to verify ! Internal error, should be audited in sarching same port with keep_same_batch_live Still a lot to verify ! Internal error, should be audited in sarching same port with keep_same_batch_live Still a lot to verify ! Internal error, should be audited in sarching same port with keep_same_batch_live Still a lot to verify ! Qualite : 0.05639511784031582 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`=28049590 AND mptpi.`type`=3726 To do Qualite : 0.05320381986837743 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`=28049992 AND mptpi.`type`=3726 To do Qualite : 0.09993752202749032 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`=28050797 AND mptpi.`type`=3726 To do Qualite : 0.025974652849339447 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`=28051198 AND mptpi.`type`=3726 To do Qualite : 0.05496165652271444 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`=28051861 AND mptpi.`type`=3726 To do Qualite : 0.0705920392157146 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`=28052396 AND mptpi.`type`=3726 To do elapsed_time : count_nb_balles_and_create_portfolio 0.5698578357696533 # DISPLAY ALL COLLECTED DATA : {'01112025': {'nb_upload': 93, 'nb_taggue_class': 34, 'nb_taggue_densite': 34}} Inside saveOutput : final : True verbose : 0 saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1391982276, 1391517754, 1391516952, 1391516096, 1391513586, 1391512213, 1391512164, 1391511197, 1391509265, 1391509203, 1391508833, 1391508101, 1391508097, 1391507926, 1391507808, 1391507399, 1391505391, 1391504795, 1391504245, 1391504173, 1391504001, 1391503998, 1391503746, 1391503131, 1391503127, 1391503088, 1391502545, 1391502469, 1391499101, 1391499055, 1391498671, 1391497941, 1391497697, 1391497579, 1391497568, 1391497302, 1391497296, 1391497047, 1391496693, 1391496678, 1391495591, 1391493296, 1391492559, 1391492519, 1391492206, 1391491155, 1391490511, 1391490476, 1391488487, 1391488445, 1391487594, 1391486636, 1391486633, 1391486516, 1391485965, 1391485927, 1391485348, 1391485126, 1391484828, 1391484773, 1391484096, 1391484060, 1391484003, 1391483620, 1391483011, 1391480981, 1391478737, 1391469700, 1391467974, 1391467454, 1391467414, 1391466915, 1391466876, 1391465843, 1391465237, 1391464748, 1391464729, 1391464628, 1391463986, 1391462347, 1391462285, 1391462150, 1391461903, 1391461893, 1391461624, 1391461342, 1391461340, 1391461216, 1391460822, 1391460819, 1391460777, 1391460286, 1391460274] Looping around the photos to save general results len do output : 1 /28049571Didn'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 ('4878', None, None, None, None, None, None, None, '3986121') ('4878', '28049571', '1391982276', None, None, None, None, None, '3986121') ('4878', None, None, None, None, None, None, None, '3986121') ('4878', '28049571', '1391517754', None, None, None, None, None, '3986121') ('4878', None, None, None, None, None, None, None, '3986121') ('4878', '28049571', '1391516952', None, None, None, None, None, '3986121') ('4878', None, None, None, None, None, None, None, '3986121') ('4878', '28049571', '1391516096', None, None, None, None, None, '3986121') ('4878', None, None, None, None, None, None, None, '3986121') ('4878', '28049571', '1391513586', None, None, None, None, None, '3986121') ('4878', None, None, None, None, None, None, None, '3986121') ('4878', '28049571', '1391512213', None, None, None, None, None, '3986121') ('4878', None, None, None, None, None, None, None, '3986121') ('4878', '28049571', '1391512164', None, None, None, None, None, '3986121') ('4878', None, None, None, None, None, None, None, '3986121') ('4878', '28049571', '1391511197', None, None, None, None, None, '3986121') ('4878', None, None, None, None, None, None, None, '3986121') ('4878', '28049571', '1391509265', None, None, None, None, None, '3986121') ('4878', None, None, None, None, None, None, None, '3986121') ('4878', '28049571', '1391509203', None, None, None, None, None, '3986121') ('4878', None, None, None, None, None, None, None, '3986121') ('4878', '28049571', '1391508833', None, None, None, None, None, '3986121') ('4878', None, None, None, None, None, None, None, '3986121') ('4878', '28049571', '1391508101', None, None, None, None, None, '3986121') ('4878', None, None, None, None, None, None, None, '3986121') ('4878', '28049571', '1391508097', None, None, None, None, None, '3986121') ('4878', None, None, None, None, None, None, None, '3986121') ('4878', '28049571', '1391507926', None, None, None, None, None, '3986121') ('4878', None, None, None, None, None, None, None, '3986121') ('4878', '28049571', '1391507808', None, None, None, None, None, '3986121') ('4878', None, None, None, None, None, None, None, '3986121') ('4878', '28049571', '1391507399', None, None, None, None, None, '3986121') ('4878', None, None, None, None, None, None, None, '3986121') ('4878', '28049571', '1391505391', None, None, None, None, None, '3986121') ('4878', None, None, None, None, None, None, None, '3986121') ('4878', '28049571', '1391504795', None, None, None, None, None, '3986121') ('4878', None, None, None, None, None, None, None, '3986121') ('4878', '28049571', '1391504245', None, None, None, None, None, '3986121') ('4878', None, None, None, None, None, None, None, '3986121') ('4878', '28049571', '1391504173', None, None, None, None, None, '3986121') ('4878', None, None, None, None, None, None, None, '3986121') ('4878', '28049571', '1391504001', None, None, None, None, None, '3986121') ('4878', None, None, None, None, None, None, None, '3986121') ('4878', '28049571', '1391503998', None, None, None, None, None, '3986121') ('4878', None, None, None, None, None, None, None, '3986121') ('4878', '28049571', '1391503746', None, None, None, None, None, '3986121') ('4878', None, None, None, None, None, None, None, '3986121') ('4878', '28049571', '1391503131', None, None, None, None, None, '3986121') ('4878', None, None, None, None, None, None, None, '3986121') ('4878', '28049571', '1391503127', None, None, None, None, None, '3986121') ('4878', None, None, None, None, None, None, None, '3986121') ('4878', '28049571', '1391503088', None, None, None, None, None, '3986121') ('4878', None, None, None, None, None, None, None, '3986121') ('4878', '28049571', '1391502545', None, None, None, None, None, '3986121') ('4878', None, None, None, None, None, None, None, '3986121') ('4878', '28049571', '1391502469', None, None, None, None, None, '3986121') ('4878', None, None, None, None, None, None, None, '3986121') ('4878', '28049571', '1391499101', None, None, None, None, None, '3986121') ('4878', None, None, None, None, None, None, None, '3986121') ('4878', '28049571', '1391499055', None, None, None, None, None, '3986121') ('4878', None, None, None, None, None, None, None, '3986121') ('4878', '28049571', '1391498671', None, None, None, None, None, '3986121') ('4878', None, None, None, None, None, None, None, '3986121') ('4878', '28049571', '1391497941', None, None, None, None, None, '3986121') ('4878', None, None, None, None, None, None, None, '3986121') ('4878', '28049571', '1391497697', None, None, None, None, None, '3986121') ('4878', None, None, None, None, None, None, None, '3986121') ('4878', '28049571', '1391497579', None, None, None, None, None, '3986121') ('4878', None, None, None, None, None, None, None, '3986121') ('4878', '28049571', '1391497568', None, None, None, None, None, '3986121') ('4878', None, None, None, None, None, None, None, '3986121') ('4878', '28049571', '1391497302', None, None, None, None, None, '3986121') ('4878', None, None, None, None, None, None, None, '3986121') ('4878', '28049571', '1391497296', None, None, None, None, None, '3986121') ('4878', None, None, None, None, None, None, None, '3986121') ('4878', '28049571', '1391497047', None, None, None, None, None, '3986121') ('4878', None, None, None, None, None, None, None, '3986121') ('4878', '28049571', '1391496693', None, None, None, None, None, '3986121') ('4878', None, None, None, None, None, None, None, '3986121') ('4878', '28049571', '1391496678', None, None, None, None, None, '3986121') ('4878', None, None, None, None, None, None, None, '3986121') ('4878', '28049571', '1391495591', None, None, None, None, None, '3986121') ('4878', None, None, None, None, None, None, None, '3986121') ('4878', '28049571', '1391493296', None, None, None, None, None, '3986121') ('4878', None, None, None, None, None, None, None, '3986121') ('4878', '28049571', '1391492559', None, None, None, None, None, '3986121') ('4878', None, None, None, None, None, None, None, '3986121') ('4878', '28049571', '1391492519', None, None, None, None, None, '3986121') ('4878', None, None, None, None, None, None, None, '3986121') ('4878', '28049571', '1391492206', None, None, None, None, None, '3986121') ('4878', None, None, None, None, None, None, None, '3986121') ('4878', '28049571', '1391491155', None, None, None, None, None, '3986121') ('4878', None, None, None, None, None, None, None, '3986121') ('4878', '28049571', '1391490511', None, None, None, None, None, '3986121') ('4878', None, None, None, None, None, None, None, '3986121') ('4878', '28049571', '1391490476', None, None, None, None, None, '3986121') ('4878', None, None, None, None, None, None, None, '3986121') ('4878', '28049571', '1391488487', None, None, None, None, None, '3986121') ('4878', None, None, None, None, None, None, None, '3986121') ('4878', '28049571', '1391488445', None, None, None, None, None, '3986121') ('4878', None, None, None, None, None, None, None, '3986121') ('4878', '28049571', '1391487594', None, None, None, None, None, '3986121') ('4878', None, None, None, None, None, None, None, '3986121') ('4878', '28049571', '1391486636', None, None, None, None, None, '3986121') ('4878', None, None, None, None, None, None, None, '3986121') ('4878', '28049571', '1391486633', None, None, None, None, None, '3986121') ('4878', None, None, None, None, None, None, None, '3986121') ('4878', '28049571', '1391486516', None, None, None, None, None, '3986121') ('4878', None, None, None, None, None, None, None, '3986121') ('4878', '28049571', '1391485965', None, None, None, None, None, '3986121') ('4878', None, None, None, None, None, None, None, '3986121') ('4878', '28049571', '1391485927', None, None, None, None, None, '3986121') ('4878', None, None, None, None, None, None, None, '3986121') ('4878', '28049571', '1391485348', None, None, None, None, None, '3986121') ('4878', None, None, None, None, None, None, None, '3986121') ('4878', '28049571', '1391485126', None, None, None, None, None, '3986121') ('4878', None, None, None, None, None, None, None, '3986121') ('4878', '28049571', '1391484828', None, None, None, None, None, '3986121') ('4878', None, None, None, None, None, None, None, '3986121') ('4878', '28049571', '1391484773', None, None, None, None, None, '3986121') ('4878', None, None, None, None, None, None, None, '3986121') ('4878', '28049571', '1391484096', None, None, None, None, None, '3986121') ('4878', None, None, None, None, None, None, None, '3986121') ('4878', '28049571', '1391484060', None, None, None, None, None, '3986121') ('4878', None, None, None, None, None, None, None, '3986121') ('4878', '28049571', '1391484003', None, None, None, None, None, '3986121') ('4878', None, None, None, None, None, None, None, '3986121') ('4878', '28049571', '1391483620', None, None, None, None, None, '3986121') ('4878', None, None, None, None, None, None, None, '3986121') ('4878', '28049571', '1391483011', None, None, None, None, None, '3986121') ('4878', None, None, None, None, None, None, None, '3986121') ('4878', '28049571', '1391480981', None, None, None, None, None, '3986121') ('4878', None, None, None, None, None, None, None, '3986121') ('4878', '28049571', '1391478737', None, None, None, None, None, '3986121') ('4878', None, None, None, None, None, None, None, '3986121') ('4878', '28049571', '1391469700', None, None, None, None, None, '3986121') ('4878', None, None, None, None, None, None, None, '3986121') ('4878', '28049571', '1391467974', None, None, None, None, None, '3986121') ('4878', None, None, None, None, None, None, None, '3986121') ('4878', '28049571', '1391467454', None, None, None, None, None, '3986121') ('4878', None, None, None, None, None, None, None, '3986121') ('4878', '28049571', '1391467414', None, None, None, None, None, '3986121') ('4878', None, None, None, None, None, None, None, '3986121') ('4878', '28049571', '1391466915', None, None, None, None, None, '3986121') ('4878', None, None, None, None, None, None, None, '3986121') ('4878', '28049571', '1391466876', None, None, None, None, None, '3986121') ('4878', None, None, None, None, None, None, None, '3986121') ('4878', '28049571', '1391465843', None, None, None, None, None, '3986121') ('4878', None, None, None, None, None, None, None, '3986121') ('4878', '28049571', '1391465237', None, None, None, None, None, '3986121') ('4878', None, None, None, None, None, None, None, '3986121') ('4878', '28049571', '1391464748', None, None, None, None, None, '3986121') ('4878', None, None, None, None, None, None, None, '3986121') ('4878', '28049571', '1391464729', None, None, None, None, None, '3986121') ('4878', None, None, None, None, None, None, None, '3986121') ('4878', '28049571', '1391464628', None, None, None, None, None, '3986121') ('4878', None, None, None, None, None, None, None, '3986121') ('4878', '28049571', '1391463986', None, None, None, None, None, '3986121') ('4878', None, None, None, None, None, None, None, '3986121') ('4878', '28049571', '1391462347', None, None, None, None, None, '3986121') ('4878', None, None, None, None, None, None, None, '3986121') ('4878', '28049571', '1391462285', None, None, None, None, None, '3986121') ('4878', None, None, None, None, None, None, None, '3986121') ('4878', '28049571', '1391462150', None, None, None, None, None, '3986121') ('4878', None, None, None, None, None, None, None, '3986121') ('4878', '28049571', '1391461903', None, None, None, None, None, '3986121') ('4878', None, None, None, None, None, None, None, '3986121') ('4878', '28049571', '1391461893', None, None, None, None, None, '3986121') ('4878', None, None, None, None, None, None, None, '3986121') ('4878', '28049571', '1391461624', None, None, None, None, None, '3986121') ('4878', None, None, None, None, None, None, None, '3986121') ('4878', '28049571', '1391461342', None, None, None, None, None, '3986121') ('4878', None, None, None, None, None, None, None, '3986121') ('4878', '28049571', '1391461340', None, None, None, None, None, '3986121') ('4878', None, None, None, None, None, None, None, '3986121') ('4878', '28049571', '1391461216', None, None, None, None, None, '3986121') ('4878', None, None, None, None, None, None, None, '3986121') ('4878', '28049571', '1391460822', None, None, None, None, None, '3986121') ('4878', None, None, None, None, None, None, None, '3986121') ('4878', '28049571', '1391460819', None, None, None, None, None, '3986121') ('4878', None, None, None, None, None, None, None, '3986121') ('4878', '28049571', '1391460777', None, None, None, None, None, '3986121') ('4878', None, None, None, None, None, None, None, '3986121') ('4878', '28049571', '1391460286', None, None, None, None, None, '3986121') ('4878', None, None, None, None, None, None, None, '3986121') ('4878', '28049571', '1391460274', None, None, None, None, None, '3986121') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 94 time used for this insertion : 0.04133939743041992 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.9840469360351562 time spend to save output : 0.0421602725982666 total time spend for step 1 : 1.0262072086334229 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 0.98user 0.85system 0:04.18elapsed 43%CPU (0avgtext+0avgdata 99940maxresident)k 8inputs+96outputs (0major+48821minor)pagefaults 0swaps