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 : 1118139 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 : 1075>1000 please execute split_portfolio.py -i 20698945 -l 1000 size over we load limit photo not treated list_input_json: {} Current got : datou_id : 4876, datou_cur_ids : ['2603040'] with mtr_portfolio_ids : ['20698945'] and first list_photo_ids : [] new path : /proc/1118139/ 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.5488021373748779 About to test input to load Calling datou_exec Inside datou_exec : verbose : 0 number of steps : 1 step1:split_time_score Fri Feb 21 05:40:31 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', 255), ('01', 139), ('02', 274), ('03', 240), ('04', 16), ('05', 151)) ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {1: 921} 21022025 20698945 Nombre de photos uploadées : 236 / 23040 (1%) 21022025 20698945 Nombre de photos taguées (types de déchets): 921 / 236 (390%) 21022025 20698945 Nombre de photos taguées (volume) : 921 / 236 (390%) elapsed_time : load_data_split_time_score 2.86102294921875e-06 elapsed_time : order_list_meta_photo_and_scores 0.0003829002380371094 ??????????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.010648727416992188 elapsed_time : insert_dashboard_record_day_entry 0.028997182846069336 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 elapsed_time : list_photo_by_hashtags 0.009828805923461914 photos_removed : len 0 elapsed_time : load_duplicate_info 0.014337539672851562 ***** BEGIN SPLIT TIME ***** True 1740096000.0 `1740105464.010139 1740105000.0 `1740105644.010142 1740105000.0 `1740105824.010139 1740105000.0 `1740105844.010148 1740105000.0 `1740105854.010139 1740105000.0 `1740105864.010137 1740105000.0 `1740105874.010145 1740105000.0 `1740105904.009144 1740105900.0 `1740105914.010138 1740105900.0 `1740105924.010143 1740105900.0 `1740105934.010142 1740105900.0 `1740105944.010143 1740105900.0 `1740105954.010143 1740105900.0 `1740105964.01014 1740105900.0 `1740105974.009127 1740105900.0 `1740105984.01014 1740105900.0 `1740105994.010134 1740105900.0 `1740106004.010138 1740105900.0 `1740106014.010139 1740105900.0 `1740106034.010135 1740105900.0 `1740106045.010137 1740105900.0 `1740106054.009124 1740105900.0 `1740106064.010138 1740105900.0 `1740106074.010135 1740105900.0 `1740106084.010152 1740105900.0 `1740106104.010135 1740105900.0 `1740106124.009126 1740105900.0 `1740106144.010148 1740105900.0 `1740106154.010134 1740105900.0 `1740106164.010139 1740105900.0 `1740106174.010142 1740105900.0 `1740106184.010137 1740105900.0 `1740106204.010158 1740105900.0 `1740106214.010137 1740105900.0 `1740106244.010136 1740105900.0 `1740106254.010134 1740105900.0 `1740106264.009145 1740105900.0 `1740106274.010139 1740105900.0 `1740106284.010139 1740105900.0 `1740106294.010137 1740105900.0 `1740106304.010139 1740105900.0 `1740106314.010136 1740105900.0 `1740106324.010147 1740105900.0 `1740106335.010136 1740105900.0 `1740106344.009124 1740105900.0 `1740106364.010135 1740105900.0 `1740106374.010135 1740105900.0 `1740106414.009122 1740105900.0 `1740106424.010136 1740105900.0 `1740106434.010138 1740105900.0 `1740106444.010164 1740105900.0 `1740106454.010141 1740105900.0 `1740106464.010137 1740105900.0 `1740106474.010146 1740105900.0 `1740106484.009128 1740105900.0 `1740106494.010141 1740105900.0 `1740106504.010162 1740105900.0 `1740106514.01014 1740105900.0 `1740106524.010138 1740105900.0 `1740106534.010137 1740105900.0 `1740106574.010138 1740105900.0 `1740106584.010133 1740105900.0 `1740106594.010136 1740105900.0 `1740106604.010135 1740105900.0 `1740106614.010135 1740105900.0 `1740106624.009139 1740105900.0 `1740106634.01014 1740105900.0 `1740106644.010142 1740105900.0 `1740106674.010137 1740105900.0 `1740107164.00914 1740106800.0 `1740107285.01015 1740106800.0 `1740107295.010139 1740106800.0 `1740107304.009127 1740106800.0 `1740107314.010143 1740106800.0 `1740107334.010137 1740106800.0 `1740107345.010149 1740106800.0 `1740107375.010132 1740106800.0 `1740107384.009122 1740106800.0 `1740107394.010135 1740106800.0 `1740107415.010146 1740106800.0 `1740107715.010136 1740107700.0 `1740108264.010136 1740107700.0 `1740108814.009137 1740108600.0 `1740109365.010135 1740108600.0 `1740109914.010134 1740109500.0 `1740110474.010136 1740110400.0 `1740110484.010135 1740110400.0 `1740110653.009125 1740110400.0 `1740110714.010135 1740110400.0 `1740110723.009123 1740110400.0 `1740110784.010133 1740110400.0 `1740110793.009125 1740110400.0 `1740110804.010137 1740110400.0 `1740110814.010138 1740110400.0 `1740110824.010152 1740110400.0 `1740110834.010137 1740110400.0 `1740110854.010134 1740110400.0 `1740110863.009128 1740110400.0 `1740110884.010198 1740110400.0 `1740110894.01014 1740110400.0 `1740110904.010135 1740110400.0 `1740110914.010136 1740110400.0 `1740110924.010138 1740110400.0 `1740111013.010141 1740110400.0 `1740111024.010132 1740110400.0 `1740111034.010134 1740110400.0 `1740111044.010135 1740110400.0 `1740111054.010134 1740110400.0 `1740111074.010135 1740110400.0 `1740111094.010134 1740110400.0 `1740111104.010137 1740110400.0 `1740111114.010145 1740110400.0 `1740111124.010166 1740110400.0 `1740111134.010136 1740110400.0 `1740111144.010137 1740110400.0 `1740111153.009128 1740110400.0 `1740111164.010143 1740110400.0 `1740111174.010139 1740110400.0 `1740111184.010168 1740110400.0 `1740111194.010134 1740110400.0 `1740111223.009122 1740110400.0 `1740111234.010133 1740110400.0 `1740111254.010134 1740110400.0 `1740111264.010134 1740110400.0 `1740111314.010138 1740111300.0 `1740111334.010139 1740111300.0 `1740111344.010142 1740111300.0 `1740111354.010137 1740111300.0 `1740111384.010136 1740111300.0 `1740111394.010139 1740111300.0 `1740111404.010141 1740111300.0 `1740111414.010136 1740111300.0 `1740111424.01015 1740111300.0 `1740111433.009124 1740111300.0 `1740111443.010134 1740111300.0 `1740111454.010143 1740111300.0 `1740111464.010137 1740111300.0 `1740111494.010136 1740111300.0 `1740111504.010135 1740111300.0 `1740111513.009125 1740111300.0 `1740111524.010138 1740111300.0 `1740111534.010138 1740111300.0 `1740111544.010165 1740111300.0 `1740111554.010139 1740111300.0 `1740111564.010135 1740111300.0 `1740111594.010137 1740111300.0 `1740111604.010134 1740111300.0 `1740111614.010134 1740111300.0 `1740111624.010135 1740111300.0 `1740111634.010136 1740111300.0 `1740111644.010138 1740111300.0 `1740111653.009126 1740111300.0 `1740111664.010152 1740111300.0 `1740111674.010136 1740111300.0 `1740111704.010135 1740111300.0 `1740111714.010135 1740111300.0 `1740111723.009124 1740111300.0 `1740111733.010138 1740111300.0 `1740111744.010134 1740111300.0 `1740111754.010134 1740111300.0 `1740111764.010139 1740111300.0 `1740111774.010136 1740111300.0 `1740111784.010148 1740111300.0 `1740111803.009123 1740111300.0 `1740111814.010132 1740111300.0 `1740111824.010134 1740111300.0 `1740111834.010135 1740111300.0 `1740111844.010152 1740111300.0 `1740111854.010134 1740111300.0 `1740111864.010133 1740111300.0 `1740111873.009123 1740111300.0 `1740111894.010137 1740111300.0 `1740111904.010154 1740111300.0 `1740111914.010139 1740111300.0 `1740111924.010134 1740111300.0 `1740111934.010136 1740111300.0 `1740111943.009125 1740111300.0 `1740111953.010137 1740111300.0 `1740111964.010152 1740111300.0 `1740111974.010136 1740111300.0 `1740111994.010133 1740111300.0 `1740112004.010132 1740111300.0 `1740112014.010142 1740111300.0 `1740112023.009125 1740111300.0 `1740112034.010136 1740111300.0 `1740112044.010141 1740111300.0 `1740112054.010135 1740111300.0 `1740112064.010133 1740111300.0 `1740112084.010159 1740111300.0 `1740112093.009126 1740111300.0 `1740112104.010137 1740111300.0 `1740112114.010138 1740111300.0 `1740112124.010144 1740111300.0 `1740112134.01014 1740111300.0 `1740112144.010152 1740111300.0 `1740112154.010138 1740111300.0 `1740112163.009126 1740111300.0 `1740112194.010135 1740111300.0 `1740112204.01015 1740112200.0 `1740112214.010133 1740112200.0 `1740112234.01014 1740112200.0 `1740112254.010137 1740112200.0 `1740112284.010136 1740112200.0 `1740112294.010138 1740112200.0 `1740112334.010146 1740112200.0 `1740112354.010138 1740112200.0 `1740112364.010139 1740112200.0 `1740112384.01015 1740112200.0 `1740112394.010135 1740112200.0 `1740112404.010134 1740112200.0 `1740112414.010145 1740112200.0 `1740112424.010135 1740112200.0 `1740112443.009144 1740112200.0 `1740112454.010135 1740112200.0 `1740112464.010132 1740112200.0 `1740112474.010134 1740112200.0 `1740112484.010134 1740112200.0 `1740112494.010135 1740112200.0 `1740112504.01015 1740112200.0 `1740112534.010135 1740112200.0 `1740112544.010135 1740112200.0 `1740112554.01014 1740112200.0 `1740112564.010164 1740112200.0 `1740112574.010138 1740112200.0 `1740112584.010138 1740112200.0 `1740112593.009127 1740112200.0 `1740112614.010138 1740112200.0 `1740112624.010145 1740112200.0 `1740112634.010139 1740112200.0 `1740112644.010138 1740112200.0 `1740112654.010138 1740112200.0 `1740112663.009128 1740112200.0 `1740112674.010136 1740112200.0 `1740112704.010134 1740112200.0 `1740112714.010134 1740112200.0 `1740112724.010136 1740112200.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, 227, 228, 229, 230, 231, 232, 233, 234, 235]] forced_hashtag: JRM force hashtag to JRM elapsed_time : SPLIT_TIME 0.013834953308105469 ***** 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'] ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info result_one_balle_Type_JRM:{'day': '21022025', 'map_nb_amount': {0: 2, 1: 33, 2: 22, 3: 1, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 770.000993013382, 'nb_balles_papier': 0.0005800000000000009, 'begin_time_port': 'image_21022025_03_45_04_009144m0.jpg 1e-05 for time 1, id_amount 4 this amount prod time diff : 1e-05'} Production hashtag (incorrect ponderation at 20-10-18) : 0.0005800000000000009 We reject this portfolio because of the condition_save_data : 2025-02-21 03:45:04.009144 ERROR missing amount info ERROR missing amount info result_one_balle_Type_JRM:{'day': '21022025', 'map_nb_amount': {0: 2, 1: 6, 2: 1, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 251.00100588798523, 'nb_balles_papier': 9e-05, 'begin_time_port': 'image_21022025_04_06_04_9140.jpg'} Production hashtag (incorrect ponderation at 20-10-18) : 9e-05 We reject this portfolio because of the condition_save_data : 2025-02-21 04:06:04.009140 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': '21022025', 'map_nb_amount': {0: 1, 1: 21, 2: 1, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 789.9999980926514, 'nb_balles_papier': 0.00023, 'begin_time_port': 'image_21022025_05_01_14_010136m0.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.00023 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': '21022025', 'map_nb_amount': {0: 6, 1: 32, 2: 10, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 879.9999969005585, 'nb_balles_papier': 0.0004800000000000006, 'begin_time_port': 'image_21022025_05_15_14_010138m0.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.0004800000000000006 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': '21022025', 'map_nb_amount': {0: 4, 1: 11, 2: 3, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 519.9999859333038, 'nb_balles_papier': 0.00018, 'begin_time_port': 'image_21022025_05_30_04_10150.jpg'} Production hashtag (incorrect ponderation at 20-10-18) : 0.00018 We have rejected 12 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 ! We need to add photos : {1338755975, 1338756071, 1338756041, 1338756073, 1338756050, 1338756052, 1338756053, 1338756060, 1338756062} Still a lot to verify ! Qualite : 0.041341326449750436 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`=20709446 AND mptpi.`type`=3726 To do Qualite : 0.048671970975251236 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`=20709857 AND mptpi.`type`=3726 To do Qualite : 0.02691903377689885 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`=20710337 AND mptpi.`type`=3726 To do elapsed_time : count_nb_balles_and_create_portfolio 0.8421163558959961 # DISPLAY ALL COLLECTED DATA : {'21022025': {'nb_upload': 236, 'nb_taggue_class': 921, 'nb_taggue_densite': 921}} Inside saveOutput : final : True verbose : 0 saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1338756073, 1338756071, 1338756062, 1338756060, 1338756053, 1338756052, 1338756050, 1338756041, 1338755975, 1338755971, 1338755942, 1338755936, 1338755927, 1338755916, 1338755913, 1338755901, 1338755898, 1338755895, 1338755893, 1338755806, 1338755800, 1338755798, 1338755796, 1338755791, 1338755782, 1338755686, 1338755684, 1338755680, 1338755678, 1338755677, 1338755632, 1338755629, 1338755626, 1338755599, 1338755592, 1338755584, 1338755581, 1338755578, 1338755576, 1338755557, 1338755553, 1338755551, 1338755547, 1338755499, 1338755496, 1338755494, 1338755492, 1338755488, 1338755479, 1338755462, 1338755460, 1338755457, 1338755455, 1338755454, 1338755445, 1338755443, 1338755439, 1338755434, 1338755431, 1338755427, 1338755424, 1338755420, 1338755417, 1338755413, 1338755411, 1338755221, 1338755208, 1338755180, 1338755150, 1338755149, 1338755109, 1338755096, 1338755092, 1338755088, 1338755025, 1338754744, 1338754742, 1338754739, 1338754732, 1338754726, 1338754724, 1338754716, 1338754713, 1338754710, 1338754704, 1338754682, 1338754674, 1338754667, 1338754653, 1338754630, 1338754606, 1338754575, 1338754570, 1338754566, 1338754560, 1338754398, 1338754395, 1338754392, 1338754390, 1338754389] Looping around the photos to save general results len do output : 1 /20698945Didn'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, '2603040') ('4876', '20698945', '1338756073', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338756071', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338756062', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338756060', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338756053', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338756052', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338756050', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338756041', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338755975', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338755971', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338755942', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338755936', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338755927', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338755916', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338755913', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338755901', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338755898', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338755895', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338755893', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338755806', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338755800', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338755798', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338755796', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338755791', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338755782', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338755686', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338755684', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338755680', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338755678', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338755677', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338755632', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338755629', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338755626', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338755599', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338755592', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338755584', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338755581', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338755578', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338755576', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338755557', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338755553', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338755551', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338755547', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338755499', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338755496', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338755494', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338755492', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338755488', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338755479', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338755462', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338755460', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338755457', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338755455', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338755454', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338755445', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338755443', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338755439', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338755434', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338755431', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338755427', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338755424', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338755420', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338755417', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338755413', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338755411', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338755221', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338755208', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338755180', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338755150', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338755149', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338755109', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338755096', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338755092', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338755088', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338755025', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338754744', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338754742', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338754739', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338754732', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338754726', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338754724', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338754716', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338754713', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338754710', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338754704', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338754682', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338754674', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338754667', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338754653', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338754630', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338754606', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338754575', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338754570', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338754566', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338754560', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338754398', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338754395', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338754392', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338754390', None, None, None, None, None, '2603040') ('4876', None, None, None, None, None, None, None, '2603040') ('4876', '20698945', '1338754389', None, None, None, None, None, '2603040') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 101 time used for this insertion : 0.04231739044189453 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.0871293544769287 time spend to save output : 0.043109893798828125 total time spend for step 1 : 1.1302392482757568 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.55user 0.57system 0:06.51elapsed 32%CPU (0avgtext+0avgdata 103092maxresident)k 0inputs+112outputs (3major+48934minor)pagefaults 0swaps