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 : 495745 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 : ['2966236'] with mtr_portfolio_ids : ['23374045'] and first list_photo_ids : [] new path : /proc/495745/ 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.023506879806518555 About to test input to load Calling datou_exec Inside datou_exec : verbose : 0 number of steps : 1 step1:split_time_score Tue May 27 14: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', 205),) ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {1: 157} L27052025 23374045 Nombre de photos uploadées : 205 / 23040 (0%) 27052025 23374045 Nombre de photos taguées (types de déchets): 157 / 205 (76%) 27052025 23374045 Nombre de photos taguées (volume) : 157 / 205 (76%) elapsed_time : load_data_split_time_score 3.5762786865234375e-06 elapsed_time : order_list_meta_photo_and_scores 8.106231689453125e-05 LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL???????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.011921882629394531 L elapsed_time : insert_dashboard_record_day_entry 0.022801876068115234 LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL 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 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.03161025047302246 Creating list_photo_total elapsed_time : select_descriptors 5.298558473587036 27052025 23374045 Nombre de photos avec descriptors (type 5680) : 104 / 152 (68%) Missing descriptors for photos 0 and 1361257611 L0:00:00|ON:Missing descriptors for photos 1361257611 and 1361257617 LMissing descriptors for photos 1361257617 and 1361257623 LMissing descriptors for photos 1361257623 and 1361257630 LMissing descriptors for photos 1361257630 and 1361257633 LMissing descriptors for photos 1361257633 and 1361257636 LMissing descriptors for photos 1361257636 and 1361257922 LMissing descriptors for photos 1361257922 and 1361257924 LMissing descriptors for photos 1361257924 and 1361257928 LMissing descriptors for photos 1361257928 and 1361257934 LMissing descriptors for photos 1361257934 and 1361257942 LMissing descriptors for photos 1361257942 and 1361257953 LLMissing descriptors for photos 1361258430 and 1361258432 LLMissing descriptors for photos 1361258445 and 1361258449 LMissing descriptors for photos 1361258449 and 1361258687 LMissing descriptors for photos 1361258687 and 1361258692 LMissing descriptors for photos 1361258692 and 1361258701 LLMissing descriptors for photos 1361258708 and 1361258711 LMissing descriptors for photos 1361258711 and 1361259229 LMissing descriptors for photos 1361259229 and 1361259236 LMissing descriptors for photos 1361259236 and 1361259239 LMissing descriptors for photos 1361259239 and 1361259241 LMissing descriptors for photos 1361259241 and 1361259244 LMissing descriptors for photos 1361259244 and 1361259246 LMissing descriptors for photos 1361259246 and 1361259435 LMissing descriptors for photos 1361259435 and 1361259438 LMissing descriptors for photos 1361259438 and 1361259442 LLMissing descriptors for photos 1361259450 and 1361259454 LMissing descriptors for photos 1361259454 and 1361260591 LMissing descriptors for photos 1361260591 and 1361260594 LMissing descriptors for photos 1361260594 and 1361260597 LMissing descriptors for photos 1361260597 and 1361260610 LMissing descriptors for photos 1361260610 and 1361260614 LMissing descriptors for photos 1361260614 and 1361260618 LMissing descriptors for photos 1361260618 and 1361260719 LMissing descriptors for photos 1361260719 and 1361260722 LMissing descriptors for photos 1361260722 and 1361260724 LMissing descriptors for photos 1361260724 and 1361261189 LMissing descriptors for photos 1361261189 and 1361261196 LMissing descriptors for photos 1361261196 and 1361261201 LMissing descriptors for photos 1361261201 and 1361261212 LMissing descriptors for photos 1361261212 and 1361261225 LMissing descriptors for photos 1361261225 and 1361261228 LMissing descriptors for photos 1361261228 and 1361261726 LMissing descriptors for photos 1361261726 and 1361261728 LMissing descriptors for photos 1361261728 and 1361261732 LMissing descriptors for photos 1361261732 and 1361261735 LMissing descriptors for photos 1361261735 and 1361261738 LMissing descriptors for photos 1361261738 and 1361261743 LMissing descriptors for photos 1361261743 and 1361262206 LMissing descriptors for photos 1361262206 and 1361262213 LMissing descriptors for photos 1361262213 and 1361262217 LMissing descriptors for photos 1361262217 and 1361262221 LMissing descriptors for photos 1361262221 and 1361262224 LMissing descriptors for photos 1361262224 and 1361262228 LMissing descriptors for photos 1361262228 and 1361262395 LMissing descriptors for photos 1361262395 and 1361262398 LMissing descriptors for photos 1361262398 and 1361262401 LMissing descriptors for photos 1361262401 and 1361262403 LMissing descriptors for photos 1361262403 and 1361262407 LMissing descriptors for photos 1361262407 and 1361262411 LMissing descriptors for photos 1361262411 and 1361263190 LMissing descriptors for photos 1361263190 and 1361263194 LMissing descriptors for photos 1361263194 and 1361263197 LMissing descriptors for photos 1361263197 and 1361263205 LMissing descriptors for photos 1361263205 and 1361263210 LMissing descriptors for photos 1361263210 and 1361263214 LMissing descriptors for photos 1361263214 and 1361263546 LMissing descriptors for photos 1361263546 and 1361263553 LMissing descriptors for photos 1361263553 and 1361263558 LERROR : Hum hum, what can we do for different size of descriptors (ignore the difference ) : 0 vs 1280 photo_id : 1361263569 photo_id_prec : 1361263558 LLLLLLLLL0:12:59.526255|OFF:LLL0:00:59.794809|ON:LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL0:09:59.891138|OFF:L0:00:00|ON:LLLLL0:00:59.874501|OFF:L0:00:00|ON:LLLLLLLLLLLLLLLLLLLLLLERROR : Hum hum, what can we do for different size of descriptors (ignore the difference ) : 1280 vs 0 photo_id : 1361294140 photo_id_prec : 1361292639 LMissing descriptors for photos 1361294140 and 1361294149 LMissing descriptors for photos 1361294149 and 1361294182 LMissing descriptors for photos 1361294182 and 1361294185 LMissing descriptors for photos 1361294185 and 1361294199 LMissing descriptors for photos 1361294199 and 1361294266 LMissing descriptors for photos 1361294266 and 1361295839 LMissing descriptors for photos 1361295839 and 1361295844 LMissing descriptors for photos 1361295844 and 1361295846 LMissing descriptors for photos 1361295846 and 1361295861 LMissing descriptors for photos 1361295861 and 1361295900 LMissing descriptors for photos 1361295900 and 1361295930 LMissing descriptors for photos 1361295930 and 1361296910 LMissing descriptors for photos 1361296910 and 1361296954 LMissing descriptors for photos 1361296954 and 1361296971 LMissing descriptors for photos 1361296971 and 1361297005 LMissing descriptors for photos 1361297005 and 1361297028 LMissing descriptors for photos 1361297028 and 1361297048 LMissing descriptors for photos 1361297048 and 1361297571 LMissing descriptors for photos 1361297571 and 1361297610 LMissing descriptors for photos 1361297610 and 1361297804 LMissing descriptors for photos 1361297804 and 1361297860 LMissing descriptors for photos 1361297860 and 1361297865 LMissing descriptors for photos 1361297865 and 1361297899 LMissing descriptors for photos 1361297899 and 1361298152 LMissing descriptors for photos 1361298152 and 1361298155 LMissing descriptors for photos 1361298155 and 1361298160 L 27052025 Removing 4 photos because of the 'same image' condition Total on : 1439.291894 list_time_on Total off : 59.794809 list_time_off dist_desc begin to insert list_values into photo_hahstag_ids : length of list_valuse in save_photo_hashtag_id_type : 205 time used for this insertion : 0.05008387565612793 photos_removed : len 4 elapsed_time : remove_photo_duplicate 0.08701205253601074 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.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.012359857559204102 NUMBER BATCH : 3 list_ponderation used : [1e-05, 1e-05, 1e-05, 1e-05, 1e-05] , list_hashtag_class_create_as_list : ['jrm'] LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLERROR 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 LLLLLLLLLLLLLLresult_one_balle_Type_JRM:{'day': '27052025', 'map_nb_amount': {0: 1, 1: 15, 2: 1, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 719.308825969696, 'nb_balles_papier': 0.00017, 'begin_time_port': 'image_27052025_10_02_03_117606m0.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.00017 LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info LLresult_one_balle_Type_JRM:{'day': '27052025', 'map_nb_amount': {0: 9, 1: 73, 2: 0, 3: 1, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 840.6248078346252, 'nb_balles_papier': 0.0008300000000000015, 'begin_time_port': 'image_27052025_10_15_02_337804_0000.jpg'} Production hashtag (incorrect ponderation at 20-10-18) : 0.0008300000000000015 LLLLLLLLLLLLLLLLLLLLLLWe filter photos on hashtag condition ! We have rejected 0 photos because of the batch_size condition ! NUMBER BATCH list_of_portfolios_to_create : 2 list_same_port_ids : [] https://marlene.fotonower.com/api/v1/secured/portfolio/new?name=JRM_diff_batch__27052025_10_02_03_117606&access_token=b05576c56a0e42ad0cb9b46155f68f82 list_same_port_ids : [] https://marlene.fotonower.com/api/v1/secured/portfolio/new?name=JRM_diff_batch__27052025_10_15_02_337804&access_token=b05576c56a0e42ad0cb9b46155f68f82 # 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`=23377672 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`=23377673 AND mptpi.`type`=3726 To do elapsed_time : count_nb_balles_and_create_portfolio 4.2467591762542725 # DISPLAY ALL COLLECTED DATA : {'27052025': {'nb_upload': 205, 'nb_taggue_class': 157, 'nb_taggue_densite': 157, 'nb_descriptors': 104}} Inside saveOutput : final : True verbose : 0 saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1361298160, 1361298155, 1361298152, 1361297899, 1361297865, 1361297860, 1361297804, 1361297610, 1361297571, 1361297048, 1361297028, 1361297005, 1361296971, 1361296954, 1361296910, 1361295930, 1361295900, 1361295861, 1361295846, 1361295844, 1361295839, 1361294266, 1361294199, 1361294185, 1361294182, 1361294149, 1361294140, 1361292639, 1361292634, 1361292630, 1361292625, 1361292619, 1361292612, 1361291656, 1361291651, 1361291645, 1361291602, 1361291599, 1361291595, 1361290328, 1361290258, 1361290216, 1361290172, 1361290148, 1361290114, 1361287891, 1361287850, 1361287796, 1361287755, 1361287713, 1361287675, 1361286240, 1361286146, 1361286142, 1361286139, 1361286137, 1361286133, 1361286127, 1361285574, 1361285571, 1361285565, 1361285560, 1361285556, 1361285554, 1361285348, 1361285343, 1361285340, 1361285336, 1361285333, 1361285329, 1361283744, 1361283740, 1361283736, 1361283715, 1361283670, 1361283630, 1361280160, 1361280088, 1361280009, 1361279922, 1361279845, 1361279776, 1361278571, 1361278509, 1361278431, 1361278391, 1361278354, 1361278348, 1361276561, 1361276544, 1361276542, 1361276536, 1361276496, 1361276453, 1361273132, 1361273115, 1361273103, 1361273100, 1361273093, 1361273089] Looping around the photos to save general results len do output : 1 /23374045Didn'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, '2966236') ('4189', '23374045', '1361298160', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361298155', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361298152', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361297899', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361297865', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361297860', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361297804', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361297610', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361297571', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361297048', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361297028', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361297005', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361296971', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361296954', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361296910', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361295930', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361295900', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361295861', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361295846', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361295844', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361295839', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361294266', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361294199', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361294185', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361294182', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361294149', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361294140', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361292639', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361292634', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361292630', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361292625', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361292619', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361292612', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361291656', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361291651', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361291645', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361291602', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361291599', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361291595', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361290328', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361290258', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361290216', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361290172', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361290148', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361290114', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361287891', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361287850', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361287796', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361287755', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361287713', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361287675', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361286240', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361286146', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361286142', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361286139', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361286137', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361286133', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361286127', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361285574', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361285571', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361285565', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361285560', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361285556', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361285554', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361285348', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361285343', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361285340', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361285336', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361285333', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361285329', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361283744', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361283740', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361283736', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361283715', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361283670', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361283630', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361280160', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361280088', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361280009', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361279922', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361279845', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361279776', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361278571', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361278509', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361278431', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361278391', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361278354', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361278348', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361276561', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361276544', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361276542', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361276536', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361276496', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361276453', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361273132', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361273115', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361273103', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361273100', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361273093', None, None, None, None, None, '2966236') ('4189', None, None, None, None, None, None, None, '2966236') ('4189', '23374045', '1361273089', None, None, None, None, None, '2966236') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 101 time used for this insertion : 0.026580333709716797 save_final save missing photos in datou_result : time spend for datou_step_exec : 9.81206750869751 time spend to save output : 0.027356624603271484 total time spend for step 1 : 9.839424133300781 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.10user 0.87system 0:14.62elapsed 20%CPU (0avgtext+0avgdata 103352maxresident)k 872inputs+936outputs (1major+54743minor)pagefaults 0swaps