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 : 3100886 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 : 2579>100 please execute split_portfolio.py -i 23145313 -l 100 size over we load limit photo not treated list_input_json: {} Current got : datou_id : 4871, datou_cur_ids : ['2900260'] with mtr_portfolio_ids : ['23145313'] and first list_photo_ids : [] new path : /proc/3100886/ 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 ! BFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFB[Errno 104] Connection reset by peer can't download the photo : 1359826018 complete_path : /home/admin/workarea/git/Velours/python/temp/1747752148_3100886_1359826018_7362fd36bad2b87e42f7df64e1a2f651.jpg Fwe have missing 1 photos in the step downloads : photo missing : [1359826018] try to delete the photos missing in DB Url missing : :https://www.fotonower.com/api/v1/photo/onerrorloadautomation/1359826018 length of list_filenames : 19 ; length of list_pids : 19 ; length of list_args : 19 time to download the photos : 2.784566640853882 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 Tue May 20 16:42:31 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/1747752148_3100886_1359826683_93350fc4637f3ec5104ac5d4b2ce8e41.jpg resize: (1080, 1632) 1359826683 -5.439253038819109 treat image : temp/1747752148_3100886_1359826679_05cba04f6ac74812ac6a84f9c81b45ac.jpg resize: (1080, 1632) 1359826679 -4.8182745573005965 treat image : temp/1747752148_3100886_1359826675_0f7b5e63d14ee51ebe93634877f8f479.jpg resize: (1080, 1632) 1359826675 -5.37859535193534 treat image : temp/1747752148_3100886_1359826670_282749c38f26c3b0f1e46e596912113c.jpg resize: (1080, 1632) 1359826670 -5.584117731842687 treat image : temp/1747752148_3100886_1359826667_22a570ff79ca737c2a801708e5ab233a.jpg resize: (1080, 1632) 1359826667 -5.397396407215846 treat image : temp/1747752148_3100886_1359826664_eb2651a4ffe0998e31df3db4a9f18ef4.jpg resize: (1080, 1632) 1359826664 -3.437810519388211 treat image : temp/1747752148_3100886_1359826486_9ae8fcd95ecc4fedbaa9a1b2dc6f8d1f.jpg resize: (1080, 1632) 1359826486 -1.4565412852490864 treat image : temp/1747752148_3100886_1359826457_7bc9333dc3e7a15751238b705cce0cb9.jpg resize: (1080, 1632) 1359826457 -2.5706797538469317 treat image : temp/1747752148_3100886_1359826422_3796448e9713e5f3a83b6ccaf7eaabd6.jpg resize: (1080, 1632) 1359826422 -5.2593093405399935 treat image : temp/1747752148_3100886_1359826396_fc59ac42284e289d1d99eea41137bb1c.jpg resize: (1080, 1632) 1359826396 -2.848527247604411 treat image : temp/1747752148_3100886_1359826367_ddb059ed99521642e9bd10f5cbd988ea.jpg resize: (1080, 1632) 1359826367 -4.749768133633967 treat image : temp/1747752148_3100886_1359826337_77e4ce2d1067bb1fc6f0f26fd833b120.jpg resize: (1080, 1632) 1359826337 -5.112819614662488 treat image : temp/1747752148_3100886_1359826258_73caad3084fbdc586b2717871158c889.jpg resize: (1080, 1632) 1359826258 -4.812198410736323 treat image : temp/1747752148_3100886_1359826256_964fac4d87ab720365aa55d90bb216f9.jpg resize: (1080, 1632) 1359826256 -3.797502483004532 treat image : temp/1747752148_3100886_1359826253_b561dd5e6a3fc902459b266030c143a2.jpg resize: (1080, 1632) 1359826253 -5.4339231419810945 treat image : temp/1747752148_3100886_1359826248_a3b6123ec7cbcab27fdf693895acd6b4.jpg resize: (1080, 1632) 1359826248 -4.891915457020222 treat image : temp/1747752148_3100886_1359826058_b7d17bdd04ef734f61c7c407670104a2.jpg resize: (1080, 1632) 1359826058 -4.954892845219206 treat image : temp/1747752148_3100886_1359826024_0570ba13c9ccc614fa35f2a7004c23c6.jpg resize: (1080, 1632) 1359826024 -5.357073172124372 treat image : temp/1747752148_3100886_1359826022_64549ae55e871be6c5c67a2a5c8b48de.jpg resize: (1080, 1632) 1359826022 -4.652458289265602 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 : 19 time used for this insertion : 0.012757062911987305 begin to insert list_values into photo_hahstag_ids : length of list_valuse in save_photo_hashtag_id_type : 19 time used for this insertion : 0.017787456512451172 begin to insert list_values into mtr_datou_result : length of list_values in save_final : 19 time used for this insertion : 0.017969131469726562 save missing photos in datou_result : begin to insert list_values into mtr_datou_result : length of list_values in save_final : 1 time used for this insertion : 0.014813423156738281 time spend for datou_step_exec : 17.458115339279175 time spend to save output : 0.0686025619506836 total time spend for step 1 : 17.52671790122986 caffe_path_current : About to save ! 2 After save, about to update current ! update_current_state 14.65user 4.60system 0:23.88elapsed 80%CPU (0avgtext+0avgdata 140044maxresident)k 1760inputs+8952outputs (22major+248464minor)pagefaults 0swaps