python /home/admin/mtr/script_for_cron.py -j datou_current3 -m 20 -a ' -a 4189' -s datou_current_4189 -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 : 2283021 load datou : 4189 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) DONE and to test : checkNoCycle ! We are managing only one step so we do not consider checkConsistencyNbInputNbOutput ! We are managing only one step so we do not consider checkConsistencyTypeOutputInput ! Unexpected type for variable list_input_json ERROR or WARNING : can't parse json string Expecting value: line 1 column 1 (char 0) Tried to parse : None was removed should we ? donnée sous forme de texte was removed should we ? [ptf_id0,ptf_id1...] was removed should we ? load thcls load pdts Running datou job : batch_current TODO datou_current to load to do maybe to take outside batchDatouExec no input labels no input values updating current state to 1 list_input_json: {} Current got : datou_id : 4189, datou_cur_ids : ['2689784'] with mtr_portfolio_ids : ['21688478'] and first list_photo_ids : [] new path : /proc/2283021/ 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 : 1.7298731803894043 About to test input to load Calling datou_exec Inside datou_exec : verbose : 0 number of steps : 1 step1:split_time_score Tue Mar 25 16:00:33 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'}] (('10', 318),) ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {1: 318} 25032025 21688478 Nombre de photos uploadées : 318 / 23040 (1%) 25032025 21688478 Nombre de photos taguées (types de déchets): 318 / 318 (100%) 25032025 21688478 Nombre de photos taguées (volume) : 318 / 318 (100%) elapsed_time : load_data_split_time_score 4.291534423828125e-06 elapsed_time : order_list_meta_photo_and_scores 0.00014209747314453125 LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL elapsed_time : fill_and_build_computed_from_old_data 0.018895387649536133 elapsed_time : insert_dashboard_record_day_entry 0.030498743057250977 LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL Creating list_photo_by_hashtags elapsed_time : list_photo_by_hashtags 0.037494659423828125 Creating list_photo_total elapsed_time : select_descriptors 16.293453693389893 25032025 21688478 Nombre de photos avec descriptors (type 5680) : 290 / 290 (100%) ERROR : Hum hum, what can we do for different size of descriptors (ignore the difference ) : 0 vs 1280 photo_id : 1347141854 photo_id_prec : 0 0:00:00|ON:LLLMissing descriptors for photos 1347143755 and 1347143767 LMissing descriptors for photos 1347143767 and 1347143775 LLMissing descriptors for photos 1347145254 and 1347145260 L0:03:59.925150|OFF:L0:00:00|ON:Missing descriptors for photos 1347145276 and 1347145297 LLMissing descriptors for photos 1347146365 and 1347146368 LLMissing descriptors for photos 1347146378 and 1347146383 L0:01:59.588390|OFF:LLL0:00:00|ON:L0:00:59.897631|OFF:L0:00:00|ON:Missing descriptors for photos 1347148857 and 1347148864 L0:00:00|OFF:L0:00:00|ON:Missing descriptors for photos 1347153253 and 1347153364 LLL0:01:02.467186|OFF:LLLLLLLLLLL0:00:57.809180|ON:Missing descriptors for photos 1347155209 and 1347157281 LMissing descriptors for photos 1347157281 and 1347157341 LMissing descriptors for photos 1347157341 and 1347157374 LMissing descriptors for photos 1347157374 and 1347157487 LMissing descriptors for photos 1347157487 and 1347157584 LMissing descriptors for photos 1347157584 and 1347157632 LMissing descriptors for photos 1347157632 and 1347159198 LMissing descriptors for photos 1347159198 and 1347159209 LLL0:09:00.489875|OFF:0:00:00|ON:LL0:04:59.065302|OFF:LLLL0:01:00.776302|ON:LL0:17:59.523240|OFF:0:00:00|ON:LLLLLLLLLLLLLLLLLLLLLLLL0:06:00.476640|OFF:L0:00:00|ON:LLLLLLLLLLLLL 25032025 Removing 17 photos because of the 'same image' condition Total on : 2761.433414 list_time_on Total off : 118.585482 list_time_off dist_desc begin to insert list_values into photo_hahstag_ids : length of list_valuse in save_photo_hashtag_id_type : 318 time used for this insertion : 0.058824777603149414 photos_removed : len 17 elapsed_time : remove_photo_duplicate 0.10014700889587402 To do, maybe not at the correct place ! ......L............L..L.L.L...L.L...L.L..L.L..L.L...L.L..L...L.L...L.L..L.L.L.L.L.L.L.L.L.L.L.L.L.L.L...................................................L.................................L.L.L.................................................................................................................L.................L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.Lforce hashtag to JRM elapsed_time : CREATE_PORT_BATCH_BY_HOUR 0.014078140258789062 NUMBER BATCH : 4 list_ponderation used : [1e-05, 1e-05, 1e-05, 1e-05, 1e-05] , list_hashtag_class_create_as_list : ['jrm'] result_one_balle_Type_JRM:{'day': '25032025', 'map_nb_amount': {0: 3, 1: 50, 2: 0, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 839.5660028457642, 'nb_balles_papier': 0.0005400000000000008, 'begin_time_port': 'image_25032025_10_00_02_977395m0.jpg 1e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'} Production hashtag (incorrect ponderation at 20-10-18) : 0.0005400000000000008 result_one_balle_Type_JRM:{'day': '25032025', 'map_nb_amount': {0: 17, 1: 68, 2: 4, 3: 1, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 841.2317740917206, 'nb_balles_papier': 0.0009100000000000017, 'begin_time_port': 'image_25032025_10_15_02_226954m0.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.0009100000000000017 result_one_balle_Type_JRM:{'day': '25032025', 'map_nb_amount': {0: 14, 1: 77, 2: 0, 3: 1, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 839.7974109649658, 'nb_balles_papier': 0.0009200000000000018, 'begin_time_port': 'image_25032025_10_30_02_369486m0.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.0009200000000000018 LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLresult_one_balle_Type_JRM:{'day': '25032025', 'map_nb_amount': {0: 4, 1: 30, 2: 0, 3: 2, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 360.02143812179565, 'nb_balles_papier': 0.0003600000000000003, 'begin_time_port': 'image_25032025_10_45_02_970697_0000.jpg'} Production hashtag (incorrect ponderation at 20-10-18) : 0.0003600000000000003 We have rejected 0 photos because of the batch_size condition ! NUMBER BATCH list_of_portfolios_to_create : 4 list_same_port_ids : [21690738] find same portfolio which already exist 21690738 , we will use it Catched exception ! Connect or reconnect ! ERROR in datou_step_exec, will save and exit ! (1213, 'Deadlock found when trying to get lock; try restarting transaction') File "/home/admin/workarea/git/Velours/python/mtr/datou/datou_lib.py", line 2329, in datou_exec output = datou_step_exec(sNext, args, cache, context, map_info, verbose, mtr_user_id) File "/home/admin/workarea/git/Velours/python/mtr/datou/datou_lib.py", line 2513, in datou_step_exec return lib_process.datou_step_split_time_score(param, json_param, args, context, map_info, verbose, mtr_user_id) File "/home/admin/workarea/git/Velours/python/mtr/datou/lib_step_exec/lib_step_process.py", line 2294, in datou_step_split_time_score one_result = split_port_in_batch_balle( File "/home/admin/workarea/git/Velours/python/misc/split_time_score.py", line 843, in split_port_in_batch_balle list_of_portfolios_created, dict_port = create_portfolio_and_launch_datou_carac(list_of_portfolios_to_create, File "/home/admin/workarea/git/Velours/python/mtr/math_fotonower/timeseries/lib_split_time_score.py", line 3121, in create_portfolio_and_launch_datou_carac context.pq.order_portfolio_for_veolia(portfolio_id, verbose) File "/home/admin/workarea/git/Velours/python/mtr/database_queries/portfolio_queries.py", line 352, in order_portfolio_for_veolia nb = self.gq.insert(query) File "/home/admin/workarea/git/Velours/python/mtr/database_queries/general_queries.py", line 112, in insert number = cursor.execute(query, args) File "/usr/local/lib/python3.8/dist-packages/MySQLdb/cursors.py", line 209, in execute res = self._query(query) File "/usr/local/lib/python3.8/dist-packages/MySQLdb/cursors.py", line 315, in _query db.query(q) File "/usr/local/lib/python3.8/dist-packages/MySQLdb/connections.py", line 239, in query _mysql.connection.query(self, query) [1347221096, 1347221089, 1347221083, 1347221068, 1347221054, 1347221045, 1347220358, 1347220353, 1347220349, 1347220338, 1347220330, 1347220325, 1347219495, 1347219442, 1347219369, 1347219305, 1347219224, 1347219134, 1347217050, 1347217019, 1347216980, 1347216942, 1347216905, 1347216858, 1347215599, 1347215598, 1347215593, 1347215584, 1347215576, 1347215567, 1347214631, 1347214577, 1347214566, 1347214555, 1347214533, 1347214491, 1347213001, 1347212996, 1347212990, 1347212982, 1347212975, 1347212969, 1347212259, 1347212251, 1347212245, 1347212238, 1347212234, 1347212230, 1347211820, 1347211817, 1347211810, 1347211799, 1347211785, 1347211766, 1347209350, 1347209026, 1347209023, 1347209016, 1347209003, 1347208994, 1347208986, 1347208133, 1347208129, 1347208111, 1347208101, 1347208096, 1347208091, 1347207370, 1347207366, 1347207362, 1347207353, 1347207344, 1347207336, 1347206867, 1347206847, 1347206812, 1347206775, 1347206747, 1347206700, 1347205352, 1347205340, 1347205206, 1347205201, 1347205198, 1347205195, 1347204723, 1347204711, 1347204673, 1347204665, 1347204649, 1347204637, 1347203996, 1347203990, 1347203984, 1347203971, 1347203705, 1347203627, 1347203000, 1347202994, 1347202985] begin to insert list_values into mtr_datou_result : length of list_values in save_final : 100 time used for this insertion : 0.043044090270996094 save_final ERROR in last step split_time_score, (1213, 'Deadlock found when trying to get lock; try restarting transaction') time spend for datou_step_exec : 184.16168808937073 time spend to save output : 0.05147671699523926 total time spend for step 0 : 184.21316480636597 need to delete datou_research and reload, so keep current state 1 caffe_path_current : About to save ! 2 After save, about to update current ! 2.25user 0.68system 3:12.49elapsed 1%CPU (0avgtext+0avgdata 105568maxresident)k 2344inputs+2368outputs (3major+55051minor)pagefaults 0swaps