python /home/admin/mtr/script_for_cron.py -j datou_current3 -m 8 -a ' -a 4323 -l 20 --fifo' -s datou_current_sts -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 : 3876037 load datou : 4323 # 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 updating current state to 1 we have a portfolio with more photos than limit : 48>20 please execute split_portfolio.py -i 23360454 -l 20 size over we load limit photo not treated list_input_json: [] Current got : datou_id : 4323, datou_cur_ids : ['2993255'] with mtr_portfolio_ids : ['23360454'] and first list_photo_ids : [] new path : /proc/3876037/ 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 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.03279829025268555 About to test input to load Calling datou_exec Inside datou_exec : verbose : 0 number of steps : 1 step1:split_time_score Sat May 31 08:35:08 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': 3847, 'mtr_user_id': 31, 'name': 'learn_MM_generique_050224', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'aluminium,ela,emr,film_pedb,flux_dev,jrm,pcm,pcnc,pehd_pp,pet_clair,refus,tapis_vide', 'svm_portfolios_learning': '13096157,13096155,13096163,13096159,13301956,13095886,13096162,13096160,13358264,13096158,5515868,13276803', 'photo_hashtag_type': 4932, 'photo_desc_type': 6032, 'type_classification': 'tf_classification2', 'hashtag_id_list': '493546845,492741797,616987804,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', 185), ('01', 113), ('02', 191), ('03', 196), ('04', 114), ('05', 123), ('06', 171), ('07', 174), ('08', 238), ('09', 84)) ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {1: 47} 27052025 23360454 Nombre de photos uploadées : 48 / 23040 (0%) 27052025 23360454 Nombre de photos taguées (types de déchets): 47 / 48 (97%) 27052025 23360454 Nombre de photos taguées (volume) : 47 / 48 (97%) elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 2.2411346435546875e-05 ? elapsed_time : fill_and_build_computed_from_old_data 0.002730131149291992 elapsed_time : insert_dashboard_record_day_entry 0.026227235794067383 Creating list_photo_total elapsed_time : select_descriptors 2.7761151790618896 27052025 23360454 Nombre de photos avec descriptors (type 6032) : 23 / 24 (95%) Missing descriptors for photos 0 and 1361175740 0:00:00|ON:Missing descriptors for photos 1361175740 and 1361175772 Missing descriptors for photos 1361175772 and 1361175770 Missing descriptors for photos 1361175770 and 1361175811 0:07:59.999403|OFF:0:00:28.999914|ON:Missing descriptors for photos 1361177136 and 1361176790 Missing descriptors for photos 1361176790 and 1361176614 Missing descriptors for photos 1361176614 and 1361177133 Missing descriptors for photos 1361177133 and 1361176611 Missing descriptors for photos 1361176611 and 1361177122 Missing descriptors for photos 1361177122 and 1361176602 Missing descriptors for photos 1361176602 and 1361177107 Missing descriptors for photos 1361177107 and 1361177077 Missing descriptors for photos 1361177077 and 1361176572 Missing descriptors for photos 1361176572 and 1361177185 0:04:29.999872|OFF:0:00:30.000250|ON:0:00:00|OFF:0:00:29.999570|ON:Missing descriptors for photos 1361177220 and 1361178646 Missing descriptors for photos 1361178646 and 1361177217 Missing descriptors for photos 1361177217 and 1361178612 Missing descriptors for photos 1361178612 and 1361177213 Missing descriptors for photos 1361177213 and 1361178585 Missing descriptors for photos 1361178585 and 1361177205 Missing descriptors for photos 1361177205 and 1361177193 0:03:01.000109|OFF:0:00:30.000250|ON:Missing descriptors for photos 1361179099 and 1361256070 27052025 Removing 4 photos because of the 'same image' condition Total on : 930.999384 list_time_on Total off : 118.99998399999998 list_time_off dist_desc begin to insert list_values into photo_hahstag_ids : length of list_valuse in save_photo_hashtag_id_type : 48 time used for this insertion : 0.04719400405883789 photos_removed : len 4 elapsed_time : remove_photo_duplicate 0.09655570983886719 Creating list_photo_total XXXXWarning list_scores null time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average time_diff is bigger than the limit of interval, we ignore the result of this image in moving average ERROR ! elapsed_time : count_sum_diff_and_build_graph 0.007011890411376953 Total photos : 48 .can't find max_score_info .can't find max_score_info .can't find max_score_info .can't find max_score_info .Change port : 0 hashtag : 2107760237 photo_id =1361175810 : film_pedb ..........can't find max_score_info ..can't find max_score_info .can't find max_score_info .can't find max_score_info .can't find max_score_info .can't find max_score_info .can't find max_score_info .can't find max_score_info .can't find max_score_info .can't find max_score_info .can't find max_score_info .can't find max_score_info .Change port : 11 hashtag : 616987804 photo_id =1361176562 : emr ....can't find max_score_info ..can't find max_score_info .can't find max_score_info .can't find max_score_info .can't find max_score_info .can't find max_score_info .can't find max_score_info .can't find max_score_info .can't find max_score_info .can't find max_score_info .Change port : 5 hashtag : 495916461 photo_id =1361179110 : jrm ..can't find max_score_info ..can't find max_score_info Total photos : 48 Number of lists : 4 counter photos in port : 19 hashtag : aluminium(493546845) : 0 photos in 0 portfolios ! hashtag : ela(492741797) : 0 photos in 0 portfolios ! hashtag : emr(616987804) : 5 photos in 1 portfolios ! hashtag : film_pedb(2107760237) : 11 photos in 1 portfolios ! hashtag : flux_dev(2107760238) : 0 photos in 0 portfolios ! hashtag : jrm(495916461) : 3 photos in 1 portfolios ! hashtag : pcm(560181804) : 0 photos in 0 portfolios ! hashtag : pcnc(1284539308) : 0 photos in 0 portfolios ! hashtag : pehd_pp(2107760239) : 0 photos in 0 portfolios ! hashtag : pet_clair(2107755846) : 0 photos in 0 portfolios ! hashtag : refus(538914404) : 0 photos in 0 portfolios ! hashtag : tapis_vide(2107748999) : 0 photos in 1 portfolios ! elapsed_time : group_photo_by_moyenne_exp 0.0020339488983154297 elapsed_time : compute_and_correct_tag_with_moyenne_mobile 4.0531158447265625e-06 today str has not a value , we define it as the date of the first image todaystr_first : 27052025 attention , prev_timestamp is 0 , we do nothing ******oo*o*oo*oo*o*oo*o*o**o*Unexpected type of data : ({'photo_id': 1361256070, 'url': 'https://s3-eu-west-1.amazonaws.com/photo.fotonower.com/2025/5/27/70e05198617ea56f8b64b913b0f14280.jpg', 'username': None, 'uploaded_at': 1748332504, 'text': 'image_27052025_08_51_34_29651.jpg', 'time': 1748335894.029651}, 'different') Count Time bigger than 30s : 16 #Number Photos for regression : {'27052025': {493546845: {2107751013: 0, 2107751014: 0, 2107751015: 0, 2107751016: 0, 2107751017: 0}, 492741797: {2107751013: 0, 2107751014: 0, 2107751015: 0, 2107751016: 0, 2107751017: 0}, 616987804: {2107751013: 0, 2107751014: 59.99924087524414, 2107751015: 0, 2107751016: 0, 2107751017: 0}, 2107760237: {2107751013: 0, 2107751014: 179.00034713745117, 2107751015: 121.00111770629883, 2107751016: 59.99922728538513, 2107751017: 0}, 2107760238: {2107751013: 0, 2107751014: 0, 2107751015: 0, 2107751016: 0, 2107751017: 0}, 495916461: {2107751013: 0, 2107751014: 30.000250101089478, 2107751015: 29.999284029006958, 2107751016: 31.000181913375854, 2107751017: 0}, 560181804: {2107751013: 0, 2107751014: 59.00046229362488, 2107751015: 30.99993085861206, 2107751016: 0, 2107751017: 0}, 1284539308: {2107751013: 0, 2107751014: 0, 2107751015: 0, 2107751016: 0, 2107751017: 0}, 2107760239: {2107751013: 0, 2107751014: 0, 2107751015: 0, 2107751016: 0, 2107751017: 0}, 2107755846: {2107751013: 0, 2107751014: 0, 2107751015: 0, 2107751016: 0, 2107751017: 0}, 538914404: {2107751013: 0, 2107751014: 0, 2107751015: 0, 2107751016: 0, 2107751017: 0}, 2107748999: {2107751013: 0, 2107751014: 0, 2107751015: 477.9987847805023, 2107751016: 0, 2107751017: 0}}} 27052025|aluminium, 05102018_papier_non_papier_dense:0 27052025|aluminium, 05102018_papier_non_papier_peu_dense:0 27052025|aluminium, 05102018_papier_non_papier_presque_vide:0 27052025|aluminium, 05102018_papier_non_papier_tres_dense:0 27052025|aluminium, 05102018_papier_non_papier_tres_peu_dense:0 27052025|ela, 05102018_papier_non_papier_dense:0 27052025|ela, 05102018_papier_non_papier_peu_dense:0 27052025|ela, 05102018_papier_non_papier_presque_vide:0 27052025|ela, 05102018_papier_non_papier_tres_dense:0 27052025|ela, 05102018_papier_non_papier_tres_peu_dense:0 27052025|emr, 05102018_papier_non_papier_dense:0 27052025|emr, 05102018_papier_non_papier_peu_dense:59.99924087524414 27052025|emr, 05102018_papier_non_papier_presque_vide:0 27052025|emr, 05102018_papier_non_papier_tres_dense:0 27052025|emr, 05102018_papier_non_papier_tres_peu_dense:0 27052025|film_pedb, 05102018_papier_non_papier_dense:0 27052025|film_pedb, 05102018_papier_non_papier_peu_dense:179.00034713745117 27052025|film_pedb, 05102018_papier_non_papier_presque_vide:121.00111770629883 27052025|film_pedb, 05102018_papier_non_papier_tres_dense:59.99922728538513 27052025|film_pedb, 05102018_papier_non_papier_tres_peu_dense:0 27052025|flux_dev, 05102018_papier_non_papier_dense:0 27052025|flux_dev, 05102018_papier_non_papier_peu_dense:0 27052025|flux_dev, 05102018_papier_non_papier_presque_vide:0 27052025|flux_dev, 05102018_papier_non_papier_tres_dense:0 27052025|flux_dev, 05102018_papier_non_papier_tres_peu_dense:0 27052025|jrm, 05102018_papier_non_papier_dense:0 27052025|jrm, 05102018_papier_non_papier_peu_dense:30.000250101089478 27052025|jrm, 05102018_papier_non_papier_presque_vide:29.999284029006958 27052025|jrm, 05102018_papier_non_papier_tres_dense:31.000181913375854 27052025|jrm, 05102018_papier_non_papier_tres_peu_dense:0 27052025|pcm, 05102018_papier_non_papier_dense:0 27052025|pcm, 05102018_papier_non_papier_peu_dense:59.00046229362488 27052025|pcm, 05102018_papier_non_papier_presque_vide:30.99993085861206 27052025|pcm, 05102018_papier_non_papier_tres_dense:0 27052025|pcm, 05102018_papier_non_papier_tres_peu_dense:0 27052025|pcnc, 05102018_papier_non_papier_dense:0 27052025|pcnc, 05102018_papier_non_papier_peu_dense:0 27052025|pcnc, 05102018_papier_non_papier_presque_vide:0 27052025|pcnc, 05102018_papier_non_papier_tres_dense:0 27052025|pcnc, 05102018_papier_non_papier_tres_peu_dense:0 27052025|pehd_pp, 05102018_papier_non_papier_dense:0 27052025|pehd_pp, 05102018_papier_non_papier_peu_dense:0 27052025|pehd_pp, 05102018_papier_non_papier_presque_vide:0 27052025|pehd_pp, 05102018_papier_non_papier_tres_dense:0 27052025|pehd_pp, 05102018_papier_non_papier_tres_peu_dense:0 27052025|pet_clair, 05102018_papier_non_papier_dense:0 27052025|pet_clair, 05102018_papier_non_papier_peu_dense:0 27052025|pet_clair, 05102018_papier_non_papier_presque_vide:0 27052025|pet_clair, 05102018_papier_non_papier_tres_dense:0 27052025|pet_clair, 05102018_papier_non_papier_tres_peu_dense:0 27052025|refus, 05102018_papier_non_papier_dense:0 27052025|refus, 05102018_papier_non_papier_peu_dense:0 27052025|refus, 05102018_papier_non_papier_presque_vide:0 27052025|refus, 05102018_papier_non_papier_tres_dense:0 27052025|refus, 05102018_papier_non_papier_tres_peu_dense:0 27052025|tapis_vide, 05102018_papier_non_papier_dense:0 27052025|tapis_vide, 05102018_papier_non_papier_peu_dense:0 27052025|tapis_vide, 05102018_papier_non_papier_presque_vide:477.9987847805023 27052025|tapis_vide, 05102018_papier_non_papier_tres_dense:0 27052025|tapis_vide, 05102018_papier_non_papier_tres_peu_dense:0 #Number Photos for regression amount gros magasin papier (time_diff then nb_photo) : We have not displayed the number of photos removed for one material since Rungis_Papier wasn't in the thcl used ! 27052025_time_diff_distrib Number amount portfolio for this type of dechet : aluminium 0 Number amount portfolio for this type of dechet : ela 0 Number amount portfolio for this type of dechet : emr 2 https://marlene.fotonower.com/api/v1/secured/portfolio/new?name=27052025_emr_05102018_papier_non_papier_peu_dense&access_token=3e00c8f3e5af383c48e3c68940ba6fe7 Created to study and clean : 23483879 with name like 27052025_emr_05102018_papier_non_papier_peu_dense Number amount portfolio for this type of dechet : film_pedb 11 https://marlene.fotonower.com/api/v1/secured/portfolio/new?name=27052025_film_pedb_05102018_papier_non_papier_peu_dense&access_token=3e00c8f3e5af383c48e3c68940ba6fe7 Created to study and clean : 23483880 with name like 27052025_film_pedb_05102018_papier_non_papier_peu_dense https://marlene.fotonower.com/api/v1/secured/portfolio/new?name=27052025_film_pedb_05102018_papier_non_papier_presque_vide&access_token=3e00c8f3e5af383c48e3c68940ba6fe7 Created to study and clean : 23483882 with name like 27052025_film_pedb_05102018_papier_non_papier_presque_vide https://marlene.fotonower.com/api/v1/secured/portfolio/new?name=27052025_film_pedb_05102018_papier_non_papier_tres_dense&access_token=3e00c8f3e5af383c48e3c68940ba6fe7 Created to study and clean : 23483900 with name like 27052025_film_pedb_05102018_papier_non_papier_tres_dense Number amount portfolio for this type of dechet : flux_dev 0 Number amount portfolio for this type of dechet : jrm 3 Number amount portfolio for this type of dechet : pcm 3 Number amount portfolio for this type of dechet : pcnc 0 Number amount portfolio for this type of dechet : pehd_pp 0 Number amount portfolio for this type of dechet : pet_clair 0 Number amount portfolio for this type of dechet : refus 0 Number amount portfolio for this type of dechet : tapis_vide 23 https://marlene.fotonower.com/api/v1/secured/portfolio/new?name=27052025_tapis_vide_05102018_papier_non_papier_presque_vide&access_token=3e00c8f3e5af383c48e3c68940ba6fe7 Created to study and clean : 23483902 with name like 27052025_tapis_vide_05102018_papier_non_papier_presque_vide NUMBER BATCH : 4 list_ponderation used : [0.001, 0.001, 0.001, 0.001, 0.001, 0.001, 0.001, 0.001, 0.001, 0.001, 0.001] , list_hashtag_class_create_as_list : ['pcnc', 'gm', 'emr', 'ela', 'pet_clair', 'film_pedb', 'pehd_pp', 'flux_dev_rigide', 'aluminium', 'tapis_vide', 'refus', 'gros_cartons', 'gm', 'flux_dev_rigide', 'gros_cartons'] We filter photos on hashtag condition ! We filter photos on hashtag condition ! We filter photos on hashtag condition ! result_one_balle_Type_film_pedb:{'day': '27052025', 'map_nb_amount': {0: 5, 1: 4, 2: 2, 3: 0, 4: 0}, 'map_time_amount': {0: 179.00034713745117, 1: 121.00111770629883, 2: 59.99922728538513, 3: 0, 4: 0}, 'duration': 328.9992301464081, 'nb_balles_papier': 0.36000069212913516, 'begin_time_port': 'image_27052025_00_13_05_30743.jpg'} Production hashtag (incorrect ponderation at 20-10-18) : 0.36000069212913516 hashtag non trouvé ! We filter photos on hashtag condition ! hashtag non trouvé ! hashtag non trouvé ! We filter photos on hashtag condition ! We filter photos on hashtag condition ! We filter photos on hashtag condition ! We filter photos on hashtag condition ! We filter photos on hashtag condition ! We filter photos on hashtag condition ! We filter photos on hashtag condition ! We filter photos on hashtag condition ! result_one_balle_Type_emr:{'day': '27052025', 'map_nb_amount': {0: 4, 1: 1, 2: 0, 3: 0, 4: 0}, 'map_time_amount': {0: 118.99970316886902, 1: 30.99993085861206, 2: 0, 3: 0, 4: 0}, 'duration': 118.99970316886902, 'nb_balles_papier': 0.1499996340274811, 'begin_time_port': 'image_27052025_00_21_35_30392.jpg'} Production hashtag (incorrect ponderation at 20-10-18) : 0.1499996340274811 We filter photos on hashtag condition ! hashtag non trouvé ! We filter photos on hashtag condition ! hashtag non trouvé ! hashtag non trouvé ! We filter photos on hashtag condition ! We filter photos on hashtag condition ! We filter photos on hashtag condition ! We filter photos on hashtag condition ! We filter photos on hashtag condition ! We filter photos on hashtag condition ! We filter photos on hashtag condition ! We filter photos on hashtag condition ! We filter photos on hashtag condition ! We filter photos on hashtag condition ! hashtag non trouvé ! result_one_balle_Type_jrm:{'day': '27052025', 'map_nb_amount': {0: 1, 1: 1, 2: 1, 3: 0, 4: 0}, 'map_time_amount': {0: 30.000250101089478, 1: 29.999284029006958, 2: 31.000181913375854, 3: 0, 4: 0}, 'duration': 59.999534130096436, 'nb_balles_papier': 0.09099971604347229, 'begin_time_port': 'image_27052025_00_26_35_30490.jpg'} Production hashtag (incorrect ponderation at 20-10-18) : 0.09099971604347229 hashtag non trouvé ! hashtag non trouvé ! We filter photos on hashtag condition ! We filter photos on hashtag condition ! We filter photos on hashtag condition ! We filter photos on hashtag condition ! We filter photos on hashtag condition ! We filter photos on hashtag condition ! We have rejected 0 photos because of the batch_size condition ! NUMBER BATCH list_of_portfolios_to_create : 3 list_same_port_ids : [] https://marlene.fotonower.com/api/v1/secured/portfolio/new?name=film_pedb_diff_batch__27052025_00_13_05_030743&access_token=3e00c8f3e5af383c48e3c68940ba6fe7 list_same_port_ids : [] https://marlene.fotonower.com/api/v1/secured/portfolio/new?name=emr_diff_batch__27052025_00_21_35_030392&access_token=3e00c8f3e5af383c48e3c68940ba6fe7 type_dechet jrm not in list to create port, so we just list it with its name (VR TODO 3-6-19 : we need to change this) # 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 ! 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 ! 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 11978 mask_detect is not consistent : 3 used against 2 in the step definition ! WARNING : number of outputs for step 11987 blur_detection is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 11986 brightness is not consistent : 2 used against 1 in the step definition ! WARNING : number of inputs for step 11982 crop_condition is not consistent : 3 used against 2 in the step definition ! Step 11982 crop_condition have less outputs used (2) than in the step definition (3) : some outputs may be not used ! Step 11985 merge_mask_thcl_custom have less inputs used (2) than in the step definition (3) : maybe we manage optionnal inputs ! WARNING : number of outputs for step 11985 merge_mask_thcl_custom is not consistent : 3 used against 2 in the step definition ! WARNING : number of inputs for step 11979 rle_unique_nms_with_priority is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 11979 rle_unique_nms_with_priority is not consistent : 2 used against 1 in the step definition ! Step 11990 crop_condition have less inputs used (1) than in the step definition (2) : maybe we manage optionnal inputs ! WARNING : number of outputs for step 11990 crop_condition is not consistent : 4 used against 3 in the step definition ! WARNING : number of outputs for step 11981 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11980 final have less inputs used (2) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11980 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! Step 11989 split_time_score have less inputs used (1) than in the step definition (2) : 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 : type of output 1 of step 11981 doesn't seem to be define in the database( WARNING : type of input 3 of step 11980 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : type of output 2 of step 11978 doesn't seem to be define in the database( WARNING : type of input 2 of step 11982 doesn't seem to be define in the database( WARNING : output 1 of step 11978 have datatype=2 whereas input 1 of step 11985 have datatype=7 WARNING : type of output 2 of step 11985 doesn't seem to be define in the database( WARNING : type of input 1 of step 11979 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 11981 have datatype=10 whereas input 3 of step 11988 have datatype=6 WARNING : type of input 2 of step 11990 doesn't seem to be define in the database( WARNING : output 1 of step 11979 have datatype=7 whereas input 2 of step 11990 have datatype=None WARNING : type of output 3 of step 11990 doesn't seem to be define in the database( WARNING : type of input 1 of step 11981 doesn't seem to be define in the database( WARNING : output 0 of step 11981 have datatype=10 whereas input 0 of step 11991 have datatype=18 WARNING : type of input 5 of step 11988 doesn't seem to be define in the database( WARNING : output 0 of step 11991 have datatype=11 whereas input 5 of step 11988 have datatype=None WARNING : type of output 1 of step 11987 doesn't seem to be define in the database( WARNING : type of input 3 of step 11982 doesn't seem to be define in the database( WARNING : type of output 1 of step 11986 doesn't seem to be define in the database( WARNING : type of input 3 of step 11982 doesn't seem to be define in the database( WARNING : output 0 of step 11985 have datatype=1 whereas input 0 of step 11979 have datatype=2 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`=23483918 AND mptpi.`type`=4461 To do # 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 ! 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 ! 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 11500 mask_detect is not consistent : 3 used against 2 in the step definition ! WARNING : number of outputs for step 11508 brightness is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 11509 blur_detection is not consistent : 2 used against 1 in the step definition ! WARNING : number of inputs for step 11504 crop_condition is not consistent : 3 used against 2 in the step definition ! Step 11504 crop_condition have less outputs used (2) than in the step definition (3) : some outputs may be not used ! Step 11507 merge_mask_thcl_custom have less inputs used (2) than in the step definition (3) : maybe we manage optionnal inputs ! WARNING : number of outputs for step 11507 merge_mask_thcl_custom is not consistent : 3 used against 2 in the step definition ! WARNING : number of inputs for step 11501 rle_unique_nms_with_priority is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 11501 rle_unique_nms_with_priority is not consistent : 2 used against 1 in the step definition ! Step 11576 crop_condition have less inputs used (1) than in the step definition (2) : maybe we manage optionnal inputs ! WARNING : number of outputs for step 11576 crop_condition is not consistent : 4 used against 3 in the step definition ! WARNING : number of outputs for step 11503 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11502 final have less inputs used (2) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11502 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! Step 11511 split_time_score have less inputs used (1) than in the step definition (2) : 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 : type of output 1 of step 11503 doesn't seem to be define in the database( WARNING : type of input 3 of step 11502 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : type of output 2 of step 11500 doesn't seem to be define in the database( WARNING : type of input 2 of step 11504 doesn't seem to be define in the database( WARNING : output 1 of step 11500 have datatype=2 whereas input 1 of step 11507 have datatype=7 WARNING : type of output 2 of step 11507 doesn't seem to be define in the database( WARNING : type of input 1 of step 11501 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 11503 have datatype=10 whereas input 3 of step 11510 have datatype=6 WARNING : type of input 2 of step 11576 doesn't seem to be define in the database( WARNING : output 1 of step 11501 have datatype=7 whereas input 2 of step 11576 have datatype=None WARNING : type of output 3 of step 11576 doesn't seem to be define in the database( WARNING : type of input 1 of step 11503 doesn't seem to be define in the database( WARNING : output 0 of step 11503 have datatype=10 whereas input 0 of step 11582 have datatype=18 WARNING : type of input 5 of step 11510 doesn't seem to be define in the database( WARNING : output 0 of step 11582 have datatype=11 whereas input 5 of step 11510 have datatype=None WARNING : type of output 1 of step 11508 doesn't seem to be define in the database( WARNING : type of input 3 of step 11504 doesn't seem to be define in the database( WARNING : type of output 1 of step 11509 doesn't seem to be define in the database( WARNING : type of input 3 of step 11504 doesn't seem to be define in the database( WARNING : output 0 of step 11507 have datatype=1 whereas input 0 of step 11501 have datatype=2 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`=23483924 AND mptpi.`type`=4207 To do elapsed_time : count_nb_balles_and_create_portfolio 31.207398176193237 # DISPLAY ALL COLLECTED DATA : {'27052025': {'nb_upload': 48, 'nb_taggue_class': 47, 'nb_taggue_densite': 47, 'nb_descriptors': 23, 'number_port': 4, 'count_photo_in_port': 19, 'nb_port_per_class': {'aluminium': {'nb_photos': 0, 'nb_portfolios': 0}, 'ela': {'nb_photos': 0, 'nb_portfolios': 0}, 'emr': {'nb_photos': 5, 'nb_portfolios': 1}, 'film_pedb': {'nb_photos': 11, 'nb_portfolios': 1}, 'flux_dev': {'nb_photos': 0, 'nb_portfolios': 0}, 'jrm': {'nb_photos': 3, 'nb_portfolios': 1}, 'pcm': {'nb_photos': 0, 'nb_portfolios': 0}, 'pcnc': {'nb_photos': 0, 'nb_portfolios': 0}, 'pehd_pp': {'nb_photos': 0, 'nb_portfolios': 0}, 'pet_clair': {'nb_photos': 0, 'nb_portfolios': 0}, 'refus': {'nb_photos': 0, 'nb_portfolios': 0}, 'tapis_vide': {'nb_photos': 0, 'nb_portfolios': 1}}}} Inside saveOutput : final : True verbose : 0 saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1361256070, 1361179112, 1361179110, 1361179105, 1361179101, 1361179099, 1361179056, 1361178675, 1361178646, 1361178612, 1361178585, 1361177223, 1361177220, 1361177217, 1361177213, 1361177205, 1361177193, 1361177185, 1361177136, 1361177133] Looping around the photos to save general results len do output : 1 /23360454Didn'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 ('4323', None, None, None, None, None, None, None, '2993255') ('4323', '23360454', '1361256070', None, None, None, None, None, '2993255') ('4323', None, None, None, None, None, None, None, '2993255') ('4323', '23360454', '1361179112', None, None, None, None, None, '2993255') ('4323', None, None, None, None, None, None, None, '2993255') ('4323', '23360454', '1361179110', None, None, None, None, None, '2993255') ('4323', None, None, None, None, None, None, None, '2993255') ('4323', '23360454', '1361179105', None, None, None, None, None, '2993255') ('4323', None, None, None, None, None, None, None, '2993255') ('4323', '23360454', '1361179101', None, None, None, None, None, '2993255') ('4323', None, None, None, None, None, None, None, '2993255') ('4323', '23360454', '1361179099', None, None, None, None, None, '2993255') ('4323', None, None, None, None, None, None, None, '2993255') ('4323', '23360454', '1361179056', None, None, None, None, None, '2993255') ('4323', None, None, None, None, None, None, None, '2993255') ('4323', '23360454', '1361178675', None, None, None, None, None, '2993255') ('4323', None, None, None, None, None, None, None, '2993255') ('4323', '23360454', '1361178646', None, None, None, None, None, '2993255') ('4323', None, None, None, None, None, None, None, '2993255') ('4323', '23360454', '1361178612', None, None, None, None, None, '2993255') ('4323', None, None, None, None, None, None, None, '2993255') ('4323', '23360454', '1361178585', None, None, None, None, None, '2993255') ('4323', None, None, None, None, None, None, None, '2993255') ('4323', '23360454', '1361177223', None, None, None, None, None, '2993255') ('4323', None, None, None, None, None, None, None, '2993255') ('4323', '23360454', '1361177220', None, None, None, None, None, '2993255') ('4323', None, None, None, None, None, None, None, '2993255') ('4323', '23360454', '1361177217', None, None, None, None, None, '2993255') ('4323', None, None, None, None, None, None, None, '2993255') ('4323', '23360454', '1361177213', None, None, None, None, None, '2993255') ('4323', None, None, None, None, None, None, None, '2993255') ('4323', '23360454', '1361177205', None, None, None, None, None, '2993255') ('4323', None, None, None, None, None, None, None, '2993255') ('4323', '23360454', '1361177193', None, None, None, None, None, '2993255') ('4323', None, None, None, None, None, None, None, '2993255') ('4323', '23360454', '1361177185', None, None, None, None, None, '2993255') ('4323', None, None, None, None, None, None, None, '2993255') ('4323', '23360454', '1361177136', None, None, None, None, None, '2993255') ('4323', None, None, None, None, None, None, None, '2993255') ('4323', '23360454', '1361177133', None, None, None, None, None, '2993255') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 21 time used for this insertion : 0.02739405632019043 save_final save missing photos in datou_result : time spend for datou_step_exec : 34.373154163360596 time spend to save output : 0.027739524841308594 total time spend for step 1 : 34.400893688201904 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.15user 0.78system 0:37.48elapsed 5%CPU (0avgtext+0avgdata 101188maxresident)k 472inputs+296outputs (2major+35881minor)pagefaults 0swaps