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 : 1397456 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 : ['2695071'] with mtr_portfolio_ids : ['21758531'] and first list_photo_ids : [] new path : /proc/1397456/ 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.03647470474243164 About to test input to load Calling datou_exec Inside datou_exec : verbose : 0 number of steps : 1 step1:split_time_score Thu Mar 27 00:52:27 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', 227),) ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {1: 179} 27032025 21758531 Nombre de photos uploadées : 227 / 23040 (0%) 27032025 21758531 Nombre de photos taguées (types de déchets): 179 / 227 (78%) 27032025 21758531 Nombre de photos taguées (volume) : 179 / 227 (78%) elapsed_time : load_data_split_time_score 4.76837158203125e-06 elapsed_time : order_list_meta_photo_and_scores 9.322166442871094e-05 ???????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.012914180755615234 elapsed_time : insert_dashboard_record_day_entry 0.036032915115356445 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 elapsed_time : list_photo_by_hashtags 0.009995460510253906 photos_removed : len 0 elapsed_time : load_duplicate_info 0.011129617691040039 ***** BEGIN SPLIT TIME ***** True 1743033600.0 `1743030004.010162 1743030000.0 `1743030014.010152 1743030000.0 `1743030024.009133 1743030000.0 `1743030034.010136 1743030000.0 `1743030044.010135 1743030000.0 `1743030054.010138 1743030000.0 `1743030064.010146 1743030000.0 `1743030074.010137 1743030000.0 `1743030084.010138 1743030000.0 `1743030095.010135 1743030000.0 `1743030124.010154 1743030000.0 `1743030134.010138 1743030000.0 `1743030144.010137 1743030000.0 `1743030154.010138 1743030000.0 `1743030165.010136 1743030000.0 `1743030174.009129 1743030000.0 `1743030184.010152 1743030000.0 `1743030194.010134 1743030000.0 `1743030204.010135 1743030000.0 `1743030214.010136 1743030000.0 `1743030224.010138 1743030000.0 `1743030254.010134 1743030000.0 `1743030264.010134 1743030000.0 `1743030274.010136 1743030000.0 `1743030284.010135 1743030000.0 `1743030294.010135 1743030000.0 `1743030304.010153 1743030000.0 `1743030314.009131 1743030000.0 `1743030324.010136 1743030000.0 `1743030334.010137 1743030000.0 `1743030344.010138 1743030000.0 `1743030354.01014 1743030000.0 `1743030364.010182 1743030000.0 `1743030374.010142 1743030000.0 `1743030384.009123 1743030000.0 `1743030424.010139 1743030000.0 `1743030434.010137 1743030000.0 `1743030444.010135 1743030000.0 `1743030455.010144 1743030000.0 `1743030464.009131 1743030000.0 `1743030474.010138 1743030000.0 `1743030484.010149 1743030000.0 `1743030494.010138 1743030000.0 `1743030504.010132 1743030000.0 `1743030514.010134 1743030000.0 `1743030544.010147 1743030000.0 `1743030554.010125 1743030000.0 `1743030564.009378 1743030000.0 `1743030574.010153 1743030000.0 `1743030584.010139 1743030000.0 `1743030594.01014 1743030000.0 `1743030604.010156 1743030000.0 `1743030614.010142 1743030000.0 `1743030624.009126 1743030000.0 `1743030634.010135 1743030000.0 `1743030674.010133 1743030000.0 `1743030684.010133 1743030000.0 `1743030695.010139 1743030000.0 `1743030704.009129 1743030000.0 `1743030714.010139 1743030000.0 `1743030724.010145 1743030000.0 `1743030734.010139 1743030000.0 `1743030744.010136 1743030000.0 `1743030754.010134 1743030000.0 `1743030765.010136 1743030000.0 `1743030774.009126 1743030000.0 `1743030784.010137 1743030000.0 `1743030814.010133 1743030000.0 `1743030824.010135 1743030000.0 `1743030844.00913 1743030000.0 `1743030854.010139 1743030000.0 `1743030864.010135 1743030000.0 `1743030874.010143 1743030000.0 `1743030884.01014 1743030000.0 `1743030894.010138 1743030000.0 `1743030904.010155 1743030900.0 `1743030914.009124 1743030900.0 `1743030924.01014 1743030900.0 `1743030934.010136 1743030900.0 `1743030944.010136 1743030900.0 `1743030954.010136 1743030900.0 `1743030964.01016 1743030900.0 `1743031004.010134 1743030900.0 `1743031014.01014 1743030900.0 `1743031024.010165 1743030900.0 `1743031034.010137 1743030900.0 `1743031044.010142 1743030900.0 `1743031055.010143 1743030900.0 `1743031064.009128 1743030900.0 `1743031074.010138 1743030900.0 `1743031084.010154 1743030900.0 `1743031094.010134 1743030900.0 `1743031104.010134 1743030900.0 `1743031114.010135 1743030900.0 `1743031125.010136 1743030900.0 `1743031134.009126 1743030900.0 `1743031164.010134 1743030900.0 `1743031174.010133 1743030900.0 `1743031184.010135 1743030900.0 `1743031204.009142 1743030900.0 `1743031214.010145 1743030900.0 `1743031224.010139 1743030900.0 `1743031234.010136 1743030900.0 `1743031244.010139 1743030900.0 `1743031254.010138 1743030900.0 `1743031264.010154 1743030900.0 `1743031274.009126 1743030900.0 `1743031284.010142 1743030900.0 `1743031294.010136 1743030900.0 `1743031304.010136 1743030900.0 `1743031314.010138 1743030900.0 `1743031354.009124 1743030900.0 `1743031364.010134 1743030900.0 `1743031374.010136 1743030900.0 `1743031384.010152 1743030900.0 `1743031394.010139 1743030900.0 `1743031404.010136 1743030900.0 `1743031415.01014 1743030900.0 `1743031424.009127 1743030900.0 `1743031434.010136 1743030900.0 `1743031444.01015 1743030900.0 `1743031454.010135 1743030900.0 `1743031464.010134 1743030900.0 `1743031494.009123 1743030900.0 `1743031504.010142 1743030900.0 `1743031514.010139 1743030900.0 `1743031524.010136 1743030900.0 `1743031534.010141 1743030900.0 `1743031544.010137 1743030900.0 `1743031554.01014 1743030900.0 `1743031564.009143 1743030900.0 `1743031574.010142 1743030900.0 `1743031584.010136 1743030900.0 `1743031594.010135 1743030900.0 `1743031604.010136 1743030900.0 `1743031614.01014 1743030900.0 `1743031654.010134 1743030900.0 `1743031664.010136 1743030900.0 `1743031674.010147 1743030900.0 `1743031684.010137 1743030900.0 `1743031694.010133 1743030900.0 `1743031705.010141 1743030900.0 `1743031714.009132 1743030900.0 `1743031724.010142 1743030900.0 `1743031734.010138 1743030900.0 `1743031744.010148 1743030900.0 `1743031754.010135 1743030900.0 `1743031794.010137 1743030900.0 `1743031804.010148 1743031800.0 `1743031814.010137 1743031800.0 `1743031824.010133 1743031800.0 `1743031834.010135 1743031800.0 `1743031844.010139 1743031800.0 `1743031854.009127 1743031800.0 `1743031864.010152 1743031800.0 `1743031874.010137 1743031800.0 `1743031884.010135 1743031800.0 `1743031894.010135 1743031800.0 `1743032065.010192 1743031800.0 `1743032074.009128 1743031800.0 `1743032094.010137 1743031800.0 `1743032104.010145 1743031800.0 `1743032114.010136 1743031800.0 `1743032124.010144 1743031800.0 `1743032135.010138 1743031800.0 `1743032144.009131 1743031800.0 `1743032154.010138 1743031800.0 `1743032164.010173 1743031800.0 `1743032174.010144 1743031800.0 `1743032184.010141 1743031800.0 `1743032194.01014 1743031800.0 `1743032205.010139 1743031800.0 `1743032244.010145 1743031800.0 `1743032254.010134 1743031800.0 `1743032264.010134 1743031800.0 `1743032274.010138 1743031800.0 `1743032284.00914 1743031800.0 `1743032294.010136 1743031800.0 `1743032304.010133 1743031800.0 `1743032314.010133 1743031800.0 `1743032324.010135 1743031800.0 `1743032334.010136 1743031800.0 `1743032344.010145 1743031800.0 `1743032354.009127 1743031800.0 `1743032364.010135 1743031800.0 `1743032374.010136 1743031800.0 `1743032384.010132 1743031800.0 `1743032414.010138 1743031800.0 `1743032425.010134 1743031800.0 `1743032434.009124 1743031800.0 `1743032444.01014 1743031800.0 `1743032464.010151 1743031800.0 `1743032474.010158 1743031800.0 `1743032484.010137 1743031800.0 `1743032495.010135 1743031800.0 `1743032514.010137 1743031800.0 `1743032524.010151 1743031800.0 `1743032534.010137 1743031800.0 `1743032544.010135 1743031800.0 `1743032584.010149 1743031800.0 `1743032595.010136 1743031800.0 `1743032604.009127 1743031800.0 `1743032614.01014 1743031800.0 `1743032624.010142 1743031800.0 `1743032634.010136 1743031800.0 `1743032644.01015 1743031800.0 `1743032654.010136 1743031800.0 `1743032664.010135 1743031800.0 `1743032674.009132 1743031800.0 `1743032684.010135 1743031800.0 `1743032694.010135 1743031800.0 `1743032724.010134 1743032700.0 `1743032734.010135 1743032700.0 `1743032744.009127 1743032700.0 `1743032754.010141 1743032700.0 `1743032764.010147 1743032700.0 `1743032774.010136 1743032700.0 `1743032784.010138 1743032700.0 `1743032794.010138 1743032700.0 `1743032834.010144 1743032700.0 `1743032885.010157 1743032700.0 `1743032914.010147 1743032700.0 `1743032924.010142 1743032700.0 `1743032944.010152 1743032700.0 `1743032955.010135 1743032700.0 `1743032974.010135 1743032700.0 `1743032984.010139 1743032700.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, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210], [211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226]] forced_hashtag: JRM force hashtag to JRM elapsed_time : SPLIT_TIME 0.012956619262695312 ***** END SPLIT TIME ***** NUMBER BATCH : 4 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 ERROR missing amount info ERROR missing amount info ERROR missing amount info result_one_balle_Type_JRM:{'day': '27032025', 'map_nb_amount': {0: 3, 1: 49, 2: 14, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 889.9999759197235, 'nb_balles_papier': 0.0006600000000000011, 'begin_time_port': 'image_27032025_00_00_04_010162m0.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.0006600000000000011 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': '27032025', 'map_nb_amount': {0: 3, 1: 44, 2: 8, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 889.9999821186066, 'nb_balles_papier': 0.0005500000000000008, 'begin_time_port': 'image_27032025_00_15_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.0005500000000000008 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': '27032025', 'map_nb_amount': {0: 1, 1: 41, 2: 12, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 889.9999868869781, 'nb_balles_papier': 0.0005400000000000008, 'begin_time_port': 'image_27032025_00_30_04_010148m0.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.0005400000000000008 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': '27032025', 'map_nb_amount': {0: 1, 1: 3, 2: 0, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 260.00000500679016, 'nb_balles_papier': 4e-05, 'begin_time_port': 'image_27032025_00_45_24_10134.jpg'} Production hashtag (incorrect ponderation at 20-10-18) : 4e-05 We have rejected 0 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 : {1347696960, 1347697411, 1347697126, 1347697418, 1347697008, 1347697435, 1347697406, 1347697439} Still a lot to verify ! Qualite : 0.03944447767493272 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`=21758623 AND mptpi.`type`=3726 To do Qualite : 0.05152367100313689 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`=21759362 AND mptpi.`type`=3726 To do Qualite : 0.06942121240471084 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`=21760093 AND mptpi.`type`=3726 To do Qualite : 0.07498931424079743 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`=21760560 AND mptpi.`type`=3726 To do elapsed_time : count_nb_balles_and_create_portfolio 0.8206784725189209 # DISPLAY ALL COLLECTED DATA : {'27032025': {'nb_upload': 227, 'nb_taggue_class': 179, 'nb_taggue_densite': 179}} Inside saveOutput : final : True verbose : 0 saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1347697439, 1347697435, 1347697418, 1347697411, 1347697406, 1347697126, 1347697008, 1347696960, 1347696450, 1347696086, 1347696079, 1347696072, 1347696066, 1347695941, 1347695936, 1347695929, 1347695923, 1347695821, 1347695786, 1347695779, 1347695774, 1347695757, 1347695733, 1347695389, 1347695337, 1347695288, 1347695261, 1347695229, 1347695204, 1347694867, 1347694862, 1347694855, 1347694582, 1347694572, 1347694565, 1347694561, 1347694553, 1347694526, 1347694520, 1347694516, 1347694515, 1347694436, 1347694424, 1347694420, 1347694418, 1347694399, 1347694220, 1347694207, 1347694186, 1347694178, 1347694172, 1347694166, 1347693813, 1347693810, 1347693805, 1347693800, 1347693775, 1347693764, 1347693707, 1347693632, 1347693575, 1347693193, 1347693190, 1347693188, 1347693185, 1347693179, 1347693174, 1347693121, 1347693062, 1347693060, 1347692268, 1347692243, 1347692205, 1347692174, 1347691913, 1347691883, 1347691855, 1347691831, 1347691798, 1347691775, 1347691512, 1347691487, 1347691423, 1347691096, 1347691083, 1347691052, 1347691000, 1347690965, 1347690927, 1347690432, 1347690416, 1347690404, 1347690262, 1347690231, 1347690199, 1347690172, 1347690158, 1347690155, 1347690084, 1347690080] Looping around the photos to save general results len do output : 1 /21758531Didn'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, '2695071') ('4876', '21758531', '1347697439', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347697435', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347697418', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347697411', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347697406', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347697126', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347697008', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347696960', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347696450', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347696086', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347696079', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347696072', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347696066', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347695941', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347695936', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347695929', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347695923', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347695821', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347695786', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347695779', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347695774', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347695757', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347695733', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347695389', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347695337', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347695288', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347695261', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347695229', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347695204', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347694867', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347694862', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347694855', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347694582', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347694572', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347694565', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347694561', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347694553', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347694526', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347694520', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347694516', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347694515', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347694436', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347694424', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347694420', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347694418', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347694399', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347694220', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347694207', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347694186', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347694178', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347694172', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347694166', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347693813', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347693810', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347693805', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347693800', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347693775', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347693764', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347693707', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347693632', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347693575', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347693193', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347693190', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347693188', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347693185', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347693179', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347693174', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347693121', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347693062', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347693060', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347692268', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347692243', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347692205', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347692174', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347691913', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347691883', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347691855', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347691831', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347691798', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347691775', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347691512', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347691487', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347691423', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347691096', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347691083', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347691052', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347691000', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347690965', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347690927', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347690432', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347690416', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347690404', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347690262', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347690231', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347690199', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347690172', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347690158', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347690155', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347690084', None, None, None, None, None, '2695071') ('4876', None, None, None, None, None, None, None, '2695071') ('4876', '21758531', '1347690080', None, None, None, None, None, '2695071') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 101 time used for this insertion : 0.06484150886535645 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.0077362060546875 time spend to save output : 0.06542778015136719 total time spend for step 1 : 1.0731639862060547 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.35user 0.58system 0:04.20elapsed 46%CPU (0avgtext+0avgdata 101568maxresident)k 424inputs+96outputs (15major+48714minor)pagefaults 0swaps