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 : 2397785 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 : ['2595358'] with mtr_portfolio_ids : ['20624335'] and first list_photo_ids : [] new path : /proc/2397785/ 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.05559134483337402 About to test input to load Calling datou_exec Inside datou_exec : verbose : 0 number of steps : 1 step1:split_time_score Tue Feb 18 05:58:28 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec begin split time score 2022-04-13 10:29:59 0 TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 3379, 'mtr_user_id': 31, 'name': 'learn_classif_flux_maj_generique_effnet_v2_s_02062022', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'aluminium,ela,film_pedb,flux_dev,jrm,pcm,pcnc,pehd_pp,pet_clair,refus,tapis_vide', 'svm_portfolios_learning': '5515864,5515840,5515844,5515850,6244400,6237996,6237998,5515847,5515841,5515868,5515866', 'photo_hashtag_type': 4374, 'photo_desc_type': 5680, 'type_classification': 'tf_classification2', 'hashtag_id_list': '493546845,492741797,2107760237,2107760238,495916461,560181804,1284539308,2107760239,2107755846,538914404,2107748999'}] thcls : [{'id': 3513, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2_tf', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 4557, 'photo_desc_type': 5767, 'type_classification': 'tf_classification2', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] (('00', 9), ('01', 10), ('02', 11), ('03', 11), ('04', 5), ('05', 156)) ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {1: 137} 18022025 20624335 Nombre de photos uploadées : 164 / 23040 (0%) 18022025 20624335 Nombre de photos taguées (types de déchets): 137 / 164 (83%) 18022025 20624335 Nombre de photos taguées (volume) : 137 / 164 (83%) elapsed_time : load_data_split_time_score 2.1457672119140625e-06 elapsed_time : order_list_meta_photo_and_scores 7.343292236328125e-05 ??????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.009093999862670898 elapsed_time : insert_dashboard_record_day_entry 0.023946285247802734 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 elapsed_time : list_photo_by_hashtags 0.013211250305175781 photos_removed : len 0 elapsed_time : load_duplicate_info 0.012476205825805664 ***** BEGIN SPLIT TIME ***** True 1739836800.0 `1739847074.010134 1739846700.0 `1739847555.011004 1739846700.0 `1739847594.010136 1739846700.0 `1739847724.010148 1739847600.0 `1739848045.010139 1739847600.0 `1739848115.010141 1739847600.0 `1739848664.010143 1739848500.0 `1739849214.010135 1739848500.0 `1739851384.010163 1739851200.0 `1739851444.009146 1739851200.0 `1739851454.010148 1739851200.0 `1739851514.010153 1739851200.0 `1739851624.010151 1739851200.0 `1739851855.010137 1739851200.0 `1739851864.009151 1739851200.0 `1739851934.009129 1739851200.0 `1739852125.010138 1739852100.0 `1739852164.010157 1739852100.0 `1739852195.010141 1739852100.0 `1739852234.010138 1739852100.0 `1739852244.010137 1739852100.0 `1739852335.010137 1739852100.0 `1739852405.010144 1739852100.0 `1739852424.009134 1739852100.0 `1739852485.010135 1739852100.0 `1739852494.009136 1739852100.0 `1739852534.010138 1739852100.0 `1739852544.010137 1739852100.0 `1739852555.010147 1739852100.0 `1739852604.010136 1739852100.0 `1739852634.009131 1739852100.0 `1739852974.009133 1739852100.0 `1739852984.010141 1739852100.0 `1739852994.010159 1739852100.0 `1739853004.010194 1739853000.0 `1739853035.010146 1739853000.0 `1739853044.009126 1739853000.0 `1739853054.010141 1739853000.0 `1739853064.010166 1739853000.0 `1739853084.010139 1739853000.0 `1739853095.010135 1739853000.0 `1739853105.010136 1739853000.0 `1739853124.010169 1739853000.0 `1739853134.010139 1739853000.0 `1739853154.010145 1739853000.0 `1739853165.010137 1739853000.0 `1739853184.009134 1739853000.0 `1739853194.010154 1739853000.0 `1739853204.010141 1739853000.0 `1739853235.010134 1739853000.0 `1739853245.010144 1739853000.0 `1739853254.009127 1739853000.0 `1739853264.010149 1739853000.0 `1739853274.010147 1739853000.0 `1739853284.010146 1739853000.0 `1739853294.01014 1739853000.0 `1739853305.010153 1739853000.0 `1739853315.010139 1739853000.0 `1739853324.009127 1739853000.0 `1739853334.010143 1739853000.0 `1739853344.010138 1739853000.0 `1739853354.010136 1739853000.0 `1739853364.010158 1739853000.0 `1739853404.010134 1739853000.0 `1739853414.010137 1739853000.0 `1739853424.010154 1739853000.0 `1739853434.010133 1739853000.0 `1739853444.010135 1739853000.0 `1739853455.01014 1739853000.0 `1739853464.00913 1739853000.0 `1739853474.010138 1739853000.0 `1739853484.010143 1739853000.0 `1739853494.010144 1739853000.0 `1739853504.010138 1739853000.0 `1739853514.010137 1739853000.0 `1739853525.010138 1739853000.0 `1739853535.010142 1739853000.0 `1739853544.009144 1739853000.0 `1739853554.010136 1739853000.0 `1739853584.010135 1739853000.0 `1739853595.010134 1739853000.0 `1739853605.010155 1739853000.0 `1739853614.009127 1739853000.0 `1739853624.010134 1739853000.0 `1739853634.010168 1739853000.0 `1739853644.010144 1739853000.0 `1739853674.009128 1739853000.0 `1739853684.010149 1739853000.0 `1739853694.010139 1739853000.0 `1739853704.010137 1739853000.0 `1739853714.010139 1739853000.0 `1739853724.010144 1739853000.0 `1739853735.010136 1739853000.0 `1739853745.010137 1739853000.0 `1739853784.010162 1739853000.0 `1739853794.010136 1739853000.0 `1739853805.010143 1739853000.0 `1739853814.009138 1739853000.0 `1739853824.010157 1739853000.0 `1739853834.010141 1739853000.0 `1739853844.010153 1739853000.0 `1739853864.010134 1739853000.0 `1739853875.010133 1739853000.0 `1739853885.010134 1739853000.0 `1739853894.009129 1739853000.0 `1739853904.010142 1739853900.0 `1739853914.010136 1739853900.0 `1739853924.010136 1739853900.0 `1739853934.010138 1739853900.0 `1739853945.010135 1739853900.0 `1739853974.010144 1739853900.0 `1739853984.010139 1739853900.0 `1739853994.010134 1739853900.0 `1739854004.010138 1739853900.0 `1739854014.010137 1739853900.0 `1739854025.010137 1739853900.0 `1739854034.009127 1739853900.0 `1739854044.010133 1739853900.0 `1739854054.010136 1739853900.0 `1739854064.010139 1739853900.0 `1739854074.010136 1739853900.0 `1739854105.010135 1739853900.0 `1739854114.009124 1739853900.0 `1739854124.010136 1739853900.0 `1739854134.010137 1739853900.0 `1739854144.010161 1739853900.0 `1739854154.010139 1739853900.0 `1739854165.010135 1739853900.0 `1739854175.010148 1739853900.0 `1739854184.009134 1739853900.0 `1739854194.010147 1739853900.0 `1739854204.010149 1739853900.0 `1739854224.010137 1739853900.0 `1739854235.010142 1739853900.0 `1739854245.010141 1739853900.0 `1739854254.009141 1739853900.0 `1739854264.010152 1739853900.0 `1739854294.010139 1739853900.0 `1739854305.010135 1739853900.0 `1739854315.010137 1739853900.0 `1739854324.009129 1739853900.0 `1739854334.010155 1739853900.0 `1739854344.01014 1739853900.0 `1739854354.01014 1739853900.0 `1739854364.010142 1739853900.0 `1739854375.010141 1739853900.0 `1739854385.01015 1739853900.0 `1739854404.010135 1739853900.0 `1739854414.010138 1739853900.0 `1739854434.010145 1739853900.0 `1739854445.010154 1739853900.0 `1739854455.010141 1739853900.0 `1739854484.010138 1739853900.0 `1739854494.010135 1739853900.0 `1739854515.010136 1739853900.0 `1739854525.010142 1739853900.0 `1739854534.009136 1739853900.0 `1739854544.010144 1739853900.0 `1739854554.010141 1739853900.0 `1739854564.010173 1739853900.0 `1739854574.010151 1739853900.0 `1739854585.010138 1739853900.0 `1739854595.010137 1739853900.0 `1739854624.010136 1739853900.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]] forced_hashtag: JRM force hashtag to JRM elapsed_time : SPLIT_TIME 0.011234521865844727 ***** 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'] 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': '18022025', 'map_nb_amount': {0: 0, 1: 2, 2: 0, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 549.9989659786224, 'nb_balles_papier': 2e-05, 'begin_time_port': 'image_18022025_05_03_04_10163.jpg'} Production hashtag (incorrect ponderation at 20-10-18) : 2e-05 ERROR missing amount info ERROR missing amount info result_one_balle_Type_JRM:{'day': '18022025', 'map_nb_amount': {0: 5, 1: 10, 2: 1, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 869.000020980835, 'nb_balles_papier': 0.00016, 'begin_time_port': 'image_18022025_05_15_25_10138.jpg'} Production hashtag (incorrect ponderation at 20-10-18) : 0.00016 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': '18022025', 'map_nb_amount': {0: 7, 1: 47, 2: 7, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 889.9989349842072, 'nb_balles_papier': 0.000610000000000001, 'begin_time_port': 'image_18022025_05_30_04_010194m0.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.000610000000000001 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': '18022025', 'map_nb_amount': {0: 8, 1: 25, 2: 7, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 719.999993801117, 'nb_balles_papier': 0.0004000000000000004, 'begin_time_port': 'image_18022025_05_45_04_010142m0.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 have rejected 8 photos because of the batch_size condition ! NUMBER BATCH list_of_portfolios_to_create : 4 Still a lot to verify ! Still a lot to verify ! Still a lot to verify ! We need to add photos : {1338295041, 1338295043, 1338295012, 1338295014, 1338295016, 1338295018, 1338294956, 1338294990, 1338294960, 1338294966, 1338294968} Still a lot to verify ! Qualite : 0.06786332216492437 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`=20627257 AND mptpi.`type`=3726 To do Qualite : 0.04616982787909256 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`=20627333 AND mptpi.`type`=3726 To do Qualite : 0.05980678691952014 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`=20627623 AND mptpi.`type`=3726 To do Qualite : 0.05237464727912333 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`=20628039 AND mptpi.`type`=3726 To do elapsed_time : count_nb_balles_and_create_portfolio 1.6919713020324707 # DISPLAY ALL COLLECTED DATA : {'18022025': {'nb_upload': 164, 'nb_taggue_class': 137, 'nb_taggue_densite': 137}} Inside saveOutput : final : True verbose : 0 saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1338295043, 1338295041, 1338295018, 1338295016, 1338295014, 1338295012, 1338294990, 1338294968, 1338294966, 1338294960, 1338294956, 1338294919, 1338294908, 1338294906, 1338294904, 1338294874, 1338294871, 1338294868, 1338294864, 1338294849, 1338294846, 1338294842, 1338294838, 1338294835, 1338294832, 1338294794, 1338294792, 1338294790, 1338294788, 1338294765, 1338294763, 1338294761, 1338294759, 1338294757, 1338294745, 1338294742, 1338294740, 1338294738, 1338294735, 1338294733, 1338294708, 1338294706, 1338294704, 1338294702, 1338294662, 1338294659, 1338294657, 1338294655, 1338294653, 1338294651, 1338294269, 1338294204, 1338294119, 1338294050, 1338294024, 1338294010, 1338294007, 1338294005, 1338294003, 1338294001, 1338293978, 1338293975, 1338293971, 1338293964, 1338293960, 1338293938, 1338293936, 1338293933, 1338293931, 1338293929, 1338293927, 1338293875, 1338293872, 1338293870, 1338293855, 1338293853, 1338293851, 1338293849, 1338293847, 1338293815, 1338293812, 1338293810, 1338293808, 1338293806, 1338293793, 1338293790, 1338293788, 1338293779, 1338293653, 1338293651, 1338293641, 1338293629, 1338293622, 1338293584, 1338293562, 1338293561, 1338293559, 1338293558, 1338293557, 1338293556] Looping around the photos to save general results len do output : 1 /20624335Didn'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, '2595358') ('4876', '20624335', '1338295043', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338295041', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338295018', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338295016', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338295014', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338295012', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338294990', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338294968', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338294966', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338294960', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338294956', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338294919', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338294908', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338294906', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338294904', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338294874', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338294871', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338294868', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338294864', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338294849', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338294846', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338294842', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338294838', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338294835', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338294832', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338294794', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338294792', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338294790', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338294788', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338294765', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338294763', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338294761', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338294759', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338294757', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338294745', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338294742', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338294740', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338294738', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338294735', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338294733', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338294708', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338294706', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338294704', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338294702', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338294662', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338294659', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338294657', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338294655', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338294653', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338294651', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338294269', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338294204', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338294119', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338294050', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338294024', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338294010', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338294007', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338294005', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338294003', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338294001', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338293978', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338293975', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338293971', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338293964', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338293960', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338293938', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338293936', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338293933', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338293931', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338293929', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338293927', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338293875', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338293872', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338293870', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338293855', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338293853', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338293851', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338293849', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338293847', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338293815', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338293812', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338293810', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338293808', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338293806', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338293793', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338293790', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338293788', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338293779', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338293653', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338293651', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338293641', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338293629', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338293622', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338293584', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338293562', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338293561', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338293559', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338293558', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338293557', None, None, None, None, None, '2595358') ('4876', None, None, None, None, None, None, None, '2595358') ('4876', '20624335', '1338293556', None, None, None, None, None, '2595358') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 101 time used for this insertion : 0.026895999908447266 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.509605407714844 time spend to save output : 0.02771162986755371 total time spend for step 1 : 4.5373170375823975 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.13user 0.53system 0:08.18elapsed 20%CPU (0avgtext+0avgdata 102364maxresident)k 0inputs+96outputs (4major+48719minor)pagefaults 0swaps