python /home/admin/mtr/script_for_cron.py -j datou_current3 -m 8 -a ' -a 4746 -l 30 ' -s datou_current_4746 -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 : 642295 load datou : 4746 # 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 : 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 we have a portfolio with more photos than limit : 53>30 please execute split_portfolio.py -i 21915224 -l 30 size over we load limit photo not treated list_input_json: {} Current got : datou_id : 4746, datou_cur_ids : ['2709715'] with mtr_portfolio_ids : ['21915224'] and first list_photo_ids : [] new path : /proc/642295/ 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_with_photo list_input_json : {} origin We have 1 , WARNING: data may be incomplete, need to offset and complete ! BFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFwe have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB length of list_filenames : 23 ; length of list_pids : 23 ; length of list_args : 23 time to download the photos : 6.127910137176514 About to test input to load we should then remove the video here, and this would fix the bug of datou_current ! Calling datou_exec Inside datou_exec : verbose : 0 number of steps : 1 step1:split_time_score_with_photo Mon Mar 31 19:41:33 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 dato 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 ! 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 13156 mask_detect is not consistent : 3 used against 2 in the step definition ! Step 13160 mask_detect have less inputs used (1) than in the step definition (2) : maybe we manage optionnal inputs ! WARNING : number of outputs for step 13160 mask_detect is not consistent : 3 used against 2 in the step definition ! WARNING : number of inputs for step 13158 rle_unique_nms_with_priority is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 13158 rle_unique_nms_with_priority is not consistent : 2 used against 1 in the step definition ! WARNING : number of inputs for step 13157 crop_condition is not consistent : 4 used against 2 in the step definition ! WARNING : number of outputs for step 13157 crop_condition is not consistent : 4 used against 3 in the step definition ! WARNING : number of outputs for step 13161 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 13159 final have less inputs used (2) than in the step definition (3) : maybe we manage optionnal inputs ! Step 13159 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 13156 doesn't seem to be define in the database( WARNING : type of input 2 of step 13157 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : type of output 1 of step 13161 doesn't seem to be define in the database( WARNING : type of input 3 of step 13159 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : type of input 2 of step 13157 doesn't seem to be define in the database( WARNING : output 0 of step 13163 have datatype=6 whereas input 2 of step 13157 have datatype=None WARNING : type of input 2 of step 13157 doesn't seem to be define in the database( WARNING : output 0 of step 13162 have datatype=6 whereas input 2 of step 13157 have datatype=None We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13161 have datatype=10 whereas input 3 of step 13164 have datatype=6 WARNING : output 0 of step 13161 have datatype=10 whereas input 0 of step 13166 have datatype=18 WARNING : type of input 5 of step 13164 doesn't seem to be define in the database( WARNING : output 0 of step 13166 have datatype=11 whereas input 5 of step 13164 have datatype=None WARNING : type of input 2 of step 13157 doesn't seem to be define in the database( WARNING : output 1 of step 13158 have datatype=7 whereas input 2 of step 13157 have datatype=None WARNING : type of output 3 of step 13157 doesn't seem to be define in the database( WARNING : type of input 3 of step 13161 doesn't seem to be define in the database( WARNING : type of output 2 of step 13160 doesn't seem to be define in the database( WARNING : type of input 1 of step 13163 doesn't seem to be define in the database( WARNING : type of output 2 of step 13160 doesn't seem to be define in the database( WARNING : type of input 1 of step 13162 doesn't seem to be define in the database( 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`=21920563 AND mptpi.`type`=4855 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 ! 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 13156 mask_detect is not consistent : 3 used against 2 in the step definition ! Step 13160 mask_detect have less inputs used (1) than in the step definition (2) : maybe we manage optionnal inputs ! WARNING : number of outputs for step 13160 mask_detect is not consistent : 3 used against 2 in the step definition ! WARNING : number of inputs for step 13158 rle_unique_nms_with_priority is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 13158 rle_unique_nms_with_priority is not consistent : 2 used against 1 in the step definition ! WARNING : number of inputs for step 13157 crop_condition is not consistent : 4 used against 2 in the step definition ! WARNING : number of outputs for step 13157 crop_condition is not consistent : 4 used against 3 in the step definition ! WARNING : number of outputs for step 13161 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 13159 final have less inputs used (2) than in the step definition (3) : maybe we manage optionnal inputs ! Step 13159 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 13156 doesn't seem to be define in the database( WARNING : type of input 2 of step 13157 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : type of output 1 of step 13161 doesn't seem to be define in the database( WARNING : type of input 3 of step 13159 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : type of input 2 of step 13157 doesn't seem to be define in the database( WARNING : output 0 of step 13163 have datatype=6 whereas input 2 of step 13157 have datatype=None WARNING : type of input 2 of step 13157 doesn't seem to be define in the database( WARNING : output 0 of step 13162 have datatype=6 whereas input 2 of step 13157 have datatype=None We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13161 have datatype=10 whereas input 3 of step 13164 have datatype=6 WARNING : output 0 of step 13161 have datatype=10 whereas input 0 of step 13166 have datatype=18 WARNING : type of input 5 of step 13164 doesn't seem to be define in the database( WARNING : output 0 of step 13166 have datatype=11 whereas input 5 of step 13164 have datatype=None WARNING : type of input 2 of step 13157 doesn't seem to be define in the database( WARNING : output 1 of step 13158 have datatype=7 whereas input 2 of step 13157 have datatype=None WARNING : type of output 3 of step 13157 doesn't seem to be define in the database( WARNING : type of input 3 of step 13161 doesn't seem to be define in the database( WARNING : type of output 2 of step 13160 doesn't seem to be define in the database( WARNING : type of input 1 of step 13163 doesn't seem to be define in the database( WARNING : type of output 2 of step 13160 doesn't seem to be define in the database( WARNING : type of input 1 of step 13162 doesn't seem to be define in the database( 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`=21920564 AND mptpi.`type`=4855 To do elapsed_time : count_nb_balles_and_create_portfolio 3.3709328174591064 # DISPLAY ALL COLLECTED DATA : {'18022025': {'nb_upload': 53, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} ------ Fin du Copier-Coller ------ ---------- ONE RESULT --------- ([[0, 1, 2, 3, 4, 5, 6, 7, 8], [9, 10, 11, 12, 13, 14, 15, 16], [17, 18, 19, 20, 21, 22, 23, 24], [25, 26, 27, 28, 29, 30, 31, 32], [33, 34, 35, 36, 37, 38, 39, 40, 41, 42], [43, 44, 45, 46, 47, 48, 49, 50, 51, 52]], {'Rungis_entrant': [(0, 1), (1, 2), (2, 3), (3, 4), (4, 5), (5, 6)]}, {21920559: {'list_of_photos': [1349035271, 1349035792, 1349035881, 1349035974, 1349036053, 1349036070, 1349036074, 1349036148, 1349036152], 'hashtag': 'entrant'}, 21920560: {'list_of_photos': [1349036155, 1349036159, 1349036164, 1349036183, 1349036266, 1349036268, 1349036271, 1349036273], 'hashtag': 'entrant'}, 21920561: {'list_of_photos': [1349036279, 1349036283, 1349036359, 1349036363, 1349036366, 1349036369, 1349036371, 1349036375], 'hashtag': 'entrant'}, 21920562: {'list_of_photos': [1349036500, 1349036502, 1349036504, 1349036509, 1349036515, 1349036517, 1349036552, 1349036556], 'hashtag': 'entrant'}, 21920563: {'list_of_photos': [1349036560, 1349036564, 1349036568, 1349036573, 1349036632, 1349036635, 1349036638, 1349036641, 1349036646, 1349036648], 'hashtag': 'entrant'}, 21920564: {'list_of_photos': [1349036711, 1349036714, 1349036720, 1349036732, 1349036758, 1349036782, 1349037385, 1349037396, 1349037404, 1349037418], 'hashtag': 'entrant'}}, {2107760258: 53}, {'amount_uploaded_and_tagged': {'18022025': {'nb_upload': 53, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}}, 'map_amount_per_hashtag': {'Rungis_entrant': [(0, 1), (1, 2), (2, 3), (3, 4), (4, 5), (5, 6)]}, 'count': {'Rungis_entrant': [(0, 1), (1, 2), (2, 3), (3, 4), (4, 5), (5, 6)]}}) ---------- END de ONE RESULT ---------- Suppression des photos Telecharges Inside saveOutput : final : True verbose : 0 saveOutput not yet implemented for datou_step.type : split_time_score_with_photo we use saveGeneral [1349036369, 1349036366, 1349036363, 1349036359, 1349036283, 1349036279, 1349036273, 1349036271, 1349036268, 1349036266, 1349036183, 1349036164, 1349036159, 1349036155, 1349036152, 1349036148, 1349036074, 1349036070, 1349036053, 1349035974, 1349035881, 1349035792, 1349035271] Looping around the photos to save general results len do output : 5 /[[0, 1, 2, 3, 4, 5, 6, 7, 8], [9, 10, 11, 12, 13, 14, 15, 16], [17, 18, 19, 20, 21, 22, 23, 24], [25, 26, 27, 28, 29, 30, 31, 32], [33, 34, 35, 36, 37, 38, 39, 40, 41, 42], [43, 44, 45, 46, 47, 48, 49, 50, 51, 52]] /{'Rungis_entrant': [(0, 1), (1, 2), (2, 3), (3, 4), (4, 5), (5, 6)]} /{21920559: {'list_of_photos': [1349035271, 1349035792, 1349035881, 1349035974, 1349036053, 1349036070, 1349036074, 1349036148, 1349036152], 'hashtag': 'entrant'}, 21920560: {'list_of_photos': [1349036155, 1349036159, 1349036164, 1349036183, 1349036266, 1349036268, 1349036271, 1349036273], 'hashtag': 'entrant'}, 21920561: {'list_of_photos': [1349036279, 1349036283, 1349036359, 1349036363, 1349036366, 1349036369, 1349036371, 1349036375], 'hashtag': 'entrant'}, 21920562: {'list_of_photos': [1349036500, 1349036502, 1349036504, 1349036509, 1349036515, 1349036517, 1349036552, 1349036556], 'hashtag': 'entrant'}, 21920563: {'list_of_photos': [1349036560, 1349036564, 1349036568, 1349036573, 1349036632, 1349036635, 1349036638, 1349036641, 1349036646, 1349036648], 'hashtag': 'entrant'}, 21920564: {'list_of_photos': [1349036711, 1349036714, 1349036720, 1349036732, 1349036758, 1349036782, 1349037385, 1349037396, 1349037404, 1349037418], 'hashtag': 'entrant'}} /{2107760258: 53} /{'amount_uploaded_and_tagged': {'18022025': {'nb_upload': 53, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}}, 'map_amount_per_hashtag': {'Rungis_entrant': [(0, 1), (1, 2), (2, 3), (3, 4), (4, 5), (5, 6)]}, 'count': {'Rungis_entrant': [(0, 1), (1, 2), (2, 3), (3, 4), (4, 5), (5, 6)]}} before output type Managing all output in save final without adding information in the mtr_datou_result ('4746', None, None, None, None, None, None, None, '2709715') ('4746', None, '1349036369', None, None, None, None, None, '2709715') ('4746', None, None, None, None, None, None, None, '2709715') ('4746', None, '1349036366', None, None, None, None, None, '2709715') ('4746', None, None, None, None, None, None, None, '2709715') ('4746', None, '1349036363', None, None, None, None, None, '2709715') ('4746', None, None, None, None, None, None, None, '2709715') ('4746', None, '1349036359', None, None, None, None, None, '2709715') ('4746', None, None, None, None, None, None, None, '2709715') ('4746', None, '1349036283', None, None, None, None, None, '2709715') ('4746', None, None, None, None, None, None, None, '2709715') ('4746', None, '1349036279', None, None, None, None, None, '2709715') ('4746', None, None, None, None, None, None, None, '2709715') ('4746', None, '1349036273', None, None, None, None, None, '2709715') ('4746', None, None, None, None, None, None, None, '2709715') ('4746', None, '1349036271', None, None, None, None, None, '2709715') ('4746', None, None, None, None, None, None, None, '2709715') ('4746', None, '1349036268', None, None, None, None, None, '2709715') ('4746', None, None, None, None, None, None, None, '2709715') ('4746', None, '1349036266', None, None, None, None, None, '2709715') ('4746', None, None, None, None, None, None, None, '2709715') ('4746', None, '1349036183', None, None, None, None, None, '2709715') ('4746', None, None, None, None, None, None, None, '2709715') ('4746', None, '1349036164', None, None, None, None, None, '2709715') ('4746', None, None, None, None, None, None, None, '2709715') ('4746', None, '1349036159', None, None, None, None, None, '2709715') ('4746', None, None, None, None, None, None, None, '2709715') ('4746', None, '1349036155', None, None, None, None, None, '2709715') ('4746', None, None, None, None, None, None, None, '2709715') ('4746', None, '1349036152', None, None, None, None, None, '2709715') ('4746', None, None, None, None, None, None, None, '2709715') ('4746', None, '1349036148', None, None, None, None, None, '2709715') ('4746', None, None, None, None, None, None, None, '2709715') ('4746', None, '1349036074', None, None, None, None, None, '2709715') ('4746', None, None, None, None, None, None, None, '2709715') ('4746', None, '1349036070', None, None, None, None, None, '2709715') ('4746', None, None, None, None, None, None, None, '2709715') ('4746', None, '1349036053', None, None, None, None, None, '2709715') ('4746', None, None, None, None, None, None, None, '2709715') ('4746', None, '1349035974', None, None, None, None, None, '2709715') ('4746', None, None, None, None, None, None, None, '2709715') ('4746', None, '1349035881', None, None, None, None, None, '2709715') ('4746', None, None, None, None, None, None, None, '2709715') ('4746', None, '1349035792', None, None, None, None, None, '2709715') ('4746', None, None, None, None, None, None, None, '2709715') ('4746', None, '1349035271', None, None, None, None, None, '2709715') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 23 time used for this insertion : 0.6436755657196045 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.6946797370910645 time spend to save output : 0.6441118717193604 total time spend for step 1 : 6.338791608810425 caffe_path_current : About to save ! 2 After save, about to update current ! ret : 2 len(input) + len(total_photo_id_missing) : 23 set_done_treatment 2.85user 1.38system 0:15.27elapsed 27%CPU (0avgtext+0avgdata 154300maxresident)k 208inputs+169232outputs (17major+222632minor)pagefaults 0swaps