python /home/admin/mtr/script_for_cron.py -j default -m 20 -a 'python3 ~/workarea/git/Velours/python/prod/datou.py -j batch_current -a 4252 -P 20090340' -s traitement_sts -M 0 -S 0 -U 100,80,95 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/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', '/home/admin/workarea/git/apy', '/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 : 239795 load datou : 4252 # 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 ! 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 11617 copy_chis is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 11618 consolidate_hashtags_from_manual_portfolio is not consistent : 2 used against 1 in the step definition ! WARNING : number of inputs for step 11615 rle_unique_nms_with_priority is not consistent : 3 used against 1 in the step definition ! WARNING : number of outputs for step 11615 rle_unique_nms_with_priority is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 11622 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11616 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! Step 11619 blur_detection have less inputs used (0) than in the step definition (1) : maybe we manage optionnal inputs ! Step 11620 brightness have less inputs used (0) than in the step definition (1) : maybe we manage optionnal inputs ! Step 11621 send_mail_cod have less inputs used (4) than in the step definition (5) : maybe we manage optionnal inputs ! Step 11623 split_time_score have less inputs used (1) than in the step definition (2) : maybe we manage optionnal inputs ! 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 ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 11617 have datatype=11 whereas input 0 of step 11615 have datatype=2 WARNING : type of output 1 of step 11618 doesn't seem to be define in the database( WARNING : type of input 3 of step 11616 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : type of output 1 of step 11618 doesn't seem to be define in the database( WARNING : type of input 1 of step 11615 doesn't seem to be define in the database( WARNING : output 0 of step 11622 have datatype=10 whereas input 3 of step 11621 have datatype=6 WARNING : type of input 1 of step 11622 doesn't seem to be define in the database( WARNING : output 1 of step 11615 have datatype=7 whereas input 1 of step 11622 have datatype=None WARNING : type of output 1 of step 11622 doesn't seem to be define in the database( WARNING : type of input 4 of step 11616 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : type of output 1 of step 11617 doesn't seem to be define in the database( WARNING : type of input 1 of step 11618 doesn't seem to be define in the database( DataTypes for each output/input checked ! 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 : id de la photo (peut être local ou global) was removed should we ? donnée sous forme de nombre was removed should we ? None was removed should we ? donnée sous forme de texte was removed should we ? chemin de la photo was removed should we ? donnée sous forme de texte was removed should we ? [ (photo_id, photo_id_loc, hashtag_type, x0, x1, y0, y1, score), ...] was removed should we ? None was removed should we ? donnée sous forme de texte was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? id de la photo (peut être local ou global) was removed should we ? donnée sous forme de texte was removed should we ? donnée sous forme de texte was removed should we ? donnée sous forme de texte was removed should we ? chemin de la photo was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? chemin de la photo was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? donnée sous forme de texte was removed should we ? 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 updating current state to 1 list_input_json: [] Current got : datou_id : 4252, datou_cur_ids : ['2552658'] with mtr_portfolio_ids : ['20090340'] and first list_photo_ids : [] new path : /proc/239795/ 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) 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 11617 copy_chis is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 11618 consolidate_hashtags_from_manual_portfolio is not consistent : 2 used against 1 in the step definition ! WARNING : number of inputs for step 11615 rle_unique_nms_with_priority is not consistent : 3 used against 1 in the step definition ! WARNING : number of outputs for step 11615 rle_unique_nms_with_priority is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 11622 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11616 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! Step 11619 blur_detection have less inputs used (0) than in the step definition (1) : maybe we manage optionnal inputs ! Step 11620 brightness have less inputs used (0) than in the step definition (1) : maybe we manage optionnal inputs ! Step 11621 send_mail_cod have less inputs used (4) than in the step definition (5) : maybe we manage optionnal inputs ! Step 11623 split_time_score have less inputs used (1) than in the step definition (2) : maybe we manage optionnal inputs ! 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 ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 11617 have datatype=11 whereas input 0 of step 11615 have datatype=2 WARNING : type of output 1 of step 11618 doesn't seem to be define in the database( WARNING : type of input 3 of step 11616 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : type of output 1 of step 11618 doesn't seem to be define in the database( WARNING : type of input 1 of step 11615 doesn't seem to be define in the database( WARNING : output 0 of step 11622 have datatype=10 whereas input 3 of step 11621 have datatype=6 WARNING : type of input 1 of step 11622 doesn't seem to be define in the database( WARNING : output 1 of step 11615 have datatype=7 whereas input 1 of step 11622 have datatype=None WARNING : type of output 1 of step 11622 doesn't seem to be define in the database( WARNING : type of input 4 of step 11616 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : type of output 1 of step 11617 doesn't seem to be define in the database( WARNING : type of input 1 of step 11618 doesn't seem to be define in the database( DataTypes for each output/input checked ! List Step Type Loaded in datou : copy_chis, consolidate_hashtags_from_manual_portfolio, rle_unique_nms_with_priority, ventilate_hashtags_in_portfolio, final, blur_detection, brightness, send_mail_cod, split_time_score over limit max, limiting to limit_max 100 list_input_json : [] origin We have 1 , 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 : 8.738120794296265 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 : 9 step1:copy_chis Wed Feb 5 17:13:36 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 step datou_step_copy_crop batch 1 Loaded 28 chid ids of type : 4211 batch 1 Loaded 714 chid ids of type : 4211 Number RLEs to save : 0 TO DO : save crop sub photo not yet done ! Inside saveOutput : final : False verbose : 0 saveOutput not yet implemented for datou_step.type : copy_chis we use saveGeneral [1333148481, 1333148478, 1333148457, 1333148447, 1333148444, 1333148414, 1333148408, 1333148406, 1333148405, 1333148403, 1333043731, 1333043727, 1333043719, 1333043714, 1333043706, 1333043699, 1333043640, 1333043638, 1333043634, 1333043628, 1333043623, 1333043618, 1333043566] Looping around the photos to save general results len do output : 23 /1333043566Didn't retrieve data . /1333043618Didn't retrieve data . /1333043623Didn't retrieve data . /1333043628Didn't retrieve data . /1333043634Didn't retrieve data . /1333043638Didn't retrieve data . /1333043640Didn't retrieve data . /1333043699Didn't retrieve data . /1333043706Didn't retrieve data . /1333043714Didn't retrieve data . /1333043719Didn't retrieve data . /1333043727Didn't retrieve data . /1333043731Didn't retrieve data . /1333148403Didn't retrieve data . /1333148405Didn't retrieve data . /1333148406Didn't retrieve data . /1333148408Didn't retrieve data . /1333148414Didn't retrieve data . /1333148444Didn't retrieve data . /1333148447Didn't retrieve data . /1333148457Didn't retrieve data . /1333148478Didn't retrieve data . /1333148481Didn'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 ('4252', None, None, None, None, None, None, None, '2552658') ('4252', '20090340', '1333148481', None, None, None, None, None, '2552658') ('4252', None, None, None, None, None, None, None, '2552658') ('4252', '20090340', '1333148478', None, None, None, None, None, '2552658') ('4252', None, None, None, None, None, None, None, '2552658') ('4252', '20090340', '1333148457', None, None, None, None, None, '2552658') ('4252', None, None, None, None, None, None, None, '2552658') ('4252', '20090340', '1333148447', None, None, None, None, None, '2552658') ('4252', None, None, None, None, None, None, None, '2552658') ('4252', '20090340', '1333148444', None, None, None, None, None, '2552658') ('4252', None, None, None, None, None, None, None, '2552658') ('4252', '20090340', '1333148414', None, None, None, None, None, '2552658') ('4252', None, None, None, None, None, None, None, '2552658') ('4252', '20090340', '1333148408', None, None, None, None, None, '2552658') ('4252', None, None, None, None, None, None, None, '2552658') ('4252', '20090340', '1333148406', None, None, None, None, None, '2552658') ('4252', None, None, None, None, None, None, None, '2552658') ('4252', '20090340', '1333148405', None, None, None, None, None, '2552658') ('4252', None, None, None, None, None, None, None, '2552658') ('4252', '20090340', '1333148403', None, None, None, None, None, '2552658') ('4252', None, None, None, None, None, None, None, '2552658') ('4252', '20090340', '1333043731', None, None, None, None, None, '2552658') ('4252', None, None, None, None, None, None, None, '2552658') ('4252', '20090340', '1333043727', None, None, None, None, None, '2552658') ('4252', None, None, None, None, None, None, None, '2552658') ('4252', '20090340', '1333043719', None, None, None, None, None, '2552658') ('4252', None, None, None, None, None, None, None, '2552658') ('4252', '20090340', '1333043714', None, None, None, None, None, '2552658') ('4252', None, None, None, None, None, None, None, '2552658') ('4252', '20090340', '1333043706', None, None, None, None, None, '2552658') ('4252', None, None, None, None, None, None, None, '2552658') ('4252', '20090340', '1333043699', None, None, None, None, None, '2552658') ('4252', None, None, None, None, None, None, None, '2552658') ('4252', '20090340', '1333043640', None, None, None, None, None, '2552658') ('4252', None, None, None, None, None, None, None, '2552658') ('4252', '20090340', '1333043638', None, None, None, None, None, '2552658') ('4252', None, None, None, None, None, None, None, '2552658') ('4252', '20090340', '1333043634', None, None, None, None, None, '2552658') ('4252', None, None, None, None, None, None, None, '2552658') ('4252', '20090340', '1333043628', None, None, None, None, None, '2552658') ('4252', None, None, None, None, None, None, None, '2552658') ('4252', '20090340', '1333043623', None, None, None, None, None, '2552658') ('4252', None, None, None, None, None, None, None, '2552658') ('4252', '20090340', '1333043618', None, None, None, None, None, '2552658') ('4252', None, None, None, None, None, None, None, '2552658') ('4252', '20090340', '1333043566', None, None, None, None, None, '2552658') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 46 time used for this insertion : 0.015949010848999023 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.1085517406463623 time spend to save output : 0.016384363174438477 total time spend for step 1 : 0.12493610382080078 step2:consolidate_hashtags_from_manual_portfolio Wed Feb 5 17:13:36 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 Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure beginning of datou step consolidate_hashtags_from_manual_portfolio Iterating over portfolio : 20090340 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`=20090340 AND mptpi.`type`=4211 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('barquette_opaque','carton','ela','environnement','etiquette','film_plastique','kraft','metal','papier','pehd','pet_clair','pet_opaque','textiles_sanitaires','pet_fonce','mal_croppe','flou')) To do 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`=20090340 AND mptpi.`type`=4211 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('barquette_opaque','carton','ela','environnement','etiquette','film_plastique','kraft','metal','papier','pehd','pet_clair','pet_opaque','textiles_sanitaires','pet_fonce','mal_croppe','flou')) To do TODO : # On doit donc construire les chi a partir des informations dans les photos filles query : SELECT ph.photo_id FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=20090631 AND mpp.hide_status=0 ORDER BY ph.size desc TODO : # On doit donc construire les chi a partir des informations dans les photos filles query : SELECT ph.photo_id FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=20090632 AND mpp.hide_status=0 ORDER BY ph.size desc batch 1 Loaded 547 chid ids of type : 4211 begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : TODO : # On doit donc construire les chi a partir des informations dans les photos filles query : SELECT ph.photo_id FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=20090633 AND mpp.hide_status=0 ORDER BY ph.size desc TODO : # On doit donc construire les chi a partir des informations dans les photos filles query : SELECT ph.photo_id FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=20090634 AND mpp.hide_status=0 ORDER BY ph.size desc batch 1 Loaded 714 chid ids of type : 4211 begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : TODO : # On doit donc construire les chi a partir des informations dans les photos filles query : SELECT ph.photo_id FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=20090635 AND mpp.hide_status=0 ORDER BY ph.size desc TODO : # On doit donc construire les chi a partir des informations dans les photos filles query : SELECT ph.photo_id FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=20090636 AND mpp.hide_status=0 ORDER BY ph.size desc batch 1 Loaded 36 chid ids of type : 4211 begin to find the sub_photo_id : TODO : # On doit donc construire les chi a partir des informations dans les photos filles query : SELECT ph.photo_id FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=20090637 AND mpp.hide_status=0 ORDER BY ph.size desc batch 1 Loaded 87 chid ids of type : 4211 begin to find the sub_photo_id : begin to find the sub_photo_id : TODO : # On doit donc construire les chi a partir des informations dans les photos filles query : SELECT ph.photo_id FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=20090638 AND mpp.hide_status=0 ORDER BY ph.size desc batch 1 Loaded 149 chid ids of type : 4211 begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : TODO : # On doit donc construire les chi a partir des informations dans les photos filles query : SELECT ph.photo_id FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=20090639 AND mpp.hide_status=0 ORDER BY ph.size desc batch 1 Loaded 534 chid ids of type : 4211 begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : TODO : # On doit donc construire les chi a partir des informations dans les photos filles query : SELECT ph.photo_id FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=20090640 AND mpp.hide_status=0 ORDER BY ph.size desc batch 1 Loaded 479 chid ids of type : 4211 begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : TODO : # On doit donc construire les chi a partir des informations dans les photos filles query : SELECT ph.photo_id FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=20090641 AND mpp.hide_status=0 ORDER BY ph.size desc batch 1 Loaded 647 chid ids of type : 4211 begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : TODO : # On doit donc construire les chi a partir des informations dans les photos filles query : SELECT ph.photo_id FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=20090642 AND mpp.hide_status=0 ORDER BY ph.size desc batch 1 Loaded 51 chid ids of type : 4211 begin to find the sub_photo_id : begin to find the sub_photo_id : TODO : # On doit donc construire les chi a partir des informations dans les photos filles query : SELECT ph.photo_id FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=20090643 AND mpp.hide_status=0 ORDER BY ph.size desc batch 1 Loaded 666 chid ids of type : 4211 begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : TODO : # On doit donc construire les chi a partir des informations dans les photos filles query : SELECT ph.photo_id FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=20090644 AND mpp.hide_status=0 ORDER BY ph.size desc batch 1 Loaded 620 chid ids of type : 4211 begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : TODO : # On doit donc construire les chi a partir des informations dans les photos filles query : SELECT ph.photo_id FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=20090645 AND mpp.hide_status=0 ORDER BY ph.size desc batch 1 Loaded 180 chid ids of type : 4211 begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : TODO : # On doit donc construire les chi a partir des informations dans les photos filles query : SELECT ph.photo_id FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=20090646 AND mpp.hide_status=0 ORDER BY ph.size desc batch 1 Loaded 462 chid ids of type : 4211 begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : begin to find the sub_photo_id : To test ! Use context local managing function ! Inside saveOutput : final : False verbose : 0 saveOutput not yet implemented for datou_step.type : consolidate_hashtags_from_manual_portfolio we use saveGeneral [1333148481, 1333148478, 1333148457, 1333148447, 1333148444, 1333148414, 1333148408, 1333148406, 1333148405, 1333148403, 1333043731, 1333043727, 1333043719, 1333043714, 1333043706, 1333043699, 1333043640, 1333043638, 1333043634, 1333043628, 1333043623, 1333043618, 1333043566] Looping around the photos to save general results len do output : 6 /Tassign value string error string indices must be integers invalid literal for int() with base 10: 'T' begin to insert list_values into mtr_datou_result : length of list_values in save_final : 23 time used for this insertion : 0.015778064727783203 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.963501453399658 time spend to save output : 0.0160677433013916 total time spend for step 2 : 5.97956919670105 step3:rle_unique_nms_with_priority Wed Feb 5 17:13:42 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 Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 We expect there is only one output and this part is used while all output are not tuple or array We expect there is only one output and this part is used while all output are not tuple or array We expect there is only one output and this part is used while all output are not tuple or array We expect there is only one output and this part is used while all output are not tuple or array We expect there is only one output and this part is used while all output are not tuple or array We expect there is only one output and this part is used while all output are not tuple or array We expect there is only one output and this part is used while all output are not tuple or array We expect there is only one output and this part is used while all output are not tuple or array We expect there is only one output and this part is used while all output are not tuple or array We expect there is only one output and this part is used while all output are not tuple or array We expect there is only one output and this part is used while all output are not tuple or array We expect there is only one output and this part is used while all output are not tuple or array We expect there is only one output and this part is used while all output are not tuple or array We expect there is only one output and this part is used while all output are not tuple or array We expect there is only one output and this part is used while all output are not tuple or array We expect there is only one output and this part is used while all output are not tuple or array We expect there is only one output and this part is used while all output are not tuple or array We expect there is only one output and this part is used while all output are not tuple or array We expect there is only one output and this part is used while all output are not tuple or array We expect there is only one output and this part is used while all output are not tuple or array We expect there is only one output and this part is used while all output are not tuple or array We expect there is only one output and this part is used while all output are not tuple or array We expect there is only one output and this part is used while all output are not tuple or array VR 22-3-18 : For now we do not clean correctly the datou structure Begin step rle-unique-nms batch 1 Loaded 538 chid ids of type : 4211 seulement à utiliser dans la step consolidation batch 1 Loaded 20 chid ids of type : 4211 Number RLEs to save : 0 TO DO : save crop sub photo not yet done ! save time : 0.027379751205444336 seulement à utiliser dans la step consolidation batch 1 Loaded 10 chid ids of type : 4211 Number RLEs to save : 0 TO DO : save crop sub photo not yet done ! save time : 0.024054527282714844 seulement à utiliser dans la step consolidation batch 1 Loaded 17 chid ids of type : 4211 Number RLEs to save : 0 TO DO : save crop sub photo not yet done ! save time : 0.027974367141723633 seulement à utiliser dans la step consolidation batch 1 Loaded 35 chid ids of type : 4211 Number RLEs to save : 0 TO DO : save crop sub photo not yet done ! save time : 0.030628442764282227 seulement à utiliser dans la step consolidation batch 1 Loaded 43 chid ids of type : 4211 Number RLEs to save : 0 TO DO : save crop sub photo not yet done ! save time : 0.030132770538330078 seulement à utiliser dans la step consolidation batch 1 Loaded 36 chid ids of type : 4211 Number RLEs to save : 0 TO DO : save crop sub photo not yet done ! save time : 0.03048253059387207 seulement à utiliser dans la step consolidation batch 1 Loaded 34 chid ids of type : 4211 Number RLEs to save : 0 TO DO : save crop sub photo not yet done ! save time : 0.030886173248291016 seulement à utiliser dans la step consolidation batch 1 Loaded 40 chid ids of type : 4211 Number RLEs to save : 0 TO DO : save crop sub photo not yet done ! save time : 0.028773069381713867 seulement à utiliser dans la step consolidation batch 1 Loaded 36 chid ids of type : 4211 Number RLEs to save : 0 TO DO : save crop sub photo not yet done ! save time : 0.03021097183227539 seulement à utiliser dans la step consolidation batch 1 Loaded 27 chid ids of type : 4211 Number RLEs to save : 0 TO DO : save crop sub photo not yet done ! save time : 0.02983546257019043 seulement à utiliser dans la step consolidation batch 1 Loaded 37 chid ids of type : 4211 Number RLEs to save : 0 TO DO : save crop sub photo not yet done ! save time : 0.0307159423828125 seulement à utiliser dans la step consolidation batch 1 Loaded 31 chid ids of type : 4211 Number RLEs to save : 0 TO DO : save crop sub photo not yet done ! save time : 0.0316011905670166 seulement à utiliser dans la step consolidation batch 1 Loaded 38 chid ids of type : 4211 Number RLEs to save : 0 TO DO : save crop sub photo not yet done ! save time : 0.03035736083984375 seulement à utiliser dans la step consolidation batch 1 Loaded 32 chid ids of type : 4211 Number RLEs to save : 0 TO DO : save crop sub photo not yet done ! save time : 0.030239582061767578 seulement à utiliser dans la step consolidation batch 1 Loaded 32 chid ids of type : 4211 Number RLEs to save : 0 TO DO : save crop sub photo not yet done ! save time : 0.03058648109436035 seulement à utiliser dans la step consolidation batch 1 Loaded 44 chid ids of type : 4211 Number RLEs to save : 0 TO DO : save crop sub photo not yet done ! save time : 0.0312192440032959 seulement à utiliser dans la step consolidation batch 1 Loaded 35 chid ids of type : 4211 Number RLEs to save : 0 TO DO : save crop sub photo not yet done ! save time : 0.0306246280670166 seulement à utiliser dans la step consolidation batch 1 Loaded 36 chid ids of type : 4211 Number RLEs to save : 0 TO DO : save crop sub photo not yet done ! save time : 0.03015303611755371 seulement à utiliser dans la step consolidation batch 1 Loaded 26 chid ids of type : 4211 Number RLEs to save : 0 TO DO : save crop sub photo not yet done ! save time : 0.029285430908203125 seulement à utiliser dans la step consolidation batch 1 Loaded 34 chid ids of type : 4211 Number RLEs to save : 0 TO DO : save crop sub photo not yet done ! save time : 0.030031442642211914 seulement à utiliser dans la step consolidation batch 1 Loaded 35 chid ids of type : 4211 Number RLEs to save : 0 TO DO : save crop sub photo not yet done ! save time : 0.029697895050048828 seulement à utiliser dans la step consolidation batch 1 Loaded 32 chid ids of type : 4211 Number RLEs to save : 0 TO DO : save crop sub photo not yet done ! save time : 0.029906749725341797 No data in photo_id : 1333043566 Missing data for photo_id : 1333043566 in {1333148481: 0, 1333148478: 0.0, 1333148457: 0, 1333148447: 0, 1333148444: 0.0, 1333148414: 0.0, 1333148408: 0.0, 1333148406: 0.0, 1333148405: 0.0, 1333148403: 0, 1333043731: 0.0, 1333043727: 0.0, 1333043719: 0.0, 1333043714: 0, 1333043706: 0, 1333043699: 0.0, 1333043640: 0.0, 1333043638: 0.0, 1333043634: 0.0, 1333043628: 0.0, 1333043623: 0.0, 1333043618: 0.0} Missing data for photo_id : 1333043566 in {1333148481: 0, 1333148478: 0.0, 1333148457: 0, 1333148447: 0, 1333148444: 0.0, 1333148414: 0.0, 1333148408: 0.0, 1333148406: 0.0, 1333148405: 0.0, 1333148403: 0, 1333043731: 0.0, 1333043727: 0.0, 1333043719: 0.0, 1333043714: 0, 1333043706: 0, 1333043699: 0.0, 1333043640: 0.0, 1333043638: 0.0, 1333043634: 0.0, 1333043628: 0.0, 1333043623: 0.0, 1333043618: 0.0} map_output_result : {1333148481: (0.0, 'Should be the crop_list due to order', 0), 1333148478: (0.0, 'Should be the crop_list due to order', 0.0), 1333148457: (0.0, 'Should be the crop_list due to order', 0), 1333148447: (0.0, 'Should be the crop_list due to order', 0), 1333148444: (0.0, 'Should be the crop_list due to order', 0.0), 1333148414: (0.0, 'Should be the crop_list due to order', 0.0), 1333148408: (0.0, 'Should be the crop_list due to order', 0.0), 1333148406: (0.0, 'Should be the crop_list due to order', 0.0), 1333148405: (0.0, 'Should be the crop_list due to order', 0.0), 1333148403: (0.0, 'Should be the crop_list due to order', 0), 1333043731: (0.0, 'Should be the crop_list due to order', 0.0), 1333043727: (0.0, 'Should be the crop_list due to order', 0.0), 1333043719: (0.0, 'Should be the crop_list due to order', 0.0), 1333043714: (0.0, 'Should be the crop_list due to order', 0), 1333043706: (0.0, 'Should be the crop_list due to order', 0), 1333043699: (0.0, 'Should be the crop_list due to order', 0.0), 1333043640: (0.0, 'Should be the crop_list due to order', 0.0), 1333043638: (0.0, 'Should be the crop_list due to order', 0.0), 1333043634: (0.0, 'Should be the crop_list due to order', 0.0), 1333043628: (0.0, 'Should be the crop_list due to order', 0.0), 1333043623: (0.0, 'Should be the crop_list due to order', 0.0), 1333043618: (0.0, 'Should be the crop_list due to order', 0.0)} End step rle-unique-nms Inside saveOutput : final : False verbose : 0 saveOutput not yet implemented for datou_step.type : rle_unique_nms_with_priority we use saveGeneral [1333148481, 1333148478, 1333148457, 1333148447, 1333148444, 1333148414, 1333148408, 1333148406, 1333148405, 1333148403, 1333043731, 1333043727, 1333043719, 1333043714, 1333043706, 1333043699, 1333043640, 1333043638, 1333043634, 1333043628, 1333043623, 1333043618, 1333043566] Looping around the photos to save general results len do output : 22 /1333148481.Didn't retrieve data . /1333148478.Didn't retrieve data . /1333148457.Didn't retrieve data . /1333148447.Didn't retrieve data . /1333148444.Didn't retrieve data . /1333148414.Didn't retrieve data . /1333148408.Didn't retrieve data . /1333148406.Didn't retrieve data . /1333148405.Didn't retrieve data . /1333148403.Didn't retrieve data . /1333043731.Didn't retrieve data . /1333043727.Didn't retrieve data . /1333043719.Didn't retrieve data . /1333043714.Didn't retrieve data . /1333043706.Didn't retrieve data . /1333043699.Didn't retrieve data . /1333043640.Didn't retrieve data . /1333043638.Didn't retrieve data . /1333043634.Didn't retrieve data . /1333043628.Didn't retrieve data . /1333043623.Didn't retrieve data . /1333043618.Didn't retrieve data . before output type Used above Here is an output not treated by saveGeneral : Managing all output in save final without adding information in the mtr_datou_result ('4252', None, None, None, None, None, None, None, '2552658') ('4252', '20090340', '1333148481', None, None, None, None, None, '2552658') ('4252', None, None, None, None, None, None, None, '2552658') ('4252', '20090340', '1333148478', None, None, None, None, None, '2552658') ('4252', None, None, None, None, None, None, None, '2552658') ('4252', '20090340', '1333148457', None, None, None, None, None, '2552658') ('4252', None, None, None, None, None, None, None, '2552658') ('4252', '20090340', '1333148447', None, None, None, None, None, '2552658') ('4252', None, None, None, None, None, None, None, '2552658') ('4252', '20090340', '1333148444', None, None, None, None, None, '2552658') ('4252', None, None, None, None, None, None, None, '2552658') ('4252', '20090340', '1333148414', None, None, None, None, None, '2552658') ('4252', None, None, None, None, None, None, None, '2552658') ('4252', '20090340', '1333148408', None, None, None, None, None, '2552658') ('4252', None, None, None, None, None, None, None, '2552658') ('4252', '20090340', '1333148406', None, None, None, None, None, '2552658') ('4252', None, None, None, None, None, None, None, '2552658') ('4252', '20090340', '1333148405', None, None, None, None, None, '2552658') ('4252', None, None, None, None, None, None, None, '2552658') ('4252', '20090340', '1333148403', None, None, None, None, None, '2552658') ('4252', None, None, None, None, None, None, None, '2552658') ('4252', '20090340', '1333043731', None, None, None, None, None, '2552658') ('4252', None, None, None, None, None, None, None, '2552658') ('4252', '20090340', '1333043727', None, None, None, None, None, '2552658') ('4252', None, None, None, None, None, None, None, '2552658') ('4252', '20090340', '1333043719', None, None, None, None, None, '2552658') ('4252', None, None, None, None, None, None, None, '2552658') ('4252', '20090340', '1333043714', None, None, None, None, None, '2552658') ('4252', None, None, None, None, None, None, None, '2552658') ('4252', '20090340', '1333043706', None, None, None, None, None, '2552658') ('4252', None, None, None, None, None, None, None, '2552658') ('4252', '20090340', '1333043699', None, None, None, None, None, '2552658') ('4252', None, None, None, None, None, None, None, '2552658') ('4252', '20090340', '1333043640', None, None, None, None, None, '2552658') ('4252', None, None, None, None, None, None, None, '2552658') ('4252', '20090340', '1333043638', None, None, None, None, None, '2552658') ('4252', None, None, None, None, None, None, None, '2552658') ('4252', '20090340', '1333043634', None, None, None, None, None, '2552658') ('4252', None, None, None, None, None, None, None, '2552658') ('4252', '20090340', '1333043628', None, None, None, None, None, '2552658') ('4252', None, None, None, None, None, None, None, '2552658') ('4252', '20090340', '1333043623', None, None, None, None, None, '2552658') ('4252', None, None, None, None, None, None, None, '2552658') ('4252', '20090340', '1333043618', None, None, None, None, None, '2552658') ('4252', None, None, None, None, None, None, None, '2552658') ('4252', '20090340', '1333043566', None, None, None, None, None, '2552658') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 67 time used for this insertion : 0.015704870223999023 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.48612380027771 time spend to save output : 0.017885446548461914 total time spend for step 3 : 2.504009246826172 step4:ventilate_hashtags_in_portfolio Wed Feb 5 17:13:44 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 Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure beginning of datou step ventilate_hashtags_in_portfolio : To implement ! Iterating over portfolio : 20090340 get user id for portfolio 20090340 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`=20090340 AND mptpi.`type`=4211 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('barquette_opaque','carton','ela','environnement','etiquette','film_plastique','kraft','metal','papier','pehd','pet_clair','pet_opaque','textiles_sanitaires','pet_fonce','mal_croppe','flou')) AND mptpi.`min_score`=0.6 To do To do 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`=20090340 AND mptpi.`type`=4211 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('barquette_opaque','carton','ela','environnement','etiquette','film_plastique','kraft','metal','papier','pehd','pet_clair','pet_opaque','textiles_sanitaires','pet_fonce','mal_croppe','flou')) AND mptpi.`min_score`=0.6 To do To do ! Use context local managing function ! 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`=20090340 AND mptpi.`type`=4211 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('barquette_opaque','carton','ela','environnement','etiquette','film_plastique','kraft','metal','papier','pehd','pet_clair','pet_opaque','textiles_sanitaires','pet_fonce','mal_croppe','flou')) AND mptpi.`min_score`=0.6 To do lien utilise dans velours : https://www.fotonower.com/velours/20266377,20266378,20266379,20266380,20266381,20266382,20266383,20266384,20266385,20266386,20266387,20266388,20266389,20266390,20266391,20266392?tags=barquette_opaque,carton,ela,environnement,etiquette,film_plastique,kraft,metal,papier,pehd,pet_clair,pet_opaque,textiles_sanitaires,pet_fonce,mal_croppe,flou Inside saveOutput : final : False verbose : 0 saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1333148481, 1333148478, 1333148457, 1333148447, 1333148444, 1333148414, 1333148408, 1333148406, 1333148405, 1333148403, 1333043731, 1333043727, 1333043719, 1333043714, 1333043706, 1333043699, 1333043640, 1333043638, 1333043634, 1333043628, 1333043623, 1333043618, 1333043566] Looping around the photos to save general results len do output : 1 /20090340. 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 ('4252', None, None, None, None, None, None, None, '2552658') ('4252', '20090340', '1333148481', None, None, None, None, None, '2552658') ('4252', None, None, None, None, None, None, None, '2552658') ('4252', '20090340', '1333148478', None, None, None, None, None, '2552658') ('4252', None, None, None, None, None, None, None, '2552658') ('4252', '20090340', '1333148457', None, None, None, None, None, '2552658') ('4252', None, None, None, None, None, None, None, '2552658') ('4252', '20090340', '1333148447', None, None, None, None, None, '2552658') ('4252', None, None, None, None, None, None, None, '2552658') ('4252', '20090340', '1333148444', None, None, None, None, None, '2552658') ('4252', None, None, None, None, None, None, None, '2552658') ('4252', '20090340', '1333148414', None, None, None, None, None, '2552658') ('4252', None, None, None, None, None, None, None, '2552658') ('4252', '20090340', '1333148408', None, None, None, None, None, '2552658') ('4252', None, None, None, None, None, None, None, '2552658') ('4252', '20090340', '1333148406', None, None, None, None, None, '2552658') ('4252', None, None, None, None, None, None, None, '2552658') ('4252', '20090340', '1333148405', None, None, None, None, None, '2552658') ('4252', None, None, None, None, None, None, None, '2552658') ('4252', '20090340', '1333148403', None, None, None, None, None, '2552658') ('4252', None, None, None, None, None, None, None, '2552658') ('4252', '20090340', '1333043731', None, None, None, None, None, '2552658') ('4252', None, None, None, None, None, None, None, '2552658') ('4252', '20090340', '1333043727', None, None, None, None, None, '2552658') ('4252', None, None, None, None, None, None, None, '2552658') ('4252', '20090340', '1333043719', None, None, None, None, None, '2552658') ('4252', None, None, None, None, None, None, None, '2552658') ('4252', '20090340', '1333043714', None, None, None, None, None, '2552658') ('4252', None, None, None, None, None, None, None, '2552658') ('4252', '20090340', '1333043706', None, None, None, None, None, '2552658') ('4252', None, None, None, None, None, None, None, '2552658') ('4252', '20090340', '1333043699', None, None, None, None, None, '2552658') ('4252', None, None, None, None, None, None, None, '2552658') ('4252', '20090340', '1333043640', None, None, None, None, None, '2552658') ('4252', None, None, None, None, None, None, None, '2552658') ('4252', '20090340', '1333043638', None, None, None, None, None, '2552658') ('4252', None, None, None, None, None, None, None, '2552658') ('4252', '20090340', '1333043634', None, None, None, None, None, '2552658') ('4252', None, None, None, None, None, None, None, '2552658') ('4252', '20090340', '1333043628', None, None, None, None, None, '2552658') ('4252', None, None, None, None, None, None, None, '2552658') ('4252', '20090340', '1333043623', None, None, None, None, None, '2552658') ('4252', None, None, None, None, None, None, None, '2552658') ('4252', '20090340', '1333043618', None, None, None, None, None, '2552658') ('4252', None, None, None, None, None, None, None, '2552658') ('4252', '20090340', '1333043566', None, None, None, None, None, '2552658') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 24 time used for this insertion : 0.015671491622924805 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.7049806118011475 time spend to save output : 0.0160219669342041 total time spend for step 4 : 0.7210025787353516 step5:final Wed Feb 5 17:13:45 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 Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 VR 22-3-18 : For now we do not clean correctly the datou structure Beginning of datou step final ! Inside saveOutput : final : False verbose : 0 original output for save of step final : {1333148481: ('0.6528122283707282',), 1333148478: ('0.6528122283707282',), 1333148457: ('0.6528122283707282',), 1333148447: ('0.6528122283707282',), 1333148444: ('0.6528122283707282',), 1333148414: ('0.6528122283707282',), 1333148408: ('0.6528122283707282',), 1333148406: ('0.6528122283707282',), 1333148405: ('0.6528122283707282',), 1333148403: ('0.6528122283707282',), 1333043731: ('0.6528122283707282',), 1333043727: ('0.6528122283707282',), 1333043719: ('0.6528122283707282',), 1333043714: ('0.6528122283707282',), 1333043706: ('0.6528122283707282',), 1333043699: ('0.6528122283707282',), 1333043640: ('0.6528122283707282',), 1333043638: ('0.6528122283707282',), 1333043634: ('0.6528122283707282',), 1333043628: ('0.6528122283707282',), 1333043623: ('0.6528122283707282',), 1333043618: ('0.6528122283707282',)} new output for save of step final : {1333148481: ('0.6528122283707282',), 1333148478: ('0.6528122283707282',), 1333148457: ('0.6528122283707282',), 1333148447: ('0.6528122283707282',), 1333148444: ('0.6528122283707282',), 1333148414: ('0.6528122283707282',), 1333148408: ('0.6528122283707282',), 1333148406: ('0.6528122283707282',), 1333148405: ('0.6528122283707282',), 1333148403: ('0.6528122283707282',), 1333043731: ('0.6528122283707282',), 1333043727: ('0.6528122283707282',), 1333043719: ('0.6528122283707282',), 1333043714: ('0.6528122283707282',), 1333043706: ('0.6528122283707282',), 1333043699: ('0.6528122283707282',), 1333043640: ('0.6528122283707282',), 1333043638: ('0.6528122283707282',), 1333043634: ('0.6528122283707282',), 1333043628: ('0.6528122283707282',), 1333043623: ('0.6528122283707282',), 1333043618: ('0.6528122283707282',)} [1333148481, 1333148478, 1333148457, 1333148447, 1333148444, 1333148414, 1333148408, 1333148406, 1333148405, 1333148403, 1333043731, 1333043727, 1333043719, 1333043714, 1333043706, 1333043699, 1333043640, 1333043638, 1333043634, 1333043628, 1333043623, 1333043618, 1333043566] Looping around the photos to save general results len do output : 22 /1333148481.Didn't retrieve data . /1333148478.Didn't retrieve data . /1333148457.Didn't retrieve data . /1333148447.Didn't retrieve data . /1333148444.Didn't retrieve data . /1333148414.Didn't retrieve data . /1333148408.Didn't retrieve data . /1333148406.Didn't retrieve data . /1333148405.Didn't retrieve data . /1333148403.Didn't retrieve data . /1333043731.Didn't retrieve data . /1333043727.Didn't retrieve data . /1333043719.Didn't retrieve data . /1333043714.Didn't retrieve data . /1333043706.Didn't retrieve data . /1333043699.Didn't retrieve data . /1333043640.Didn't retrieve data . /1333043638.Didn't retrieve data . /1333043634.Didn't retrieve data . /1333043628.Didn't retrieve data . /1333043623.Didn't retrieve data . /1333043618.Didn't retrieve data . before output type Used above Used above Managing all output in save final without adding information in the mtr_datou_result ('4252', None, None, None, None, None, None, None, '2552658') ('4252', '20090340', '1333148481', None, None, None, None, None, '2552658') ('4252', None, None, None, None, None, None, None, '2552658') ('4252', '20090340', '1333148478', None, None, None, None, None, '2552658') ('4252', None, None, None, None, None, None, None, '2552658') ('4252', '20090340', '1333148457', None, None, None, None, None, '2552658') ('4252', None, None, None, None, None, None, None, '2552658') ('4252', '20090340', '1333148447', None, None, None, None, None, '2552658') ('4252', None, None, None, None, None, None, None, '2552658') ('4252', '20090340', '1333148444', None, None, None, None, None, '2552658') ('4252', None, None, None, None, None, None, None, '2552658') ('4252', '20090340', '1333148414', None, None, None, None, None, '2552658') ('4252', None, None, None, None, None, None, None, '2552658') ('4252', '20090340', '1333148408', None, None, None, None, None, '2552658') ('4252', None, None, None, None, None, None, None, '2552658') ('4252', '20090340', '1333148406', None, None, None, None, None, '2552658') ('4252', None, None, None, None, None, None, None, '2552658') ('4252', '20090340', '1333148405', None, None, None, None, None, '2552658') ('4252', None, None, None, None, None, None, None, '2552658') ('4252', '20090340', '1333148403', None, None, None, None, None, '2552658') ('4252', None, None, None, None, None, None, None, '2552658') ('4252', '20090340', '1333043731', None, None, None, None, None, '2552658') ('4252', None, None, None, None, None, None, None, '2552658') ('4252', '20090340', '1333043727', None, None, None, None, None, '2552658') ('4252', None, None, None, None, None, None, None, '2552658') ('4252', '20090340', '1333043719', None, None, None, None, None, '2552658') ('4252', None, None, None, None, None, None, None, '2552658') ('4252', '20090340', '1333043714', None, None, None, None, None, '2552658') ('4252', None, None, None, None, None, None, None, '2552658') ('4252', '20090340', '1333043706', None, None, None, None, None, '2552658') ('4252', None, None, None, None, None, None, None, '2552658') ('4252', '20090340', '1333043699', None, None, None, None, None, '2552658') ('4252', None, None, None, None, None, None, None, '2552658') ('4252', '20090340', '1333043640', None, None, None, None, None, '2552658') ('4252', None, None, None, None, None, None, None, '2552658') ('4252', '20090340', '1333043638', None, None, None, None, None, '2552658') ('4252', None, None, None, None, None, None, None, '2552658') ('4252', '20090340', '1333043634', None, None, None, None, None, '2552658') ('4252', None, None, None, None, None, None, None, '2552658') ('4252', '20090340', '1333043628', None, None, None, None, None, '2552658') ('4252', None, None, None, None, None, None, None, '2552658') ('4252', '20090340', '1333043623', None, None, None, None, None, '2552658') ('4252', None, None, None, None, None, None, None, '2552658') ('4252', '20090340', '1333043618', None, None, None, None, None, '2552658') ('4252', None, None, None, None, None, None, None, '2552658') ('4252', '20090340', '1333043566', None, None, None, None, None, '2552658') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 67 time used for this insertion : 0.01495218276977539 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.03399252891540527 time spend to save output : 0.015999317169189453 total time spend for step 5 : 0.04999184608459473 step6:blur_detection Wed Feb 5 17:13:45 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 Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure inside step blur_detection toutes les photos sont déjà traitées, on saute les calculs Inside saveOutput : final : False verbose : 0 begin to insert list_values into class_photo_scores : length of list_valuse in save_photo_hashtag_id_thcl_score : 23 time used for this insertion : 0.010510444641113281 begin to insert list_values into photo_hahstag_ids : length of list_valuse in save_photo_hashtag_id_type : 23 time used for this insertion : 0.013950347900390625 save missing photos in datou_result : time spend for datou_step_exec : 0.024911880493164062 time spend to save output : 0.02891087532043457 total time spend for step 6 : 0.05382275581359863 step7:brightness Wed Feb 5 17:13:45 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 Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure inside step calcul brightness toutes les photos sont déjà traitées, on saute les calculs Inside saveOutput : final : False verbose : 0 begin to insert list_values into class_photo_scores : length of list_valuse in save_photo_hashtag_id_thcl_score : 23 time used for this insertion : 0.010840654373168945 begin to insert list_values into photo_hahstag_ids : length of list_valuse in save_photo_hashtag_id_type : 23 time used for this insertion : 0.008800983428955078 save missing photos in datou_result : time spend for datou_step_exec : 0.025835752487182617 time spend to save output : 0.024137020111083984 total time spend for step 7 : 0.0499727725982666 step8:send_mail_cod Wed Feb 5 17:13:45 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 Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 complete output_args for input 1 Inconsistent number of input and output, step which parrallelize and manage error in input by avoiding sending an output for this data can't be used in tree dependencies of input and output complete output_args for input 2 Inconsistent number of input and output, step which parrallelize and manage error in input by avoiding sending an output for this data can't be used in tree dependencies of input and output complete output_args for input 3 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure dans la step send mail cod work_area: /home/admin in order to get the selector url, please entre the license of selector results_COD_P20090340_05-02-2025_17_13_45.pdf 20266377 change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .imagette202663771738772025 20266378 change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .imagette202663781738772027 20266379 change filename to text .imagette202663791738772029 20266381 change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .imagette202663811738772029 20266382 change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .imagette202663821738772031 20266383 imagette202663831738772033 20266384 imagette202663841738772033 20266385 change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .imagette202663851738772033 20266387 change filename to text .imagette202663871738772036 20266388 change filename to text .change filename to text .change filename to text .imagette202663881738772036 20266389 imagette202663891738772036 20266390 change filename to text .imagette202663901738772036 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20090340 and hashtag_type = 4211 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20266377,20266378,20266379,20266380,20266381,20266382,20266383,20266384,20266385,20266386,20266387,20266388,20266389,20266390,20266391,20266392?tags=barquette_opaque,carton,ela,environnement,etiquette,film_plastique,kraft,metal,papier,pehd,pet_clair,pet_opaque,textiles_sanitaires,pet_fonce,mal_croppe,flou your option no_mail is active, we will not send the real mail to your client args[1333148481] : ((1333148481, -3.895907218225592, 492609224), (1333148481, -0.09316872922288895, 496442774), '0.6528122283707282') We are sending mail with results at kexin@fotonower.com args[1333148478] : ((1333148478, -3.366218830653394, 492609224), (1333148478, 0.057938393990709124, 2107752395), '0.6528122283707282') We are sending mail with results at kexin@fotonower.com args[1333148457] : ((1333148457, -4.157985942095417, 492609224), (1333148457, -0.2656546997199374, 496442774), '0.6528122283707282') We are sending mail with results at kexin@fotonower.com args[1333148447] : ((1333148447, -5.712495534043592, 492609224), (1333148447, -0.1590986208810806, 496442774), '0.6528122283707282') We are sending mail with results at kexin@fotonower.com args[1333148444] : ((1333148444, -5.633765330797125, 492609224), (1333148444, -0.08814351679781603, 496442774), '0.6528122283707282') We are sending mail with results at kexin@fotonower.com args[1333148414] : ((1333148414, -5.118790660952238, 492609224), (1333148414, 0.04833927269339006, 2107752395), '0.6528122283707282') We are sending mail with results at kexin@fotonower.com args[1333148408] : ((1333148408, -5.196623267660994, 492609224), (1333148408, -0.08469562154482155, 496442774), '0.6528122283707282') We are sending mail with results at kexin@fotonower.com args[1333148406] : ((1333148406, -5.3895834225368855, 492609224), (1333148406, -0.004657047605513681, 2107752395), '0.6528122283707282') We are sending mail with results at kexin@fotonower.com args[1333148405] : ((1333148405, -5.192848891570373, 492609224), (1333148405, -0.05943125136813285, 2107752395), '0.6528122283707282') We are sending mail with results at kexin@fotonower.com args[1333148403] : ((1333148403, -4.231870876492287, 492609224), (1333148403, -0.005989641683887119, 2107752395), '0.6528122283707282') We are sending mail with results at kexin@fotonower.com args[1333043731] : ((1333043731, -5.160254298519475, 492609224), (1333043731, -0.06938150212416717, 2107752395), '0.6528122283707282') We are sending mail with results at kexin@fotonower.com args[1333043727] : ((1333043727, -5.57875111287071, 492609224), (1333043727, -0.06166987169787112, 2107752395), '0.6528122283707282') We are sending mail with results at kexin@fotonower.com args[1333043719] : ((1333043719, -5.6183639810111075, 492609224), (1333043719, -0.01468804579603047, 2107752395), '0.6528122283707282') We are sending mail with results at kexin@fotonower.com args[1333043714] : ((1333043714, -5.05099078449129, 492609224), (1333043714, -0.09036976653218187, 496442774), '0.6528122283707282') We are sending mail with results at kexin@fotonower.com args[1333043706] : ((1333043706, -4.2272496894518605, 492609224), (1333043706, -0.02894319002488411, 2107752395), '0.6528122283707282') We are sending mail with results at kexin@fotonower.com args[1333043699] : ((1333043699, -5.3205926705959055, 492609224), (1333043699, -0.08266821303145576, 496442774), '0.6528122283707282') We are sending mail with results at kexin@fotonower.com args[1333043640] : ((1333043640, -4.6435280930726135, 492609224), (1333043640, -0.07899469664771538, 496442774), '0.6528122283707282') We are sending mail with results at kexin@fotonower.com args[1333043638] : ((1333043638, -4.742552142868772, 492609224), (1333043638, -0.11795624547773323, 496442774), '0.6528122283707282') We are sending mail with results at kexin@fotonower.com args[1333043634] : ((1333043634, -4.5876123909155275, 492609224), (1333043634, -0.05769090808929806, 2107752395), '0.6528122283707282') We are sending mail with results at kexin@fotonower.com args[1333043628] : ((1333043628, -5.62182967964596, 492609224), (1333043628, -0.007561054008653862, 2107752395), '0.6528122283707282') We are sending mail with results at kexin@fotonower.com args[1333043623] : ((1333043623, -5.3592668638474095, 492609224), (1333043623, 0.03600457114730568, 2107752395), '0.6528122283707282') We are sending mail with results at kexin@fotonower.com args[1333043618] : ((1333043618, -5.7158860256654, 492609224), (1333043618, -0.12629940534365294, 496442774), '0.6528122283707282') We are sending mail with results at kexin@fotonower.com args[1333043566] : ((1333043566, -2.3433949044412588, 492609224), (1333043566, 0.6405598445877171, 2107752395)) We are sending mail with results at kexin@fotonower.com refus_total : (1333043566, -2.3433949044412588, 492609224) ERROR in datou_step_exec, will save and exit ! float() argument must be a string or a number, not 'tuple' File "/home/admin/workarea/git/Velours/python/mtr/datou/datou_lib.py", line 2329, in datou_exec output = datou_step_exec(sNext, args, cache, context, map_info, verbose, mtr_user_id) File "/home/admin/workarea/git/Velours/python/mtr/datou/datou_lib.py", line 2646, in datou_step_exec return send_or_copy.datou_step_exec_send_mail_cod(param, json_param, args, context, map_info, verbose) File "/home/admin/workarea/git/Velours/python/mtr/datou/lib_step_exec/lib_step_send_or_copy.py", line 782, in datou_step_exec_send_mail_cod refus_total,list_results_prediagnostique_in_mail = cod.send_mail_to_client(context, args, portfolio_id, list_photo_id, sujet, dest_mail, File "/home/admin/workarea/git/Velours/python/prod/cod/main_cod.py", line 186, in send_mail_to_client message_in_mail += "
Dans ces conditions,le taux de refus est: {:.2%}
".format(float(refus_total)) [1333148481, 1333148478, 1333148457, 1333148447, 1333148444, 1333148414, 1333148408, 1333148406, 1333148405, 1333148403, 1333043731, 1333043727, 1333043719, 1333043714, 1333043706, 1333043699, 1333043640, 1333043638, 1333043634, 1333043628, 1333043623, 1333043618, 1333043566] begin to insert list_values into mtr_datou_result : length of list_values in save_final : 23 time used for this insertion : 0.017415523529052734 save_final ERROR in last step send_mail_cod, float() argument must be a string or a number, not 'tuple' time spend for datou_step_exec : 11.392866611480713 time spend to save output : 0.02184152603149414 total time spend for step 7 : 11.414708137512207 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 3.07user 1.07system 0:31.26elapsed 13%CPU (0avgtext+0avgdata 185328maxresident)k 512inputs+79400outputs (11major+94531minor)pagefaults 0swaps