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 : 3131334 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 : ['2740155'] with mtr_portfolio_ids : ['22216438'] and first list_photo_ids : [] new path : /proc/3131334/ 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.027285337448120117 About to test input to load Calling datou_exec Inside datou_exec : verbose : 0 number of steps : 1 step1:split_time_score Thu Apr 10 16:00:31 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_podist_desc begin to insert list_values into photo_hahstag_ids : length of list_valuse in save_photo_hashtag_id_type : 313 time used for this insertion : 3.513414144515991 photos_removed : len 89 elapsed_time : remove_photo_duplicate 3.561513662338257 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.Lforce hashtag to JRM elapsed_time : CREATE_PORT_BATCH_BY_HOUR 0.01394200325012207 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': '10042025', 'map_nb_amount': {0: 12, 1: 35, 2: 1, 3: 1, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 479.9756729602814, 'nb_balles_papier': 0.0004900000000000006, 'begin_time_port': 'image_10042025_10_00_02_614525m0.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.0004900000000000006 result_one_balle_Type_JRM:{'day': '10042025', 'map_nb_amount': {0: 6, 1: 48, 2: 1, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 599.3290128707886, 'nb_balles_papier': 0.0005500000000000008, 'begin_time_port': 'image_10042025_10_19_03_129362m0.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.0005500000000000008 LLLresult_one_balle_Type_JRM:{'day': '10042025', 'map_nb_amount': {0: 15, 1: 69, 2: 2, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 840.2529637813568, 'nb_balles_papier': 0.0008600000000000016, 'begin_time_port': 'image_10042025_10_30_02_126207m0.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.0008600000000000016 LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLERROR missing amount info ERROR missing amount info LLresult_one_balle_Type_JRM:{'day': '10042025', 'map_nb_amount': {0: 5, 1: 26, 2: 0, 3: 1, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 299.9658200740814, 'nb_balles_papier': 0.0003200000000000002, 'begin_time_port': 'image_10042025_10_45_03_103718_0000.jpg'} Production hashtag (incorrect ponderation at 20-10-18) : 0.0003200000000000002 We have rejected 0 photos because of the batch_size condition ! NUMBER BATCH list_of_portfolios_to_create : 4 list_same_port_ids : [22222838] find same portfolio which already exist 22222838 , we will use it list_same_port_ids : [22224599] find same portfolio which already exist 22224599 , we will use it list_same_port_ids : [22228802] find same portfolio which already exist 22228802 , we will use it list_same_port_ids : [] https://marlene.fotonower.com/api/v1/secured/portfolio/new?name=JRM_diff_batch__10042025_10_45_03_103718&access_token=b05576c56a0e42ad0cb9b46155f68f82 Qualite : 0.12130207050022564 # 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`=22222838 AND mptpi.`type`=3726 To do Qualite : 0.089843892005281 # 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`=22224599 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`=22228802 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`=22230451 AND mptpi.`type`=3726 To do elapsed_time : count_nb_balles_and_create_portfolio 4.26367974281311 # DISPLAY ALL COLLECTED DATA : {'10042025': {'nb_upload': 313, 'nb_taggue_class': 311, 'nb_taggue_densite': 311, 'nb_descriptors': 311}} Inside saveOutput : final : True verbose : 0 saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1351186035, 1351185796, 1351185466, 1351185463, 1351185458, 1351185452, 1351185448, 1351185443, 1351184398, 1351184314, 1351184259, 1351184247, 1351184204, 1351184082, 1351182736, 1351182723, 1351182714, 1351182701, 1351182678, 1351182672, 1351180435, 1351180430, 1351180405, 1351180394, 1351180382, 1351180369, 1351179082, 1351179081, 1351179078, 1351179068, 1351179052, 1351179034, 1351178647, 1351178642, 1351178627, 1351178623, 1351176293, 1351176290, 1351176287, 1351176283, 1351176275, 1351176268, 1351174875, 1351174770, 1351174676, 1351174601, 1351174539, 1351174489, 1351170885, 1351170779, 1351170685, 1351170625, 1351170546, 1351170335, 1351167861, 1351167843, 1351167587, 1351167580, 1351167567, 1351167549, 1351167546, 1351167527, 1351166566, 1351166549, 1351166523, 1351166495, 1351166486, 1351166437, 1351165501, 1351165494, 1351165487, 1351165468, 1351165461, 1351165456, 1351164282, 1351164253, 1351164249, 1351164243, 1351164230, 1351164205, 1351163080, 1351163074, 1351163067, 1351163061, 1351163052, 1351163045, 1351161809, 1351161778, 1351161756, 1351161727, 1351161709, 1351161703, 1351161222, 1351161166, 1351161100, 1351161090, 1351161076, 1351161066, 1351159092, 1351159052] Looping around the photos to save general results len do output : 1 /22216438Didn'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, '2740155') ('4189', '22216438', '1351186035', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351185796', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351185466', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351185463', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351185458', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351185452', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351185448', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351185443', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351184398', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351184314', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351184259', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351184247', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351184204', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351184082', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351182736', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351182723', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351182714', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351182701', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351182678', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351182672', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351180435', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351180430', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351180405', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351180394', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351180382', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351180369', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351179082', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351179081', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351179078', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351179068', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351179052', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351179034', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351178647', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351178642', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351178627', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351178623', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351176293', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351176290', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351176287', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351176283', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351176275', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351176268', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351174875', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351174770', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351174676', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351174601', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351174539', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351174489', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351170885', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351170779', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351170685', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351170625', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351170546', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351170335', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351167861', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351167843', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351167587', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351167580', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351167567', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351167549', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351167546', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351167527', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351166566', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351166549', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351166523', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351166495', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351166486', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351166437', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351165501', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351165494', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351165487', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351165468', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351165461', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351165456', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351164282', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351164253', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351164249', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351164243', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351164230', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351164205', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351163080', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351163074', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351163067', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351163061', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351163052', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351163045', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351161809', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351161778', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351161756', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351161727', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351161709', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351161703', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351161222', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351161166', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351161100', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351161090', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351161076', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351161066', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351159092', None, None, None, None, None, '2740155') ('4189', None, None, None, None, None, None, None, '2740155') ('4189', '22216438', '1351159052', None, None, None, None, None, '2740155') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 101 time used for this insertion : 1.1041820049285889 save_final save missing photos in datou_result : time spend for datou_step_exec : 26.47036337852478 time spend to save output : 1.1051082611083984 total time spend for step 1 : 27.57547163963318 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.59user 0.62system 0:32.48elapsed 9%CPU (0avgtext+0avgdata 104464maxresident)k 920inputs+2616outputs (28major+55610minor)pagefaults 0swaps