python /home/admin/mtr/script_for_cron.py -j datou_current3 -m 8 -a ' -a 4871 -l 100 ' -s datou_current_4871 -M 0 -S 0 -U 95,95,120 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/caffe_cuda8_python3/python', '/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', '/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 : 4054515 load datou : 4871 # 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) DONE and to test : checkNoCycle ! We are managing only one step so we do not consider checkConsistencyNbInputNbOutput ! We are managing only one step so we do not consider checkConsistencyTypeOutputInput ! 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 ? load thcls load pdts Running datou job : batch_current TODO datou_current to load to do maybe to take outside batchDatouExec no input labels no input values updating current state to 1 we have a portfolio with more photos than limit : 6701>100 please execute split_portfolio.py -i 24815507 -l 100 size over we load limit photo not treated list_input_json: {} Current got : datou_id : 4871, datou_cur_ids : ['3267785'] with mtr_portfolio_ids : ['24815507'] and first list_photo_ids : [] new path : /proc/4054515/ 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) DONE and to test : checkNoCycle ! We are managing only one step so we do not consider checkConsistencyNbInputNbOutput ! We are managing only one step so we do not consider checkConsistencyTypeOutputInput ! List Step Type Loaded in datou : blur_detection 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 ! BFBFBFBHTTP Error 404: Not Found can't download the photo : 1371587029 complete_path : /home/admin/workarea/git/Velours/python/temp/1752251248_4054515_1371587029_9251d99a452940395ea3e1121f962049.jpg FBHTTP Error 404: Not Found can't download the photo : 1371586875 complete_path : /home/admin/workarea/git/Velours/python/temp/1752251248_4054515_1371586875_a4bdd47cc33f07f96a8608a517959b3d.jpg FBFBFBFBFBHTTP Error 404: Not Found can't download the photo : 1371586734 complete_path : /home/admin/workarea/git/Velours/python/temp/1752251248_4054515_1371586734_828663a092351038641053d3e76b92d0.jpg FBHTTP Error 404: Not Found can't download the photo : 1371586673 complete_path : /home/admin/workarea/git/Velours/python/temp/1752251248_4054515_1371586673_19e72fd5a062ad86e23baae228944238.jpg FBHTTP Error 404: Not Found can't download the photo : 1371586604 complete_path : /home/admin/workarea/git/Velours/python/temp/1752251248_4054515_1371586604_6ad2c329c37c91501bc12192e4e575db.jpg FBHTTP Error 404: Not Found can't download the photo : 1371586600 complete_path : /home/admin/workarea/git/Velours/python/temp/1752251248_4054515_1371586600_393966dd82722340eb2b170dbf8e859e.jpg FBFBFBHTTP Error 404: Not Found can't download the photo : 1371586460 complete_path : /home/admin/workarea/git/Velours/python/temp/1752251248_4054515_1371586460_c000f5b39cbe688404e6a75a6b507136.jpg FBFBFBFBHTTP Error 404: Not Found can't download the photo : 1371586386 complete_path : /home/admin/workarea/git/Velours/python/temp/1752251248_4054515_1371586386_225a68269370d8a9f356895836e46d71.jpg Fwe have missing 8 photos in the step downloads : photo missing : [1371587029, 1371586875, 1371586734, 1371586673, 1371586604, 1371586600, 1371586460, 1371586386] try to delete the photos missing in DB Url missing : :https://www.fotonower.com/api/v1/photo/onerrorloadautomation/1371587029 Url missing : :https://www.fotonower.com/api/v1/photo/onerrorloadautomation/1371586875 Url missing : :https://www.fotonower.com/api/v1/photo/onerrorloadautomation/1371586734 Url missing : :https://www.fotonower.com/api/v1/photo/onerrorloadautomation/1371586673 Url missing : :https://www.fotonower.com/api/v1/photo/onerrorloadautomation/1371586604 Url missing : :https://www.fotonower.com/api/v1/photo/onerrorloadautomation/1371586600 Url missing : :https://www.fotonower.com/api/v1/photo/onerrorloadautomation/1371586460 Url missing : :https://www.fotonower.com/api/v1/photo/onerrorloadautomation/1371586386 length of list_filenames : 12 ; length of list_pids : 12 ; length of list_args : 12 time to download the photos : 4.527373790740967 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 : 1 step1:blur_detection Fri Jul 11 18:27:32 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 inside step blur_detection methode: ratio et variance treat image : temp/1752251248_4054515_1371587247_a91f00798530e0befb3da2a8f7a3ea7c.jpg resize: (1080, 1632) 1371587247 -4.902083873449613 treat image : temp/1752251248_4054515_1371587155_f1314c1b6725d1c8cfafd78e1b1ad881.jpg resize: (1080, 1632) 1371587155 -5.13571899063413 treat image : temp/1752251248_4054515_1371587134_0e2180ec1247a65369a17c8fc0246c6e.jpg resize: (1080, 1632) 1371587134 -5.062713449112093 treat image : temp/1752251248_4054515_1371586872_4de4bdbea9c555271555b8abb80d58cc.jpg resize: (1080, 1632) 1371586872 -6.358652418970475 treat image : temp/1752251248_4054515_1371586865_322d51cc1972d27bebbe16f1cc5cc55f.jpg resize: (1080, 1632) 1371586865 -5.195756491698641 treat image : temp/1752251248_4054515_1371586833_e7618f820f9ff655bacf7a0d8a5e1ae4.jpg resize: (1080, 1632) 1371586833 -4.949558265132653 treat image : temp/1752251248_4054515_1371586756_c3393116e1dcb8deed24faf9181a868b.jpg resize: (1080, 1632) 1371586756 -5.139747859987821 treat image : temp/1752251248_4054515_1371586571_5c88a8fe682064df209b2ac2281485a7.jpg resize: (1080, 1632) 1371586571 -5.0549329487815475 treat image : temp/1752251248_4054515_1371586570_ff2223054531fbf332281f324b52f9f5.jpg resize: (1080, 1632) 1371586570 -4.903069985803169 treat image : temp/1752251248_4054515_1371586445_828dd9e67751cd2e2ca68dd885bc3244.jpg resize: (1080, 1632) 1371586445 -4.968764792412263 treat image : temp/1752251248_4054515_1371586439_a4ca66005da5fcdc458b4aff17a67d0d.jpg resize: (1080, 1632) 1371586439 -4.884016921191295 treat image : temp/1752251248_4054515_1371586436_8c154454e56f28979ffe37f9d75ed85a.jpg resize: (1080, 1632) 1371586436 -5.155236715444234 Inside saveOutput : final : True verbose : 0 begin to insert list_values into class_photo_scores : length of list_valuse in save_photo_hashtag_id_thcl_score : 12 time used for this insertion : 0.012584209442138672 begin to insert list_values into photo_hahstag_ids : length of list_valuse in save_photo_hashtag_id_type : 12 time used for this insertion : 0.012166976928710938 begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 time used for this insertion : 0.01381540298461914 save missing photos in datou_result : begin to insert list_values into mtr_datou_result : length of list_values in save_final : 8 time used for this insertion : 0.011781692504882812 time spend for datou_step_exec : 9.128995656967163 time spend to save output : 0.055021047592163086 total time spend for step 1 : 9.184016704559326 caffe_path_current : About to save ! 2 After save, about to update current ! update_current_state 9.00user 2.42system 0:17.06elapsed 66%CPU (0avgtext+0avgdata 138792maxresident)k 24inputs+6144outputs (0major+175188minor)pagefaults 0swaps