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 4249 -P 20455314' -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 : 629206 load datou : 4249 # 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 11590 copy_chis is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 11591 consolidate_hashtags_from_manual_portfolio is not consistent : 2 used against 1 in the step definition ! WARNING : number of inputs for step 11588 rle_unique_nms_with_priority is not consistent : 3 used against 1 in the step definition ! WARNING : number of outputs for step 11588 rle_unique_nms_with_priority is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 11595 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11589 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! Step 11592 blur_detection have less inputs used (0) than in the step definition (1) : maybe we manage optionnal inputs ! Step 11593 brightness have less inputs used (0) than in the step definition (1) : maybe we manage optionnal inputs ! Step 11594 send_mail_cod have less inputs used (4) than in the step definition (5) : maybe we manage optionnal inputs ! Step 11596 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 11590 have datatype=11 whereas input 0 of step 11588 have datatype=2 WARNING : type of output 1 of step 11591 doesn't seem to be define in the database( WARNING : type of input 3 of step 11589 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 11591 doesn't seem to be define in the database( WARNING : type of input 1 of step 11588 doesn't seem to be define in the database( WARNING : output 0 of step 11595 have datatype=10 whereas input 3 of step 11594 have datatype=6 WARNING : type of input 1 of step 11595 doesn't seem to be define in the database( WARNING : output 1 of step 11588 have datatype=7 whereas input 1 of step 11595 have datatype=None WARNING : type of output 1 of step 11595 doesn't seem to be define in the database( WARNING : type of input 4 of step 11589 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : type of output 1 of step 11590 doesn't seem to be define in the database( WARNING : type of input 1 of step 11591 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 : 4249, datou_cur_ids : ['2612634'] with mtr_portfolio_ids : ['20455314'] and first list_photo_ids : [] new path : /proc/629206/ 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 11590 copy_chis is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 11591 consolidate_hashtags_from_manual_portfolio is not consistent : 2 used against 1 in the step definition ! WARNING : number of inputs for step 11588 rle_unique_nms_with_priority is not consistent : 3 used against 1 in the step definition ! WARNING : number of outputs for step 11588 rle_unique_nms_with_priority is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 11595 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11589 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! Step 11592 blur_detection have less inputs used (0) than in the step definition (1) : maybe we manage optionnal inputs ! Step 11593 brightness have less inputs used (0) than in the step definition (1) : maybe we manage optionnal inputs ! Step 11594 send_mail_cod have less inputs used (4) than in the step definition (5) : maybe we manage optionnal inputs ! Step 11596 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 11590 have datatype=11 whereas input 0 of step 11588 have datatype=2 WARNING : type of output 1 of step 11591 doesn't seem to be define in the database( WARNING : type of input 3 of step 11589 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 11591 doesn't seem to be define in the database( WARNING : type of input 1 of step 11588 doesn't seem to be define in the database( WARNING : output 0 of step 11595 have datatype=10 whereas input 3 of step 11594 have datatype=6 WARNING : type of input 1 of step 11595 doesn't seem to be define in the database( WARNING : output 1 of step 11588 have datatype=7 whereas input 1 of step 11595 have datatype=None WARNING : type of output 1 of step 11595 doesn't seem to be define in the database( WARNING : type of input 4 of step 11589 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : type of output 1 of step 11590 doesn't seem to be define in the database( WARNING : type of input 1 of step 11591 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 , BFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFwe have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB length of list_filenames : 22 ; length of list_pids : 22 ; length of list_args : 22 time to download the photos : 5.976043701171875 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 Tue Feb 25 11:52:53 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 335 chid ids of type : 4209 batch 1 Loaded 133 chid ids of type : 4209 Number RLEs to save : 0 TO DO : save crop sub photo not yet done ! batch 1 Loaded 176 chid ids of type : 4209 Number RLEs to save : 0 TO DO : save crop sub photo not yet done ! batch 1 Loaded 169 chid ids of type : 4209 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 [1336791046, 1336791044, 1336791043, 1336791005, 1336790979, 1336790953, 1336790934, 1336790859, 1336790626, 1336790605, 1336790601, 1336790596, 1336790565, 1336790559, 1336790547, 1336790540, 1336790497, 1336790488, 1336790481, 1336790475, 1336790473, 1336790472] Looping around the photos to save general results len do output : 22 /1336790472Didn't retrieve data . /1336790473Didn't retrieve data . /1336790475Didn't retrieve data . /1336790481Didn't retrieve data . /1336790488Didn't retrieve data . /1336790497Didn't retrieve data . /1336790540Didn't retrieve data . /1336790547Didn't retrieve data . /1336790559Didn't retrieve data . /1336790565Didn't retrieve data . /1336790596Didn't retrieve data . /1336790601Didn't retrieve data . /1336790605Didn't retrieve data . /1336790626Didn't retrieve data . /1336790859Didn't retrieve data . /1336790934Didn't retrieve data . /1336790953Didn't retrieve data . /1336790979Didn't retrieve data . /1336791005Didn't retrieve data . /1336791043Didn't retrieve data . /1336791044Didn't retrieve data . /1336791046Didn'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 ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336791046', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336791044', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336791043', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336791005', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790979', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790953', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790934', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790859', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790626', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790605', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790601', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790596', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790565', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790559', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790547', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790540', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790497', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790488', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790481', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790475', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790473', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790472', None, None, None, None, None, '2612634') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 44 time used for this insertion : 0.02080225944519043 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.21732091903686523 time spend to save output : 0.021288156509399414 total time spend for step 1 : 0.23860907554626465 step2:consolidate_hashtags_from_manual_portfolio Tue Feb 25 11:52:53 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 : 20455314 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`=20455314 AND mptpi.`type`=4209 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`=20455314 AND mptpi.`type`=4209 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=20784384 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=20784385 AND mpp.hide_status=0 ORDER BY ph.size desc batch 1 Loaded 57 chid ids of type : 4209 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=20784386 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=20784387 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=20784388 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=20784389 AND mpp.hide_status=0 ORDER BY ph.size desc batch 1 Loaded 190 chid ids of type : 4209 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=20784390 AND mpp.hide_status=0 ORDER BY ph.size desc batch 1 Loaded 367 chid ids of type : 4209 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=20784391 AND mpp.hide_status=0 ORDER BY ph.size desc batch 1 Loaded 137 chid ids of type : 4209 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=20784392 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=20784393 AND mpp.hide_status=0 ORDER BY ph.size desc batch 1 Loaded 478 chid ids of type : 4209 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=20784394 AND mpp.hide_status=0 ORDER BY ph.size desc batch 1 Loaded 20 chid ids of type : 4209 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=20784395 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=20784396 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=20784397 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=20784398 AND mpp.hide_status=0 ORDER BY ph.size desc batch 1 Loaded 450 chid ids of type : 4209 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=20784399 AND mpp.hide_status=0 ORDER BY ph.size desc batch 1 Loaded 42 chid ids of type : 4209 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=20799790 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 [1336791046, 1336791044, 1336791043, 1336791005, 1336790979, 1336790953, 1336790934, 1336790859, 1336790626, 1336790605, 1336790601, 1336790596, 1336790565, 1336790559, 1336790547, 1336790540, 1336790497, 1336790488, 1336790481, 1336790475, 1336790473, 1336790472] 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 : 22 time used for this insertion : 0.014839649200439453 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.474395751953125 time spend to save output : 0.015037775039672852 total time spend for step 2 : 4.489433526992798 step3:rle_unique_nms_with_priority Tue Feb 25 11:52:57 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 VR 22-3-18 : For now we do not clean correctly the datou structure Begin step rle-unique-nms batch 1 Loaded 437 chid ids of type : 4209 seulement à utiliser dans la step consolidation batch 1 Loaded 22 chid ids of type : 4209 Number RLEs to save : 0 TO DO : save crop sub photo not yet done ! save time : 0.030346393585205078 seulement à utiliser dans la step consolidation batch 1 Loaded 19 chid ids of type : 4209 Number RLEs to save : 0 TO DO : save crop sub photo not yet done ! save time : 0.0272829532623291 seulement à utiliser dans la step consolidation batch 1 Loaded 14 chid ids of type : 4209 Number RLEs to save : 0 TO DO : save crop sub photo not yet done ! save time : 0.02821183204650879 seulement à utiliser dans la step consolidation batch 1 Loaded 22 chid ids of type : 4209 Number RLEs to save : 0 TO DO : save crop sub photo not yet done ! save time : 0.027801513671875 seulement à utiliser dans la step consolidation batch 1 Loaded 25 chid ids of type : 4209 Number RLEs to save : 0 TO DO : save crop sub photo not yet done ! save time : 0.028159379959106445 seulement à utiliser dans la step consolidation batch 1 Loaded 20 chid ids of type : 4209 Number RLEs to save : 0 TO DO : save crop sub photo not yet done ! save time : 0.026929378509521484 seulement à utiliser dans la step consolidation batch 1 Loaded 29 chid ids of type : 4209 Number RLEs to save : 0 TO DO : save crop sub photo not yet done ! save time : 0.030636072158813477 seulement à utiliser dans la step consolidation batch 1 Loaded 18 chid ids of type : 4209 Number RLEs to save : 0 TO DO : save crop sub photo not yet done ! save time : 0.027265548706054688 seulement à utiliser dans la step consolidation batch 1 Loaded 28 chid ids of type : 4209 Number RLEs to save : 0 TO DO : save crop sub photo not yet done ! save time : 0.028095006942749023 seulement à utiliser dans la step consolidation batch 1 Loaded 16 chid ids of type : 4209 Number RLEs to save : 0 TO DO : save crop sub photo not yet done ! save time : 0.026555538177490234 seulement à utiliser dans la step consolidation batch 1 Loaded 22 chid ids of type : 4209 Number RLEs to save : 0 TO DO : save crop sub photo not yet done ! save time : 0.029598712921142578 seulement à utiliser dans la step consolidation batch 1 Loaded 19 chid ids of type : 4209 Number RLEs to save : 0 TO DO : save crop sub photo not yet done ! save time : 0.026839256286621094 seulement à utiliser dans la step consolidation batch 1 Loaded 26 chid ids of type : 4209 Number RLEs to save : 0 TO DO : save crop sub photo not yet done ! save time : 0.034004926681518555 seulement à utiliser dans la step consolidation batch 1 Loaded 20 chid ids of type : 4209 Number RLEs to save : 0 TO DO : save crop sub photo not yet done ! save time : 0.030549049377441406 seulement à utiliser dans la step consolidation batch 1 Loaded 28 chid ids of type : 4209 Number RLEs to save : 0 TO DO : save crop sub photo not yet done ! save time : 0.028545379638671875 seulement à utiliser dans la step consolidation batch 1 Loaded 17 chid ids of type : 4209 Number RLEs to save : 0 TO DO : save crop sub photo not yet done ! save time : 0.02692103385925293 seulement à utiliser dans la step consolidation batch 1 Loaded 26 chid ids of type : 4209 Number RLEs to save : 0 TO DO : save crop sub photo not yet done ! save time : 0.03052234649658203 seulement à utiliser dans la step consolidation batch 1 Loaded 26 chid ids of type : 4209 Number RLEs to save : 0 TO DO : save crop sub photo not yet done ! save time : 0.029866695404052734 seulement à utiliser dans la step consolidation batch 1 Loaded 29 chid ids of type : 4209 Number RLEs to save : 0 TO DO : save crop sub photo not yet done ! save time : 0.030290842056274414 seulement à utiliser dans la step consolidation batch 1 Loaded 15 chid ids of type : 4209 Number RLEs to save : 0 TO DO : save crop sub photo not yet done ! save time : 0.028221607208251953 seulement à utiliser dans la step consolidation batch 1 Loaded 16 chid ids of type : 4209 Number RLEs to save : 0 TO DO : save crop sub photo not yet done ! save time : 0.031632423400878906 seulement à utiliser dans la step consolidation batch 1 Loaded 21 chid ids of type : 4209 Number RLEs to save : 0 TO DO : save crop sub photo not yet done ! save time : 0.029017210006713867 map_output_result : {1336791046: (0.0, 'Should be the crop_list due to order', 0), 1336791044: (0.0, 'Should be the crop_list due to order', 0), 1336791043: (0.0, 'Should be the crop_list due to order', 0), 1336791005: (0.0, 'Should be the crop_list due to order', 0), 1336790979: (0.0, 'Should be the crop_list due to order', 0), 1336790953: (0.0, 'Should be the crop_list due to order', 0), 1336790934: (0.0, 'Should be the crop_list due to order', 0), 1336790859: (0.0, 'Should be the crop_list due to order', 0), 1336790626: (0.0, 'Should be the crop_list due to order', 0), 1336790605: (0.0, 'Should be the crop_list due to order', 0), 1336790601: (0.0, 'Should be the crop_list due to order', 0), 1336790596: (0.0, 'Should be the crop_list due to order', 0), 1336790565: (0.0, 'Should be the crop_list due to order', 0), 1336790559: (0.0, 'Should be the crop_list due to order', 0), 1336790547: (0.0, 'Should be the crop_list due to order', 0), 1336790540: (0.0, 'Should be the crop_list due to order', 0), 1336790497: (0.0, 'Should be the crop_list due to order', 0), 1336790488: (0.0, 'Should be the crop_list due to order', 0), 1336790481: (0.0, 'Should be the crop_list due to order', 0), 1336790475: (0.0, 'Should be the crop_list due to order', 0), 1336790473: (0.0, 'Should be the crop_list due to order', 0), 1336790472: (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 [1336791046, 1336791044, 1336791043, 1336791005, 1336790979, 1336790953, 1336790934, 1336790859, 1336790626, 1336790605, 1336790601, 1336790596, 1336790565, 1336790559, 1336790547, 1336790540, 1336790497, 1336790488, 1336790481, 1336790475, 1336790473, 1336790472] Looping around the photos to save general results len do output : 22 /1336791046.Didn't retrieve data . /1336791044.Didn't retrieve data . /1336791043.Didn't retrieve data . /1336791005.Didn't retrieve data . /1336790979.Didn't retrieve data . /1336790953.Didn't retrieve data . /1336790934.Didn't retrieve data . /1336790859.Didn't retrieve data . /1336790626.Didn't retrieve data . /1336790605.Didn't retrieve data . /1336790601.Didn't retrieve data . /1336790596.Didn't retrieve data . /1336790565.Didn't retrieve data . /1336790559.Didn't retrieve data . /1336790547.Didn't retrieve data . /1336790540.Didn't retrieve data . /1336790497.Didn't retrieve data . /1336790488.Didn't retrieve data . /1336790481.Didn't retrieve data . /1336790475.Didn't retrieve data . /1336790473.Didn't retrieve data . /1336790472.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 ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336791046', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336791044', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336791043', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336791005', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790979', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790953', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790934', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790859', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790626', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790605', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790601', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790596', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790565', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790559', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790547', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790540', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790497', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790488', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790481', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790475', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790473', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790472', None, None, None, None, None, '2612634') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 66 time used for this insertion : 0.03455018997192383 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.64052152633667 time spend to save output : 0.035349130630493164 total time spend for step 3 : 3.675870656967163 step4:ventilate_hashtags_in_portfolio Tue Feb 25 11:53:01 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 : 20455314 get user id for portfolio 20455314 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`=20455314 AND mptpi.`type`=4209 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`=20455314 AND mptpi.`type`=4209 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/20784384,20784385,20784386,20784387,20784388,20784389,20784390,20784391,20784392,20784393,20784394,20784395,20784396,20784397,20784398,20784399?tags=pehd,film_plastique,etiquette,pet_clair,pet_fonce,flou,carton,mal_croppe,kraft,papier,barquette_opaque,pet_opaque,metal,textiles_sanitaires,environnement,ela Inside saveOutput : final : False verbose : 0 saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1336791046, 1336791044, 1336791043, 1336791005, 1336790979, 1336790953, 1336790934, 1336790859, 1336790626, 1336790605, 1336790601, 1336790596, 1336790565, 1336790559, 1336790547, 1336790540, 1336790497, 1336790488, 1336790481, 1336790475, 1336790473, 1336790472] Looping around the photos to save general results len do output : 1 /20455314. 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 ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336791046', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336791044', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336791043', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336791005', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790979', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790953', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790934', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790859', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790626', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790605', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790601', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790596', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790565', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790559', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790547', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790540', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790497', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790488', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790481', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790475', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790473', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790472', None, None, None, None, None, '2612634') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 23 time used for this insertion : 0.015562295913696289 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.35108256340026855 time spend to save output : 0.015888214111328125 total time spend for step 4 : 0.3669707775115967 step5:final Tue Feb 25 11:53:01 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 : {1336791046: ('0.1776912985819512',), 1336791044: ('0.1776912985819512',), 1336791043: ('0.1776912985819512',), 1336791005: ('0.1776912985819512',), 1336790979: ('0.1776912985819512',), 1336790953: ('0.1776912985819512',), 1336790934: ('0.1776912985819512',), 1336790859: ('0.1776912985819512',), 1336790626: ('0.1776912985819512',), 1336790605: ('0.1776912985819512',), 1336790601: ('0.1776912985819512',), 1336790596: ('0.1776912985819512',), 1336790565: ('0.1776912985819512',), 1336790559: ('0.1776912985819512',), 1336790547: ('0.1776912985819512',), 1336790540: ('0.1776912985819512',), 1336790497: ('0.1776912985819512',), 1336790488: ('0.1776912985819512',), 1336790481: ('0.1776912985819512',), 1336790475: ('0.1776912985819512',), 1336790473: ('0.1776912985819512',), 1336790472: ('0.1776912985819512',)} new output for save of step final : {1336791046: ('0.1776912985819512',), 1336791044: ('0.1776912985819512',), 1336791043: ('0.1776912985819512',), 1336791005: ('0.1776912985819512',), 1336790979: ('0.1776912985819512',), 1336790953: ('0.1776912985819512',), 1336790934: ('0.1776912985819512',), 1336790859: ('0.1776912985819512',), 1336790626: ('0.1776912985819512',), 1336790605: ('0.1776912985819512',), 1336790601: ('0.1776912985819512',), 1336790596: ('0.1776912985819512',), 1336790565: ('0.1776912985819512',), 1336790559: ('0.1776912985819512',), 1336790547: ('0.1776912985819512',), 1336790540: ('0.1776912985819512',), 1336790497: ('0.1776912985819512',), 1336790488: ('0.1776912985819512',), 1336790481: ('0.1776912985819512',), 1336790475: ('0.1776912985819512',), 1336790473: ('0.1776912985819512',), 1336790472: ('0.1776912985819512',)} [1336791046, 1336791044, 1336791043, 1336791005, 1336790979, 1336790953, 1336790934, 1336790859, 1336790626, 1336790605, 1336790601, 1336790596, 1336790565, 1336790559, 1336790547, 1336790540, 1336790497, 1336790488, 1336790481, 1336790475, 1336790473, 1336790472] Looping around the photos to save general results len do output : 22 /1336791046.Didn't retrieve data . /1336791044.Didn't retrieve data . /1336791043.Didn't retrieve data . /1336791005.Didn't retrieve data . /1336790979.Didn't retrieve data . /1336790953.Didn't retrieve data . /1336790934.Didn't retrieve data . /1336790859.Didn't retrieve data . /1336790626.Didn't retrieve data . /1336790605.Didn't retrieve data . /1336790601.Didn't retrieve data . /1336790596.Didn't retrieve data . /1336790565.Didn't retrieve data . /1336790559.Didn't retrieve data . /1336790547.Didn't retrieve data . /1336790540.Didn't retrieve data . /1336790497.Didn't retrieve data . /1336790488.Didn't retrieve data . /1336790481.Didn't retrieve data . /1336790475.Didn't retrieve data . /1336790473.Didn't retrieve data . /1336790472.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 ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336791046', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336791044', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336791043', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336791005', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790979', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790953', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790934', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790859', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790626', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790605', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790601', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790596', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790565', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790559', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790547', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790540', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790497', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790488', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790481', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790475', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790473', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790472', None, None, None, None, None, '2612634') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 66 time used for this insertion : 0.01608753204345703 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.0250399112701416 time spend to save output : 0.01709771156311035 total time spend for step 5 : 0.04213762283325195 step6:blur_detection Tue Feb 25 11:53:01 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 : 22 time used for this insertion : 0.00978398323059082 begin to insert list_values into photo_hahstag_ids : length of list_valuse in save_photo_hashtag_id_type : 22 time used for this insertion : 0.008986234664916992 save missing photos in datou_result : time spend for datou_step_exec : 0.02170419692993164 time spend to save output : 0.023245573043823242 total time spend for step 6 : 0.04494976997375488 step7:brightness Tue Feb 25 11:53:01 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 : 22 time used for this insertion : 0.009611845016479492 begin to insert list_values into photo_hahstag_ids : length of list_valuse in save_photo_hashtag_id_type : 22 time used for this insertion : 0.009941816329956055 save missing photos in datou_result : time spend for datou_step_exec : 0.02579808235168457 time spend to save output : 0.024219274520874023 total time spend for step 7 : 0.050017356872558594 step8:send_mail_cod Tue Feb 25 11:53:02 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 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_P20455314_25-02-2025_11_53_02.pdf 20784384 imagette207843841740480782 20784385 change filename to text .change filename to text .change filename to text .imagette207843851740480782 20784386 imagette207843861740480782 20784387 imagette207843871740480782 20784388 imagette207843881740480782 20784390 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 .imagette207843901740480782 20784392 imagette207843921740480784 20784394 change filename to text .imagette207843941740480784 20784395 imagette207843951740480784 20784396 imagette207843961740480784 20784397 imagette207843971740480784 20784399 change filename to text .change filename to text .imagette207843991740480784 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20455314 and hashtag_type = 4209 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20784384,20784385,20784386,20784387,20784388,20784389,20784390,20784391,20784392,20784393,20784394,20784395,20784396,20784397,20784398,20784399?tags=pehd,film_plastique,etiquette,pet_clair,pet_fonce,flou,carton,mal_croppe,kraft,papier,barquette_opaque,pet_opaque,metal,textiles_sanitaires,environnement,ela your option no_mail is active, we will not send the real mail to your client args[1336791046] : ((1336791046, -5.29682138431108, 492609224), (1336791046, -0.1527205371084779, 496442774), '0.1776912985819512') We are sending mail with results at kexin@fotonower.com args[1336791044] : ((1336791044, -5.3514945278030055, 492609224), (1336791044, 0.9606920030168548, 2107752395), '0.1776912985819512') We are sending mail with results at kexin@fotonower.com args[1336791043] : ((1336791043, -5.526308099335631, 492609224), (1336791043, 0.16893595920977705, 2107752395), '0.1776912985819512') We are sending mail with results at kexin@fotonower.com args[1336791005] : ((1336791005, -5.3531582551659485, 492609224), (1336791005, 0.07108916204721204, 2107752395), '0.1776912985819512') We are sending mail with results at kexin@fotonower.com args[1336790979] : ((1336790979, -5.190219190728198, 492609224), (1336790979, 0.3532629506714627, 2107752395), '0.1776912985819512') We are sending mail with results at kexin@fotonower.com args[1336790953] : ((1336790953, -6.049058414781287, 492609224), (1336790953, 0.6755590614255751, 2107752395), '0.1776912985819512') We are sending mail with results at kexin@fotonower.com args[1336790934] : ((1336790934, -5.22535281619166, 492609224), (1336790934, 0.15248397406162353, 2107752395), '0.1776912985819512') We are sending mail with results at kexin@fotonower.com args[1336790859] : ((1336790859, -6.117395871573107, 492609224), (1336790859, 0.5022373428599316, 2107752395), '0.1776912985819512') We are sending mail with results at kexin@fotonower.com args[1336790626] : ((1336790626, -5.890599969564395, 492609224), (1336790626, 0.947426631958297, 2107752395), '0.1776912985819512') We are sending mail with results at kexin@fotonower.com args[1336790605] : ((1336790605, -5.046184600505456, 492609224), (1336790605, 0.03399815551289343, 2107752395), '0.1776912985819512') We are sending mail with results at kexin@fotonower.com args[1336790601] : ((1336790601, -5.399368697695294, 492609224), (1336790601, 0.7917345019782659, 2107752395), '0.1776912985819512') We are sending mail with results at kexin@fotonower.com args[1336790596] : ((1336790596, -5.518064302328768, 492609224), (1336790596, 0.28376440601144964, 2107752395), '0.1776912985819512') We are sending mail with results at kexin@fotonower.com args[1336790565] : ((1336790565, -5.366579225192722, 492609224), (1336790565, 0.6372655737103416, 2107752395), '0.1776912985819512') We are sending mail with results at kexin@fotonower.com args[1336790559] : ((1336790559, -5.193063638028673, 492609224), (1336790559, 0.2978537170581844, 2107752395), '0.1776912985819512') We are sending mail with results at kexin@fotonower.com args[1336790547] : ((1336790547, -5.386650162233049, 492609224), (1336790547, 1.1131901635998658, 2107752395), '0.1776912985819512') We are sending mail with results at kexin@fotonower.com args[1336790540] : ((1336790540, -5.8062804754761, 492609224), (1336790540, 0.6557186276726521, 2107752395), '0.1776912985819512') We are sending mail with results at kexin@fotonower.com args[1336790497] : ((1336790497, -5.406200629427106, 492609224), (1336790497, 0.6798671192538037, 2107752395), '0.1776912985819512') We are sending mail with results at kexin@fotonower.com args[1336790488] : ((1336790488, -5.345590368449701, 492609224), (1336790488, 1.0637602874090317, 2107752395), '0.1776912985819512') We are sending mail with results at kexin@fotonower.com args[1336790481] : ((1336790481, -5.987912384694077, 492609224), (1336790481, 1.093201332259682, 2107752395), '0.1776912985819512') We are sending mail with results at kexin@fotonower.com args[1336790475] : ((1336790475, -5.197897593228541, 492609224), (1336790475, 0.4786448398428129, 2107752395), '0.1776912985819512') We are sending mail with results at kexin@fotonower.com args[1336790473] : ((1336790473, -5.322145640451815, 492609224), (1336790473, 0.4431581151904611, 2107752395), '0.1776912985819512') We are sending mail with results at kexin@fotonower.com args[1336790472] : ((1336790472, -5.278866438453029, 492609224), (1336790472, -0.12369608826933055, 496442774), '0.1776912985819512') We are sending mail with results at kexin@fotonower.com refus_total : 0.1776912985819512 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=20455314 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 1000 start upload file to ovh https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_COD_P20455314_25-02-2025_11_53_02.pdf results_COD_P20455314_25-02-2025_11_53_02.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_COD_P20455314_25-02-2025_11_53_02.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4249','20455314','results_COD_P20455314_25-02-2025_11_53_02.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_COD_P20455314_25-02-2025_11_53_02.pdf','pdf','','0.87','0.1776912985819512') Inside saveOutput : final : False verbose : 0 saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1336791046, 1336791044, 1336791043, 1336791005, 1336790979, 1336790953, 1336790934, 1336790859, 1336790626, 1336790605, 1336790601, 1336790596, 1336790565, 1336790559, 1336790547, 1336790540, 1336790497, 1336790488, 1336790481, 1336790475, 1336790473, 1336790472] Looping around the photos to save general results len do output : 0 before output type Used above Managing all output in save final without adding information in the mtr_datou_result ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336791046', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336791044', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336791043', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336791005', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790979', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790953', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790934', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790859', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790626', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790605', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790601', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790596', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790565', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790559', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790547', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790540', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790497', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790488', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790481', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790475', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790473', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790472', None, None, None, None, None, '2612634') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 22 time used for this insertion : 0.015828371047973633 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.500302076339722 time spend to save output : 0.01608443260192871 total time spend for step 8 : 6.51638650894165 step9:split_time_score Tue Feb 25 11:53:08 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 ! complete output_args for input 1 VR 22-3-18 : For now we do not clean correctly the datou structure begin split time score TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] (('11', 22),) ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 11022025 20455314 Nombre de photos uploadées : 22 / 23040 (0%) 11022025 20455314 Nombre de photos taguées (types de déchets): 0 / 22 (0%) 11022025 20455314 Nombre de photos taguées (volume) : 0 / 22 (0%) elapsed_time : load_data_split_time_score 1.9073486328125e-06 elapsed_time : order_list_meta_photo_and_scores 5.4836273193359375e-06 ?????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0011723041534423828 elapsed_time : insert_dashboard_record_day_entry 0.02270960807800293 We will return after consolidate but for now we need the day, how to get it, for now depending on the previous heavy steps find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20431073_11-02-2025_08_36_11.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20431073 order by id desc limit 1 Qualite : 0.10961501886815206 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20431074_11-02-2025_07_32_17.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20431074 order by id desc limit 1 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! 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 7928 mask_detect is not consistent : 3 used against 2 in the step definition ! Step 8092 crop_condition have less inputs used (1) than in the step definition (2) : maybe we manage optionnal inputs ! WARNING : number of outputs for step 8092 crop_condition is not consistent : 4 used against 3 in the step definition ! WARNING : number of inputs for step 7933 rle_unique_nms_with_priority is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 7933 rle_unique_nms_with_priority is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 7935 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 7934 final have less inputs used (2) than in the step definition (3) : maybe we manage optionnal inputs ! Step 7934 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13649 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 9283 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 : type of output 1 of step 7935 doesn't seem to be define in the database( WARNING : type of input 3 of step 7934 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : type of input 1 of step 7935 doesn't seem to be define in the database( WARNING : output 1 of step 7933 have datatype=7 whereas input 1 of step 7935 have datatype=None WARNING : type of output 2 of step 7928 doesn't seem to be define in the database( WARNING : type of input 2 of step 8092 doesn't seem to be define in the database( WARNING : type of output 3 of step 8092 doesn't seem to be define in the database( WARNING : type of input 1 of step 7933 doesn't seem to be define in the database( WARNING : type of output 2 of step 7928 doesn't seem to be define in the database( WARNING : type of input 1 of step 10917 doesn't seem to be define in the database( WARNING : type of output 2 of step 7928 doesn't seem to be define in the database( WARNING : type of input 1 of step 10918 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 7935 have datatype=10 whereas input 3 of step 10916 have datatype=6 WARNING : output 0 of step 7935 have datatype=10 whereas input 0 of step 13649 have datatype=18 WARNING : type of output 1 of step 13649 doesn't seem to be define in the database( WARNING : type of input 5 of step 10916 doesn't seem to be define in the database( DataTypes for each output/input checked ! TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20431074 AND mptpi.`type`=3594 To do find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20431075_11-02-2025_15_18_26.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20431075 order by id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20431076_13-02-2025_03_35_20.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20431076 order by id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20455312_11-02-2025_19_26_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20455312 order by id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20433549_11-02-2025_09_43_51.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20433549 order by id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20433550_11-02-2025_10_21_40.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20433550 order by id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20433551_13-02-2025_19_30_38.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20433551 order by id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20433552_11-02-2025_08_46_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20433552 order by id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20433552_11-02-2025_08_46_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20433552 order by id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20433553_11-02-2025_08_58_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20433553 order by id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20433554_11-02-2025_09_43_21.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20433554 order by id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20433555_11-02-2025_08_38_20.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20433555 order by id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20433555_11-02-2025_08_38_20.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20433555 order by id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20433556_11-02-2025_09_36_41.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20433556 order by id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20436919_11-02-2025_09_59_14.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20436919 order by id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20436381_11-02-2025_13_58_51.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20436381 order by id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20436382_11-02-2025_11_17_48.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20436382 order by id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20436383_11-02-2025_10_05_08.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20436383 order by id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20436383_11-02-2025_10_05_08.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20436383 order by id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20436384_12-02-2025_11_13_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20436384 order by id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20436385_11-02-2025_09_10_53.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20436385 order by id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20436920_11-02-2025_12_15_20.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20436920 order by id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20436921_11-02-2025_11_20_54.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20436921 order by id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20436922_11-02-2025_10_54_47.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20436922 order by id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20436922_11-02-2025_10_54_47.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20436922 order by id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20436923_11-02-2025_14_33_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20436923 order by id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20441865_11-02-2025_12_48_38.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20441865 order by id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20441865_11-02-2025_12_48_38.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20441865 order by id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20441866_13-02-2025_14_49_38.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20441866 order by id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20441867_11-02-2025_13_06_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20441867 order by id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20441868_11-02-2025_12_24_21.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20441868 order by id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20441868_11-02-2025_12_24_21.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20441868 order by id desc limit 1 Qualite : 0.2423343387745102 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_COD_P20441869_21-02-2025_14_40_23.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20441869 order by id desc limit 1 # 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 ! TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20441869 AND mptpi.`type`=4200 To do find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20441870_11-02-2025_14_00_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20441870 order by id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20441871_11-02-2025_12_18_25.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20441871 order by id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20441871_11-02-2025_12_18_25.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20441871 order by id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20441872_13-02-2025_03_31_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20441872 order by id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20441873_11-02-2025_13_01_12.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20441873 order by id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20455313_11-02-2025_19_07_23.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20455313 order by id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20455313_11-02-2025_19_07_23.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20455313 order by id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_COD_P20455314_25-02-2025_11_53_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20455314 order by id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20445952_13-02-2025_05_16_21.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20445952 order by id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20443833_11-02-2025_12_56_39.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20443833 order by id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20443834_11-02-2025_13_36_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20443834 order by id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20443835_11-02-2025_13_47_55.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20443835 order by id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20443836_11-02-2025_13_34_19.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20443836 order by id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20443861_11-02-2025_13_14_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20443861 order by id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20443861_11-02-2025_13_14_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20443861 order by id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20444392_13-02-2025_04_48_09.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20444392 order by id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20444393_11-02-2025_15_21_46.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20444393 order by id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20444394_11-02-2025_14_49_44.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20444394 order by id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20445953_11-02-2025_15_34_50.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20445953 order by id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20445954_11-02-2025_15_22_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20445954 order by id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20445954_11-02-2025_15_22_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20445954 order by id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20445955_12-02-2025_14_28_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20445955 order by id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20445957_11-02-2025_15_03_37.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20445957 order by id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20455315_11-02-2025_20_49_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20455315 order by id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20448170_11-02-2025_16_19_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20448170 order by id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20448170_11-02-2025_16_19_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20448170 order by id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20448171_11-02-2025_18_10_38.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20448171 order by id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20448172_13-02-2025_05_47_45.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20448172 order by id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20448173_11-02-2025_16_07_41.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20448173 order by id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20448173_11-02-2025_16_07_41.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20448173 order by id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20448174_11-02-2025_16_47_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20448174 order by id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20455316_11-02-2025_19_06_38.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20455316 order by id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20455316_11-02-2025_19_06_38.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20455316 order by id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20450251_11-02-2025_18_07_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20450251 order by id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20450252_11-02-2025_17_02_44.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20450252 order by id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20450253_11-02-2025_18_20_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20450253 order by id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20450254_13-02-2025_06_39_23.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20450254 order by id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20450279_11-02-2025_17_21_54.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20450279 order by id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20450279_11-02-2025_17_21_54.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20450279 order by id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20455317_11-02-2025_20_14_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20455317 order by id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20451766_13-02-2025_07_09_11.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20451766 order by id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20451768_11-02-2025_18_07_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20451768 order by id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20451769_11-02-2025_17_28_53.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20451769 order by id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20451769_11-02-2025_17_28_53.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20451769 order by id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20451770_11-02-2025_18_41_42.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20451770 order by id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20454226_11-02-2025_20_31_43.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20454226 order by id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20454227_13-02-2025_15_06_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20454227 order by id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20454228_11-02-2025_18_19_40.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20454228 order by id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20454229_11-02-2025_18_31_53.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20454229 order by id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20454229_11-02-2025_18_31_53.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20454229 order by id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20455318_11-02-2025_20_32_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20455318 order by id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20455319_11-02-2025_19_58_25.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20455319 order by id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20459162_11-02-2025_20_06_50.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20459162 order by id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20459163_11-02-2025_20_58_15.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20459163 order by id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20459163_11-02-2025_20_58_15.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20459163 order by id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20459164_11-02-2025_21_42_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20459164 order by id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20460488_11-02-2025_21_29_17.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20460488 order by id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20460489_11-02-2025_21_09_47.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20460489 order by id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20460489_11-02-2025_21_09_47.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20460489 order by id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20460491_11-02-2025_21_50_44.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20460491 order by id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20460492_13-02-2025_08_50_46.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20460492 order by id desc limit 1 Qualite : 0.0923017035590278 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20462119_11-02-2025_21_45_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20462119 order by id desc limit 1 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! 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 7928 mask_detect is not consistent : 3 used against 2 in the step definition ! Step 8092 crop_condition have less inputs used (1) than in the step definition (2) : maybe we manage optionnal inputs ! WARNING : number of outputs for step 8092 crop_condition is not consistent : 4 used against 3 in the step definition ! WARNING : number of inputs for step 7933 rle_unique_nms_with_priority is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 7933 rle_unique_nms_with_priority is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 7935 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 7934 final have less inputs used (2) than in the step definition (3) : maybe we manage optionnal inputs ! Step 7934 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13649 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 9283 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 : type of output 1 of step 7935 doesn't seem to be define in the database( WARNING : type of input 3 of step 7934 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : type of input 1 of step 7935 doesn't seem to be define in the database( WARNING : output 1 of step 7933 have datatype=7 whereas input 1 of step 7935 have datatype=None WARNING : type of output 2 of step 7928 doesn't seem to be define in the database( WARNING : type of input 2 of step 8092 doesn't seem to be define in the database( WARNING : type of output 3 of step 8092 doesn't seem to be define in the database( WARNING : type of input 1 of step 7933 doesn't seem to be define in the database( WARNING : type of output 2 of step 7928 doesn't seem to be define in the database( WARNING : type of input 1 of step 10917 doesn't seem to be define in the database( WARNING : type of output 2 of step 7928 doesn't seem to be define in the database( WARNING : type of input 1 of step 10918 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 7935 have datatype=10 whereas input 3 of step 10916 have datatype=6 WARNING : output 0 of step 7935 have datatype=10 whereas input 0 of step 13649 have datatype=18 WARNING : type of output 1 of step 13649 doesn't seem to be define in the database( WARNING : type of input 5 of step 10916 doesn't seem to be define in the database( DataTypes for each output/input checked ! TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20462119 AND mptpi.`type`=3594 To do find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20462120_11-02-2025_21_37_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20462120 order by id desc limit 1 NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'11022025': {'nb_upload': 22, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} Inside saveOutput : final : True verbose : 0 saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1336791046, 1336791044, 1336791043, 1336791005, 1336790979, 1336790953, 1336790934, 1336790859, 1336790626, 1336790605, 1336790601, 1336790596, 1336790565, 1336790559, 1336790547, 1336790540, 1336790497, 1336790488, 1336790481, 1336790475, 1336790473, 1336790472] Looping around the photos to save general results len do output : 1 /20455314Didn'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 ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336791046', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336791044', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336791043', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336791005', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790979', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790953', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790934', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790859', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790626', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790605', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790601', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790596', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790565', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790559', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790547', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790540', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790497', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790488', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790481', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790475', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790473', None, None, None, None, None, '2612634') ('4249', None, None, None, None, None, None, None, '2612634') ('4249', '20455314', '1336790472', None, None, None, None, None, '2612634') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 23 time used for this insertion : 0.02155280113220215 save_final save missing photos in datou_result : time spend for datou_step_exec : 35.87417960166931 time spend to save output : 0.021851539611816406 total time spend for step 9 : 35.89603114128113 caffe_path_current : About to save ! 2 After save, about to update current ! ret : 2 len(input) + len(total_photo_id_missing) : 22 set_done_treatment 6.11user 2.03system 1:00.50elapsed 13%CPU (0avgtext+0avgdata 201400maxresident)k 7592inputs+71304outputs (3major+156063minor)pagefaults 0swaps