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 : 1085833 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 : 2443>1000 please execute split_portfolio.py -i 21370538 -l 1000 size over we load limit photo not treated list_input_json: {} Current got : datou_id : 4876, datou_cur_ids : ['2667194'] with mtr_portfolio_ids : ['21370538'] and first list_photo_ids : [] new path : /proc/1085833/ 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.0349574089050293 About to test input to load Calling datou_exec Inside datou_exec : verbose : 0 number of steps : 1 step1:split_time_score Thu Mar 13 23:40: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', 14), ('01', 9), ('02', 13), ('03', 8), ('04', 7), ('05', 49), ('06', 156), ('07', 305), ('08', 254), ('09', 111), ('10', 276), ('11', 208), ('12', 158), ('13', 22), ('14', 14), ('15', 16), ('16', 16), ('17', 15), ('18', 184), ('19', 146), ('20', 130), ('21', 258), ('22', 54), ('23', 20)) ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {1: 1366} 13032025 21370538 Nombre de photos uploadées : 169 / 23040 (0%) 13032025 21370538 Nombre de photos taguées (types de déchets): 1366 / 169 (808%) 13032025 21370538 Nombre de photos taguées (volume) : 1366 / 169 (808%) elapsed_time : load_data_split_time_score 2.86102294921875e-06 elapsed_time : order_list_meta_photo_and_scores 0.0005936622619628906 ???????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.009268999099731445 elapsed_time : insert_dashboard_record_day_entry 0.027220726013183594 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 elapsed_time : list_photo_by_hashtags 0.012304306030273438 photos_removed : len 0 elapsed_time : load_duplicate_info 0.014463186264038086 ***** BEGIN SPLIT TIME ***** True 1741824000.0 `1741898334.010137 1741897800.0 `1741898344.010138 1741897800.0 `1741898384.010136 1741897800.0 `1741898393.009123 1741897800.0 `1741898414.01014 1741897800.0 `1741898424.010135 1741897800.0 `1741898434.010135 1741897800.0 `1741898444.010135 1741897800.0 `1741898454.010136 1741897800.0 `1741898474.01014 1741897800.0 `1741898484.010141 1741897800.0 `1741898494.010135 1741897800.0 `1741898504.010135 1741897800.0 `1741898514.010139 1741897800.0 `1741898524.010151 1741897800.0 `1741898533.009126 1741897800.0 `1741898554.010134 1741897800.0 `1741898564.010137 1741897800.0 `1741898574.010136 1741897800.0 `1741898584.010142 1741897800.0 `1741898624.010137 1741897800.0 `1741898634.010134 1741897800.0 `1741898644.010163 1741897800.0 `1741898654.010135 1741897800.0 `1741898664.010135 1741897800.0 `1741898683.00913 1741897800.0 `1741898694.010139 1741897800.0 `1741898704.010155 1741898700.0 `1741898714.010138 1741898700.0 `1741898724.010137 1741898700.0 `1741898734.010135 1741898700.0 `1741898744.010139 1741898700.0 `1741898753.009129 1741898700.0 `1741898774.010142 1741898700.0 `1741898784.010139 1741898700.0 `1741898804.010136 1741898700.0 `1741898814.010137 1741898700.0 `1741898823.009149 1741898700.0 `1741898844.010142 1741898700.0 `1741898854.010136 1741898700.0 `1741898864.010134 1741898700.0 `1741898904.010134 1741898700.0 `1741898914.010134 1741898700.0 `1741898924.010135 1741898700.0 `1741898934.010133 1741898700.0 `1741898944.010153 1741898700.0 `1741898954.010135 1741898700.0 `1741898963.009125 1741898700.0 `1741898974.010136 1741898700.0 `1741898984.010137 1741898700.0 `1741898994.01014 1741898700.0 `1741899014.010136 1741898700.0 `1741899024.010136 1741898700.0 `1741899034.010134 1741898700.0 `1741899043.009125 1741898700.0 `1741899054.010137 1741898700.0 `1741899064.01015 1741898700.0 `1741899074.010138 1741898700.0 `1741899084.010131 1741898700.0 `1741899113.009123 1741898700.0 `1741899134.010134 1741898700.0 `1741899154.010134 1741898700.0 `1741899164.010135 1741898700.0 `1741899174.010136 1741898700.0 `1741899183.009151 1741898700.0 `1741899194.01014 1741898700.0 `1741899204.010137 1741898700.0 `1741899214.010352 1741898700.0 `1741899224.010139 1741898700.0 `1741899234.010137 1741898700.0 `1741899243.009153 1741898700.0 `1741899254.010142 1741898700.0 `1741899264.010136 1741898700.0 `1741899284.010138 1741898700.0 `1741899294.01014 1741898700.0 `1741899304.010155 1741898700.0 `1741899313.009126 1741898700.0 `1741899324.010147 1741898700.0 `1741899364.01014 1741898700.0 `1741899374.01014 1741898700.0 `1741899383.009123 1741898700.0 `1741899394.010136 1741898700.0 `1741899414.010139 1741898700.0 `1741899444.010137 1741898700.0 `1741899464.010136 1741898700.0 `1741899484.010148 1741898700.0 `1741899504.010136 1741898700.0 `1741899514.010142 1741898700.0 `1741899524.010137 1741898700.0 `1741899533.009126 1741898700.0 `1741899554.01037 1741898700.0 `1741899564.010141 1741898700.0 `1741899574.010142 1741898700.0 `1741899584.01014 1741898700.0 `1741899594.010138 1741898700.0 `1741899603.009181 1741899600.0 `1741899644.010135 1741899600.0 `1741899664.010139 1741899600.0 `1741899673.009125 1741899600.0 `1741899693.010135 1741899600.0 `1741899704.010137 1741899600.0 `1741899724.010168 1741899600.0 `1741899743.009127 1741899600.0 `1741899763.010137 1741899600.0 `1741899784.010151 1741899600.0 `1741899794.010137 1741899600.0 `1741899804.010135 1741899600.0 `1741899813.009127 1741899600.0 `1741899823.010137 1741899600.0 `1741899844.010147 1741899600.0 `1741899854.010136 1741899600.0 `1741899864.010135 1741899600.0 `1741899903.010142 1741899600.0 `1741899914.010136 1741899600.0 `1741899924.010134 1741899600.0 `1741899934.010142 1741899600.0 `1741899954.010138 1741899600.0 `1741899973.010142 1741899600.0 `1741899994.010135 1741899600.0 `1741900004.010138 1741899600.0 `1741900014.010138 1741899600.0 `1741900043.010141 1741899600.0 `1741900054.010134 1741899600.0 `1741900064.010137 1741899600.0 `1741900074.010137 1741899600.0 `1741900084.010139 1741899600.0 `1741900094.010135 1741899600.0 `1741900103.009122 1741899600.0 `1741900134.010136 1741899600.0 `1741900144.010137 1741899600.0 `1741900154.010139 1741899600.0 `1741900174.010135 1741899600.0 `1741900193.010135 1741899600.0 `1741900224.010136 1741899600.0 `1741900234.010136 1741899600.0 `1741900454.01014 1741899600.0 `1741901004.010145 1741900500.0 `1741901554.010143 1741901400.0 `1741902103.010141 1741901400.0 `1741902414.010139 1741902300.0 `1741902424.010159 1741902300.0 `1741902654.010137 1741902300.0 `1741902663.009149 1741902300.0 `1741902673.010136 1741902300.0 `1741902784.010162 1741902300.0 `1741902974.010138 1741902300.0 `1741902984.010138 1741902300.0 `1741903084.010155 1741902300.0 `1741903093.009125 1741902300.0 `1741903214.010195 1741903200.0 `1741903224.01014 1741903200.0 `1741903405.010138 1741903200.0 `1741903485.010141 1741903200.0 `1741903494.009126 1741903200.0 `1741903734.010136 1741903200.0 `1741903745.010152 1741903200.0 `1741903774.009137 1741903200.0 `1741903955.010143 1741903200.0 `1741904004.010142 1741903200.0 `1741904064.009125 1741903200.0 `1741904144.010141 1741904100.0 `1741904164.010148 1741904100.0 `1741904325.010138 1741904100.0 `1741904415.01014 1741904100.0 `1741904675.010142 1741904100.0 `1741904685.010134 1741904100.0 `1741904874.010138 1741904100.0 `1741904884.010155 1741904100.0 `1741905234.010136 1741905000.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]] forced_hashtag: JRM force hashtag to JRM elapsed_time : SPLIT_TIME 0.011240005493164062 ***** END SPLIT TIME ***** NUMBER BATCH : 9 list_ponderation used : [1e-05, 1e-05, 1e-05, 1e-05, 1e-05] , list_hashtag_class_create_as_list : ['jrm'] result_one_balle_Type_JRM:{'day': '13032025', 'map_nb_amount': {0: 6, 1: 20, 2: 1, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 360.00000190734863, 'nb_balles_papier': 0.00027000000000000006, 'begin_time_port': 'image_13032025_21_38_54_010137m0.jpg 5e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'} Production hashtag (incorrect ponderation at 20-10-18) : 0.00027000000000000006 We reject this portfolio because of the condition_save_data : 2025-03-13 21:38:54.010137 result_one_balle_Type_JRM:{'day': '13032025', 'map_nb_amount': {0: 9, 1: 58, 2: 1, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 889.9999830722809, 'nb_balles_papier': 0.0006800000000000011, 'begin_time_port': 'image_13032025_21_45_04_010155m0.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.0006800000000000011 We reject this portfolio because of the condition_save_data : 2025-03-13 21:45:04.010155 ERROR missing amount info result_one_balle_Type_JRM:{'day': '13032025', 'map_nb_amount': {0: 8, 1: 29, 2: 3, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 851.0009589195251, 'nb_balles_papier': 0.0004000000000000004, 'begin_time_port': 'image_13032025_22_00_03_009181m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'} Production hashtag (incorrect ponderation at 20-10-18) : 0.0004000000000000004 We reject this portfolio because of the condition_save_data : 2025-03-13 22:00:03.009181 ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info result_one_balle_Type_JRM:{'day': '13032025', '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': 678.9989860057831, 'nb_balles_papier': 6e-05, 'begin_time_port': 'image_13032025_22_46_54_10139.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 ERROR missing amount info result_one_balle_Type_JRM:{'day': '13032025', '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': 849.998929977417, 'nb_balles_papier': 6e-05, 'begin_time_port': 'image_13032025_23_00_14_010195m0.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 ERROR missing amount info ERROR missing amount info result_one_balle_Type_JRM:{'day': '13032025', 'map_nb_amount': {0: 0, 1: 0, 2: 2, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 740.0000140666962, 'nb_balles_papier': 2e-05, 'begin_time_port': 'image_13032025_23_15_44_10141.jpg'} Production hashtag (incorrect ponderation at 20-10-18) : 2e-05 We have rejected 4 photos because of the batch_size condition ! NUMBER BATCH list_of_portfolios_to_create : 3 Still a lot to verify ! Still a lot to verify ! Still a lot to verify ! Qualite : 0.17467052348354237 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`=21400996 AND mptpi.`type`=3726 To do Qualite : 0.10495362949316643 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`=21401669 AND mptpi.`type`=3726 To do Qualite : 0.12521998225209086 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`=21402278 AND mptpi.`type`=3726 To do elapsed_time : count_nb_balles_and_create_portfolio 0.5542712211608887 # DISPLAY ALL COLLECTED DATA : {'13032025': {'nb_upload': 169, 'nb_taggue_class': 1366, 'nb_taggue_densite': 1366}} Inside saveOutput : final : True verbose : 0 saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1343993875, 1343993519, 1343992950, 1343992400, 1343989892, 1343989841, 1343986222, 1343985559, 1343984974, 1343984795, 1343984586, 1343984392, 1343983376, 1343981819, 1343981743, 1343981517, 1343980008, 1343980005, 1343979604, 1343978500, 1343978463, 1343978108, 1343978083, 1343977516, 1343977489, 1343976608, 1343975971, 1343975959, 1343975502, 1343973649, 1343973062, 1343971412, 1343966229, 1343961245, 1343956961, 1343955066, 1343955042, 1343954862, 1343954830, 1343954826, 1343954823, 1343954548, 1343954524, 1343954519, 1343954502, 1343953972, 1343953839, 1343953821, 1343953723, 1343953265, 1343953211, 1343953165, 1343953136, 1343952901, 1343952859, 1343952798, 1343952740, 1343952688, 1343951968, 1343951897, 1343951844, 1343951279, 1343951193, 1343951134, 1343951083, 1343951054, 1343950786, 1343950782, 1343950765, 1343950694, 1343950674, 1343950670, 1343950666, 1343950552, 1343950548, 1343950532, 1343950511, 1343950491, 1343950487, 1343950479, 1343950330, 1343950315, 1343950245, 1343950155, 1343950120, 1343949118, 1343949098, 1343948911, 1343948865, 1343948826, 1343948799, 1343948775, 1343948345, 1343948312, 1343948297, 1343948187, 1343948186, 1343948183, 1343948179, 1343948175] Looping around the photos to save general results len do output : 1 /21370538Didn'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, '2667194') ('4876', '21370538', '1343993875', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343993519', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343992950', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343992400', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343989892', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343989841', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343986222', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343985559', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343984974', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343984795', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343984586', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343984392', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343983376', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343981819', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343981743', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343981517', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343980008', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343980005', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343979604', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343978500', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343978463', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343978108', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343978083', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343977516', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343977489', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343976608', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343975971', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343975959', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343975502', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343973649', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343973062', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343971412', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343966229', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343961245', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343956961', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343955066', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343955042', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343954862', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343954830', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343954826', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343954823', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343954548', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343954524', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343954519', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343954502', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343953972', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343953839', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343953821', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343953723', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343953265', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343953211', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343953165', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343953136', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343952901', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343952859', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343952798', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343952740', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343952688', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343951968', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343951897', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343951844', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343951279', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343951193', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343951134', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343951083', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343951054', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343950786', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343950782', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343950765', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343950694', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343950674', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343950670', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343950666', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343950552', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343950548', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343950532', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343950511', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343950491', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343950487', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343950479', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343950330', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343950315', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343950245', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343950155', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343950120', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343949118', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343949098', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343948911', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343948865', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343948826', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343948799', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343948775', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343948345', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343948312', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343948297', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343948187', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343948186', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343948183', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343948179', None, None, None, None, None, '2667194') ('4876', None, None, None, None, None, None, None, '2667194') ('4876', '21370538', '1343948175', None, None, None, None, None, '2667194') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 101 time used for this insertion : 0.03783440589904785 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.8644776344299316 time spend to save output : 0.04319453239440918 total time spend for step 1 : 0.9076721668243408 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.39user 0.48system 0:03.63elapsed 51%CPU (0avgtext+0avgdata 103580maxresident)k 48inputs+88outputs (2major+49117minor)pagefaults 0swaps