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 4254 -P 20721212' -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 : 2366135 load datou : 4254 # 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 11635 copy_chis is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 11636 consolidate_hashtags_from_manual_portfolio is not consistent : 2 used against 1 in the step definition ! WARNING : number of inputs for step 11633 rle_unique_nms_with_priority is not consistent : 3 used against 1 in the step definition ! WARNING : number of outputs for step 11633 rle_unique_nms_with_priority is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 11640 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11634 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! Step 11637 blur_detection have less inputs used (0) than in the step definition (1) : maybe we manage optionnal inputs ! Step 11638 brightness have less inputs used (0) than in the step definition (1) : maybe we manage optionnal inputs ! Step 11639 send_mail_cod have less inputs used (4) than in the step definition (5) : maybe we manage optionnal inputs ! Step 11641 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 11635 have datatype=11 whereas input 0 of step 11633 have datatype=2 WARNING : type of output 1 of step 11636 doesn't seem to be define in the database( WARNING : type of input 3 of step 11634 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 11636 doesn't seem to be define in the database( WARNING : type of input 1 of step 11633 doesn't seem to be define in the database( WARNING : output 0 of step 11640 have datatype=10 whereas input 3 of step 11639 have datatype=6 WARNING : type of input 1 of step 11640 doesn't seem to be define in the database( WARNING : output 1 of step 11633 have datatype=7 whereas input 1 of step 11640 have datatype=None WARNING : type of output 1 of step 11640 doesn't seem to be define in the database( WARNING : type of input 4 of step 11634 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : type of output 1 of step 11635 doesn't seem to be define in the database( WARNING : type of input 1 of step 11636 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 : 4254, datou_cur_ids : ['2604204'] with mtr_portfolio_ids : ['20721212'] and first list_photo_ids : [] new path : /proc/2366135/ 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 11635 copy_chis is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 11636 consolidate_hashtags_from_manual_portfolio is not consistent : 2 used against 1 in the step definition ! WARNING : number of inputs for step 11633 rle_unique_nms_with_priority is not consistent : 3 used against 1 in the step definition ! WARNING : number of outputs for step 11633 rle_unique_nms_with_priority is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 11640 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11634 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! Step 11637 blur_detection have less inputs used (0) than in the step definition (1) : maybe we manage optionnal inputs ! Step 11638 brightness have less inputs used (0) than in the step definition (1) : maybe we manage optionnal inputs ! Step 11639 send_mail_cod have less inputs used (4) than in the step definition (5) : maybe we manage optionnal inputs ! Step 11641 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 11635 have datatype=11 whereas input 0 of step 11633 have datatype=2 WARNING : type of output 1 of step 11636 doesn't seem to be define in the database( WARNING : type of input 3 of step 11634 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 11636 doesn't seem to be define in the database( WARNING : type of input 1 of step 11633 doesn't seem to be define in the database( WARNING : output 0 of step 11640 have datatype=10 whereas input 3 of step 11639 have datatype=6 WARNING : type of input 1 of step 11640 doesn't seem to be define in the database( WARNING : output 1 of step 11633 have datatype=7 whereas input 1 of step 11640 have datatype=None WARNING : type of output 1 of step 11640 doesn't seem to be define in the database( WARNING : type of input 4 of step 11634 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : type of output 1 of step 11635 doesn't seem to be define in the database( WARNING : type of input 1 of step 11636 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 , BFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFwe have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB length of list_filenames : 20 ; length of list_pids : 20 ; length of list_args : 20 time to download the photos : 4.4049859046936035 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 Fri Feb 21 11:09: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 Begin step datou_step_copy_crop batch 1 Loaded 11 chid ids of type : 4200 batch 1 Loaded 80 chid ids of type : 4200 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 [1338774411, 1338774409, 1338774390, 1338774387, 1338774386, 1338774383, 1338774378, 1338774369, 1338774361, 1338774358, 1338774354, 1338774351, 1338774348, 1338774346, 1338774308, 1338774304, 1338774252, 1338774247, 1338774244, 1338774152] Looping around the photos to save general results len do output : 10 /1338774358Didn't retrieve data . /1338774361Didn't retrieve data . /1338774369Didn't retrieve data . /1338774378Didn't retrieve data . /1338774383Didn't retrieve data . /1338774386Didn't retrieve data . /1338774387Didn't retrieve data . /1338774390Didn't retrieve data . /1338774409Didn't retrieve data . /1338774411Didn'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 ('4254', None, None, None, None, None, None, None, '2604204') ('4254', '20721212', '1338774411', None, None, None, None, None, '2604204') ('4254', None, None, None, None, None, None, None, '2604204') ('4254', '20721212', '1338774409', None, None, None, None, None, '2604204') ('4254', None, None, None, None, None, None, None, '2604204') ('4254', '20721212', '1338774390', None, None, None, None, None, '2604204') ('4254', None, None, None, None, None, None, None, '2604204') ('4254', '20721212', '1338774387', None, None, None, None, None, '2604204') ('4254', None, None, None, None, None, None, None, '2604204') ('4254', '20721212', '1338774386', None, None, None, None, None, '2604204') ('4254', None, None, None, None, None, None, None, '2604204') ('4254', '20721212', '1338774383', None, None, None, None, None, '2604204') ('4254', None, None, None, None, None, None, None, '2604204') ('4254', '20721212', '1338774378', None, None, None, None, None, '2604204') ('4254', None, None, None, None, None, None, None, '2604204') ('4254', '20721212', '1338774369', None, None, None, None, None, '2604204') ('4254', None, None, None, None, None, None, None, '2604204') ('4254', '20721212', '1338774361', None, None, None, None, None, '2604204') ('4254', None, None, None, None, None, None, None, '2604204') ('4254', '20721212', '1338774358', None, None, None, None, None, '2604204') ('4254', None, None, None, None, None, None, None, '2604204') ('4254', '20721212', '1338774354', None, None, None, None, None, '2604204') ('4254', None, None, None, None, None, None, None, '2604204') ('4254', '20721212', '1338774351', None, None, None, None, None, '2604204') ('4254', None, None, None, None, None, None, None, '2604204') ('4254', '20721212', '1338774348', None, None, None, None, None, '2604204') ('4254', None, None, None, None, None, None, None, '2604204') ('4254', '20721212', '1338774346', None, None, None, None, None, '2604204') ('4254', None, None, None, None, None, None, None, '2604204') ('4254', '20721212', '1338774308', None, None, None, None, None, '2604204') ('4254', None, None, None, None, None, None, None, '2604204') ('4254', '20721212', '1338774304', None, None, None, None, None, '2604204') ('4254', None, None, None, None, None, None, None, '2604204') ('4254', '20721212', '1338774252', None, None, None, None, None, '2604204') ('4254', None, None, None, None, None, None, None, '2604204') ('4254', '20721212', '1338774247', None, None, None, None, None, '2604204') ('4254', None, None, None, None, None, None, None, '2604204') ('4254', '20721212', '1338774244', None, None, None, None, None, '2604204') ('4254', None, None, None, None, None, None, None, '2604204') ('4254', '20721212', '1338774152', None, None, None, None, None, '2604204') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 time used for this insertion : 0.027913808822631836 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06878089904785156 time spend to save output : 0.028395652770996094 total time spend for step 1 : 0.09717655181884766 step2:consolidate_hashtags_from_manual_portfolio Fri Feb 21 11:09: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 consolidate_hashtags_from_manual_portfolio Iterating over portfolio : 20721212 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`=20721212 AND mptpi.`type`=4200 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','background')) 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`=20721212 AND mptpi.`type`=4200 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','background')) 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`=20721212 AND mptpi.`type`=4200 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','background')) 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=20721637 AND mpp.hide_status=0 ORDER BY ph.size desc batch 1 Loaded 59 chid ids of type : 4200 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=20721638 AND mpp.hide_status=0 ORDER BY ph.size desc batch 1 Loaded 10 chid ids of type : 4200 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=20721639 AND mpp.hide_status=0 ORDER BY ph.size desc batch 1 Loaded 22 chid ids of type : 4200 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=20721640 AND mpp.hide_status=0 ORDER BY ph.size desc batch 1 Loaded 6 chid ids of type : 4200 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=20721641 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=20721642 AND mpp.hide_status=0 ORDER BY ph.size desc batch 1 Loaded 55 chid ids of type : 4200 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=20721643 AND mpp.hide_status=0 ORDER BY ph.size desc batch 1 Loaded 57 chid ids of type : 4200 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=20721644 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=20721645 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=20721646 AND mpp.hide_status=0 ORDER BY ph.size desc batch 1 Loaded 11 chid ids of type : 4200 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=20721647 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=20721648 AND mpp.hide_status=0 ORDER BY ph.size desc batch 1 Loaded 17 chid ids of type : 4200 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=20721649 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=20721650 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=20721651 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=20721652 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=20721983 AND mpp.hide_status=0 ORDER BY ph.size desc 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 [1338774411, 1338774409, 1338774390, 1338774387, 1338774386, 1338774383, 1338774378, 1338774369, 1338774361, 1338774358, 1338774354, 1338774351, 1338774348, 1338774346, 1338774308, 1338774304, 1338774252, 1338774247, 1338774244, 1338774152] 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 : 20 time used for this insertion : 0.02955150604248047 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.61871337890625 time spend to save output : 0.029749393463134766 total time spend for step 2 : 1.6484627723693848 step3:rle_unique_nms_with_priority Fri Feb 21 11:09:52 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 VR 22-3-18 : For now we do not clean correctly the datou structure Begin step rle-unique-nms batch 1 Loaded 70 chid ids of type : 4200 seulement à utiliser dans la step consolidation batch 1 Loaded 10 chid ids of type : 4200 Number RLEs to save : 0 TO DO : save crop sub photo not yet done ! save time : 0.027130603790283203 seulement à utiliser dans la step consolidation batch 1 Loaded 6 chid ids of type : 4200 Number RLEs to save : 0 TO DO : save crop sub photo not yet done ! save time : 0.025524139404296875 seulement à utiliser dans la step consolidation batch 1 Loaded 7 chid ids of type : 4200 Number RLEs to save : 0 TO DO : save crop sub photo not yet done ! save time : 0.025771141052246094 seulement à utiliser dans la step consolidation batch 1 Loaded 4 chid ids of type : 4200 Number RLEs to save : 0 TO DO : save crop sub photo not yet done ! save time : 0.030900955200195312 seulement à utiliser dans la step consolidation batch 1 Loaded 13 chid ids of type : 4200 Number RLEs to save : 0 TO DO : save crop sub photo not yet done ! save time : 0.027634620666503906 seulement à utiliser dans la step consolidation batch 1 Loaded 11 chid ids of type : 4200 Number RLEs to save : 0 TO DO : save crop sub photo not yet done ! save time : 0.028427839279174805 seulement à utiliser dans la step consolidation batch 1 Loaded 6 chid ids of type : 4200 Number RLEs to save : 0 TO DO : save crop sub photo not yet done ! save time : 0.029239654541015625 seulement à utiliser dans la step consolidation batch 1 Loaded 8 chid ids of type : 4200 Number RLEs to save : 0 TO DO : save crop sub photo not yet done ! save time : 0.02864861488342285 seulement à utiliser dans la step consolidation batch 1 Loaded 9 chid ids of type : 4200 Number RLEs to save : 0 TO DO : save crop sub photo not yet done ! save time : 0.025406599044799805 seulement à utiliser dans la step consolidation batch 1 Loaded 6 chid ids of type : 4200 Number RLEs to save : 0 TO DO : save crop sub photo not yet done ! save time : 0.026211977005004883 No data in photo_id : 1338774354 No data in photo_id : 1338774351 No data in photo_id : 1338774348 No data in photo_id : 1338774346 No data in photo_id : 1338774308 No data in photo_id : 1338774304 No data in photo_id : 1338774252 No data in photo_id : 1338774247 No data in photo_id : 1338774244 No data in photo_id : 1338774152 Missing data for photo_id : 1338774354 in {1338774411: 0, 1338774409: 0, 1338774390: 0, 1338774387: 0, 1338774386: 0, 1338774383: 0, 1338774378: 0, 1338774369: 0, 1338774361: 0, 1338774358: 0} Missing data for photo_id : 1338774351 in {1338774411: 0, 1338774409: 0, 1338774390: 0, 1338774387: 0, 1338774386: 0, 1338774383: 0, 1338774378: 0, 1338774369: 0, 1338774361: 0, 1338774358: 0} Missing data for photo_id : 1338774348 in {1338774411: 0, 1338774409: 0, 1338774390: 0, 1338774387: 0, 1338774386: 0, 1338774383: 0, 1338774378: 0, 1338774369: 0, 1338774361: 0, 1338774358: 0} Missing data for photo_id : 1338774346 in {1338774411: 0, 1338774409: 0, 1338774390: 0, 1338774387: 0, 1338774386: 0, 1338774383: 0, 1338774378: 0, 1338774369: 0, 1338774361: 0, 1338774358: 0} Missing data for photo_id : 1338774308 in {1338774411: 0, 1338774409: 0, 1338774390: 0, 1338774387: 0, 1338774386: 0, 1338774383: 0, 1338774378: 0, 1338774369: 0, 1338774361: 0, 1338774358: 0} Missing data for photo_id : 1338774304 in {1338774411: 0, 1338774409: 0, 1338774390: 0, 1338774387: 0, 1338774386: 0, 1338774383: 0, 1338774378: 0, 1338774369: 0, 1338774361: 0, 1338774358: 0} Missing data for photo_id : 1338774252 in {1338774411: 0, 1338774409: 0, 1338774390: 0, 1338774387: 0, 1338774386: 0, 1338774383: 0, 1338774378: 0, 1338774369: 0, 1338774361: 0, 1338774358: 0} Missing data for photo_id : 1338774247 in {1338774411: 0, 1338774409: 0, 1338774390: 0, 1338774387: 0, 1338774386: 0, 1338774383: 0, 1338774378: 0, 1338774369: 0, 1338774361: 0, 1338774358: 0} Missing data for photo_id : 1338774244 in {1338774411: 0, 1338774409: 0, 1338774390: 0, 1338774387: 0, 1338774386: 0, 1338774383: 0, 1338774378: 0, 1338774369: 0, 1338774361: 0, 1338774358: 0} Missing data for photo_id : 1338774152 in {1338774411: 0, 1338774409: 0, 1338774390: 0, 1338774387: 0, 1338774386: 0, 1338774383: 0, 1338774378: 0, 1338774369: 0, 1338774361: 0, 1338774358: 0} Missing data for photo_id : 1338774354 in {1338774411: 0, 1338774409: 0, 1338774390: 0, 1338774387: 0, 1338774386: 0, 1338774383: 0, 1338774378: 0, 1338774369: 0, 1338774361: 0, 1338774358: 0} Missing data for photo_id : 1338774351 in {1338774411: 0, 1338774409: 0, 1338774390: 0, 1338774387: 0, 1338774386: 0, 1338774383: 0, 1338774378: 0, 1338774369: 0, 1338774361: 0, 1338774358: 0} Missing data for photo_id : 1338774348 in {1338774411: 0, 1338774409: 0, 1338774390: 0, 1338774387: 0, 1338774386: 0, 1338774383: 0, 1338774378: 0, 1338774369: 0, 1338774361: 0, 1338774358: 0} Missing data for photo_id : 1338774346 in {1338774411: 0, 1338774409: 0, 1338774390: 0, 1338774387: 0, 1338774386: 0, 1338774383: 0, 1338774378: 0, 1338774369: 0, 1338774361: 0, 1338774358: 0} Missing data for photo_id : 1338774308 in {1338774411: 0, 1338774409: 0, 1338774390: 0, 1338774387: 0, 1338774386: 0, 1338774383: 0, 1338774378: 0, 1338774369: 0, 1338774361: 0, 1338774358: 0} Missing data for photo_id : 1338774304 in {1338774411: 0, 1338774409: 0, 1338774390: 0, 1338774387: 0, 1338774386: 0, 1338774383: 0, 1338774378: 0, 1338774369: 0, 1338774361: 0, 1338774358: 0} Missing data for photo_id : 1338774252 in {1338774411: 0, 1338774409: 0, 1338774390: 0, 1338774387: 0, 1338774386: 0, 1338774383: 0, 1338774378: 0, 1338774369: 0, 1338774361: 0, 1338774358: 0} Missing data for photo_id : 1338774247 in {1338774411: 0, 1338774409: 0, 1338774390: 0, 1338774387: 0, 1338774386: 0, 1338774383: 0, 1338774378: 0, 1338774369: 0, 1338774361: 0, 1338774358: 0} Missing data for photo_id : 1338774244 in {1338774411: 0, 1338774409: 0, 1338774390: 0, 1338774387: 0, 1338774386: 0, 1338774383: 0, 1338774378: 0, 1338774369: 0, 1338774361: 0, 1338774358: 0} Missing data for photo_id : 1338774152 in {1338774411: 0, 1338774409: 0, 1338774390: 0, 1338774387: 0, 1338774386: 0, 1338774383: 0, 1338774378: 0, 1338774369: 0, 1338774361: 0, 1338774358: 0} map_output_result : {1338774411: (0.0, 'Should be the crop_list due to order', 0), 1338774409: (0.0, 'Should be the crop_list due to order', 0), 1338774390: (0.0, 'Should be the crop_list due to order', 0), 1338774387: (0.0, 'Should be the crop_list due to order', 0), 1338774386: (0.0, 'Should be the crop_list due to order', 0), 1338774383: (0.0, 'Should be the crop_list due to order', 0), 1338774378: (0.0, 'Should be the crop_list due to order', 0), 1338774369: (0.0, 'Should be the crop_list due to order', 0), 1338774361: (0.0, 'Should be the crop_list due to order', 0), 1338774358: (0.0, 'Should be the crop_list due to order', 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 [1338774411, 1338774409, 1338774390, 1338774387, 1338774386, 1338774383, 1338774378, 1338774369, 1338774361, 1338774358, 1338774354, 1338774351, 1338774348, 1338774346, 1338774308, 1338774304, 1338774252, 1338774247, 1338774244, 1338774152] Looping around the photos to save general results len do output : 10 /1338774411.Didn't retrieve data . /1338774409.Didn't retrieve data . /1338774390.Didn't retrieve data . /1338774387.Didn't retrieve data . /1338774386.Didn't retrieve data . /1338774383.Didn't retrieve data . /1338774378.Didn't retrieve data . /1338774369.Didn't retrieve data . /1338774361.Didn't retrieve data . /1338774358.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 ('4254', None, None, None, None, None, None, None, '2604204') ('4254', '20721212', '1338774411', None, None, None, None, None, '2604204') ('4254', None, None, None, None, None, None, None, '2604204') ('4254', '20721212', '1338774409', None, None, None, None, None, '2604204') ('4254', None, None, None, None, None, None, None, '2604204') ('4254', '20721212', '1338774390', None, None, None, None, None, '2604204') ('4254', None, None, None, None, None, None, None, '2604204') ('4254', '20721212', '1338774387', None, None, None, None, None, '2604204') ('4254', None, None, None, None, None, None, None, '2604204') ('4254', '20721212', '1338774386', None, None, None, None, None, '2604204') ('4254', None, None, None, None, None, None, None, '2604204') ('4254', '20721212', '1338774383', None, None, None, None, None, '2604204') ('4254', None, None, None, None, None, None, None, '2604204') ('4254', '20721212', '1338774378', None, None, None, None, None, '2604204') ('4254', None, None, None, None, None, None, None, '2604204') ('4254', '20721212', '1338774369', None, None, None, None, None, '2604204') ('4254', None, None, None, None, None, None, None, '2604204') ('4254', '20721212', '1338774361', None, None, None, None, None, '2604204') ('4254', None, None, None, None, None, None, None, '2604204') ('4254', '20721212', '1338774358', None, None, None, None, None, '2604204') ('4254', None, None, None, None, None, None, None, '2604204') ('4254', '20721212', '1338774354', None, None, None, None, None, '2604204') ('4254', None, None, None, None, None, None, None, '2604204') ('4254', '20721212', '1338774351', None, None, None, None, None, '2604204') ('4254', None, None, None, None, None, None, None, '2604204') ('4254', '20721212', '1338774348', None, None, None, None, None, '2604204') ('4254', None, None, None, None, None, None, None, '2604204') ('4254', '20721212', '1338774346', None, None, None, None, None, '2604204') ('4254', None, None, None, None, None, None, None, '2604204') ('4254', '20721212', '1338774308', None, None, None, None, None, '2604204') ('4254', None, None, None, None, None, None, None, '2604204') ('4254', '20721212', '1338774304', None, None, None, None, None, '2604204') ('4254', None, None, None, None, None, None, None, '2604204') ('4254', '20721212', '1338774252', None, None, None, None, None, '2604204') ('4254', None, None, None, None, None, None, None, '2604204') ('4254', '20721212', '1338774247', None, None, None, None, None, '2604204') ('4254', None, None, None, None, None, None, None, '2604204') ('4254', '20721212', '1338774244', None, None, None, None, None, '2604204') ('4254', None, None, None, None, None, None, None, '2604204') ('4254', '20721212', '1338774152', None, None, None, None, None, '2604204') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 40 time used for this insertion : 0.03533005714416504 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.857947826385498 time spend to save output : 0.0358738899230957 total time spend for step 3 : 1.8938217163085938 step4:ventilate_hashtags_in_portfolio Fri Feb 21 11:09:54 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 : 20721212 get user id for portfolio 20721212 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`=20721212 AND mptpi.`type`=4200 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.5 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`=20721212 AND mptpi.`type`=4200 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.5 To do lien utilise dans velours : https://www.fotonower.com/velours/20721637,20721638,20721639,20721640,20721641,20721642,20721643,20721644,20721645,20721646,20721647,20721648,20721649,20721650,20721651,20721652?tags=metal,pehd,pet_clair,pet_opaque,pet_fonce,carton,papier,ela,etiquette,environnement,kraft,film_plastique,mal_croppe,barquette_opaque,flou,textiles_sanitaires Inside saveOutput : final : False verbose : 0 saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1338774411, 1338774409, 1338774390, 1338774387, 1338774386, 1338774383, 1338774378, 1338774369, 1338774361, 1338774358, 1338774354, 1338774351, 1338774348, 1338774346, 1338774308, 1338774304, 1338774252, 1338774247, 1338774244, 1338774152] Looping around the photos to save general results len do output : 1 /20721212. 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 ('4254', None, None, None, None, None, None, None, '2604204') ('4254', '20721212', '1338774411', None, None, None, None, None, '2604204') ('4254', None, None, None, None, None, None, None, '2604204') ('4254', '20721212', '1338774409', None, None, None, None, None, '2604204') ('4254', None, None, None, None, None, None, None, '2604204') ('4254', '20721212', '1338774390', None, None, None, None, None, '2604204') ('4254', None, None, None, None, None, None, None, '2604204') ('4254', '20721212', '1338774387', None, None, None, None, None, '2604204') ('4254', None, None, None, None, None, None, None, '2604204') ('4254', '20721212', '1338774386', None, None, None, None, None, '2604204') ('4254', None, None, None, None, None, None, None, '2604204') ('4254', '20721212', '1338774383', None, None, None, None, None, '2604204') ('4254', None, None, None, None, None, None, None, '2604204') ('4254', '20721212', '1338774378', None, None, None, None, None, '2604204') ('4254', None, None, None, None, None, None, None, '2604204') ('4254', '20721212', '1338774369', None, None, None, None, None, '2604204') ('4254', None, None, None, None, None, None, None, '2604204') ('4254', '20721212', '1338774361', None, None, None, None, None, '2604204') ('4254', None, None, None, None, None, None, None, '2604204') ('4254', '20721212', '1338774358', None, None, None, None, None, '2604204') ('4254', None, None, None, None, None, None, None, '2604204') ('4254', '20721212', '1338774354', None, None, None, None, None, '2604204') ('4254', None, None, None, None, None, None, None, '2604204') ('4254', '20721212', '1338774351', None, None, None, None, None, '2604204') ('4254', None, None, None, None, None, None, None, '2604204') ('4254', '20721212', '1338774348', None, None, None, None, None, '2604204') ('4254', None, None, None, None, None, None, None, '2604204') ('4254', '20721212', '1338774346', None, None, None, None, None, '2604204') ('4254', None, None, None, None, None, None, None, '2604204') ('4254', '20721212', '1338774308', None, None, None, None, None, '2604204') ('4254', None, None, None, None, None, None, None, '2604204') ('4254', '20721212', '1338774304', None, None, None, None, None, '2604204') ('4254', None, None, None, None, None, None, None, '2604204') ('4254', '20721212', '1338774252', None, None, None, None, None, '2604204') ('4254', None, None, None, None, None, None, None, '2604204') ('4254', '20721212', '1338774247', None, None, None, None, None, '2604204') ('4254', None, None, None, None, None, None, None, '2604204') ('4254', '20721212', '1338774244', None, None, None, None, None, '2604204') ('4254', None, None, None, None, None, None, None, '2604204') ('4254', '20721212', '1338774152', None, None, None, None, None, '2604204') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 21 time used for this insertion : 0.030663728713989258 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3467283248901367 time spend to save output : 0.030917644500732422 total time spend for step 4 : 0.37764596939086914 step5:final Fri Feb 21 11:09:54 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 : {1338774411: ('0.9998209824781242',), 1338774409: ('0.9998209824781242',), 1338774390: ('0.9998209824781242',), 1338774387: ('0.9998209824781242',), 1338774386: ('0.9998209824781242',), 1338774383: ('0.9998209824781242',), 1338774378: ('0.9998209824781242',), 1338774369: ('0.9998209824781242',), 1338774361: ('0.9998209824781242',), 1338774358: ('0.9998209824781242',)} new output for save of step final : {1338774411: ('0.9998209824781242',), 1338774409: ('0.9998209824781242',), 1338774390: ('0.9998209824781242',), 1338774387: ('0.9998209824781242',), 1338774386: ('0.9998209824781242',), 1338774383: ('0.9998209824781242',), 1338774378: ('0.9998209824781242',), 1338774369: ('0.9998209824781242',), 1338774361: ('0.9998209824781242',), 1338774358: ('0.9998209824781242',)} [1338774411, 1338774409, 1338774390, 1338774387, 1338774386, 1338774383, 1338774378, 1338774369, 1338774361, 1338774358, 1338774354, 1338774351, 1338774348, 1338774346, 1338774308, 1338774304, 1338774252, 1338774247, 1338774244, 1338774152] Looping around the photos to save general results len do output : 10 /1338774411.Didn't retrieve data . /1338774409.Didn't retrieve data . /1338774390.Didn't retrieve data . /1338774387.Didn't retrieve data . /1338774386.Didn't retrieve data . /1338774383.Didn't retrieve data . /1338774378.Didn't retrieve data . /1338774369.Didn't retrieve data . /1338774361.Didn't retrieve data . /1338774358.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 ('4254', None, None, None, None, None, None, None, '2604204') ('4254', '20721212', '1338774411', None, None, None, None, None, '2604204') ('4254', None, None, None, None, None, None, None, '2604204') ('4254', '20721212', '1338774409', None, None, None, None, None, '2604204') ('4254', None, None, None, None, None, None, None, '2604204') ('4254', '20721212', '1338774390', None, None, None, None, None, '2604204') ('4254', None, None, None, None, None, None, None, '2604204') ('4254', '20721212', '1338774387', None, None, None, None, None, '2604204') ('4254', None, None, None, None, None, None, None, '2604204') ('4254', '20721212', '1338774386', None, None, None, None, None, '2604204') ('4254', None, None, None, None, None, None, None, '2604204') ('4254', '20721212', '1338774383', None, None, None, None, None, '2604204') ('4254', None, None, None, None, None, None, None, '2604204') ('4254', '20721212', '1338774378', None, None, None, None, None, '2604204') ('4254', None, None, None, None, None, None, None, '2604204') ('4254', '20721212', '1338774369', None, None, None, None, None, '2604204') ('4254', None, None, None, None, None, None, None, '2604204') ('4254', '20721212', '1338774361', None, None, None, None, None, '2604204') ('4254', None, None, None, None, None, None, None, '2604204') ('4254', '20721212', '1338774358', None, None, None, None, None, '2604204') ('4254', None, None, None, None, None, None, None, '2604204') ('4254', '20721212', '1338774354', None, None, None, None, None, '2604204') ('4254', None, None, None, None, None, None, None, '2604204') ('4254', '20721212', '1338774351', None, None, None, None, None, '2604204') ('4254', None, None, None, None, None, None, None, '2604204') ('4254', '20721212', '1338774348', None, None, None, None, None, '2604204') ('4254', None, None, None, None, None, None, None, '2604204') ('4254', '20721212', '1338774346', None, None, None, None, None, '2604204') ('4254', None, None, None, None, None, None, None, '2604204') ('4254', '20721212', '1338774308', None, None, None, None, None, '2604204') ('4254', None, None, None, None, None, None, None, '2604204') ('4254', '20721212', '1338774304', None, None, None, None, None, '2604204') ('4254', None, None, None, None, None, None, None, '2604204') ('4254', '20721212', '1338774252', None, None, None, None, None, '2604204') ('4254', None, None, None, None, None, None, None, '2604204') ('4254', '20721212', '1338774247', None, None, None, None, None, '2604204') ('4254', None, None, None, None, None, None, None, '2604204') ('4254', '20721212', '1338774244', None, None, None, None, None, '2604204') ('4254', None, None, None, None, None, None, None, '2604204') ('4254', '20721212', '1338774152', None, None, None, None, None, '2604204') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 40 time used for this insertion : 0.027469873428344727 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.10029339790344238 time spend to save output : 0.028034210205078125 total time spend for step 5 : 0.1283276081085205 step6:blur_detection Fri Feb 21 11:09:54 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 : 20 time used for this insertion : 0.008864641189575195 begin to insert list_values into photo_hahstag_ids : length of list_valuse in save_photo_hashtag_id_type : 20 time used for this insertion : 0.008986711502075195 save missing photos in datou_result : time spend for datou_step_exec : 0.021675586700439453 time spend to save output : 0.02219367027282715 total time spend for step 6 : 0.0438692569732666 step7:brightness Fri Feb 21 11:09:55 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 : 20 time used for this insertion : 0.009006977081298828 begin to insert list_values into photo_hahstag_ids : length of list_valuse in save_photo_hashtag_id_type : 20 time used for this insertion : 0.008849620819091797 save missing photos in datou_result : time spend for datou_step_exec : 0.02600717544555664 time spend to save output : 0.021941661834716797 total time spend for step 7 : 0.04794883728027344 step8:send_mail_cod Fri Feb 21 11:09:55 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_P20721212_21-02-2025_11_09_55.pdf 20721637 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 .imagette207216371740132595 20721638 change filename to text .change filename to text .change filename to text .change filename to text .imagette207216381740132596 20721639 change filename to text .change filename to text .imagette207216391740132596 20721640 change filename to text .imagette207216401740132597 20721642 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 .imagette207216421740132597 20721643 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 .imagette207216431740132598 20721644 imagette207216441740132599 20721645 imagette207216451740132599 20721647 imagette207216471740132599 20721648 change filename to text .change filename to text .imagette207216481740132599 20721650 imagette207216501740132599 20721652 imagette207216521740132599 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20721212 and hashtag_type = 4200 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20721637,20721638,20721639,20721640,20721641,20721642,20721643,20721644,20721645,20721646,20721647,20721648,20721649,20721650,20721651,20721652?tags=metal,pehd,pet_clair,pet_opaque,pet_fonce,carton,papier,ela,etiquette,environnement,kraft,film_plastique,mal_croppe,barquette_opaque,flou,textiles_sanitaires your option no_mail is active, we will not send the real mail to your client args[1338774411] : ((1338774411, -5.258148677653493, 492609224), (1338774411, -0.16768388975109783, 496442774), '0.9998209824781242') We are sending mail with results at kexin@fotonower.com args[1338774409] : ((1338774409, -5.289119685311663, 492609224), (1338774409, 0.16289029856188691, 2107752395), '0.9998209824781242') We are sending mail with results at kexin@fotonower.com args[1338774390] : ((1338774390, -5.2873407909929915, 492609224), (1338774390, 0.2043926815345419, 2107752395), '0.9998209824781242') We are sending mail with results at kexin@fotonower.com args[1338774387] : ((1338774387, -5.185132155235497, 492609224), (1338774387, 0.029437083540615173, 2107752395), '0.9998209824781242') We are sending mail with results at kexin@fotonower.com args[1338774386] : ((1338774386, -5.289447615364382, 492609224), (1338774386, 0.03977146973834553, 2107752395), '0.9998209824781242') We are sending mail with results at kexin@fotonower.com args[1338774383] : ((1338774383, -5.191992208128053, 492609224), (1338774383, -0.0324220324778634, 2107752395), '0.9998209824781242') We are sending mail with results at kexin@fotonower.com args[1338774378] : ((1338774378, -5.27426325647259, 492609224), (1338774378, 0.058481871288374065, 2107752395), '0.9998209824781242') We are sending mail with results at kexin@fotonower.com args[1338774369] : ((1338774369, -5.222307321211819, 492609224), (1338774369, 0.19058272855090036, 2107752395), '0.9998209824781242') We are sending mail with results at kexin@fotonower.com args[1338774361] : ((1338774361, -5.34142452168018, 492609224), (1338774361, 0.03423969037597614, 2107752395), '0.9998209824781242') We are sending mail with results at kexin@fotonower.com args[1338774358] : ((1338774358, -5.287172680168678, 492609224), (1338774358, -0.05935947148546944, 2107752395), '0.9998209824781242') We are sending mail with results at kexin@fotonower.com args[1338774354] : ((1338774354, -5.306833607424694, 492609224), (1338774354, -0.06404112566244094, 2107752395)) We are sending mail with results at kexin@fotonower.com args[1338774351] : ((1338774351, -5.185369531938592, 492609224), (1338774351, 0.07049923294240724, 2107752395)) We are sending mail with results at kexin@fotonower.com args[1338774348] : ((1338774348, -4.702772925991453, 492609224), (1338774348, -0.6365012391687273, 501862349)) We are sending mail with results at kexin@fotonower.com args[1338774346] : ((1338774346, -3.4790292204640925, 492609224), (1338774346, -2.1189314948688147, 501862349)) We are sending mail with results at kexin@fotonower.com args[1338774308] : ((1338774308, -2.71698864566498, 492609224), (1338774308, -2.2872843527143414, 501862349)) We are sending mail with results at kexin@fotonower.com args[1338774304] : ((1338774304, -3.9057127480668408, 492609224), (1338774304, -1.039736571509026, 501862349)) We are sending mail with results at kexin@fotonower.com args[1338774252] : ((1338774252, -5.443316678680641, 492609224), (1338774252, -0.3507072602556628, 496442774)) We are sending mail with results at kexin@fotonower.com args[1338774247] : ((1338774247, -5.1877781216758585, 492609224), (1338774247, -0.4185019367179561, 496442774)) We are sending mail with results at kexin@fotonower.com args[1338774244] : ((1338774244, -3.7207373693320585, 492609224), (1338774244, -1.3242816714202261, 501862349)) We are sending mail with results at kexin@fotonower.com args[1338774152] : ((1338774152, -5.382651068079158, 492609224), (1338774152, -0.4689448727315936, 496442774)) We are sending mail with results at kexin@fotonower.com refus_total : (1338774152, -5.382651068079158, 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)) [1338774411, 1338774409, 1338774390, 1338774387, 1338774386, 1338774383, 1338774378, 1338774369, 1338774361, 1338774358, 1338774354, 1338774351, 1338774348, 1338774346, 1338774308, 1338774304, 1338774252, 1338774247, 1338774244, 1338774152] begin to insert list_values into mtr_datou_result : length of list_values in save_final : 20 time used for this insertion : 0.028713226318359375 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 : 4.536053895950317 time spend to save output : 0.03591346740722656 total time spend for step 7 : 4.571967363357544 caffe_path_current : About to save ! 2 After save, about to update current ! ret : 2 len(input) + len(total_photo_id_missing) : 20 set_done_treatment 2.08user 1.65system 0:15.20elapsed 24%CPU (0avgtext+0avgdata 198168maxresident)k 776inputs+96544outputs (0major+119454minor)pagefaults 0swaps