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 : 839796 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 : ['2966823'] with mtr_portfolio_ids : ['23374045'] and first list_photo_ids : [] new path : /proc/839796/ 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.02530527114868164 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 15:30:29 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', 285),) ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {1: 253} L27052025 23374045 Nombre de photos uploadées : 285 / 23040 (1%) 27052025 23374045 Nombre de photos taguées (types de déchets): 253 / 285 (88%) 27052025 23374045 Nombre de photos taguées (volume) : 253 / 285 (88%) elapsed_time : load_data_split_time_score 2.86102294921875e-06 elapsed_time : order_list_meta_photo_and_scores 0.00012183189392089844 LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL???????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.014879226684570312 L elapsed_time : insert_dashboard_record_day_entry 0.026903152465820312 LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL 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 elapsed_time : list_photo_by_hashtags 0.037241458892822266 Creating list_photo_total elapsed_time : select_descriptors 11.228081226348877 27052025 23374045 Nombre de photos avec descriptors (type 5680) : 197 / 229 (86%) 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 LLLL0:12:59.526255|OFF:LL0:00:59.794809|ON:LL0:09:59.891138|OFF:0:00:00|ON:LL0:00:59.874501|OFF:0:00:00|ON:LL0:04:00.770541|OFF:LL0:00:59.927780|ON:ERROR : Hum hum, what can we do for different size of descriptors (ignore the difference ) : 1280 vs 0 photo_id : 1361307703 photo_id_prec : 1361305132 LMissing descriptors for photos 1361307703 and 1361307749 LMissing descriptors for photos 1361307749 and 1361307796 LMissing descriptors for photos 1361307796 and 1361307846 LMissing descriptors for photos 1361307846 and 1361307942 LMissing descriptors for photos 1361307942 and 1361307984 LMissing descriptors for photos 1361307984 and 1361308555 LMissing descriptors for photos 1361308555 and 1361308594 LMissing descriptors for photos 1361308594 and 1361310755 LMissing descriptors for photos 1361310755 and 1361310763 LMissing descriptors for photos 1361310763 and 1361310776 LMissing descriptors for photos 1361310776 and 1361310783 LMissing descriptors for photos 1361310783 and 1361310803 LMissing descriptors for photos 1361310803 and 1361310819 LMissing descriptors for photos 1361310819 and 1361314166 LMissing descriptors for photos 1361314166 and 1361314246 LMissing descriptors for photos 1361314246 and 1361314337 LMissing descriptors for photos 1361314337 and 1361314378 LMissing descriptors for photos 1361314378 and 1361314410 LMissing descriptors for photos 1361314410 and 1361314470 LMissing descriptors for photos 1361314470 and 1361318591 LMissing descriptors for photos 1361318591 and 1361318714 LMissing descriptors for photos 1361318714 and 1361318837 LMissing descriptors for photos 1361318837 and 1361318973 LMissing descriptors for photos 1361318973 and 1361319099 LMissing descriptors for photos 1361319099 and 1361319184 LMissing descriptors for photos 1361319184 and 1361323605 LMissing descriptors for photos 1361323605 and 1361323621 LMissing descriptors for photos 1361323621 and 1361323650 LMissing descriptors for photos 1361323650 and 1361323673 LMissing descriptors for photos 1361323673 and 1361323706 LMissing descriptors for photos 1361323706 and 1361323739 L 27052025 Removing 6 photos because of the 'same image' condition Total on : 1680.062435 list_time_on Total off : 119.722589 list_time_off dist_desc begin to insert list_values into photo_hahstag_ids : length of list_valuse in save_photo_hashtag_id_type : 285 time used for this insertion : 0.04877519607543945 photos_removed : len 6 elapsed_time : remove_photo_duplicate 0.09405231475830078 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.Lforce hashtag to JRM elapsed_time : CREATE_PORT_BATCH_BY_HOUR 0.012969732284545898 NUMBER BATCH : 4 list_ponderation used : [1e-05, 1e-05, 1e-05, 1e-05, 1e-05] , list_hashtag_class_create_as_list : ['jrm'] result_one_balle_Type_JRM:{'day': '27052025', 'map_nb_amount': {0: 3, 1: 31, 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.00035000000000000027, '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.00035000000000000027 result_one_balle_Type_JRM:{'day': '27052025', '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': 840.6248078346252, 'nb_balles_papier': 0.0008700000000000016, 'begin_time_port': 'image_27052025_10_15_02_337804m0.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 LLLLLLLLLLLLLLLLLLLLLLLLLLERROR 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': '27052025', 'map_nb_amount': {0: 8, 1: 59, 2: 1, 3: 1, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 840.0268619060516, 'nb_balles_papier': 0.0006900000000000012, 'begin_time_port': 'image_27052025_10_30_02_890392m0.jpg 1e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'} Production hashtag (incorrect ponderation at 20-10-18) : 0.0006900000000000012 We have rejected 6 photos because of the batch_size condition ! NUMBER BATCH list_of_portfolios_to_create : 3 list_same_port_ids : [23379393] find same portfolio which already exist 23379393 , we will use it list_same_port_ids : [23379394] find same portfolio which already exist 23379394 , we will use it list_same_port_ids : [] https://marlene.fotonower.com/api/v1/secured/portfolio/new?name=JRM_diff_batch__27052025_10_30_02_890392&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`=23379393 AND mptpi.`type`=3726 To do Qualite : 0.17832922130283846 # 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`=23379394 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`=23380489 AND mptpi.`type`=3726 To do elapsed_time : count_nb_balles_and_create_portfolio 3.1037368774414062 # DISPLAY ALL COLLECTED DATA : {'27052025': {'nb_upload': 285, 'nb_taggue_class': 253, 'nb_taggue_densite': 253, 'nb_descriptors': 197}} Inside saveOutput : final : True verbose : 0 saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1361323739, 1361323706, 1361323673, 1361323650, 1361323621, 1361323605, 1361319184, 1361319099, 1361318973, 1361318837, 1361318714, 1361318591, 1361314470, 1361314410, 1361314378, 1361314337, 1361314246, 1361314166, 1361310819, 1361310803, 1361310783, 1361310776, 1361310763, 1361310755, 1361308594, 1361308555, 1361307984, 1361307942, 1361307846, 1361307796, 1361307749, 1361307703, 1361305132, 1361305127, 1361305121, 1361305116, 1361305110, 1361305105, 1361304284, 1361304234, 1361304134, 1361304116, 1361304107, 1361304036, 1361302704, 1361302685, 1361302635, 1361302597, 1361302591, 1361302582, 1361301233, 1361301226, 1361301221, 1361301215, 1361301207, 1361301201, 1361300174, 1361300171, 1361300167, 1361300163, 1361300151, 1361300145, 1361299724, 1361299708, 1361299703, 1361299698, 1361299666, 1361299623, 1361298995, 1361298987, 1361298977, 1361298971, 1361298967, 1361298964, 1361298634, 1361298627, 1361298618, 1361298606, 1361298577, 1361298570, 1361298160, 1361298155, 1361298152, 1361297899, 1361297865, 1361297860, 1361297804, 1361297610, 1361297571, 1361297048, 1361297028, 1361297005, 1361296971, 1361296954, 1361296910, 1361295930, 1361295900, 1361295861, 1361295846, 1361295844] 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, '2966823') ('4189', '23374045', '1361323739', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361323706', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361323673', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361323650', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361323621', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361323605', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361319184', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361319099', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361318973', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361318837', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361318714', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361318591', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361314470', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361314410', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361314378', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361314337', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361314246', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361314166', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361310819', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361310803', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361310783', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361310776', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361310763', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361310755', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361308594', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361308555', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361307984', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361307942', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361307846', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361307796', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361307749', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361307703', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361305132', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361305127', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361305121', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361305116', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361305110', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361305105', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361304284', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361304234', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361304134', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361304116', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361304107', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361304036', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361302704', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361302685', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361302635', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361302597', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361302591', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361302582', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361301233', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361301226', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361301221', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361301215', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361301207', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361301201', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361300174', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361300171', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361300167', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361300163', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361300151', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361300145', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361299724', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361299708', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361299703', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361299698', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361299666', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361299623', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361298995', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361298987', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361298977', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361298971', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361298967', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361298964', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361298634', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361298627', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361298618', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361298606', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361298577', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361298570', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361298160', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361298155', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361298152', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361297899', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361297865', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361297860', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361297804', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361297610', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361297571', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361297048', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361297028', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361297005', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361296971', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361296954', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361296910', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361295930', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361295900', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361295861', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361295846', None, None, None, None, None, '2966823') ('4189', None, None, None, None, None, None, None, '2966823') ('4189', '23374045', '1361295844', None, None, None, None, None, '2966823') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 101 time used for this insertion : 0.026549577713012695 save_final save missing photos in datou_result : time spend for datou_step_exec : 14.624757766723633 time spend to save output : 0.02727341651916504 total time spend for step 1 : 14.652031183242798 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.18user 0.77system 0:19.33elapsed 15%CPU (0avgtext+0avgdata 103256maxresident)k 0inputs+1696outputs (0major+64818minor)pagefaults 0swaps