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 : 2298168 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 : 3592>1000 please execute split_portfolio.py -i 20899997 -l 1000 size over we load limit photo not treated list_input_json: {} Current got : datou_id : 4876, datou_cur_ids : ['2624747'] with mtr_portfolio_ids : ['20899997'] and first list_photo_ids : [] new path : /proc/2298168/ 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.030763864517211914 About to test input to load Calling datou_exec Inside datou_exec : verbose : 0 number of steps : 1 step1:split_time_score Fri Feb 28 18:34:28 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec begin split time score 2022-04-13 10:29:59 0 TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 3379, 'mtr_user_id': 31, 'name': 'learn_classif_flux_maj_generique_effnet_v2_s_02062022', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'aluminium,ela,film_pedb,flux_dev,jrm,pcm,pcnc,pehd_pp,pet_clair,refus,tapis_vide', 'svm_portfolios_learning': '5515864,5515840,5515844,5515850,6244400,6237996,6237998,5515847,5515841,5515868,5515866', 'photo_hashtag_type': 4374, 'photo_desc_type': 5680, 'type_classification': 'tf_classification2', 'hashtag_id_list': '493546845,492741797,2107760237,2107760238,495916461,560181804,1284539308,2107760239,2107755846,538914404,2107748999'}] thcls : [{'id': 3513, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2_tf', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 4557, 'photo_desc_type': 5767, 'type_classification': 'tf_classification2', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] (('00', 179), ('01', 91), ('02', 259), ('03', 272), ('04', 42), ('05', 256), ('06', 274), ('07', 286), ('08', 298), ('09', 138), ('10', 300), ('11', 270), ('12', 60), ('13', 82), ('14', 187), ('15', 181), ('16', 241), ('17', 142), ('18', 34)) ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {1: 3413} 28022025 20899997 Nombre de photos uploadées : 252 / 23040 (1%) 28022025 20899997 Nombre de photos taguées (types de déchets): 3413 / 252 (1354%) 28022025 20899997 Nombre de photos taguées (volume) : 3413 / 252 (1354%) elapsed_time : load_data_split_time_score 3.337860107421875e-06 elapsed_time : order_list_meta_photo_and_scores 0.0013527870178222656 ????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.013781547546386719 elapsed_time : insert_dashboard_record_day_entry 0.02185344696044922 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 elapsed_time : list_photo_by_hashtags 0.011423349380493164 photos_removed : len 0 elapsed_time : load_duplicate_info 0.01172637939453125 ***** BEGIN SPLIT TIME ***** True 1740700800.0 `1740756833.010136 1740756600.0 `1740756844.010158 1740756600.0 `1740756854.010138 1740756600.0 `1740756864.010135 1740756600.0 `1740756874.010135 1740756600.0 `1740756884.010136 1740756600.0 `1740756893.009133 1740756600.0 `1740756903.010158 1740756600.0 `1740756944.010135 1740756600.0 `1740756954.010144 1740756600.0 `1740756963.009134 1740756600.0 `1740756973.01014 1740756600.0 `1740756983.010137 1740756600.0 `1740756994.010143 1740756600.0 `1740757004.010143 1740756600.0 `1740757014.010146 1740756600.0 `1740757024.010152 1740756600.0 `1740757033.009126 1740756600.0 `1740757043.010141 1740756600.0 `1740757053.010134 1740756600.0 `1740757084.010147 1740756600.0 `1740757094.010132 1740756600.0 `1740757104.010134 1740756600.0 `1740757113.009128 1740756600.0 `1740757123.010136 1740756600.0 `1740757134.010138 1740756600.0 `1740757144.010136 1740756600.0 `1740757154.010135 1740756600.0 `1740757164.010135 1740756600.0 `1740757183.00915 1740756600.0 `1740757193.010138 1740756600.0 `1740757253.009125 1740756600.0 `1740757263.010157 1740756600.0 `1740757274.01014 1740756600.0 `1740757284.010144 1740756600.0 `1740757323.009126 1740756600.0 `1740757534.010139 1740757500.0 `1740757753.010139 1740757500.0 `1740757774.010142 1740757500.0 `1740757784.010141 1740757500.0 `1740757794.010138 1740757500.0 `1740757813.009128 1740757500.0 `1740757823.010135 1740757500.0 `1740757844.010137 1740757500.0 `1740757874.010136 1740757500.0 `1740757934.010135 1740757500.0 `1740757944.010134 1740757500.0 `1740757954.010141 1740757500.0 `1740758033.009126 1740757500.0 `1740758064.010136 1740757500.0 `1740758074.010136 1740757500.0 `1740758084.010139 1740757500.0 `1740758113.01014 1740757500.0 `1740758124.010136 1740757500.0 `1740758134.010138 1740757500.0 `1740758144.010138 1740757500.0 `1740758154.010141 1740757500.0 `1740758164.010149 1740757500.0 `1740758173.009128 1740757500.0 `1740758194.01014 1740757500.0 `1740758204.010138 1740757500.0 `1740758214.01014 1740757500.0 `1740758234.010138 1740757500.0 `1740758243.009126 1740757500.0 `1740758253.010136 1740757500.0 `1740758263.010134 1740757500.0 `1740758294.010141 1740757500.0 `1740758304.010134 1740757500.0 `1740758313.009125 1740757500.0 `1740758323.010135 1740757500.0 `1740758333.010135 1740757500.0 `1740758353.010036 1740757500.0 `1740758363.010149 1740757500.0 `1740758373.010137 1740757500.0 `1740758384.010137 1740757500.0 `1740758394.010138 1740757500.0 `1740758404.010153 1740758400.0 `1740758414.010141 1740758400.0 `1740758433.010135 1740758400.0 `1740758443.010136 1740758400.0 `1740758453.010133 1740758400.0 `1740758464.010139 1740758400.0 `1740758474.010135 1740758400.0 `1740758484.010139 1740758400.0 `1740758494.010134 1740758400.0 `1740758503.00913 1740758400.0 `1740758513.010135 1740758400.0 `1740758523.010142 1740758400.0 `1740758534.010141 1740758400.0 `1740758564.010134 1740758400.0 `1740758573.009132 1740758400.0 `1740758583.010152 1740758400.0 `1740758593.010141 1740758400.0 `1740758604.010142 1740758400.0 `1740758614.010135 1740758400.0 `1740758624.010136 1740758400.0 `1740758634.010138 1740758400.0 `1740758643.009127 1740758400.0 `1740758653.010148 1740758400.0 `1740758694.010135 1740758400.0 `1740758704.010154 1740758400.0 `1740758713.009127 1740758400.0 `1740758723.010143 1740758400.0 `1740758733.010149 1740758400.0 `1740758744.010141 1740758400.0 `1740758764.010143 1740758400.0 `1740758783.009125 1740758400.0 `1740758793.010136 1740758400.0 `1740758814.010138 1740758400.0 `1740758834.010137 1740758400.0 `1740758844.010133 1740758400.0 `1740758884.010169 1740758400.0 `1740758894.010139 1740758400.0 `1740758904.010134 1740758400.0 `1740758914.010142 1740758400.0 `1740758924.010143 1740758400.0 `1740758933.009127 1740758400.0 `1740758943.010168 1740758400.0 `1740758954.010141 1740758400.0 `1740758964.010142 1740758400.0 `1740758974.010135 1740758400.0 `1740758984.010135 1740758400.0 `1740758994.010136 1740758400.0 `1740759023.010134 1740758400.0 `1740759034.010135 1740758400.0 `1740759044.010135 1740758400.0 `1740759054.010136 1740758400.0 `1740759064.010157 1740758400.0 `1740759073.009127 1740758400.0 `1740759093.010135 1740758400.0 `1740759104.010138 1740758400.0 `1740759114.01014 1740758400.0 `1740759124.010212 1740758400.0 `1740759134.010141 1740758400.0 `1740759174.010136 1740758400.0 `1740759184.010152 1740758400.0 `1740759213.009131 1740758400.0 `1740759223.010144 1740758400.0 `1740759233.010137 1740758400.0 `1740759244.010158 1740758400.0 `1740759254.010142 1740758400.0 `1740759264.010137 1740758400.0 `1740759274.010142 1740758400.0 `1740759283.009132 1740758400.0 `1740759293.010135 1740758400.0 `1740759303.010166 1740759300.0 `1740759324.01014 1740759300.0 `1740759334.010133 1740759300.0 `1740759344.010136 1740759300.0 `1740759353.009128 1740759300.0 `1740759363.010137 1740759300.0 `1740759373.01014 1740759300.0 `1740759384.010135 1740759300.0 `1740759394.010135 1740759300.0 `1740759404.010136 1740759300.0 `1740759414.010144 1740759300.0 `1740759423.009133 1740759300.0 `1740759433.010138 1740759300.0 `1740759474.010135 1740759300.0 `1740759484.010144 1740759300.0 `1740759493.009126 1740759300.0 `1740759503.010135 1740759300.0 `1740759513.010139 1740759300.0 `1740759524.010139 1740759300.0 `1740759534.010136 1740759300.0 `1740759544.01015 1740759300.0 `1740759554.010137 1740759300.0 `1740759563.009125 1740759300.0 `1740759594.010135 1740759300.0 `1740759604.010138 1740759300.0 `1740759614.010137 1740759300.0 `1740759624.010134 1740759300.0 `1740759634.010135 1740759300.0 `1740759643.009126 1740759300.0 `1740759653.010139 1740759300.0 `1740759663.010134 1740759300.0 `1740759674.010135 1740759300.0 `1740759684.010133 1740759300.0 `1740759694.010133 1740759300.0 `1740759723.010147 1740759300.0 `1740759733.01014 1740759300.0 `1740759744.010135 1740759300.0 `1740759754.010135 1740759300.0 `1740759764.010135 1740759300.0 `1740759774.010136 1740759300.0 `1740759783.00914 1740759300.0 `1740759793.010137 1740759300.0 `1740759803.010136 1740759300.0 `1740759814.010135 1740759300.0 `1740759824.010135 1740759300.0 `1740759834.010137 1740759300.0 `1740759854.010144 1740759300.0 `1740759863.009122 1740759300.0 `1740759873.010132 1740759300.0 `1740759883.010135 1740759300.0 `1740759894.010136 1740759300.0 `1740759904.010137 1740759300.0 `1740759914.010134 1740759300.0 `1740760023.010148 1740759300.0 `1740760033.010135 1740759300.0 `1740760044.010138 1740759300.0 `1740760054.010144 1740759300.0 `1740760074.010135 1740759300.0 `1740760083.009132 1740759300.0 `1740760093.010138 1740759300.0 `1740760103.010137 1740759300.0 `1740760114.010136 1740759300.0 `1740760124.010138 1740759300.0 `1740760134.010137 1740759300.0 `1740760144.010006 1740759300.0 `1740760163.009124 1740759300.0 `1740760173.010137 1740759300.0 `1740760183.010138 1740759300.0 `1740760194.010138 1740759300.0 `1740760204.010143 1740760200.0 `1740760803.009137 1740760200.0 `1740761354.010137 1740761100.0 `1740761904.010135 1740761100.0 `1740762094.010144 1740762000.0 `1740762103.009127 1740762000.0 `1740762134.01014 1740762000.0 `1740762144.010136 1740762000.0 `1740762154.01014 1740762000.0 `1740762164.01014 1740762000.0 `1740762173.009129 1740762000.0 `1740762183.010153 1740762000.0 `1740762193.010138 1740762000.0 `1740762204.010134 1740762000.0 `1740762214.010137 1740762000.0 `1740762224.010135 1740762000.0 `1740762263.010137 1740762000.0 `1740762274.010134 1740762000.0 `1740762284.010136 1740762000.0 `1740762294.010137 1740762000.0 `1740762304.010167 1740762000.0 `1740762313.009125 1740762000.0 `1740762344.01014 1740762000.0 `1740762354.010136 1740762000.0 `1740762473.010136 1740762000.0 `1740763823.010138 1740763800.0 `1740763833.010139 1740763800.0 `1740763843.010141 1740763800.0 `1740763854.010137 1740763800.0 `1740763864.010152 1740763800.0 `1740763874.010139 1740763800.0 `1740763884.01014 1740763800.0 `1740763893.009129 1740763800.0 `1740763903.010143 1740763800.0 `1740763913.010138 1740763800.0 `1740763924.01014 1740763800.0 `1740763963.009126 1740763800.0 `1740764014.010145 1740763800.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, 236, 237, 238], [239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251]] forced_hashtag: JRM force hashtag to JRM elapsed_time : SPLIT_TIME 0.0149078369140625 ***** END SPLIT TIME ***** NUMBER BATCH : 8 list_ponderation used : [1e-05, 1e-05, 1e-05, 1e-05, 1e-05] , list_hashtag_class_create_as_list : ['jrm'] ERROR missing amount info ERROR missing amount info result_one_balle_Type_JRM:{'day': '28022025', 'map_nb_amount': {0: 7, 1: 23, 2: 4, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 489.9989900588989, 'nb_balles_papier': 0.00034000000000000024, 'begin_time_port': 'image_28022025_16_33_53_010136m0.jpg 6e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'} Production hashtag (incorrect ponderation at 20-10-18) : 0.00034000000000000024 We reject this portfolio because of the condition_save_data : 2025-02-28 16:33:53.010136 ERROR missing amount info ERROR missing amount info ERROR missing amount info result_one_balle_Type_JRM:{'day': '28022025', 'map_nb_amount': {0: 6, 1: 31, 2: 0, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 859.9999990463257, 'nb_balles_papier': 0.0003700000000000003, 'begin_time_port': 'image_28022025_16_45_34_10139.jpg'} Production hashtag (incorrect ponderation at 20-10-18) : 0.0003700000000000003 We reject this portfolio because of the condition_save_data : 2025-02-28 16:45:34.010139 result_one_balle_Type_JRM:{'day': '28022025', 'map_nb_amount': {0: 9, 1: 56, 2: 4, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 888.999981880188, 'nb_balles_papier': 0.0006900000000000012, 'begin_time_port': 'image_28022025_17_00_04_010153m0.jpg 1e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'} Production hashtag (incorrect ponderation at 20-10-18) : 0.0006900000000000012 We reject this portfolio because of the condition_save_data : 2025-02-28 17:00:04.010153 result_one_balle_Type_JRM:{'day': '28022025', 'map_nb_amount': {0: 8, 1: 58, 2: 3, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 890.9999721050262, 'nb_balles_papier': 0.0006900000000000012, 'begin_time_port': 'image_28022025_17_15_03_010166m0.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.0006900000000000012 We reject this portfolio because of the condition_save_data : 2025-02-28 17:15:03.010166 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': '28022025', 'map_nb_amount': {0: 0, 1: 15, 2: 0, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 378.9999918937683, 'nb_balles_papier': 0.00015000000000000001, 'begin_time_port': 'image_28022025_18_01_34_010144m0.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.00015000000000000001 ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info result_one_balle_Type_JRM:{'day': '28022025', 'map_nb_amount': {0: 0, 1: 3, 2: 0, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 191.0000069141388, 'nb_balles_papier': 3.0000000000000004e-05, 'begin_time_port': 'image_28022025_18_30_23_10138.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'} Production hashtag (incorrect ponderation at 20-10-18) : 3.0000000000000004e-05 We have rejected 4 photos because of the batch_size condition ! NUMBER BATCH list_of_portfolios_to_create : 2 Still a lot to verify ! Still a lot to verify ! list_same_port_ids : [] https://marlene.fotonower.com/api/v1/secured/portfolio/new?name=JRM_diff_batch__28022025_18_30_23_010138&access_token=3e00c8f3e5af383c48e3c68940ba6fe7 Qualite : 0.12231375591566294 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`=20936213 AND mptpi.`type`=3726 To do There was a bug due to new port without datou_current_id # 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`=20936553 AND mptpi.`type`=3726 To do elapsed_time : count_nb_balles_and_create_portfolio 4.134538412094116 # DISPLAY ALL COLLECTED DATA : {'28022025': {'nb_upload': 252, 'nb_taggue_class': 3413, 'nb_taggue_densite': 3413}} Inside saveOutput : final : True verbose : 0 saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1340195369, 1340195366, 1340195163, 1340195001, 1340194669, 1340194665, 1340194661, 1340194654, 1340194651, 1340194646, 1340194620, 1340194614, 1340194611, 1340194607, 1340193420, 1340193309, 1340193303, 1340193299, 1340193295, 1340193241, 1340193236, 1340193233, 1340193230, 1340193081, 1340193073, 1340193049, 1340192819, 1340192816, 1340192472, 1340192354, 1340192251, 1340192145, 1340192005, 1340190839, 1340190836, 1340190610, 1340189251, 1340186840, 1340186321, 1340186191, 1340186187, 1340186179, 1340186176, 1340186170, 1340186120, 1340186114, 1340186111, 1340186105, 1340186101, 1340186097, 1340186058, 1340186053, 1340186040, 1340186036, 1340186032, 1340185780, 1340185772, 1340185720, 1340185715, 1340185709, 1340185705, 1340185701, 1340185605, 1340185536, 1340185528, 1340185522, 1340185509, 1340185497, 1340185426, 1340185383, 1340185333, 1340185317, 1340185296, 1340185266, 1340185166, 1340185163, 1340185136, 1340185115, 1340184892, 1340184744, 1340184686, 1340184678, 1340184675, 1340184671, 1340184514, 1340184504, 1340184270, 1340184266, 1340184234, 1340184224, 1340184041, 1340183754, 1340183744, 1340183740, 1340183679, 1340183676, 1340183674, 1340183648, 1340183631, 1340183625] Looping around the photos to save general results len do output : 1 /20899997Didn'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, '2624747') ('4876', '20899997', '1340195369', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340195366', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340195163', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340195001', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340194669', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340194665', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340194661', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340194654', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340194651', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340194646', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340194620', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340194614', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340194611', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340194607', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340193420', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340193309', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340193303', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340193299', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340193295', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340193241', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340193236', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340193233', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340193230', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340193081', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340193073', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340193049', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340192819', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340192816', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340192472', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340192354', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340192251', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340192145', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340192005', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340190839', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340190836', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340190610', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340189251', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340186840', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340186321', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340186191', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340186187', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340186179', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340186176', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340186170', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340186120', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340186114', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340186111', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340186105', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340186101', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340186097', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340186058', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340186053', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340186040', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340186036', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340186032', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340185780', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340185772', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340185720', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340185715', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340185709', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340185705', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340185701', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340185605', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340185536', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340185528', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340185522', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340185509', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340185497', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340185426', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340185383', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340185333', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340185317', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340185296', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340185266', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340185166', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340185163', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340185136', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340185115', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340184892', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340184744', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340184686', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340184678', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340184675', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340184671', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340184514', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340184504', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340184270', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340184266', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340184234', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340184224', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340184041', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340183754', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340183744', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340183740', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340183679', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340183676', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340183674', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340183648', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340183631', None, None, None, None, None, '2624747') ('4876', None, None, None, None, None, None, None, '2624747') ('4876', '20899997', '1340183625', None, None, None, None, None, '2624747') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 101 time used for this insertion : 0.026352882385253906 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.509840250015259 time spend to save output : 0.027269840240478516 total time spend for step 1 : 4.537110090255737 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.22user 0.66system 0:08.71elapsed 21%CPU (0avgtext+0avgdata 107012maxresident)k 0inputs+88outputs (0major+49863minor)pagefaults 0swaps