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 : 2128799 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 : ['2702090'] with mtr_portfolio_ids : ['21836103'] and first list_photo_ids : [] new path : /proc/2128799/ 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.028934478759765625 About to test input to load Calling datou_exec Inside datou_exec : verbose : 0 number of steps : 1 step1:split_time_score Fri Mar 28 15:00:30 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', 258),) ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {1: 228} 28032025 21836103 Nombre de photos uploadées : 258 / 23040 (1%) 28032025 21836103 Nombre de photos taguées (types de déchets): 228 / 258 (88%) 28032025 21836103 Nombre de photos taguées (volume) : 228 / 258 (88%) elapsed_time : load_data_split_time_score 3.0994415283203125e-06 elapsed_time : order_list_meta_photo_and_scores 0.00014781951904296875 LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL?????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.013966798782348633 elapsed_time : insert_dashboard_record_day_entry 0.0239410400390625 LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL 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 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.04549264907836914 Creating list_photo_total elapsed_time : select_descriptors 16.597814083099365 28032025 21836103 Nombre de photos avec descriptors (type 5680) : 178 / 208 (85%) ERROR : Hum hum, what can we do for different size of descriptors (ignore the difference ) : 0 vs 1280 photo_id : 1348220164 photo_id_prec : 0 0:00:00|ON:LMissing descriptors for photos 1348222402 and 1348222426 LLMissing descriptors for photos 1348223451 and 1348223464 LMissing descriptors for photos 1348223464 and 1348223508 LLLMissing descriptors for photos 1348225598 and 1348225610 LLMissing descriptors for photos 1348227531 and 1348227565 LMissing descriptors for photos 1348227565 and 1348227605 LMissing descriptors for photos 1348227605 and 1348227672 LMissing descriptors for photos 1348227672 and 1348227759 LLMissing descriptors for photos 1348228743 and 1348228754 LMissing descriptors for photos 1348228754 and 1348228775 LMissing descriptors for photos 1348228775 and 1348228779 LMissing descriptors for photos 1348228779 and 1348228786 LMissing descriptors for photos 1348228786 and 1348228802 LMissing descriptors for photos 1348228802 and 1348229773 LLMissing descriptors for photos 1348229780 and 1348229791 LMissing descriptors for photos 1348229791 and 1348230702 LLMissing descriptors for photos 1348230773 and 1348230813 LMissing descriptors for photos 1348230813 and 1348230834 LMissing descriptors for photos 1348230834 and 1348230872 LLMissing descriptors for photos 1348233466 and 1348233482 LMissing descriptors for photos 1348233482 and 1348233575 LMissing descriptors for photos 1348233575 and 1348233580 LMissing descriptors for photos 1348233580 and 1348233623 LMissing descriptors for photos 1348233623 and 1348234811 LLMissing descriptors for photos 1348234820 and 1348234828 LMissing descriptors for photos 1348234828 and 1348234858 LMissing descriptors for photos 1348234858 and 1348234865 LMissing descriptors for photos 1348234865 and 1348235776 LMissing descriptors for photos 1348235776 and 1348235779 LMissing descriptors for photos 1348235779 and 1348235797 LMissing descriptors for photos 1348235797 and 1348235814 LMissing descriptors for photos 1348235814 and 1348235830 LMissing descriptors for photos 1348235830 and 1348235861 LMissing descriptors for photos 1348235861 and 1348236528 LMissing descriptors for photos 1348236528 and 1348236531 LMissing descriptors for photos 1348236531 and 1348236536 LMissing descriptors for photos 1348236536 and 1348236549 LMissing descriptors for photos 1348236549 and 1348236604 LMissing descriptors for photos 1348236604 and 1348236650 LMissing descriptors for photos 1348236650 and 1348237990 LLL0:16:00.463622|OFF:0:00:59.867234|ON:LL0:01:00.340046|OFF:LL0:01:00.476114|ON:LL0:00:00|OFF:0:00:00|ON:LL0:03:02.233039|OFF:0:00:00|ON:LLLL0:08:57.207073|OFF:LLLLLLLLLLL0:01:01.884774|ON:LLLLLLLLLLLLLLLLLLLL0:02:58.745555|OFF:LLLLL0:00:58.926850|ON:LLLLLERROR : Hum hum, what can we do for different size of descriptors (ignore the difference ) : 1280 vs 0 photo_id : 1348278659 photo_id_prec : 1348277138 LMissing descriptors for photos 1348278659 and 1348278710 LMissing descriptors for photos 1348278710 and 1348278745 LMissing descriptors for photos 1348278745 and 1348278791 LMissing descriptors for photos 1348278791 and 1348278868 LMissing descriptors for photos 1348278868 and 1348278946 LMissing descriptors for photos 1348278946 and 1348282002 LMissing descriptors for photos 1348282002 and 1348282039 LMissing descriptors for photos 1348282039 and 1348282049 LMissing descriptors for photos 1348282049 and 1348282056 LMissing descriptors for photos 1348282056 and 1348282064 LMissing descriptors for photos 1348282064 and 1348282078 LMissing descriptors for photos 1348282078 and 1348284502 LMissing descriptors for photos 1348284502 and 1348284545 LMissing descriptors for photos 1348284545 and 1348284621 LMissing descriptors for photos 1348284621 and 1348284730 LMissing descriptors for photos 1348284730 and 1348284885 LMissing descriptors for photos 1348284885 and 1348285046 LMissing descriptors for photos 1348285046 and 1348287734 LMissing descriptors for photos 1348287734 and 1348287784 LMissing descriptors for photos 1348287784 and 1348287830 LMissing descriptors for photos 1348287830 and 1348287914 LMissing descriptors for photos 1348287914 and 1348287960 LMissing descriptors for photos 1348287960 and 1348288035 LMissing descriptors for photos 1348288035 and 1348289393 LMissing descriptors for photos 1348289393 and 1348289400 LMissing descriptors for photos 1348289400 and 1348289410 LMissing descriptors for photos 1348289410 and 1348289415 LMissing descriptors for photos 1348289415 and 1348289420 LMissing descriptors for photos 1348289420 and 1348289459 L 28032025 Removing 14 photos because of the 'same image' condition Total on : 1918.989335 list_time_on Total off : 241.15497200000001 list_time_off dist_desc begin to insert list_values into photo_hahstag_ids : length of list_valuse in save_photo_hashtag_id_type : 258 time used for this insertion : 0.05819416046142578 photos_removed : len 14 elapsed_time : remove_photo_duplicate 0.10373854637145996 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.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.011016130447387695 NUMBER BATCH : 3 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': '28032025', 'map_nb_amount': {0: 5, 1: 37, 2: 1, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 839.9720571041107, 'nb_balles_papier': 0.0004300000000000005, 'begin_time_port': 'image_28032025_10_00_02_299201m0.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.0004300000000000005 result_one_balle_Type_JRM:{'day': '28032025', 'map_nb_amount': {0: 9, 1: 77, 2: 0, 3: 1, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 839.3213129043579, 'nb_balles_papier': 0.0008700000000000016, 'begin_time_port': 'image_28032025_10_15_02_920659m0.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.0008700000000000016 LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info Lresult_one_balle_Type_JRM:{'day': '28032025', 'map_nb_amount': {0: 2, 1: 31, 2: 1, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 719.9529950618744, 'nb_balles_papier': 0.00034000000000000024, 'begin_time_port': 'image_28032025_10_30_03_092150m0.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.00034000000000000024 We have rejected 0 photos because of the batch_size condition ! NUMBER BATCH list_of_portfolios_to_create : 3 list_same_port_ids : [21843349] find same portfolio which already exist 21843349 , we will use it list_same_port_ids : [21844258] find same portfolio which already exist 21844258 , we will use it list_same_port_ids : [] https://marlene.fotonower.com/api/v1/secured/portfolio/new?name=JRM_diff_batch__28032025_10_30_03_092150&access_token=b05576c56a0e42ad0cb9b46155f68f82 Qualite : 0.0627576097786807 # 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 ! 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 12489 mask_detect is not consistent : 3 used against 2 in the step definition ! WARNING : number of outputs for step 12499 brightness is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 12500 blur_detection is not consistent : 2 used against 1 in the step definition ! WARNING : number of inputs for step 12492 crop_condition is not consistent : 3 used against 2 in the step definition ! Step 12492 crop_condition have less outputs used (2) than in the step definition (3) : some outputs may be not used ! WARNING : number of outputs for step 12493 merge_mask_thcl_custom is not consistent : 4 used against 2 in the step definition ! WARNING : number of inputs for step 12494 rle_unique_nms_with_priority is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 12494 rle_unique_nms_with_priority is not consistent : 2 used against 1 in the step definition ! Step 12502 crop_condition have less inputs used (1) than in the step definition (2) : maybe we manage optionnal inputs ! WARNING : number of outputs for step 12502 crop_condition is not consistent : 4 used against 3 in the step definition ! WARNING : number of inputs for step 12496 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 12496 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 12495 final have less inputs used (2) than in the step definition (3) : maybe we manage optionnal inputs ! Step 12495 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! 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 ! WARNING : type of output 2 of step 12489 doesn't seem to be define in the database( WARNING : type of input 2 of step 12492 doesn't seem to be define in the database( WARNING : output 1 of step 12489 have datatype=2 whereas input 1 of step 12493 have datatype=7 WARNING : type of output 2 of step 12493 doesn't seem to be define in the database( WARNING : type of input 1 of step 12494 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : type of output 3 of step 12493 doesn't seem to be define in the database( WARNING : type of input 1 of step 12496 doesn't seem to be define in the database( WARNING : type of output 1 of step 12496 doesn't seem to be define in the database( WARNING : type of input 3 of step 12495 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : type of output 2 of step 12489 doesn't seem to be define in the database( WARNING : type of input 1 of step 12500 doesn't seem to be define in the database( WARNING : type of output 2 of step 12489 doesn't seem to be define in the database( WARNING : type of input 1 of step 12499 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 12496 have datatype=10 whereas input 3 of step 12498 have datatype=6 WARNING : type of input 5 of step 12498 doesn't seem to be define in the database( WARNING : output 0 of step 12501 have datatype=11 whereas input 5 of step 12498 have datatype=None WARNING : output 0 of step 12496 have datatype=10 whereas input 0 of step 12501 have datatype=18 WARNING : type of input 2 of step 12502 doesn't seem to be define in the database( WARNING : output 1 of step 12494 have datatype=7 whereas input 2 of step 12502 have datatype=None WARNING : type of output 3 of step 12502 doesn't seem to be define in the database( WARNING : type of input 2 of step 12496 doesn't seem to be define in the database( WARNING : type of output 1 of step 12499 doesn't seem to be define in the database( WARNING : type of input 3 of step 12492 doesn't seem to be define in the database( WARNING : type of output 1 of step 12500 doesn't seem to be define in the database( WARNING : type of input 3 of step 12492 doesn't seem to be define in the database( WARNING : output 0 of step 12493 have datatype=1 whereas input 0 of step 12494 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`=21843349 AND mptpi.`type`=3726 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 ! 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 12489 mask_detect is not consistent : 3 used against 2 in the step definition ! WARNING : number of outputs for step 12499 brightness is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 12500 blur_detection is not consistent : 2 used against 1 in the step definition ! WARNING : number of inputs for step 12492 crop_condition is not consistent : 3 used against 2 in the step definition ! Step 12492 crop_condition have less outputs used (2) than in the step definition (3) : some outputs may be not used ! WARNING : number of outputs for step 12493 merge_mask_thcl_custom is not consistent : 4 used against 2 in the step definition ! WARNING : number of inputs for step 12494 rle_unique_nms_with_priority is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 12494 rle_unique_nms_with_priority is not consistent : 2 used against 1 in the step definition ! Step 12502 crop_condition have less inputs used (1) than in the step definition (2) : maybe we manage optionnal inputs ! WARNING : number of outputs for step 12502 crop_condition is not consistent : 4 used against 3 in the step definition ! WARNING : number of inputs for step 12496 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 12496 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 12495 final have less inputs used (2) than in the step definition (3) : maybe we manage optionnal inputs ! Step 12495 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! 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 ! WARNING : type of output 2 of step 12489 doesn't seem to be define in the database( WARNING : type of input 2 of step 12492 doesn't seem to be define in the database( WARNING : output 1 of step 12489 have datatype=2 whereas input 1 of step 12493 have datatype=7 WARNING : type of output 2 of step 12493 doesn't seem to be define in the database( WARNING : type of input 1 of step 12494 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : type of output 3 of step 12493 doesn't seem to be define in the database( WARNING : type of input 1 of step 12496 doesn't seem to be define in the database( WARNING : type of output 1 of step 12496 doesn't seem to be define in the database( WARNING : type of input 3 of step 12495 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : type of output 2 of step 12489 doesn't seem to be define in the database( WARNING : type of input 1 of step 12500 doesn't seem to be define in the database( WARNING : type of output 2 of step 12489 doesn't seem to be define in the database( WARNING : type of input 1 of step 12499 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 12496 have datatype=10 whereas input 3 of step 12498 have datatype=6 WARNING : type of input 5 of step 12498 doesn't seem to be define in the database( WARNING : output 0 of step 12501 have datatype=11 whereas input 5 of step 12498 have datatype=None WARNING : output 0 of step 12496 have datatype=10 whereas input 0 of step 12501 have datatype=18 WARNING : type of input 2 of step 12502 doesn't seem to be define in the database( WARNING : output 1 of step 12494 have datatype=7 whereas input 2 of step 12502 have datatype=None WARNING : type of output 3 of step 12502 doesn't seem to be define in the database( WARNING : type of input 2 of step 12496 doesn't seem to be define in the database( WARNING : type of output 1 of step 12499 doesn't seem to be define in the database( WARNING : type of input 3 of step 12492 doesn't seem to be define in the database( WARNING : type of output 1 of step 12500 doesn't seem to be define in the database( WARNING : type of input 3 of step 12492 doesn't seem to be define in the database( WARNING : output 0 of step 12493 have datatype=1 whereas input 0 of step 12494 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`=21844258 AND mptpi.`type`=3726 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 ! 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 12489 mask_detect is not consistent : 3 used against 2 in the step definition ! WARNING : number of outputs for step 12499 brightness is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 12500 blur_detection is not consistent : 2 used against 1 in the step definition ! WARNING : number of inputs for step 12492 crop_condition is not consistent : 3 used against 2 in the step definition ! Step 12492 crop_condition have less outputs used (2) than in the step definition (3) : some outputs may be not used ! WARNING : number of outputs for step 12493 merge_mask_thcl_custom is not consistent : 4 used against 2 in the step definition ! WARNING : number of inputs for step 12494 rle_unique_nms_with_priority is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 12494 rle_unique_nms_with_priority is not consistent : 2 used against 1 in the step definition ! Step 12502 crop_condition have less inputs used (1) than in the step definition (2) : maybe we manage optionnal inputs ! WARNING : number of outputs for step 12502 crop_condition is not consistent : 4 used against 3 in the step definition ! WARNING : number of inputs for step 12496 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 12496 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 12495 final have less inputs used (2) than in the step definition (3) : maybe we manage optionnal inputs ! Step 12495 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! 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 ! WARNING : type of output 2 of step 12489 doesn't seem to be define in the database( WARNING : type of input 2 of step 12492 doesn't seem to be define in the database( WARNING : output 1 of step 12489 have datatype=2 whereas input 1 of step 12493 have datatype=7 WARNING : type of output 2 of step 12493 doesn't seem to be define in the database( WARNING : type of input 1 of step 12494 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : type of output 3 of step 12493 doesn't seem to be define in the database( WARNING : type of input 1 of step 12496 doesn't seem to be define in the database( WARNING : type of output 1 of step 12496 doesn't seem to be define in the database( WARNING : type of input 3 of step 12495 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : type of output 2 of step 12489 doesn't seem to be define in the database( WARNING : type of input 1 of step 12500 doesn't seem to be define in the database( WARNING : type of output 2 of step 12489 doesn't seem to be define in the database( WARNING : type of input 1 of step 12499 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 12496 have datatype=10 whereas input 3 of step 12498 have datatype=6 WARNING : type of input 5 of step 12498 doesn't seem to be define in the database( WARNING : output 0 of step 12501 have datatype=11 whereas input 5 of step 12498 have datatype=None WARNING : output 0 of step 12496 have datatype=10 whereas input 0 of step 12501 have datatype=18 WARNING : type of input 2 of step 12502 doesn't seem to be define in the database( WARNING : output 1 of step 12494 have datatype=7 whereas input 2 of step 12502 have datatype=None WARNING : type of output 3 of step 12502 doesn't seem to be define in the database( WARNING : type of input 2 of step 12496 doesn't seem to be define in the database( WARNING : type of output 1 of step 12499 doesn't seem to be define in the database( WARNING : type of input 3 of step 12492 doesn't seem to be define in the database( WARNING : type of output 1 of step 12500 doesn't seem to be define in the database( WARNING : type of input 3 of step 12492 doesn't seem to be define in the database( WARNING : output 0 of step 12493 have datatype=1 whereas input 0 of step 12494 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`=21847481 AND mptpi.`type`=3726 To do elapsed_time : count_nb_balles_and_create_portfolio 3.0959694385528564 # DISPLAY ALL COLLECTED DATA : {'28032025': {'nb_upload': 258, 'nb_taggue_class': 228, 'nb_taggue_densite': 228, 'nb_descriptors': 178}} Inside saveOutput : final : True verbose : 0 saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1348289459, 1348289420, 1348289415, 1348289410, 1348289400, 1348289393, 1348288035, 1348287960, 1348287914, 1348287830, 1348287784, 1348287734, 1348285046, 1348284885, 1348284730, 1348284621, 1348284545, 1348284502, 1348282078, 1348282064, 1348282056, 1348282049, 1348282039, 1348282002, 1348278946, 1348278868, 1348278791, 1348278745, 1348278710, 1348278659, 1348277138, 1348277099, 1348277082, 1348276979, 1348276950, 1348276938, 1348274563, 1348274505, 1348274388, 1348274358, 1348274298, 1348274272, 1348270422, 1348270264, 1348270198, 1348270098, 1348269946, 1348269868, 1348263410, 1348263284, 1348263231, 1348263086, 1348263018, 1348262937, 1348260236, 1348260221, 1348260218, 1348260213, 1348260193, 1348260182, 1348259497, 1348259490, 1348259482, 1348259468, 1348259446, 1348259439, 1348259019, 1348259013, 1348259003, 1348258996, 1348258992, 1348258989, 1348258315, 1348258310, 1348258306, 1348258304, 1348258299, 1348258287, 1348257927, 1348257922, 1348257916, 1348257914, 1348257912, 1348257911, 1348257736, 1348257731, 1348257729, 1348257725, 1348257720, 1348257716, 1348257544, 1348257540, 1348257534, 1348257532, 1348257529, 1348257526, 1348257350, 1348257345, 1348257341, 1348257334] Looping around the photos to save general results len do output : 1 /21836103Didn'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 ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348289459', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348289420', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348289415', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348289410', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348289400', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348289393', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348288035', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348287960', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348287914', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348287830', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348287784', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348287734', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348285046', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348284885', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348284730', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348284621', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348284545', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348284502', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348282078', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348282064', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348282056', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348282049', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348282039', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348282002', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348278946', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348278868', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348278791', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348278745', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348278710', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348278659', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348277138', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348277099', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348277082', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348276979', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348276950', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348276938', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348274563', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348274505', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348274388', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348274358', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348274298', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348274272', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348270422', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348270264', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348270198', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348270098', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348269946', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348269868', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348263410', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348263284', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348263231', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348263086', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348263018', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348262937', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348260236', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348260221', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348260218', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348260213', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348260193', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348260182', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348259497', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348259490', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348259482', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348259468', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348259446', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348259439', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348259019', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348259013', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348259003', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348258996', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348258992', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348258989', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348258315', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348258310', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348258306', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348258304', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348258299', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348258287', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348257927', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348257922', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348257916', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348257914', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348257912', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348257911', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348257736', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348257731', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348257729', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348257725', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348257720', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348257716', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348257544', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348257540', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348257534', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348257532', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348257529', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348257526', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348257350', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348257345', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348257341', None, None, None, None, None, '2702090') ('4189', None, None, None, None, None, None, None, '2702090') ('4189', '21836103', '1348257334', None, None, None, None, None, '2702090') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 101 time used for this insertion : 0.026534318923950195 save_final save missing photos in datou_result : time spend for datou_step_exec : 19.999719381332397 time spend to save output : 0.027415990829467773 total time spend for step 1 : 20.027135372161865 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.01user 0.63system 0:24.25elapsed 10%CPU (0avgtext+0avgdata 103988maxresident)k 768inputs+1544outputs (0major+49666minor)pagefaults 0swaps