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 : 3873003 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 : 2696>1000 please execute split_portfolio.py -i 20820380 -l 1000 size over we load limit photo not treated list_input_json: {} Current got : datou_id : 4876, datou_cur_ids : ['2617056'] with mtr_portfolio_ids : ['20820380'] and first list_photo_ids : [] new path : /proc/3873003/ 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.03014349937438965 About to test input to load Calling datou_exec Inside datou_exec : verbose : 0 number of steps : 1 step1:split_time_score Wed Feb 26 18: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', 8), ('01', 9), ('02', 9), ('03', 6), ('04', 7), ('05', 219), ('06', 306), ('07', 304), ('08', 285), ('09', 83), ('10', 246), ('11', 292), ('12', 57), ('13', 78), ('14', 159), ('15', 287), ('16', 182), ('17', 21), ('18', 138)) ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {1: 2394} 26022025 20820380 Nombre de photos uploadées : 193 / 23040 (0%) 26022025 20820380 Nombre de photos taguées (types de déchets): 2394 / 193 (1240%) 26022025 20820380 Nombre de photos taguées (volume) : 2394 / 193 (1240%) elapsed_time : load_data_split_time_score 3.0994415283203125e-06 elapsed_time : order_list_meta_photo_and_scores 0.0008504390716552734 ?????????????????????????????????????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.05182647705078125 elapsed_time : insert_dashboard_record_day_entry 0.022402286529541016 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 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.008875370025634766 photos_removed : len 0 elapsed_time : load_duplicate_info 0.013410806655883789 ***** BEGIN SPLIT TIME ***** True 1740528000.0 `1740583854.010136 1740583800.0 `1740583864.010145 1740583800.0 `1740583874.010135 1740583800.0 `1740583884.009123 1740583800.0 `1740583894.010133 1740583800.0 `1740583904.010135 1740583800.0 `1740583914.010136 1740583800.0 `1740583924.010135 1740583800.0 `1740583934.010135 1740583800.0 `1740584014.01014 1740583800.0 `1740584024.010138 1740583800.0 `1740584034.009131 1740583800.0 `1740584044.010152 1740583800.0 `1740584174.009124 1740583800.0 `1740584184.010133 1740583800.0 `1740584194.010135 1740583800.0 `1740584214.010138 1740583800.0 `1740584224.010138 1740583800.0 `1740584234.010137 1740583800.0 `1740584244.010135 1740583800.0 `1740584254.00913 1740583800.0 `1740584264.010139 1740583800.0 `1740584274.010139 1740583800.0 `1740584294.010142 1740583800.0 `1740584304.010136 1740583800.0 `1740584324.009127 1740583800.0 `1740584344.010169 1740583800.0 `1740584354.010136 1740583800.0 `1740584394.00913 1740583800.0 `1740584404.010153 1740583800.0 `1740584414.010132 1740583800.0 `1740584424.010133 1740583800.0 `1740584564.010593 1740583800.0 `1740585114.010136 1740584700.0 `1740585684.010136 1740585600.0 `1740586235.010142 1740585600.0 `1740586455.010139 1740585600.0 `1740586474.010141 1740585600.0 `1740586484.010137 1740585600.0 `1740586494.010136 1740585600.0 `1740586505.010152 1740586500.0 `1740586525.010136 1740586500.0 `1740586535.010141 1740586500.0 `1740586624.010149 1740586500.0 `1740586634.010143 1740586500.0 `1740586784.010136 1740586500.0 `1740587215.010138 1740586500.0 `1740587225.010141 1740586500.0 `1740587235.010132 1740586500.0 `1740587334.010136 1740586500.0 `1740587344.010154 1740586500.0 `1740587354.010132 1740586500.0 `1740587365.010134 1740586500.0 `1740587375.010141 1740586500.0 `1740587385.010137 1740586500.0 `1740589264.010146 1740589200.0 `1740589303.010136 1740589200.0 `1740589313.010136 1740589200.0 `1740589323.010153 1740589200.0 `1740589334.010142 1740589200.0 `1740589344.010134 1740589200.0 `1740589353.009127 1740589200.0 `1740589363.010143 1740589200.0 `1740589373.010136 1740589200.0 `1740589383.010158 1740589200.0 `1740589414.010136 1740589200.0 `1740589433.010139 1740589200.0 `1740589443.010138 1740589200.0 `1740589453.010139 1740589200.0 `1740589463.010137 1740589200.0 `1740589474.01014 1740589200.0 `1740589484.010138 1740589200.0 `1740589503.009137 1740589200.0 `1740589513.010141 1740589200.0 `1740589523.010136 1740589200.0 `1740589533.010136 1740589200.0 `1740589544.010138 1740589200.0 `1740589554.010141 1740589200.0 `1740589573.00913 1740589200.0 `1740589583.010135 1740589200.0 `1740589593.010135 1740589200.0 `1740589603.010136 1740589200.0 `1740589613.010138 1740589200.0 `1740589624.01015 1740589200.0 `1740589634.010134 1740589200.0 `1740589643.009121 1740589200.0 `1740589673.010134 1740589200.0 `1740589683.010166 1740589200.0 `1740589694.010138 1740589200.0 `1740589704.010135 1740589200.0 `1740589713.009125 1740589200.0 `1740589723.010137 1740589200.0 `1740589733.01014 1740589200.0 `1740589743.010149 1740589200.0 `1740589753.01014 1740589200.0 `1740589764.010163 1740589200.0 `1740589774.010132 1740589200.0 `1740589793.009123 1740589200.0 `1740589803.010143 1740589200.0 `1740589813.010136 1740589200.0 `1740589823.010133 1740589200.0 `1740589834.010142 1740589200.0 `1740589844.010136 1740589200.0 `1740589854.010142 1740589200.0 `1740589863.009127 1740589200.0 `1740589873.010144 1740589200.0 `1740589883.010135 1740589200.0 `1740589893.010134 1740589200.0 `1740589903.010135 1740589200.0 `1740589914.010135 1740589200.0 `1740589953.010133 1740589200.0 `1740589963.010135 1740589200.0 `1740589973.010136 1740589200.0 `1740589984.010153 1740589200.0 `1740589994.010136 1740589200.0 `1740590003.009131 1740589200.0 `1740590023.010139 1740589200.0 `1740590033.010138 1740589200.0 `1740590043.010137 1740589200.0 `1740590054.010137 1740589200.0 `1740590064.010135 1740589200.0 `1740590074.010136 1740589200.0 `1740590083.009126 1740589200.0 `1740590103.010154 1740590100.0 `1740590113.010134 1740590100.0 `1740590144.010134 1740590100.0 `1740590153.009133 1740590100.0 `1740590163.010148 1740590100.0 `1740590183.010135 1740590100.0 `1740590193.010133 1740590100.0 `1740590204.010136 1740590100.0 `1740590214.010136 1740590100.0 `1740590223.009139 1740590100.0 `1740590233.010135 1740590100.0 `1740590243.010134 1740590100.0 `1740590253.010137 1740590100.0 `1740590263.010135 1740590100.0 `1740590274.010137 1740590100.0 `1740590284.010151 1740590100.0 `1740590293.00913 1740590100.0 `1740590323.010137 1740590100.0 `1740590333.010134 1740590100.0 `1740590344.010155 1740590100.0 `1740590354.010138 1740590100.0 `1740590364.010144 1740590100.0 `1740590373.009132 1740590100.0 `1740590383.010148 1740590100.0 `1740590393.010134 1740590100.0 `1740590403.010137 1740590100.0 `1740590414.01014 1740590100.0 `1740590424.010135 1740590100.0 `1740590434.010134 1740590100.0 `1740590443.009124 1740590100.0 `1740590453.010136 1740590100.0 `1740590483.010132 1740590100.0 `1740590494.010132 1740590100.0 `1740590523.010138 1740590100.0 `1740590533.010138 1740590100.0 `1740590543.010135 1740590100.0 `1740590553.010139 1740590100.0 `1740590564.010139 1740590100.0 `1740590574.010138 1740590100.0 `1740590584.010154 1740590100.0 `1740590593.009124 1740590100.0 `1740590603.010266 1740590100.0 `1740590613.010133 1740590100.0 `1740590623.010137 1740590100.0 `1740590663.010133 1740590100.0 `1740590683.010136 1740590100.0 `1740590704.010145 1740590100.0 `1740590743.01014 1740590100.0 `1740590753.010136 1740590100.0 `1740590763.010156 1740590100.0 `1740590803.00913 1740590100.0 `1740590813.010137 1740590100.0 `1740590854.010139 1740590100.0 `1740590864.010135 1740590100.0 `1740590873.009124 1740590100.0 `1740590883.010139 1740590100.0 `1740590893.010139 1740590100.0 `1740590903.010135 1740590100.0 `1740590913.010141 1740590100.0 `1740590924.01014 1740590100.0 `1740590934.010138 1740590100.0 `1740590943.009148 1740590100.0 `1740590953.010139 1740590100.0 `1740590963.01014 1740590100.0 `1740590973.010133 1740590100.0 `1740590983.010134 1740590100.0 `1740590994.010142 1740590100.0 `1740591004.010144 1740591000.0 `1740591014.009792 1740591000.0 `1740591044.010133 1740591000.0 list printed: [[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32], [33], [34, 35, 36, 37, 38, 39], [40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54], [55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122], [123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189], [190, 191, 192]] forced_hashtag: JRM force hashtag to JRM elapsed_time : SPLIT_TIME 0.011604547500610352 ***** 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 result_one_balle_Type_JRM:{'day': '26022025', 'map_nb_amount': {0: 6, 1: 25, 2: 0, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 710.0004570484161, 'nb_balles_papier': 0.00031000000000000016, 'begin_time_port': 'image_26022025_16_30_54_010136m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'} Production hashtag (incorrect ponderation at 20-10-18) : 0.00031000000000000016 We reject this portfolio because of the condition_save_data : 2025-02-26 16:30:54.010136 ERROR missing amount info ERROR missing amount info ERROR missing amount info result_one_balle_Type_JRM:{'day': '26022025', 'map_nb_amount': {0: 4, 1: 7, 2: 1, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 879.9999849796295, 'nb_balles_papier': 0.00012, 'begin_time_port': 'image_26022025_17_15_05_010152m0.jpg 1e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'} Production hashtag (incorrect ponderation at 20-10-18) : 0.00012 We reject this portfolio because of the condition_save_data : 2025-02-26 17:15:05.010152 ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info 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': '26022025', 'map_nb_amount': {0: 3, 1: 11, 2: 1, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 818.9989800453186, 'nb_balles_papier': 0.00015000000000000001, 'begin_time_port': 'image_26022025_18_01_04_10146.jpg'} Production hashtag (incorrect ponderation at 20-10-18) : 0.00015000000000000001 ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info 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': '26022025', 'map_nb_amount': {0: 5, 1: 21, 2: 3, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 890.999988079071, 'nb_balles_papier': 0.0002900000000000001, 'begin_time_port': 'image_26022025_18_15_03_10154.jpg'} Production hashtag (incorrect ponderation at 20-10-18) : 0.0002900000000000001 We have rejected 10 photos because of the batch_size condition ! NUMBER BATCH list_of_portfolios_to_create : 2 Still a lot to verify ! We need to add photos : {1339768867, 1339768740, 1339768773, 1339768902, 1339768807, 1339768777, 1339768811, 1339768846, 1339768719, 1339768815, 1339768849, 1339768850, 1339768851, 1339768817, 1339768858, 1339768733} Still a lot to verify ! Qualite : 0.09849057950248476 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`=20848689 AND mptpi.`type`=3726 To do Qualite : 0.10542787084305853 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`=20848890 AND mptpi.`type`=3726 To do elapsed_time : count_nb_balles_and_create_portfolio 0.4129517078399658 # DISPLAY ALL COLLECTED DATA : {'26022025': {'nb_upload': 193, 'nb_taggue_class': 2394, 'nb_taggue_densite': 2394}} Inside saveOutput : final : True verbose : 0 saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1339768902, 1339768899, 1339768895, 1339768891, 1339768867, 1339768858, 1339768851, 1339768850, 1339768849, 1339768846, 1339768817, 1339768815, 1339768811, 1339768807, 1339768777, 1339768773, 1339768740, 1339768733, 1339768719, 1339768253, 1339768173, 1339768170, 1339768135, 1339768131, 1339768128, 1339767986, 1339767965, 1339767589, 1339767586, 1339767583, 1339767579, 1339767575, 1339767521, 1339767518, 1339767440, 1339767279, 1339767160, 1339766946, 1339766737, 1339766733, 1339766495, 1339766354, 1339766351, 1339766295, 1339766285, 1339766281, 1339766206, 1339766205, 1339766203, 1339766199, 1339766194, 1339766189, 1339766107, 1339766103, 1339766099, 1339766095, 1339766055, 1339766052, 1339766049, 1339766045, 1339766041, 1339766038, 1339766014, 1339766007, 1339766000, 1339765996, 1339765993, 1339765974, 1339765972, 1339765969, 1339765966, 1339765945, 1339765944, 1339765943, 1339765941, 1339765929, 1339765874, 1339765871, 1339765867, 1339765863, 1339765853, 1339765686, 1339765683, 1339765680, 1339765664, 1339765662, 1339765657, 1339765654, 1339765503, 1339765498, 1339765311, 1339765310, 1339765308, 1339765305, 1339765301, 1339765297, 1339765251, 1339765244, 1339765233, 1339765225] Looping around the photos to save general results len do output : 1 /20820380Didn'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, '2617056') ('4876', '20820380', '1339768902', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339768899', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339768895', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339768891', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339768867', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339768858', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339768851', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339768850', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339768849', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339768846', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339768817', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339768815', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339768811', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339768807', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339768777', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339768773', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339768740', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339768733', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339768719', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339768253', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339768173', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339768170', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339768135', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339768131', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339768128', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339767986', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339767965', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339767589', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339767586', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339767583', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339767579', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339767575', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339767521', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339767518', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339767440', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339767279', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339767160', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339766946', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339766737', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339766733', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339766495', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339766354', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339766351', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339766295', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339766285', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339766281', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339766206', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339766205', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339766203', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339766199', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339766194', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339766189', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339766107', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339766103', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339766099', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339766095', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339766055', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339766052', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339766049', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339766045', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339766041', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339766038', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339766014', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339766007', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339766000', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339765996', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339765993', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339765974', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339765972', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339765969', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339765966', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339765945', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339765944', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339765943', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339765941', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339765929', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339765874', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339765871', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339765867', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339765863', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339765853', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339765686', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339765683', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339765680', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339765664', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339765662', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339765657', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339765654', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339765503', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339765498', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339765311', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339765310', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339765308', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339765305', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339765301', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339765297', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339765251', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339765244', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339765233', None, None, None, None, None, '2617056') ('4876', None, None, None, None, None, None, None, '2617056') ('4876', '20820380', '1339765225', None, None, None, None, None, '2617056') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 101 time used for this insertion : 0.028740406036376953 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.787196159362793 time spend to save output : 0.029909133911132812 total time spend for step 1 : 0.8171052932739258 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.41user 0.64system 0:03.93elapsed 52%CPU (0avgtext+0avgdata 102456maxresident)k 2424inputs+88outputs (39major+49355minor)pagefaults 0swaps