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 : 3114737 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 : 2609>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/3114737/ 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 ! BFBFBFBFBFBFBFBFB[Errno 104] Connection reset by peer can't download the photo : 1359827752 complete_path : /home/admin/workarea/git/Velours/python/temp/1747752447_3114737_1359827752_a6bcb9ef4e12355fb676ae23070ce381.jpg FBFBFBFBFBFBFBFBFBFBFBFwe have missing 1 photos in the step downloads : photo missing : [1359827752] try to delete the photos missing in DB Url missing : :https://www.fotonower.com/api/v1/photo/onerrorloadautomation/1359827752 length of list_filenames : 19 ; length of list_pids : 19 ; length of list_args : 19 time to download the photos : 2.672623634338379 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:47:29 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/1747752447_3114737_1359827883_48dff2ed8e8234e973178fb266c7796f.jpg resize: (1080, 1632) 1359827883 -1.387711941068826 treat image : temp/1747752447_3114737_1359827854_c318f21f7f4545cf0b8e1dea3fbf55dc.jpg resize: (1080, 1632) 1359827854 -1.6848369015235647 treat image : temp/1747752447_3114737_1359827849_c0a3dcc8875d6f04c8d211af0eb0bf24.jpg resize: (1080, 1632) 1359827849 -3.1938934844033797 treat image : temp/1747752447_3114737_1359827848_5fc9c4032bf2492588ccabbdd4e201c0.jpg resize: (1080, 1632) 1359827848 -6.5653389380926015 treat image : temp/1747752447_3114737_1359827763_acec28ce67b92ad3f05b177602d2ae90.jpg resize: (1080, 1632) 1359827763 -5.934860072500182 treat image : temp/1747752447_3114737_1359827761_a0f7a81166fd3f647e920ce10f9d24e9.jpg resize: (1080, 1632) 1359827761 -6.041775198736178 treat image : temp/1747752447_3114737_1359827758_e4359afd9d0ea2c3e52183c43a818001.jpg resize: (1080, 1632) 1359827758 -6.055183396363838 treat image : temp/1747752447_3114737_1359827755_06632e50e9e7d05ef5e3e89ccb9f826b.jpg resize: (1080, 1632) 1359827755 -6.051739012944563 treat image : temp/1747752447_3114737_1359827750_e5ad95197d6a620e35820ab3116984e3.jpg resize: (1080, 1632) 1359827750 -5.342964175691954 treat image : temp/1747752447_3114737_1359827645_1130cd36a58c11feb919ae050fefdbfd.jpg resize: (1080, 1632) 1359827645 -5.214464798700855 treat image : temp/1747752447_3114737_1359827642_cf892ecf89b37419e6f7b8430b3df804.jpg resize: (1080, 1632) 1359827642 -5.18323093846298 treat image : temp/1747752447_3114737_1359827637_2c406b742610cd3c45a98965a23d2931.jpg resize: (1080, 1632) 1359827637 -5.902695854352402 treat image : temp/1747752447_3114737_1359827611_c15aa8659326d6015493648613027bcb.jpg resize: (1080, 1632) 1359827611 -5.76369382370389 treat image : temp/1747752447_3114737_1359827604_8f0b793fbfa8d519b8ce7b33b6fa16c8.jpg resize: (1080, 1632) 1359827604 -5.9854118501103475 treat image : temp/1747752447_3114737_1359827483_d1916655c9d6d9f4a0423f6819d26cbc.jpg resize: (1080, 1632) 1359827483 -0.09128826089421489 treat image : temp/1747752447_3114737_1359827454_63bf365f738ac3a03c440c871237a8a0.jpg resize: (1080, 1632) 1359827454 -2.234925202309235 treat image : temp/1747752447_3114737_1359827439_83d5a501f35aee8f64c2fb9e663b3f57.jpg resize: (1080, 1632) 1359827439 -4.436941533909986 treat image : temp/1747752447_3114737_1359827437_6ff1c6747039ab51e872e295e364e233.jpg resize: (1080, 1632) 1359827437 -5.493583049912129 treat image : temp/1747752447_3114737_1359827434_43c443b85c52d0e332941f62c6e8d95e.jpg resize: (1080, 1632) 1359827434 -3.678451630053932 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.014716625213623047 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.015197277069091797 begin to insert list_values into mtr_datou_result : length of list_values in save_final : 19 time used for this insertion : 0.016832590103149414 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.01412653923034668 time spend for datou_step_exec : 17.600508213043213 time spend to save output : 0.06570005416870117 total time spend for step 1 : 17.666208267211914 caffe_path_current : About to save ! 2 After save, about to update current ! update_current_state 14.30user 6.00system 0:22.22elapsed 91%CPU (0avgtext+0avgdata 139244maxresident)k 112inputs+9496outputs (12major+244307minor)pagefaults 0swaps