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 3459 -P 2501098' -s traitement_3459 -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 : 2637606 load datou : 3459 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 11449 mask_detect is not consistent : 3 used against 2 in the step definition ! Step 11452 crop_condition have less inputs used (1) than in the step definition (2) : maybe we manage optionnal inputs ! Step 11452 crop_condition have less outputs used (2) than in the step definition (3) : some outputs may be not used ! Step 11453 merge_mask_thcl_custom have less inputs used (2) than in the step definition (3) : maybe we manage optionnal inputs ! WARNING : number of outputs for step 11453 merge_mask_thcl_custom is not consistent : 4 used against 2 in the step definition ! WARNING : number of inputs for step 11454 rle_unique_nms_with_priority is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 11454 rle_unique_nms_with_priority is not consistent : 2 used against 1 in the step definition ! Step 11478 crop_condition have less inputs used (1) than in the step definition (2) : maybe we manage optionnal inputs ! WARNING : number of outputs for step 11478 crop_condition is not consistent : 4 used against 3 in the step definition ! WARNING : number of inputs for step 11456 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 11456 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11455 final have less inputs used (2) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11455 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! Step 11458 send_mail_cod have less inputs used (3) than in the step definition (5) : 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 ! WARNING : type of output 2 of step 11449 doesn't seem to be define in the database( WARNING : type of input 2 of step 11452 doesn't seem to be define in the database( WARNING : output 1 of step 11449 have datatype=2 whereas input 1 of step 11453 have datatype=7 WARNING : type of output 2 of step 11453 doesn't seem to be define in the database( WARNING : type of input 1 of step 11454 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : type of output 3 of step 11453 doesn't seem to be define in the database( WARNING : type of input 1 of step 11456 doesn't seem to be define in the database( WARNING : type of output 1 of step 11456 doesn't seem to be define in the database( WARNING : type of input 3 of step 11455 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 11456 have datatype=10 whereas input 3 of step 11458 have datatype=6 WARNING : type of input 5 of step 11458 doesn't seem to be define in the database( WARNING : output 0 of step 11477 have datatype=11 whereas input 5 of step 11458 have datatype=None WARNING : output 0 of step 11456 have datatype=10 whereas input 0 of step 11477 have datatype=18 WARNING : type of input 2 of step 11478 doesn't seem to be define in the database( WARNING : output 1 of step 11454 have datatype=7 whereas input 2 of step 11478 have datatype=None WARNING : type of output 3 of step 11478 doesn't seem to be define in the database( WARNING : type of input 2 of step 11456 doesn't seem to be define in the database( WARNING : output 0 of step 11453 have datatype=1 whereas input 0 of step 11454 have datatype=2 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 : chemin de la photo was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? [(photo_id, hashtag_id, hashtag_type, x0, x1, y0, y1, score, seg_temp, polygons), ...] was removed should we ? chemin de la photo was removed should we ? [ (photo_id_loc, hashtag_id, hashtag_type, x0, x1, y0, y1, score, None), ...] was removed should we ? chemin de la photo was removed should we ? id de la photo (peut être local ou global) was removed should we ? chemin de la photo was removed should we ? (x0, y0, x1, y1) was removed should we ? chemin de la photo was removed should we ? [ (photo_id, hashtag_id_0, score_0), (photo_id, hashtag_id_1, score_1), ...] was removed should we ? output optionnel thcl was removed should we ? id de la photo (peut être local ou global) was removed should we ? [ (photo_id, photo_id_loc, hashtag_type, x0, x1, y0, y1, score), ...] was removed should we ? [ (photo_id, hashtag_id_0, score_0), (photo_id, hashtag_id_1, score_1), ...] was removed should we ? id de la photo (peut être local ou global) was removed should we ? [ (photo_id, photo_id_loc, hashtag_type, x0, x1, y0, y1, score), ...] 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 ? [ (photo_id_loc, hashtag_id, hashtag_type, x0, x1, y0, y1, score, None), ...] was removed should we ? chemin de la photo was removed should we ? id de la photo (peut être local ou global) was removed should we ? chemin de la photo was removed should we ? (x0, y0, x1, y1) 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 ? None was removed should we ? donnée sous forme de nombre 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 ? FOUND : 1 Here is data_from_sql_as_vec to set the ParamDescriptorType : (4999, 'learn_qualipapia_papier_refus_from_vlg_data_aug', 16384, 25088, 'learn_qualipapia_papier_refus_from_vlg_data_aug', 'res5b', 10.0, None, None, 256, None, 0, None, 8, None, None, -1000.0, 1, datetime.datetime(2020, 10, 23, 14, 27, 22), datetime.datetime(2020, 10, 23, 14, 27, 22)) FOUND : 1 Here is data_from_sql_as_vec to set the ParamDescriptorType : (5288, 'learn_papier_nantes_300421', 512, 512, 'learn_papier_nantes_300421', 'pool5', 10.0, None, None, 256, None, 0, None, 8, None, None, -1000.0, 1, datetime.datetime(2021, 4, 30, 17, 9, 41), datetime.datetime(2021, 4, 30, 17, 9, 41)) FOUND : 1 Here is data_from_sql_as_vec to set the ParamDescriptorType : (5309, 'learn_convoyeur_qualipapia_nantes_poly_100521_1', 16384, 25088, 'learn_convoyeur_qualipapia_nantes_poly_100521_1', 'pool5', 10.0, None, None, 256, None, 0, None, 8, None, None, -1000.0, 1, datetime.datetime(2021, 5, 10, 19, 20, 46), datetime.datetime(2021, 5, 10, 19, 20, 46)) load thcls load THCL from format json or kwargs add thcl : 2456 in CacheModelConfig load THCL from format json or kwargs add thcl : 2868 in CacheModelConfig load THCL from format json or kwargs add thcl : 2896 in CacheModelConfig load pdts add pdt : 4999 in CacheModelConfig add pdt : 5288 in CacheModelConfig add pdt : 5309 in CacheModelConfig Running datou job : batch_current updating current state to 1 list_input_json: [] Current got : datou_id : 3459, datou_cur_ids : ['2562148'] with mtr_portfolio_ids : ['2501098'] and first list_photo_ids : [] new path : /proc/2637606/ 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 ! 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 11449 mask_detect is not consistent : 3 used against 2 in the step definition ! Step 11452 crop_condition have less inputs used (1) than in the step definition (2) : maybe we manage optionnal inputs ! Step 11452 crop_condition have less outputs used (2) than in the step definition (3) : some outputs may be not used ! Step 11453 merge_mask_thcl_custom have less inputs used (2) than in the step definition (3) : maybe we manage optionnal inputs ! WARNING : number of outputs for step 11453 merge_mask_thcl_custom is not consistent : 4 used against 2 in the step definition ! WARNING : number of inputs for step 11454 rle_unique_nms_with_priority is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 11454 rle_unique_nms_with_priority is not consistent : 2 used against 1 in the step definition ! Step 11478 crop_condition have less inputs used (1) than in the step definition (2) : maybe we manage optionnal inputs ! WARNING : number of outputs for step 11478 crop_condition is not consistent : 4 used against 3 in the step definition ! WARNING : number of inputs for step 11456 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 11456 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11455 final have less inputs used (2) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11455 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! Step 11458 send_mail_cod have less inputs used (3) than in the step definition (5) : 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 ! WARNING : type of output 2 of step 11449 doesn't seem to be define in the database( WARNING : type of input 2 of step 11452 doesn't seem to be define in the database( WARNING : output 1 of step 11449 have datatype=2 whereas input 1 of step 11453 have datatype=7 WARNING : type of output 2 of step 11453 doesn't seem to be define in the database( WARNING : type of input 1 of step 11454 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : type of output 3 of step 11453 doesn't seem to be define in the database( WARNING : type of input 1 of step 11456 doesn't seem to be define in the database( WARNING : type of output 1 of step 11456 doesn't seem to be define in the database( WARNING : type of input 3 of step 11455 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 11456 have datatype=10 whereas input 3 of step 11458 have datatype=6 WARNING : type of input 5 of step 11458 doesn't seem to be define in the database( WARNING : output 0 of step 11477 have datatype=11 whereas input 5 of step 11458 have datatype=None WARNING : output 0 of step 11456 have datatype=10 whereas input 0 of step 11477 have datatype=18 WARNING : type of input 2 of step 11478 doesn't seem to be define in the database( WARNING : output 1 of step 11454 have datatype=7 whereas input 2 of step 11478 have datatype=None WARNING : type of output 3 of step 11478 doesn't seem to be define in the database( WARNING : type of input 2 of step 11456 doesn't seem to be define in the database( WARNING : output 0 of step 11453 have datatype=1 whereas input 0 of step 11454 have datatype=2 DataTypes for each output/input checked ! List Step Type Loaded in datou : mask_detect, crop_condition, thcl, merge_mask_thcl_custom, rle_unique_nms_with_priority, crop_condition, ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 20 list_input_json : [] origin We have 1 , WARNING: data may be incomplete, need to offset and complete ! BHTTP Error 404: Not Found can't download the photo : 995212308 complete_path : /home/admin/temp/1738914716_2637606_995212308_692d64ed4d43146980773818a8826f12.jpg FBHTTP Error 404: Not Found can't download the photo : 995212300 complete_path : /home/admin/temp/1738914716_2637606_995212300_050f438098e28f1dd2d6fca4ea4bab98.jpg FBHTTP Error 404: Not Found can't download the photo : 995212291 complete_path : /home/admin/temp/1738914716_2637606_995212291_179872907ffd5cb286fd63f765880168.jpg FBHTTP Error 404: Not Found can't download the photo : 995211953 complete_path : /home/admin/temp/1738914716_2637606_995211953_ba1a88028a167c04462e2a6c6aa5a19c.jpg FBHTTP Error 404: Not Found can't download the photo : 995211694 complete_path : /home/admin/temp/1738914716_2637606_995211694_4c6e147b7c15a746053f1e46d8be3911.jpg FBHTTP Error 404: Not Found can't download the photo : 995211690 complete_path : /home/admin/temp/1738914716_2637606_995211690_6dbb0c8dd45027743c6575041a418367.jpg FBHTTP Error 404: Not Found can't download the photo : 995211684 complete_path : /home/admin/temp/1738914716_2637606_995211684_7b6e0090d6c9cf85355f12e8b0a24be9.jpg FBHTTP Error 404: Not Found can't download the photo : 995211681 complete_path : /home/admin/temp/1738914716_2637606_995211681_8c1b4f020261ae0c220ff8f7ab58d935.jpg FBHTTP Error 404: Not Found can't download the photo : 995211679 complete_path : /home/admin/temp/1738914716_2637606_995211679_22b77dfdeaec3efe1fcf6b6a67f5ab3a.jpg FBHTTP Error 404: Not Found can't download the photo : 995211167 complete_path : /home/admin/temp/1738914716_2637606_995211167_1940914c60e1c62de8bbc38e65116572.jpg FBHTTP Error 404: Not Found can't download the photo : 995211164 complete_path : /home/admin/temp/1738914716_2637606_995211164_7c564da74ba91ae67959241595ef98e1.jpg FBHTTP Error 404: Not Found can't download the photo : 995211162 complete_path : /home/admin/temp/1738914716_2637606_995211162_ef2150464506ee91a2ccb98638eb90e7.jpg FBHTTP Error 404: Not Found can't download the photo : 995211140 complete_path : /home/admin/temp/1738914716_2637606_995211140_36154c86ac4f96bc207277de7249e4b6.jpg FBHTTP Error 404: Not Found can't download the photo : 995211139 complete_path : /home/admin/temp/1738914716_2637606_995211139_77afdef7d1ca12222f1623f020473c0a.jpg FBHTTP Error 404: Not Found can't download the photo : 995209350 complete_path : /home/admin/temp/1738914716_2637606_995209350_7542de885d9d00c3fd6bae6dfa673bea.jpg FBHTTP Error 404: Not Found can't download the photo : 995209345 complete_path : /home/admin/temp/1738914716_2637606_995209345_21e72ebef95365b0323a88be29324582.jpg FBHTTP Error 404: Not Found can't download the photo : 995209337 complete_path : /home/admin/temp/1738914716_2637606_995209337_db5a7ab960bea2d2982fec380dafcd10.jpg FBHTTP Error 404: Not Found can't download the photo : 995209310 complete_path : /home/admin/temp/1738914716_2637606_995209310_8c2e37cda62a18170dceab18d328367c.jpg FBHTTP Error 404: Not Found can't download the photo : 995209309 complete_path : /home/admin/temp/1738914716_2637606_995209309_9a973b54f8c699ea891f0cded23fa366.jpg FBHTTP Error 404: Not Found can't download the photo : 995206731 complete_path : /home/admin/temp/1738914716_2637606_995206731_a862a3403392e9148ba4fa559e441511.jpg Fwe have missing 20 photos in the step downloads : photo missing : [995212308, 995212300, 995212291, 995211953, 995211694, 995211690, 995211684, 995211681, 995211679, 995211167, 995211164, 995211162, 995211140, 995211139, 995209350, 995209345, 995209337, 995209310, 995209309, 995206731] try to delete the photos missing in DB Url missing : :https://www.fotonower.com/api/v1/photo/onerrorloadautomation/995212308 Url missing : :https://www.fotonower.com/api/v1/photo/onerrorloadautomation/995212300 Url missing : :https://www.fotonower.com/api/v1/photo/onerrorloadautomation/995212291 Url missing : :https://www.fotonower.com/api/v1/photo/onerrorloadautomation/995211953 Url missing : :https://www.fotonower.com/api/v1/photo/onerrorloadautomation/995211694 Url missing : :https://www.fotonower.com/api/v1/photo/onerrorloadautomation/995211690 Url missing : :https://www.fotonower.com/api/v1/photo/onerrorloadautomation/995211684 Url missing : :https://www.fotonower.com/api/v1/photo/onerrorloadautomation/995211681 Url missing : :https://www.fotonower.com/api/v1/photo/onerrorloadautomation/995211679 Url missing : :https://www.fotonower.com/api/v1/photo/onerrorloadautomation/995211167 Url missing : :https://www.fotonower.com/api/v1/photo/onerrorloadautomation/995211164 Url missing : :https://www.fotonower.com/api/v1/photo/onerrorloadautomation/995211162 Url missing : :https://www.fotonower.com/api/v1/photo/onerrorloadautomation/995211140 Url missing : :https://www.fotonower.com/api/v1/photo/onerrorloadautomation/995211139 Url missing : :https://www.fotonower.com/api/v1/photo/onerrorloadautomation/995209350 Url missing : :https://www.fotonower.com/api/v1/photo/onerrorloadautomation/995209345 Url missing : :https://www.fotonower.com/api/v1/photo/onerrorloadautomation/995209337 Url missing : :https://www.fotonower.com/api/v1/photo/onerrorloadautomation/995209310 Url missing : :https://www.fotonower.com/api/v1/photo/onerrorloadautomation/995209309 Url missing : :https://www.fotonower.com/api/v1/photo/onerrorloadautomation/995206731 length of list_filenames : 0 ; length of list_pids : 0 ; length of list_args : 0 time to download the photos : 9.191479444503784 About to test input to load empty input or other problem ret : 2 all the photo in this batch is missing ! 1.07user 0.75system 0:14.66elapsed 12%CPU (0avgtext+0avgdata 98664maxresident)k 0inputs+72outputs (4major+48448minor)pagefaults 0swaps