python /home/admin/mtr/script_for_cron.py -j default -m 20 -a 'python3 ~/workarea/git/Velours/python/prod/datou.py -j batch_current -C 2974664' -s traitement_sts -M 0 -S 0 -U 100,80,95 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/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', '/home/admin/workarea/git/apy', '/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 : 637098 load datou : 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 ! 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 : step 0 init_dummy_multi_datou is not linked in the step_by_step architecture ! WARNING : step 1294 init_dummy_multi_datou is not linked in the step_by_step architecture ! 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 ! DataTypes for each output/input checked ! 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 : (photo_id, hashtag_id, score_max) was removed should we ? (x0, y0, x1, y1) was removed should we ? chemin de la photo was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? (x0, y0, x1, y1) was removed should we ? chemin de la photo 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 : 8100>1000 please execute split_portfolio.py -i 23360308 -l 1000 size over we load limit photo not treated list_input_json: {} Current got : datou_id : 4916, datou_cur_ids : ['2974664'] with mtr_portfolio_ids : ['23360308'] and first list_photo_ids : [] new path : /proc/637098/ 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.4762575626373291 About to test input to load Calling datou_exec Inside datou_exec : verbose : 0 number of steps : 1 step1:split_time_score Wed May 28 10:16:54 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', 330), ('01', 330), ('02', 330), ('03', 324), ('04', 347), ('05', 759), ('06', 791), ('07', 780), ('08', 756), ('09', 406), ('10', 13), ('11', 5), ('12', 16), ('13', 13), ('14', 32), ('15', 74), ('16', 347), ('17', 335), ('18', 342), ('19', 364), ('20', 362), ('21', 358), ('22', 354), ('23', 332)) ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {1: 8088} 27052025 23360308 Nombre de photos uploadées : 8100 / 23040 (35%) 27052025 23360308 Nombre de photos taguées (types de déchets): 8088 / 8100 (99%) 27052025 23360308 Nombre de photos taguées (volume) : 8088 / 8100 (99%) elapsed_time : load_data_split_time_score 3.0994415283203125e-06 elapsed_time : order_list_meta_photo_and_scores 0.0029654502868652344 ???????????? elapsed_time : fill_and_build_computed_from_old_data 0.35909461975097656 elapsed_time : insert_dashboard_record_day_entry 0.029049158096313477 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 elapsed_time : list_photo_by_hashtags 0.18624329566955566 Creating list_photo_total [Errno 2] No such file or directory: '/home/admin/5680.1361363349.desc' [Errno 2] No such file or directory: '/home/admin/5680.1361363899.desc' [Errno 2] No such file or directory: '/home/admin/5680.1361388609.desc' Unable to find some descriptors in ovh, trying to find them in s3 ERROR in datou_step_exec, will save and exit ! name 'upload' is not defined 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 2295, 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 510, in split_port_in_batch_balle map_descriptors, list_empty = context.prq.select_descriptors(list_photo_ids, photo_desc_type=photo_desc_type_class, verbose=verbose) File "/home/admin/workarea/git/Velours/python/mtr/database_queries/photo_retrieval_queries.py", line 792, in select_descriptors self.__get_desc_from_server(ids_ovh, ret, photo_desc_type, storage_server="ovh") File "/home/admin/workarea/git/Velours/python/mtr/database_queries/photo_retrieval_queries.py", line 73, in __get_desc_from_server self.__get_desc_from_s3(photo_ids, ret, hashtag_type, filling=True) File "/home/admin/workarea/git/Velours/python/mtr/database_queries/photo_retrieval_queries.py", line 107, in __get_desc_from_s3 s3 = upload("photodesc") [1361411816, 1361411815, 1361411814, 1361411812, 1361411810, 1361411809, 1361411782, 1361411779, 1361411775, 1361411771, 1361411768, 1361411766, 1361411747, 1361411744, 1361411742, 1361411740, 1361411738, 1361411737, 1361411721, 1361411712, 1361411709, 1361411702, 1361411701, 1361411700, 1361411684, 1361411681, 1361411678, 1361411675, 1361411673, 1361411672, 1361411646, 1361411643, 1361411640, 1361411637, 1361411635, 1361411634, 1361411596, 1361411593, 1361411590, 1361411588, 1361411586, 1361411585, 1361411567, 1361411564, 1361411562, 1361411559, 1361411557, 1361411555, 1361411540, 1361411537, 1361411533, 1361411530, 1361411529, 1361411528, 1361411507, 1361411505, 1361411502, 1361411499, 1361411497, 1361411496, 1361411477, 1361411474, 1361411471, 1361411467, 1361411464, 1361411462, 1361411448, 1361411445, 1361411438, 1361411431, 1361411428, 1361411427, 1361411413, 1361411410, 1361411407, 1361411404, 1361411402, 1361411401, 1361411362, 1361411358, 1361411356, 1361411352, 1361411350, 1361411349, 1361411248, 1361411245, 1361411241, 1361411237, 1361411234, 1361411232, 1361411204, 1361411189, 1361411143, 1361411140, 1361411138, 1361411137, 1361410930, 1361410888, 1361410885, 1361410882] begin to insert list_values into mtr_datou_result : length of list_values in save_final : 100 time used for this insertion : 0.08611869812011719 save_final ERROR in last step split_time_score, name 'upload' is not defined time spend for datou_step_exec : 666.6534988880157 time spend to save output : 0.1117401123046875 total time spend for step 0 : 666.7652390003204 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 20.13user 3.19system 11:11.65elapsed 3%CPU (0avgtext+0avgdata 166332maxresident)k 4576inputs+64568outputs (226major+95296minor)pagefaults 0swaps