python /home/admin/mtr/script_for_cron.py -j datou_current3 -m 20 -a ' -a 4883' -s datou_current_4883 -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 : 465640 load datou : 4883 # 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 : 2686>1000 please execute split_portfolio.py -i 21758531 -l 1000 size over we load limit photo not treated list_input_json: {} Current got : datou_id : 4883, datou_cur_ids : ['2697556'] with mtr_portfolio_ids : ['21758531'] and first list_photo_ids : [] new path : /proc/465640/ 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.03363847732543945 About to test input to load Calling datou_exec Inside datou_exec : verbose : 0 number of steps : 1 step1:split_time_score Thu Mar 27 13:51:27 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec begin split time score 2022-04-13 10:29:59 0 TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 3379, 'mtr_user_id': 31, 'name': 'learn_classif_flux_maj_generique_effnet_v2_s_02062022', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'aluminium,ela,film_pedb,flux_dev,jrm,pcm,pcnc,pehd_pp,pet_clair,refus,tapis_vide', 'svm_portfolios_learning': '5515864,5515840,5515844,5515850,6244400,6237996,6237998,5515847,5515841,5515868,5515866', 'photo_hashtag_type': 4374, 'photo_desc_type': 5680, 'type_classification': 'tf_classification2', 'hashtag_id_list': '493546845,492741797,2107760237,2107760238,495916461,560181804,1284539308,2107760239,2107755846,538914404,2107748999'}] thcls : [{'id': 3513, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2_tf', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 4557, 'photo_desc_type': 5767, 'type_classification': 'tf_classification2', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] (('00', 273), ('01', 118), ('02', 269), ('03', 270), ('04', 55), ('05', 227), ('06', 269), ('07', 308), ('08', 220), ('09', 133), ('10', 242), ('11', 248), ('12', 45), ('13', 9)) ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {1: 2603} 27032025 21758531 Nombre de photos uploadées : 89 / 23040 (0%) 27032025 21758531 Nombre de photos taguées (types de déchets): 2603 / 89 (2924%) 27032025 21758531 Nombre de photos taguées (volume) : 2603 / 89 (2924%) elapsed_time : load_data_split_time_score 3.0994415283203125e-06 elapsed_time : order_list_meta_photo_and_scores 0.0010046958923339844 ????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.03818535804748535 elapsed_time : insert_dashboard_record_day_entry 0.021588802337646484 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 elapsed_time : list_photo_by_hashtags 0.006413698196411133 ***** BEGIN SPLIT TIME ***** True 1743033600.0 `1743072593.010137 1743072540.0 `1743072613.010142 1743072600.0 `1743072623.010136 1743072600.0 `1743072634.010142 1743072600.0 `1743072644.010141 1743072600.0 `1743072653.009126 1743072600.0 `1743072673.010141 1743072660.0 `1743072693.010135 1743072660.0 `1743072704.010135 1743072660.0 `1743072723.009129 1743072720.0 `1743072733.01014 1743072720.0 `1743072743.010135 1743072720.0 `1743072753.010142 1743072720.0 `1743072763.010144 1743072720.0 `1743072774.010138 1743072720.0 `1743072784.010136 1743072780.0 `1743072813.010133 1743072780.0 `1743072823.010135 1743072780.0 `1743072833.010135 1743072780.0 `1743072843.01014 1743072840.0 `1743072873.009128 1743072840.0 `1743072903.010162 1743072900.0 `1743072943.009135 1743072900.0 `1743072953.01014 1743072900.0 `1743072973.01014 1743072960.0 `1743072994.010147 1743072960.0 `1743073013.009129 1743072960.0 `1743073023.010141 1743073020.0 `1743073033.010137 1743073020.0 `1743073074.010136 1743073020.0 `1743073083.009138 1743073080.0 `1743073103.010138 1743073080.0 `1743073113.010139 1743073080.0 `1743073123.01014 1743073080.0 `1743073134.010138 1743073080.0 `1743073213.010219 1743073200.0 `1743073234.010134 1743073200.0 `1743073244.010136 1743073200.0 `1743073264.01015 1743073260.0 `1743073273.009133 1743073260.0 `1743073283.01014 1743073260.0 `1743073294.010136 1743073260.0 `1743073304.010138 1743073260.0 `1743073314.010136 1743073260.0 `1743073324.010147 1743073320.0 `1743073334.010137 1743073320.0 `1743073343.009124 1743073320.0 `1743073353.010138 1743073320.0 `1743073364.010137 1743073320.0 `1743073374.01014 1743073320.0 `1743073384.010153 1743073380.0 `1743073423.009123 1743073380.0 `1743073444.010138 1743073440.0 `1743073454.010146 1743073440.0 `1743073464.010135 1743073440.0 `1743073474.010141 1743073440.0 `1743073484.010142 1743073440.0 `1743073493.009125 1743073440.0 `1743073503.010139 1743073500.0 `1743073524.010136 1743073500.0 `1743073534.010135 1743073500.0 `1743073544.010135 1743073500.0 `1743073563.009158 1743073560.0 `1743073573.010139 1743073560.0 `1743073584.010135 1743073560.0 `1743073594.010136 1743073560.0 `1743073624.010166 1743073620.0 `1743073633.009123 1743073620.0 `1743073684.010142 1743073680.0 `1743073694.010139 1743073680.0 `1743073704.010136 1743073680.0 `1743073724.010141 1743073680.0 `1743073734.010136 1743073680.0 `1743073754.010138 1743073740.0 `1743073774.010137 1743073740.0 `1743073783.009126 1743073740.0 `1743073794.010137 1743073740.0 `1743074714.010139 1743074700.0 `1743075724.010166 1743075720.0 `1743076273.009129 1743076260.0 `1743076834.00913 1743076800.0 `1743077394.010136 1743077340.0 `1743079234.010141 1743079200.0 `1743079244.01014 1743079200.0 `1743079594.010146 1743079560.0 `1743079653.009132 1743079620.0 `1743079704.010137 1743079680.0 `1743079714.010144 1743079680.0 `1743079724.010138 1743079680.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]] forced_hashtag: JRM force hashtag to JRM elapsed_time : SPLIT_TIME 0.008719682693481445 ***** END SPLIT TIME ***** NUMBER BATCH : 29 list_ponderation used : [1e-05, 1e-05, 1e-05, 1e-05, 1e-05] , list_hashtag_class_create_as_list : ['jrm'] Missing time_diff : 2107751015 : jrm should be duplicate or empty carpet ! Missing time_diff : 2107751015 : jrm should be duplicate or empty carpet ! Missing time_diff : 2107751016 : jrm should be duplicate or empty carpet ! Missing time_diff : 2107751015 : jrm should be duplicate or empty carpet ! Missing time_diff : 2107751015 : jrm should be duplicate or empty carpet ! result_one_balle_Type_JRM:{'day': '27032025', 'map_nb_amount': {0: 0, 1: 4, 2: 1, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 39.99898386001587, 'nb_balles_papier': 5e-05, 'begin_time_port': 'image_27032025_11_50_13_010142m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'} Production hashtag (incorrect ponderation at 20-10-18) : 5e-05 We reject this portfolio because of the condition_save_data : 2025-03-27 11:50:13.010142 Missing time_diff : 2107751015 : jrm should be duplicate or empty carpet ! Missing time_diff : 2107751015 : jrm should be duplicate or empty carpet ! Missing time_diff : 2107751015 : jrm should be duplicate or empty carpet ! result_one_balle_Type_JRM:{'day': '27032025', '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': 30.999994039535522, 'nb_balles_papier': 3.0000000000000004e-05, 'begin_time_port': 'image_27032025_11_51_13_010141m0.jpg 6e-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 reject this portfolio because of the condition_save_data : 2025-03-27 11:51:13.010141 Missing time_diff : 2107751015 : jrm should be duplicate or empty carpet ! Missing time_diff : 2107751015 : jrm should be duplicate or empty carpet ! Missing time_diff : 2107751015 : jrm should be duplicate or empty carpet ! Missing time_diff : 2107751015 : jrm should be duplicate or empty carpet ! Missing time_diff : 2107751015 : jrm should be duplicate or empty carpet ! Missing time_diff : 2107751015 : jrm should be duplicate or empty carpet ! result_one_balle_Type_JRM:{'day': '27032025', 'map_nb_amount': {0: 0, 1: 6, 2: 0, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 51.00100898742676, 'nb_balles_papier': 6e-05, 'begin_time_port': 'image_27032025_11_52_03_009129m0.jpg 9e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'} Production hashtag (incorrect ponderation at 20-10-18) : 6e-05 We reject this portfolio because of the condition_save_data : 2025-03-27 11:52:03.009129 ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info result_one_balle_Type_JRM:{'day': '27032025', 'map_nb_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 48.999999046325684, 'nb_balles_papier': 0, 'begin_time_port': 'image_27032025_11_53_04_10136.jpg'} Production hashtag (incorrect ponderation at 20-10-18) : 0 We reject this portfolio because of the condition_save_data : 2025-03-27 11:53:04.010136 Missing time_diff : 2107751016 : jrm should be duplicate or empty carpet ! Missing time_diff : 2107751014 : jrm should be duplicate or empty carpet ! result_one_balle_Type_JRM:{'day': '27032025', 'map_nb_amount': {0: 1, 1: 0, 2: 1, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 0, 'nb_balles_papier': 2e-05, 'begin_time_port': 'image'} Production hashtag (incorrect ponderation at 20-10-18) : 2e-05 We reject this portfolio because of the condition_save_data : 2025-03-27 11:54:03.010140 Missing time_diff : 2107751015 : jrm should be duplicate or empty carpet ! Missing time_diff : 2107751015 : jrm should be duplicate or empty carpet ! Missing time_diff : 2107751015 : jrm should be duplicate or empty carpet ! result_one_balle_Type_JRM:{'day': '27032025', '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': 49.999977827072144, 'nb_balles_papier': 3.0000000000000004e-05, 'begin_time_port': 'image_27032025_11_55_03_010162m0.jpg 0.00017 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 reject this portfolio because of the condition_save_data : 2025-03-27 11:55:03.010162 Missing time_diff : 2107751015 : jrm should be duplicate or empty carpet ! Missing time_diff : 2107751015 : jrm should be duplicate or empty carpet ! Missing time_diff : 2107751015 : jrm should be duplicate or empty carpet ! result_one_balle_Type_JRM:{'day': '27032025', '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': 39.99898910522461, 'nb_balles_papier': 3.0000000000000004e-05, 'begin_time_port': 'image_27032025_11_56_13_010140m0.jpg 0.0002 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 reject this portfolio because of the condition_save_data : 2025-03-27 11:56:13.010140 Missing time_diff : 2107751015 : jrm should be duplicate or empty carpet ! Missing time_diff : 2107751015 : jrm should be duplicate or empty carpet ! Missing time_diff : 2107751015 : jrm should be duplicate or empty carpet ! result_one_balle_Type_JRM:{'day': '27032025', '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': 50.99999499320984, 'nb_balles_papier': 3.0000000000000004e-05, 'begin_time_port': 'image_27032025_11_57_03_010141m0.jpg 0.00023 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 reject this portfolio because of the condition_save_data : 2025-03-27 11:57:03.010141 Missing time_diff : 2107751015 : jrm should be duplicate or empty carpet ! Missing time_diff : 2107751016 : jrm should be duplicate or empty carpet ! Missing time_diff : 2107751015 : jrm should be duplicate or empty carpet ! Missing time_diff : 2107751015 : jrm should be duplicate or empty carpet ! Missing time_diff : 2107751015 : jrm should be duplicate or empty carpet ! result_one_balle_Type_JRM:{'day': '27032025', 'map_nb_amount': {0: 0, 1: 4, 2: 1, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 51.00099992752075, 'nb_balles_papier': 5e-05, 'begin_time_port': 'image_27032025_11_58_03_009138m0.jpg 0.00026000000000000003 for time 1, id_amount 2 this amount prod time diff : 1e-05'} Production hashtag (incorrect ponderation at 20-10-18) : 5e-05 We reject this portfolio because of the condition_save_data : 2025-03-27 11:58:03.009138 Missing time_diff : 2107751015 : jrm should be duplicate or empty carpet ! Missing time_diff : 2107751015 : jrm should be duplicate or empty carpet ! Missing time_diff : 2107751015 : jrm should be duplicate or empty carpet ! result_one_balle_Type_JRM:{'day': '27032025', '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': 30.999916791915894, 'nb_balles_papier': 3.0000000000000004e-05, 'begin_time_port': 'image_27032025_12_00_13_010219m0.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 reject this portfolio because of the condition_save_data : 2025-03-27 12:00:13.010219 Missing time_diff : 2107751016 : jrm should be duplicate or empty carpet ! Missing time_diff : 2107751016 : jrm should be duplicate or empty carpet ! Missing time_diff : 2107751015 : jrm should be duplicate or empty carpet ! Missing time_diff : 2107751015 : jrm should be duplicate or empty carpet ! Missing time_diff : 2107751015 : jrm should be duplicate or empty carpet ! Missing time_diff : 2107751015 : jrm should be duplicate or empty carpet ! result_one_balle_Type_JRM:{'day': '27032025', 'map_nb_amount': {0: 0, 1: 4, 2: 2, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 49.99998593330383, 'nb_balles_papier': 6e-05, 'begin_time_port': 'image_27032025_12_01_04_010150m0.jpg 4e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'} Production hashtag (incorrect ponderation at 20-10-18) : 6e-05 We reject this portfolio because of the condition_save_data : 2025-03-27 12:01:04.010150 Missing time_diff : 2107751016 : jrm should be duplicate or empty carpet ! Missing time_diff : 2107751015 : jrm should be duplicate or empty carpet ! Missing time_diff : 2107751015 : jrm should be duplicate or empty carpet ! Missing time_diff : 2107751015 : jrm should be duplicate or empty carpet ! Missing time_diff : 2107751015 : jrm should be duplicate or empty carpet ! Missing time_diff : 2107751016 : jrm should be duplicate or empty carpet ! result_one_balle_Type_JRM:{'day': '27032025', 'map_nb_amount': {0: 0, 1: 4, 2: 2, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 49.99999284744263, 'nb_balles_papier': 6e-05, 'begin_time_port': 'image_27032025_12_02_04_010147m0.jpg 0.0001 for time 1, id_amount 3 this amount prod time diff : 1e-05'} Production hashtag (incorrect ponderation at 20-10-18) : 6e-05 We reject this portfolio because of the condition_save_data : 2025-03-27 12:02:04.010147 Missing time_diff : 2107751015 : jrm should be duplicate or empty carpet ! Missing time_diff : 2107751015 : jrm should be duplicate or empty carpet ! result_one_balle_Type_JRM:{'day': '27032025', 'map_nb_amount': {0: 0, 1: 2, 2: 0, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 0, 'nb_balles_papier': 2e-05, 'begin_time_port': 'image'} Production hashtag (incorrect ponderation at 20-10-18) : 2e-05 We reject this portfolio because of the condition_save_data : 2025-03-27 12:03:04.010153 Missing time_diff : 2107751015 : jrm should be duplicate or empty carpet ! Missing time_diff : 2107751016 : jrm should be duplicate or empty carpet ! Missing time_diff : 2107751015 : jrm should be duplicate or empty carpet ! Missing time_diff : 2107751015 : jrm should be duplicate or empty carpet ! Missing time_diff : 2107751015 : jrm should be duplicate or empty carpet ! Missing time_diff : 2107751015 : jrm should be duplicate or empty carpet ! result_one_balle_Type