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 : 68415 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 : ['2728570'] with mtr_portfolio_ids : ['22095449'] and first list_photo_ids : [] new path : /proc/68415/ 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.025485754013061523 About to test input to load Calling datou_exec Inside datou_exec : verbose : 0 number of steps : 1 step1:split_time_score Mon Apr 7 11:30: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'}] (('10', 358),) ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {1: 358} 07042025 22095449 Nombre de photos uploadées : 358 / 23040 (1%) 07042025 22095449 Nombre de photos taguées (types de déchets): 358 / 358 (100%) 07042025 22095449 Nombre de photos taguées (volume) : 358 / 358 (100%) elapsed_time : load_data_split_time_score 4.291534423828125e-06 elapsed_time : order_list_meta_photo_and_scores 0.0002129077911376953 LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL elapsed_time : fill_and_build_computed_from_old_data 0.02752232551574707 elapsed_time : insert_dashboard_record_day_entry 0.03114914894104004 LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL Creating list_photo_by_hashtags elapsed_time : list_photo_by_hashtags 0.03217887878417969 Creating list_photo_total elapsed_time : select_descriptors 15.597710609436035 07042025 22095449 Nombre de photos avec descriptors (type 5680) : 315 / 315 (100%) ERROR : Hum hum, what can we do for different size of descriptors (ignore the difference ) : 0 vs 1280 photo_id : 1350260261 photo_id_prec : 0 0:00:00|ON:LL0:02:59.468911|OFF:LL0:00:00|ON:LMissing descriptors for photos 1350263429 and 1350263450 LLMissing descriptors for photos 1350263502 and 1350263631 LLMissing descriptors for photos 1350263723 and 1350263741 LMissing descriptors for photos 1350263741 and 1350263763 LMissing descriptors for photos 1350263763 and 1350263814 LMissing descriptors for photos 1350263814 and 1350263981 LMissing descriptors for photos 1350263981 and 1350264006 LMissing descriptors for photos 1350264006 and 1350264036 LMissing descriptors for photos 1350264036 and 1350264060 LMissing descriptors for photos 1350264060 and 1350264090 LMissing descriptors for photos 1350264090 and 1350264103 LMissing descriptors for photos 1350264103 and 1350264153 LMissing descriptors for photos 1350264153 and 1350264159 LMissing descriptors for photos 1350264159 and 1350264164 LMissing descriptors for photos 1350264164 and 1350264170 LMissing descriptors for photos 1350264170 and 1350264181 LMissing descriptors for photos 1350264181 and 1350264208 LMissing descriptors for photos 1350264208 and 1350264282 LMissing descriptors for photos 1350264282 and 1350264300 LMissing descriptors for photos 1350264300 and 1350264332 LLMissing descriptors for photos 1350264447 and 1350264486 LMissing descriptors for photos 1350264486 and 1350264557 LMissing descriptors for photos 1350264557 and 1350264575 LMissing descriptors for photos 1350264575 and 1350264595 LLMissing descriptors for photos 1350264610 and 1350264618 LMissing descriptors for photos 1350264618 and 1350264728 LMissing descriptors for photos 1350264728 and 1350264751 LMissing descriptors for photos 1350264751 and 1350264760 LMissing descriptors for photos 1350264760 and 1350264788 LMissing descriptors for photos 1350264788 and 1350264795 LMissing descriptors for photos 1350264795 and 1350264810 LMissing descriptors for photos 1350264810 and 1350264991 LMissing descriptors for photos 1350264991 and 1350265033 LMissing descriptors for photos 1350265033 and 1350265074 LMissing descriptors for photos 1350265074 and 1350265224 LMissing descriptors for photos 1350265224 and 1350265244 LMissing descriptors for photos 1350265244 and 1350265249 LMissing descriptors for photos 1350265249 and 1350265280 LLL0:19:00.189675|OFF:0:00:00|ON:LL0:13:59.588163|OFF:LLLL0:01:00.807375|ON:LL0:00:59.792986|OFF:0:00:00|ON:LL0:00:59.677028|OFF:LLLLLL0:00:59.758725|ON:LL0:10:00.403582|OFF:L0:00:59.885876|ON:LLLLLLLLLLLLLLLLLLLLLLLLLLLL0:04:00.085660|OFF:LLLLLLL0:01:01.028031|ON:LLLLLLLLLLLLLLLLLL0:02:59.388470|OFF:LLL0:00:00|ON:L 07042025 Removing 18 photos because of the 'same image' condition Total on : 3298.594475 list_time_on Total off : 241.480007 list_time_off dist_desc begin to insert list_values into photo_hahstag_ids : length of list_valuse in save_photo_hashtag_id_type : 358 time used for this insertion : 0.07091069221496582 photos_removed : len 18 elapsed_time : remove_photo_duplicate 0.11453127861022949 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.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.016675949096679688 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': '07042025', 'map_nb_amount': {0: 7, 1: 55, 2: 0, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 839.2717900276184, 'nb_balles_papier': 0.000620000000000001, 'begin_time_port': 'image_07042025_10_00_03_043638m0.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.000620000000000001 result_one_balle_Type_JRM:{'day': '07042025', 'map_nb_amount': {0: 7, 1: 63, 2: 2, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 839.7757291793823, 'nb_balles_papier': 0.0007200000000000012, 'begin_time_port': 'image_07042025_10_15_02_523197m0.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.0007200000000000012 result_one_balle_Type_JRM:{'day': '07042025', 'map_nb_amount': {0: 17, 1: 63, 2: 2, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 839.2192039489746, 'nb_balles_papier': 0.0008200000000000015, 'begin_time_port': 'image_07042025_10_30_02_956324m0.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.0008200000000000015 LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLresult_one_balle_Type_JRM:{'day': '07042025', 'map_nb_amount': {0: 9, 1: 69, 2: 2, 3: 1, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 840.069445848465, 'nb_balles_papier': 0.0008100000000000015, 'begin_time_port': 'image_07042025_10_45_03_048674m0.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.0008100000000000015 We have rejected 0 photos because of the batch_size condition ! NUMBER BATCH list_of_portfolios_to_create : 4 list_same_port_ids : [22097129] find same portfolio which already exist 22097129 , we will use it list_same_port_ids : [22098512] find same portfolio which already exist 22098512 , we will use it list_same_port_ids : [22098513] find same portfolio which already exist 22098513 , we will use it list_same_port_ids : [] https://marlene.fotonower.com/api/v1/secured/portfolio/new?name=JRM_diff_batch__07042025_10_45_03_048674&access_token=b05576c56a0e42ad0cb9b46155f68f82 Catched exception ! Connect or reconnect ! ERROR in datou_step_exec, will save and exit ! (1062, "Duplicate entry '22100051-1350273607' for key 'mtr_portfolio_photos.mtr_port_phot_many_to_one'") 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 3112, in create_portfolio_and_launch_datou_carac context.pq.insert_photos(portfolio_id, list_photo_ids, created_at = True) File "/home/admin/workarea/git/Velours/python/mtr/database_queries/portfolio_queries.py", line 199, in insert_photos self.gq.insert_many(query, tup_port_id_pid) File "/home/admin/workarea/git/Velours/python/mtr/database_queries/general_queries.py", line 157, in insert_many cursor.executemany(query, args[:limit]) File "/usr/local/lib/python3.8/dist-packages/MySQLdb/cursors.py", line 239, in executemany self.rowcount = sum(self.execute(query, arg) for arg in args) File "/usr/local/lib/python3.8/dist-packages/MySQLdb/cursors.py", line 239, in self.rowcount = sum(self.execute(query, arg) for arg in 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) [1350279517, 1350279460, 1350279413, 1350279379, 1350279338, 1350279290, 1350279280, 1350279264, 1350279248, 1350279243, 1350279235, 1350279204, 1350279197, 1350279162, 1350279140, 1350279100, 1350279060, 1350278773, 1350278674, 1350278641, 1350278543, 1350278476, 1350278423, 1350278174, 1350278120, 1350278085, 1350278037, 1350277972, 1350277869, 1350277574, 1350277513, 1350277460, 1350277414, 1350277344, 1350277286, 1350277015, 1350276971, 1350276910, 1350276833, 1350276775, 1350276720, 1350276159, 1350275817, 1350275725, 1350275657, 1350275583, 1350275495, 1350274886, 1350274864, 1350274841, 1350274832, 1350274823, 1350274806, 1350274726, 1350274718, 1350274700, 1350274695, 1350274690, 1350274685, 1350274544, 1350274533, 1350274529, 1350274521, 1350274515, 1350274510, 1350274465, 1350274459, 1350274456, 1350274449, 1350274444, 1350274432, 1350274392, 1350274385, 1350274374, 1350274353, 1350274314, 1350274274, 1350274117, 1350274082, 1350274047, 1350274010, 1350273986, 1350273982, 1350273882, 1350273812, 1350273719, 1350273650, 1350273607, 1350273583, 1350273370, 1350273309, 1350273262, 1350273184, 1350273138, 1350273095, 1350272617, 1350272469, 1350272341, 1350272172, 1350272119] begin to insert list_values into mtr_datou_result : length of list_values in save_final : 100 time used for this insertion : 0.04029345512390137 save_final ERROR in last step split_time_score, (1062, "Duplicate entry '22100051-1350273607' for key 'mtr_portfolio_photos.mtr_port_phot_many_to_one'") time spend for datou_step_exec : 17.998390436172485 time spend to save output : 0.04986381530761719 total time spend for step 0 : 18.048254251480103 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 2.30user 0.80system 0:20.94elapsed 14%CPU (0avgtext+0avgdata 105376maxresident)k 1664inputs+2576outputs (2major+49912minor)pagefaults 0swaps