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 : 64403 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 : 1903>1000 please execute split_portfolio.py -i 21370538 -l 1000 size over we load limit photo not treated list_input_json: {} Current got : datou_id : 4876, datou_cur_ids : ['2666411'] with mtr_portfolio_ids : ['21370538'] and first list_photo_ids : [] new path : /proc/64403/ 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.02834153175354004 About to test input to load Calling datou_exec Inside datou_exec : verbose : 0 number of steps : 1 step1:split_time_score Thu Mar 13 19:44:28 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec begin split time score 2022-04-13 10:29:59 0 TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 3379, 'mtr_user_id': 31, 'name': 'learn_classif_flux_maj_generique_effnet_v2_s_02062022', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'aluminium,ela,film_pedb,flux_dev,jrm,pcm,pcnc,pehd_pp,pet_clair,refus,tapis_vide', 'svm_portfolios_learning': '5515864,5515840,5515844,5515850,6244400,6237996,6237998,5515847,5515841,5515868,5515866', 'photo_hashtag_type': 4374, 'photo_desc_type': 5680, 'type_classification': 'tf_classification2', 'hashtag_id_list': '493546845,492741797,2107760237,2107760238,495916461,560181804,1284539308,2107760239,2107755846,538914404,2107748999'}] thcls : [{'id': 3513, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2_tf', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 4557, 'photo_desc_type': 5767, 'type_classification': 'tf_classification2', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] (('00', 14), ('01', 9), ('02', 13), ('03', 8), ('04', 7), ('05', 49), ('06', 156), ('07', 305), ('08', 254), ('09', 111), ('10', 276), ('11', 208), ('12', 158), ('13', 22), ('14', 14), ('15', 16), ('16', 16), ('17', 15), ('18', 184), ('19', 68)) ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {1: 816} 13032025 21370538 Nombre de photos uploadées : 255 / 23040 (1%) 13032025 21370538 Nombre de photos taguées (types de déchets): 816 / 255 (320%) 13032025 21370538 Nombre de photos taguées (volume) : 816 / 255 (320%) elapsed_time : load_data_split_time_score 2.6226043701171875e-06 elapsed_time : order_list_meta_photo_and_scores 0.00047969818115234375 ??????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.011950254440307617 elapsed_time : insert_dashboard_record_day_entry 0.023580551147460938 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 elapsed_time : list_photo_by_hashtags 0.013979196548461914 photos_removed : len 0 elapsed_time : load_duplicate_info 0.011707067489624023 ***** BEGIN SPLIT TIME ***** True 1741824000.0 `1741883903.009127 1741883400.0 `1741884553.010153 1741884300.0 `1741885104.010138 1741884300.0 `1741885273.009125 1741885200.0 `1741885283.010136 1741885200.0 `1741885324.010151 1741885200.0 `1741885334.010137 1741885200.0 `1741885594.010142 1741885200.0 `1741885623.009151 1741885200.0 `1741885633.010141 1741885200.0 `1741885644.010146 1741885200.0 `1741885674.010139 1741885200.0 `1741885684.01014 1741885200.0 `1741885714.010135 1741885200.0 `1741885734.010135 1741885200.0 `1741885744.010136 1741885200.0 `1741885754.010135 1741885200.0 `1741885763.009131 1741885200.0 `1741885773.010145 1741885200.0 `1741885784.01014 1741885200.0 `1741885794.010135 1741885200.0 `1741885843.010133 1741885200.0 `1741885854.010135 1741885200.0 `1741885864.010151 1741885200.0 `1741885874.010137 1741885200.0 `1741885884.010136 1741885200.0 `1741885894.010142 1741885200.0 `1741885913.010137 1741885200.0 `1741885944.010135 1741885200.0 `1741885954.010135 1741885200.0 `1741885964.010135 1741885200.0 `1741885974.010136 1741885200.0 `1741885983.009155 1741885200.0 `1741885994.010178 1741885200.0 `1741886014.010136 1741885200.0 `1741886024.01014 1741885200.0 `1741886034.010137 1741885200.0 `1741886043.009144 1741885200.0 `1741886053.010138 1741885200.0 `1741886063.010135 1741885200.0 `1741886114.010135 1741886100.0 `1741886123.009124 1741886100.0 `1741886144.010145 1741886100.0 `1741886154.010136 1741886100.0 `1741886164.010156 1741886100.0 `1741886184.010136 1741886100.0 `1741886193.009125 1741886100.0 `1741886204.010208 1741886100.0 `1741886214.010144 1741886100.0 `1741886224.01016 1741886100.0 `1741886234.010135 1741886100.0 `1741886244.010136 1741886100.0 `1741886253.009126 1741886100.0 `1741886263.010136 1741886100.0 `1741886273.010137 1741886100.0 `1741886284.010145 1741886100.0 `1741886314.010133 1741886100.0 `1741886324.010134 1741886100.0 `1741886333.009125 1741886100.0 `1741886343.010142 1741886100.0 `1741886354.010136 1741886100.0 `1741886364.010136 1741886100.0 `1741886374.010134 1741886100.0 `1741886384.010138 1741886100.0 `1741886394.010137 1741886100.0 `1741886403.009128 1741886100.0 `1741886413.010139 1741886100.0 `1741886424.010136 1741886100.0 `1741886434.010135 1741886100.0 `1741886444.010133 1741886100.0 `1741886473.009123 1741886100.0 `1741886483.010132 1741886100.0 `1741886493.010137 1741886100.0 `1741886504.010133 1741886100.0 `1741886514.010136 1741886100.0 `1741886524.010149 1741886100.0 `1741886534.010141 1741886100.0 `1741886544.010137 1741886100.0 `1741886563.010138 1741886100.0 `1741886574.010136 1741886100.0 `1741886584.010164 1741886100.0 `1741886594.010141 1741886100.0 `1741886623.009123 1741886100.0 `1741886633.010136 1741886100.0 `1741886654.010135 1741886100.0 `1741886664.010136 1741886100.0 `1741886684.010137 1741886100.0 `1741886693.009125 1741886100.0 `1741886703.010148 1741886100.0 `1741886714.010136 1741886100.0 `1741886734.010138 1741886100.0 `1741886754.010137 1741886100.0 `1741886763.009149 1741886100.0 `1741886773.010138 1741886100.0 `1741886783.010135 1741886100.0 `1741886814.010137 1741886100.0 `1741886824.01015 1741886100.0 `1741886843.009125 1741886100.0 `1741886853.010142 1741886100.0 `1741886864.010167 1741886100.0 `1741886874.01014 1741886100.0 `1741886884.010138 1741886100.0 `1741886894.010135 1741886100.0 `1741886904.010134 1741886100.0 `1741886913.009125 1741886100.0 `1741886923.010135 1741886100.0 `1741886934.010136 1741886100.0 `1741886954.010137 1741886100.0 `1741886964.010134 1741886100.0 `1741887004.010144 1741887000.0 `1741887014.010136 1741887000.0 `1741887024.010135 1741887000.0 `1741887034.010143 1741887000.0 `1741887044.01014 1741887000.0 `1741887053.009126 1741887000.0 `1741887063.010135 1741887000.0 `1741887073.010135 1741887000.0 `1741887084.010134 1741887000.0 `1741887094.010135 1741887000.0 `1741887104.010136 1741887000.0 `1741887114.010137 1741887000.0 `1741887124.010156 1741887000.0 `1741887133.009127 1741887000.0 `1741887143.010132 1741887000.0 `1741887174.010138 1741887000.0 `1741887184.010155 1741887000.0 `1741887194.010134 1741887000.0 `1741887213.010134 1741887000.0 `1741887224.010137 1741887000.0 `1741887234.010136 1741887000.0 `1741887244.010138 1741887000.0 `1741887254.010137 1741887000.0 `1741887264.010137 1741887000.0 `1741887273.009126 1741887000.0 `1741887293.010137 1741887000.0 `1741887304.010153 1741887000.0 `1741887314.010141 1741887000.0 `1741887324.010145 1741887000.0 `1741887334.010135 1741887000.0 `1741887344.010135 1741887000.0 `1741887363.010145 1741887000.0 `1741887374.010139 1741887000.0 `1741887384.010134 1741887000.0 `1741887394.010137 1741887000.0 `1741887414.010139 1741887000.0 `1741887423.009138 1741887000.0 `1741887454.010137 1741887000.0 `1741887464.010137 1741887000.0 `1741887474.010139 1741887000.0 `1741887484.010157 1741887000.0 `1741887493.009127 1741887000.0 `1741887514.010137 1741887000.0 `1741887524.010138 1741887000.0 `1741887534.010137 1741887000.0 `1741887563.009122 1741887000.0 `1741887573.010132 1741887000.0 `1741887584.010136 1741887000.0 `1741887594.010135 1741887000.0 `1741887604.010156 1741887000.0 `1741887624.010135 1741887000.0 `1741887633.009125 1741887000.0 `1741887643.010138 1741887000.0 `1741887653.010137 1741887000.0 `1741887664.010152 1741887000.0 `1741887684.010143 1741887000.0 `1741887703.009128 1741887000.0 `1741887713.01014 1741887000.0 `1741887724.01017 1741887000.0 `1741887734.010139 1741887000.0 `1741887774.010132 1741887000.0 `1741887783.00914 1741887000.0 `1741887793.010139 1741887000.0 `1741887804.010143 1741887000.0 `1741887814.010142 1741887000.0 `1741887824.010148 1741887000.0 `1741887844.010146 1741887000.0 `1741887863.010136 1741887000.0 `1741887884.010137 1741887000.0 `1741887894.010136 1741887000.0 `1741887904.010142 1741887900.0 `1741887914.010137 1741887900.0 `1741887944.010136 1741887900.0 `1741887954.010138 1741887900.0 `1741887964.010155 1741887900.0 `1741887974.010141 1741887900.0 `1741887984.010139 1741887900.0 `1741887993.009135 1741887900.0 `1741890165.010138 1741889700.0 `1741890344.010135 1741889700.0 `1741890354.010139 1741889700.0 `1741890375.010139 1741889700.0 `1741890385.010137 1741889700.0 `1741890394.009138 1741889700.0 `1741890424.010178 1741889700.0 `1741890445.01014 1741889700.0 `1741890455.010136 1741889700.0 `1741890464.009129 1741889700.0 `1741890474.010136 1741889700.0 `1741890494.010136 1741889700.0 `1741890504.010135 1741889700.0 `1741890515.010134 1741889700.0 `1741890525.010137 1741889700.0 `1741890534.009127 1741889700.0 `1741890544.01016 1741889700.0 `1741890554.010137 1741889700.0 `1741890564.010137 1741889700.0 `1741890605.010148 1741890600.0 `1741890614.009133 1741890600.0 `1741890624.010134 1741890600.0 `1741890634.010135 1741890600.0 `1741890644.010137 1741890600.0 `1741890665.010153 1741890600.0 `1741890675.010135 1741890600.0 `1741890684.009127 1741890600.0 `1741890694.010135 1741890600.0 `1741890704.010139 1741890600.0 `1741890714.010137 1741890600.0 `1741890735.010138 1741890600.0 `1741890745.01014 1741890600.0 `1741890754.009127 1741890600.0 `1741890774.010139 1741890600.0 `1741890784.010154 1741890600.0 `1741890824.009125 1741890600.0 `1741890854.010134 1741890600.0 `1741890885.010134 1741890600.0 `1741890914.010139 1741890600.0 `1741890934.010134 1741890600.0 `1741890945.010136 1741890600.0 `1741890955.010138 1741890600.0 `1741890965.010161 1741890600.0 `1741890984.010135 1741890600.0 `1741890994.010134 1741890600.0 `1741891004.010136 1741890600.0 `1741891014.010139 1741890600.0 `1741891035.010136 1741890600.0 `1741891054.010138 1741890600.0 `1741891064.010135 1741890600.0 `1741891095.01014 1741890600.0 `1741891105.010135 1741890600.0 `1741891144.010145 1741890600.0 `1741891154.010135 1741890600.0 `1741891165.010135 1741890600.0 `1741891185.010137 1741890600.0 `1741891194.009128 1741890600.0 `1741891204.010146 1741890600.0 `1741891235.010136 1741890600.0 `1741891254.009126 1741890600.0 `1741891264.010136 1741890600.0 `1741891274.010138 1741890600.0 `1741891284.010142 1741890600.0 `1741891294.01014 1741890600.0 `1741891305.010137 1741890600.0 `1741891324.009146 1741890600.0 `1741891334.010142 1741890600.0 `1741891344.010135 1741890600.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, 252, 253, 254]] forced_hashtag: JRM force hashtag to JRM elapsed_time : SPLIT_TIME 0.014447927474975586 ***** 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 result_one_balle_Type_JRM:{'day': '13032025', 'map_nb_amount': {0: 3, 1: 33, 2: 0, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 790.0010099411011, 'nb_balles_papier': 0.0003600000000000003, 'begin_time_port': 'image_13032025_18_01_13_009125m0.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.0003600000000000003 We reject this portfolio because of the condition_save_data : 2025-03-13 18:01:13.009125 result_one_balle_Type_JRM:{'day': '13032025', 'map_nb_amount': {0: 12, 1: 53, 2: 4, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 849.9999990463257, 'nb_balles_papier': 0.0006900000000000012, 'begin_time_port': 'image_13032025_18_15_14_010135m0.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-03-13 18:15:14.010135 result_one_balle_Type_JRM:{'day': '13032025', 'map_nb_amount': {0: 13, 1: 56, 2: 1, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 889.9999918937683, 'nb_balles_papier': 0.0007000000000000012, 'begin_time_port': 'image_13032025_18_30_04_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.0007000000000000012 We reject this portfolio because of the condition_save_data : 2025-03-13 18:30:04.010144 result_one_balle_Type_JRM:{'day': '13032025', 'map_nb_amount': {0: 1, 1: 6, 2: 1, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 88.99899291992188, 'nb_balles_papier': 8e-05, 'begin_time_port': 'image_13032025_18_45_04_010142m0.jpg 1e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'} Production hashtag (incorrect ponderation at 20-10-18) : 8e-05 ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info result_one_balle_Type_JRM:{'day': '13032025', 'map_nb_amount': {0: 1, 1: 9, 2: 0, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 398.9999990463257, 'nb_balles_papier': 0.0001, 'begin_time_port': 'image_13032025_19_22_45_10138.jpg'} Production hashtag (incorrect ponderation at 20-10-18) : 0.0001 ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info result_one_balle_Type_JRM:{'day': '13032025', 'map_nb_amount': {0: 8, 1: 12, 2: 2, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 738.9999868869781, 'nb_balles_papier': 0.00022, 'begin_time_port': 'image_13032025_19_30_05_10148.jpg'} Production hashtag (incorrect ponderation at 20-10-18) : 0.00022 We have rejected 3 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 : {1343874272, 1343874339, 1343875079, 1343874664, 1343875498, 1343874190, 1343875248, 1343874482, 1343874708, 1343875028, 1343875445, 1343875127, 1343875192, 1343874294, 1343875548, 1343874620, 1343875423} Still a lot to verify ! Qualite : 0.13065490081635678 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`=21388894 AND mptpi.`type`=3726 To do Qualite : 0.06562034709139793 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`=21388973 AND mptpi.`type`=3726 To do Qualite : 0.0796599252690145 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`=21389291 AND mptpi.`type`=3726 To do elapsed_time : count_nb_balles_and_create_portfolio 0.5587875843048096 # DISPLAY ALL COLLECTED DATA : {'13032025': {'nb_upload': 255, 'nb_taggue_class': 816, 'nb_taggue_densite': 816}} Inside saveOutput : final : True verbose : 0 saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1343875548, 1343875498, 1343875445, 1343875423, 1343875248, 1343875192, 1343875127, 1343875079, 1343875028, 1343874708, 1343874664, 1343874620, 1343874482, 1343874339, 1343874294, 1343874272, 1343874190, 1343873655, 1343873602, 1343872597, 1343872435, 1343872359, 1343872146, 1343872051, 1343871990, 1343871947, 1343871899, 1343871111, 1343871078, 1343871038, 1343870979, 1343870504, 1343870437, 1343869734, 1343869570, 1343869120, 1343869033, 1343868938, 1343868807, 1343868623, 1343868556, 1343868531, 1343868496, 1343868468, 1343868417, 1343868316, 1343868192, 1343868166, 1343868106, 1343868078, 1343867865, 1343867823, 1343867765, 1343867157, 1343867086, 1343866976, 1343866926, 1343866841, 1343866284, 1343866189, 1343866132, 1343866062, 1343865995, 1343865640, 1343865612, 1343865562, 1343864893, 1343864844, 1343862735, 1343844066, 1343844061, 1343844055, 1343844049, 1343843878, 1343843873, 1343843859, 1343843853, 1343843677, 1343843673, 1343843663, 1343843640, 1343843192, 1343843145, 1343843092, 1343843010, 1343842958, 1343842502, 1343842472, 1343842432, 1343841772, 1343841733, 1343841704, 1343841672, 1343841558, 1343841537, 1343841475, 1343841447, 1343841426, 1343841243, 1343841234] Looping around the photos to save general results len do output : 1 /21370538Didn't retrieve data . before output type Here is an output not treated by saveGeneral : Managing all output in save final without adding information in the mtr_datou_result ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343875548', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343875498', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343875445', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343875423', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343875248', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343875192', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343875127', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343875079', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343875028', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343874708', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343874664', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343874620', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343874482', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343874339', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343874294', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343874272', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343874190', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343873655', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343873602', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343872597', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343872435', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343872359', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343872146', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343872051', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343871990', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343871947', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343871899', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343871111', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343871078', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343871038', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343870979', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343870504', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343870437', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343869734', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343869570', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343869120', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343869033', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343868938', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343868807', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343868623', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343868556', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343868531', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343868496', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343868468', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343868417', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343868316', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343868192', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343868166', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343868106', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343868078', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343867865', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343867823', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343867765', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343867157', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343867086', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343866976', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343866926', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343866841', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343866284', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343866189', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343866132', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343866062', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343865995', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343865640', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343865612', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343865562', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343864893', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343864844', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343862735', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343844066', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343844061', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343844055', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343844049', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343843878', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343843873', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343843859', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343843853', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343843677', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343843673', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343843663', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343843640', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343843192', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343843145', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343843092', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343843010', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343842958', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343842502', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343842472', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343842432', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343841772', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343841733', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343841704', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343841672', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343841558', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343841537', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343841475', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343841447', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343841426', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343841243', None, None, None, None, None, '2666411') ('4876', None, None, None, None, None, None, None, '2666411') ('4876', '21370538', '1343841234', None, None, None, None, None, '2666411') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 101 time used for this insertion : 0.02424907684326172 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.8652877807617188 time spend to save output : 0.02508258819580078 total time spend for step 1 : 0.8903703689575195 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.31user 0.67system 0:04.60elapsed 43%CPU (0avgtext+0avgdata 101340maxresident)k 0inputs+96outputs (5major+59473minor)pagefaults 0swaps