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 : 257590 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 : ['2552718'] with mtr_portfolio_ids : ['20090340'] and first list_photo_ids : [] new path : /proc/257590/ 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 : 5.3018882274627686 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:21: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 Begin step datou_step_copy_crop batch 1 Loaded 40 chid ids of type : 4211 batch 1 Loaded 547 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 : 16 /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 . /1333043719Didn't retrieve data . /1333043727Didn't retrieve data . /1333043731Didn't retrieve data . /1333148405Didn't retrieve data . /1333148406Didn't retrieve data . /1333148408Didn't retrieve data . /1333148414Didn't retrieve data . /1333148444Didn't retrieve data . /1333148478Didn'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, '2552718') ('4252', '20090340', '1333148481', None, None, None, None, None, '2552718') ('4252', None, None, None, None, None, None, None, '2552718') ('4252', '20090340', '1333148478', None, None, None, None, None, '2552718') ('4252', None, None, None, None, None, None, None, '2552718') ('4252', '20090340', '1333148457', None, None, None, None, None, '2552718') ('4252', None, None, None, None, None, None, None, '2552718') ('4252', '20090340', '1333148447', None, None, None, None, None, '2552718') ('4252', None, None, None, None, None, None, None, '2552718') ('4252', '20090340', '1333148444', None, None, None, None, None, '2552718') ('4252', None, None, None, None, None, None, None, '2552718') ('4252', '20090340', '1333148414', None, None, None, None, None, '2552718') ('4252', None, None, None, None, None, None, None, '2552718') ('4252', '20090340', '1333148408', None, None, None, None, None, '2552718') ('4252', None, None, None, None, None, None, None, '2552718') ('4252', '20090340', '1333148406', None, None, None, None, None, '2552718') ('4252', None, None, None, None, None, None, None, '2552718') ('4252', '20090340', '1333148405', None, None, None, None, None, '2552718') ('4252', None, None, None, None, None, None, None, '2552718') ('4252', '20090340', '1333148403', None, None, None, None, None, '2552718') ('4252', None, None, None, None, None, None, None, '2552718') ('4252', '20090340', '1333043731', None, None, None, None, None, '2552718') ('4252', None, None, None, None, None, None, None, '2552718') ('4252', '20090340', '1333043727', None, None, None, None, None, '2552718') ('4252', None, None, None, None, None, None, None, '2552718') ('4252', '20090340', '1333043719', None, None, None, None, None, '2552718') ('4252', None, None, None, None, None, None, None, '2552718') ('4252', '20090340', '1333043714', None, None, None, None, None, '2552718') ('4252', None, None, None, None, None, None, None, '2552718') ('4252', '20090340', '1333043706', None, None, None, None, None, '2552718') ('4252', None, None, None, None, None, None, None, '2552718') ('4252', '20090340', '1333043699', None, None, None, None, None, '2552718') ('4252', None, None, None, None, None, None, None, '2552718') ('4252', '20090340', '1333043640', None, None, None, None, None, '2552718') ('4252', None, None, None, None, None, None, None, '2552718') ('4252', '20090340', '1333043638', None, None, None, None, None, '2552718') ('4252', None, None, None, None, None, None, None, '2552718') ('4252', '20090340', '1333043634', None, None, None, None, None, '2552718') ('4252', None, None, None, None, None, None, None, '2552718') ('4252', '20090340', '1333043628', None, None, None, None, None, '2552718') ('4252', None, None, None, None, None, None, None, '2552718') ('4252', '20090340', '1333043623', None, None, None, None, None, '2552718') ('4252', None, None, None, None, None, None, None, '2552718') ('4252', '20090340', '1333043618', None, None, None, None, None, '2552718') ('4252', None, None, None, None, None, None, None, '2552718') ('4252', '20090340', '1333043566', None, None, None, None, None, '2552718') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 39 time used for this insertion : 0.016904592514038086 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.08248376846313477 time spend to save output : 0.017368793487548828 total time spend for step 1 : 0.0998525619506836 step2:consolidate_hashtags_from_manual_portfolio Wed Feb 5 17:21: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 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=20266383 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=20266386 AND mpp.hide_status=0 ORDER BY ph.size desc batch 1 Loaded 474 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=20266384 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=20266391 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=20266389 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=20266379 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=20266380 AND mpp.hide_status=0 ORDER BY ph.size desc batch 1 Loaded 43 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=20266388 AND mpp.hide_status=0 ORDER BY ph.size desc batch 1 Loaded 117 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 : 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=20266381 AND mpp.hide_status=0 ORDER BY ph.size desc batch 1 Loaded 416 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 : 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=20266385 AND mpp.hide_status=0 ORDER BY ph.size desc batch 1 Loaded 444 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 : 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=20266392 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=20266390 AND mpp.hide_status=0 ORDER BY ph.size desc batch 1 Loaded 17 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=20266377 AND mpp.hide_status=0 ORDER BY ph.size desc batch 1 Loaded 540 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=20266382 AND mpp.hide_status=0 ORDER BY ph.size desc batch 1 Loaded 472 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 : 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=20266387 AND mpp.hide_status=0 ORDER BY ph.size desc batch 1 Loaded 43 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=20266378 AND mpp.hide_status=0 ORDER BY ph.size desc batch 1 Loaded 282 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 : 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.014101505279541016 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.8560447692871094 time spend to save output : 0.014312744140625 total time spend for step 2 : 3.8703575134277344 step3:rle_unique_nms_with_priority Wed Feb 5 17:21:48 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.028159141540527344 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.025731325149536133 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.028516530990600586 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.02861952781677246 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.03007674217224121 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.030188560485839844 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.030247211456298828 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.03340554237365723 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.028939008712768555 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.030007362365722656 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.030131816864013672 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.03034377098083496 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.029934406280517578 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.030468225479125977 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.028664588928222656 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.03351902961730957 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.030314922332763672 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.029968976974487305 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.02880549430847168 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.030533313751220703 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.03098440170288086 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.02810192108154297 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, '2552718') ('4252', '20090340', '1333148481', None, None, None, None, None, '2552718') ('4252', None, None, None, None, None, None, None, '2552718') ('4252', '20090340', '1333148478', None, None, None, None, None, '2552718') ('4252', None, None, None, None, None, None, None, '2552718') ('4252', '20090340', '1333148457', None, None, None, None, None, '2552718') ('4252', None, None, None, None, None, None, None, '2552718') ('4252', '20090340', '1333148447', None, None, None, None, None, '2552718') ('4252', None, None, None, None, None, None, None, '2552718') ('4252', '20090340', '1333148444', None, None, None, None, None, '2552718') ('4252', None, None, None, None, None, None, None, '2552718') ('4252', '20090340', '1333148414', None, None, None, None, None, '2552718') ('4252', None, None, None, None, None, None, None, '2552718') ('4252', '20090340', '1333148408', None, None, None, None, None, '2552718') ('4252', None, None, None, None, None, None, None, '2552718') ('4252', '20090340', '1333148406', None, None, None, None, None, '2552718') ('4252', None, None, None, None, None, None, None, '2552718') ('4252', '20090340', '1333148405', None, None, None, None, None, '2552718') ('4252', None, None, None, None, None, None, None, '2552718') ('4252', '20090340', '1333148403', None, None, None, None, None, '2552718') ('4252', None, None, None, None, None, None, None, '2552718') ('4252', '20090340', '1333043731', None, None, None, None, None, '2552718') ('4252', None, None, None, None, None, None, None, '2552718') ('4252', '20090340', '1333043727', None, None, None, None, None, '2552718') ('4252', None, None, None, None, None, None, None, '2552718') ('4252', '20090340', '1333043719', None, None, None, None, None, '2552718') ('4252', None, None, None, None, None, None, None, '2552718') ('4252', '20090340', '1333043714', None, None, None, None, None, '2552718') ('4252', None, None, None, None, None, None, None, '2552718') ('4252', '20090340', '1333043706', None, None, None, None, None, '2552718') ('4252', None, None, None, None, None, None, None, '2552718') ('4252', '20090340', '1333043699', None, None, None, None, None, '2552718') ('4252', None, None, None, None, None, None, None, '2552718') ('4252', '20090340', '1333043640', None, None, None, None, None, '2552718') ('4252', None, None, None, None, None, None, None, '2552718') ('4252', '20090340', '1333043638', None, None, None, None, None, '2552718') ('4252', None, None, None, None, None, None, None, '2552718') ('4252', '20090340', '1333043634', None, None, None, None, None, '2552718') ('4252', None, None, None, None, None, None, None, '2552718') ('4252', '20090340', '1333043628', None, None, None, None, None, '2552718') ('4252', None, None, None, None, None, None, None, '2552718') ('4252', '20090340', '1333043623', None, None, None, None, None, '2552718') ('4252', None, None, None, None, None, None, None, '2552718') ('4252', '20090340', '1333043618', None, None, None, None, None, '2552718') ('4252', None, None, None, None, None, None, None, '2552718') ('4252', '20090340', '1333043566', None, None, None, None, None, '2552718') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 67 time used for this insertion : 0.01603841781616211 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.4283175468444824 time spend to save output : 0.016721487045288086 total time spend for step 3 : 2.4450390338897705 step4:ventilate_hashtags_in_portfolio Wed Feb 5 17:21:50 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 ! 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, '2552718') ('4252', '20090340', '1333148481', None, None, None, None, None, '2552718') ('4252', None, None, None, None, None, None, None, '2552718') ('4252', '20090340', '1333148478', None, None, None, None, None, '2552718') ('4252', None, None, None, None, None, None, None, '2552718') ('4252', '20090340', '1333148457', None, None, None, None, None, '2552718') ('4252', None, None, None, None, None, None, None, '2552718') ('4252', '20090340', '1333148447', None, None, None, None, None, '2552718') ('4252', None, None, None, None, None, None, None, '2552718') ('4252', '20090340', '1333148444', None, None, None, None, None, '2552718') ('4252', None, None, None, None, None, None, None, '2552718') ('4252', '20090340', '1333148414', None, None, None, None, None, '2552718') ('4252', None, None, None, None, None, None, None, '2552718') ('4252', '20090340', '1333148408', None, None, None, None, None, '2552718') ('4252', None, None, None, None, None, None, None, '2552718') ('4252', '20090340', '1333148406', None, None, None, None, None, '2552718') ('4252', None, None, None, None, None, None, None, '2552718') ('4252', '20090340', '1333148405', None, None, None, None, None, '2552718') ('4252', None, None, None, None, None, None, None, '2552718') ('4252', '20090340', '1333148403', None, None, None, None, None, '2552718') ('4252', None, None, None, None, None, None, None, '2552718') ('4252', '20090340', '1333043731', None, None, None, None, None, '2552718') ('4252', None, None, None, None, None, None, None, '2552718') ('4252', '20090340', '1333043727', None, None, None, None, None, '2552718') ('4252', None, None, None, None, None, None, None, '2552718') ('4252', '20090340', '1333043719', None, None, None, None, None, '2552718') ('4252', None, None, None, None, None, None, None, '2552718') ('4252', '20090340', '1333043714', None, None, None, None, None, '2552718') ('4252', None, None, None, None, None, None, None, '2552718') ('4252', '20090340', '1333043706', None, None, None, None, None, '2552718') ('4252', None, None, None, None, None, None, None, '2552718') ('4252', '20090340', '1333043699', None, None, None, None, None, '2552718') ('4252', None, None, None, None, None, None, None, '2552718') ('4252', '20090340', '1333043640', None, None, None, None, None, '2552718') ('4252', None, None, None, None, None, None, None, '2552718') ('4252', '20090340', '1333043638', None, None, None, None, None, '2552718') ('4252', None, None, None, None, None, None, None, '2552718') ('4252', '20090340', '1333043634', None, None, None, None, None, '2552718') ('4252', None, None, None, None, None, None, None, '2552718') ('4252', '20090340', '1333043628', None, None, None, None, None, '2552718') ('4252', None, None, None, None, None, None, None, '2552718') ('4252', '20090340', '1333043623', None, None, None, None, None, '2552718') ('4252', None, None, None, None, None, None, None, '2552718') ('4252', '20090340', '1333043618', None, None, None, None, None, '2552718') ('4252', None, None, None, None, None, None, None, '2552718') ('4252', '20090340', '1333043566', None, None, None, None, None, '2552718') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 24 time used for this insertion : 0.02014327049255371 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3545958995819092 time spend to save output : 0.020449161529541016 total time spend for step 4 : 0.3750450611114502 step5:final Wed Feb 5 17:21:51 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, '2552718') ('4252', '20090340', '1333148481', None, None, None, None, None, '2552718') ('4252', None, None, None, None, None, None, None, '2552718') ('4252', '20090340', '1333148478', None, None, None, None, None, '2552718') ('4252', None, None, None, None, None, None, None, '2552718') ('4252', '20090340', '1333148457', None, None, None, None, None, '2552718') ('4252', None, None, None, None, None, None, None, '2552718') ('4252', '20090340', '1333148447', None, None, None, None, None, '2552718') ('4252', None, None, None, None, None, None, None, '2552718') ('4252', '20090340', '1333148444', None, None, None, None, None, '2552718') ('4252', None, None, None, None, None, None, None, '2552718') ('4252', '20090340', '1333148414', None, None, None, None, None, '2552718') ('4252', None, None, None, None, None, None, None, '2552718') ('4252', '20090340', '1333148408', None, None, None, None, None, '2552718') ('4252', None, None, None, None, None, None, None, '2552718') ('4252', '20090340', '1333148406', None, None, None, None, None, '2552718') ('4252', None, None, None, None, None, None, None, '2552718') ('4252', '20090340', '1333148405', None, None, None, None, None, '2552718') ('4252', None, None, None, None, None, None, None, '2552718') ('4252', '20090340', '1333148403', None, None, None, None, None, '2552718') ('4252', None, None, None, None, None, None, None, '2552718') ('4252', '20090340', '1333043731', None, None, None, None, None, '2552718') ('4252', None, None, None, None, None, None, None, '2552718') ('4252', '20090340', '1333043727', None, None, None, None, None, '2552718') ('4252', None, None, None, None, None, None, None, '2552718') ('4252', '20090340', '1333043719', None, None, None, None, None, '2552718') ('4252', None, None, None, None, None, None, None, '2552718') ('4252', '20090340', '1333043714', None, None, None, None, None, '2552718') ('4252', None, None, None, None, None, None, None, '2552718') ('4252', '20090340', '1333043706', None, None, None, None, None, '2552718') ('4252', None, None, None, None, None, None, None, '2552718') ('4252', '20090340', '1333043699', None, None, None, None, None, '2552718') ('4252', None, None, None, None, None, None, None, '2552718') ('4252', '20090340', '1333043640', None, None, None, None, None, '2552718') ('4252', None, None, None, None, None, None, None, '2552718') ('4252', '20090340', '1333043638', None, None, None, None, None, '2552718') ('4252', None, None, None, None, None, None, None, '2552718') ('4252', '20090340', '1333043634', None, None, None, None, None, '2552718') ('4252', None, None, None, None, None, None, None, '2552718') ('4252', '20090340', '1333043628', None, None, None, None, None, '2552718') ('4252', None, None, None, None, None, None, None, '2552718') ('4252', '20090340', '1333043623', None, None, None, None, None, '2552718') ('4252', None, None, None, None, None, None, None, '2552718') ('4252', '20090340', '1333043618', None, None, None, None, None, '2552718') ('4252', None, None, None, None, None, None, None, '2552718') ('4252', '20090340', '1333043566', None, None, None, None, None, '2552718') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 67 time used for this insertion : 0.0190126895904541 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.02584671974182129 time spend to save output : 0.01969146728515625 total time spend for step 5 : 0.04553818702697754 step6:blur_detection Wed Feb 5 17:21:51 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.010990381240844727 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.010912656784057617 save missing photos in datou_result : time spend for datou_step_exec : 0.021933555603027344 time spend to save output : 0.026213645935058594 total time spend for step 6 : 0.04814720153808594 step7:brightness Wed Feb 5 17:21:51 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.009786367416381836 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.009022951126098633 save missing photos in datou_result : time spend for datou_step_exec : 0.025674819946289062 time spend to save output : 0.02325272560119629 total time spend for step 7 : 0.04892754554748535 step8:send_mail_cod Wed Feb 5 17:21:51 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_21_51.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 .imagette202663771738772511 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 .imagette202663781738772513 20266379 change filename to text .imagette202663791738772514 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 .imagette202663811738772514 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 .imagette202663821738772516 20266383 imagette202663831738772518 20266384 imagette202663841738772518 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 .imagette202663851738772518 20266387 change filename to text .imagette202663871738772520 20266388 change filename to text .change filename to text .change filename to text .imagette202663881738772520 20266389 imagette202663891738772521 20266390 change filename to text .imagette202663901738772521 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)) apple ((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 187, 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.0198972225189209 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 : 10.157611846923828 time spend to save output : 0.025840282440185547 total time spend for step 7 : 10.183452129364014 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.93user 1.42system 0:26.20elapsed 16%CPU (0avgtext+0avgdata 185568maxresident)k 312inputs+79432outputs (3major+83355minor)pagefaults 0swaps