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 2500660' -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 : 2642605 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 : ['2562176'] with mtr_portfolio_ids : ['2500660'] and first list_photo_ids : [] new path : /proc/2642605/ 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 : 995211168 complete_path : /home/admin/temp/1738914852_2642605_995211168_5f4e503ee5e814729e0b29462f313b0c.jpg FBHTTP Error 404: Not Found can't download the photo : 995211166 complete_path : /home/admin/temp/1738914852_2642605_995211166_3ebfa2c2eb118f7383712171908811a8.jpg FBHTTP Error 404: Not Found can't download the photo : 995211160 complete_path : /home/admin/temp/1738914852_2642605_995211160_3a0fd0639a51fc0198627e5469943291.jpg FBHTTP Error 404: Not Found can't download the photo : 995209316 complete_path : /home/admin/temp/1738914852_2642605_995209316_93fb5d327d2519c68e2faafc0c7b347e.jpg FBHTTP Error 404: Not Found can't download the photo : 995209307 complete_path : /home/admin/temp/1738914852_2642605_995209307_3d080c4c481b11f83f672078caa5b8e3.jpg FBHTTP Error 404: Not Found can't download the photo : 995206742 complete_path : /home/admin/temp/1738914852_2642605_995206742_f9b0fb922f96c22931fdb9727efa8d39.jpg FBHTTP Error 404: Not Found can't download the photo : 995206696 complete_path : /home/admin/temp/1738914852_2642605_995206696_37d4211f82a4d12da6dd6bba3e07f0c9.jpg FBHTTP Error 404: Not Found can't download the photo : 995206425 complete_path : /home/admin/temp/1738914852_2642605_995206425_b5f89d583ff141b254845542e046893f.jpg FBHTTP Error 404: Not Found can't download the photo : 995206421 complete_path : /home/admin/temp/1738914852_2642605_995206421_96761f3fe37261bce38a2696c0043003.jpg FBHTTP Error 404: Not Found can't download the photo : 995206385 complete_path : /home/admin/temp/1738914852_2642605_995206385_8467114b0463ce419e8cb15cdae97e0e.jpg FBHTTP Error 404: Not Found can't download the photo : 995206376 complete_path : /home/admin/temp/1738914852_2642605_995206376_508f3666a05fcb3c31bc8929eefdb4f6.jpg FBHTTP Error 404: Not Found can't download the photo : 995206184 complete_path : /home/admin/temp/1738914852_2642605_995206184_bd5eee4eeade7d66698d1f368418fbc8.jpg FBHTTP Error 404: Not Found can't download the photo : 995206175 complete_path : /home/admin/temp/1738914852_2642605_995206175_d4db1479630f1677c2a5ea9ecee5b6fe.jpg FBHTTP Error 404: Not Found can't download the photo : 995206122 complete_path : /home/admin/temp/1738914852_2642605_995206122_c24e32cddec9b9844cbe222a679302e0.jpg FBHTTP Error 404: Not Found can't download the photo : 995206121 complete_path : /home/admin/temp/1738914852_2642605_995206121_dafe728f1988a8d53036e433ce14aa97.jpg FBHTTP Error 404: Not Found can't download the photo : 995206120 complete_path : /home/admin/temp/1738914852_2642605_995206120_041572c0b92ac411da99d1c9ee14c9bd.jpg FBHTTP Error 404: Not Found can't download the photo : 995206118 complete_path : /home/admin/temp/1738914852_2642605_995206118_5ede7dfa5c20636d7683273d30bd78c8.jpg FBHTTP Error 404: Not Found can't download the photo : 995206113 complete_path : /home/admin/temp/1738914852_2642605_995206113_3bceee7158f02903e05a5b88ed035259.jpg FBHTTP Error 404: Not Found can't download the photo : 995206112 complete_path : /home/admin/temp/1738914852_2642605_995206112_f812e05e5fb0c92e84d13518b8e5aa62.jpg FBHTTP Error 404: Not Found can't download the photo : 995205950 complete_path : /home/admin/temp/1738914852_2642605_995205950_71f1cab9053f835e247d345e5d1a5af0.jpg Fwe have missing 20 photos in the step downloads : photo missing : [995211168, 995211166, 995211160, 995209316, 995209307, 995206742, 995206696, 995206425, 995206421, 995206385, 995206376, 995206184, 995206175, 995206122, 995206121, 995206120, 995206118, 995206113, 995206112, 995205950] try to delete the photos missing in DB Url missing : :https://www.fotonower.com/api/v1/photo/onerrorloadautomation/995211168 Url missing : :https://www.fotonower.com/api/v1/photo/onerrorloadautomation/995211166 Url missing : :https://www.fotonower.com/api/v1/photo/onerrorloadautomation/995211160 Url missing : :https://www.fotonower.com/api/v1/photo/onerrorloadautomation/995209316 Url missing : :https://www.fotonower.com/api/v1/photo/onerrorloadautomation/995209307 Url missing : :https://www.fotonower.com/api/v1/photo/onerrorloadautomation/995206742 Url missing : :https://www.fotonower.com/api/v1/photo/onerrorloadautomation/995206696 Url missing : :https://www.fotonower.com/api/v1/photo/onerrorloadautomation/995206425 Url missing : :https://www.fotonower.com/api/v1/photo/onerrorloadautomation/995206421 Url missing : :https://www.fotonower.com/api/v1/photo/onerrorloadautomation/995206385 Url missing : :https://www.fotonower.com/api/v1/photo/onerrorloadautomation/995206376 Url missing : :https://www.fotonower.com/api/v1/photo/onerrorloadautomation/995206184 Url missing : :https://www.fotonower.com/api/v1/photo/onerrorloadautomation/995206175 Url missing : :https://www.fotonower.com/api/v1/photo/onerrorloadautomation/995206122 Url missing : :https://www.fotonower.com/api/v1/photo/onerrorloadautomation/995206121 Url missing : :https://www.fotonower.com/api/v1/photo/onerrorloadautomation/995206120 Url missing : :https://www.fotonower.com/api/v1/photo/onerrorloadautomation/995206118 Url missing : :https://www.fotonower.com/api/v1/photo/onerrorloadautomation/995206113 Url missing : :https://www.fotonower.com/api/v1/photo/onerrorloadautomation/995206112 Url missing : :https://www.fotonower.com/api/v1/photo/onerrorloadautomation/995205950 length of list_filenames : 0 ; length of list_pids : 0 ; length of list_args : 0 time to download the photos : 7.302379131317139 About to test input to load empty input or other problem ret : 2 all the photo in this batch is missing ! 1.08user 0.73system 0:09.81elapsed 18%CPU (0avgtext+0avgdata 99108maxresident)k 0inputs+56outputs (5major+48421minor)pagefaults 0swaps