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 : 3651450 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 : 3140>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/3651450/ 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 ! BFBFBFBFBFBFBFBFBFBFBFBFB can't download the photo : 1359849099 complete_path : /home/admin/workarea/git/Velours/python/temp/1747763247_3651450_1359849099_b1f3911ade1daca5f0e6c01de98c0037.jpg FBFBFBFBFBFBFBFwe have missing 1 photos in the step downloads : photo missing : [1359849099] try to delete the photos missing in DB Url missing : :https://www.fotonower.com/api/v1/photo/onerrorloadautomation/1359849099 length of list_filenames : 19 ; length of list_pids : 19 ; length of list_args : 19 time to download the photos : 2.486203193664551 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 19: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/1747763247_3651450_1359849223_63367ec1736ee4cc2b71114510b0b5ac.jpg resize: (1080, 1632) 1359849223 -4.274857315598117 treat image : temp/1747763247_3651450_1359849201_727493bcc8b29d4a38632c74cb0c1f8a.jpg resize: (1080, 1632) 1359849201 -5.315752679670912 treat image : temp/1747763247_3651450_1359849198_669686e71c4aaa8fe3bc70ca9c889141.jpg resize: (1080, 1632) 1359849198 -3.8049493189993466 treat image : temp/1747763247_3651450_1359849195_24eee5255362bd518dfae3bb418919ca.jpg resize: (1080, 1632) 1359849195 -5.442942219404614 treat image : temp/1747763247_3651450_1359849192_8a476ce4d0600092f8ae723c7aee8bd4.jpg resize: (1080, 1632) 1359849192 -4.197967757304914 treat image : temp/1747763247_3651450_1359849188_92a8f47b1e81e4930900864b473f5034.jpg resize: (1080, 1632) 1359849188 -2.751266328739516 treat image : temp/1747763247_3651450_1359849184_96db781e318a7d06e0cffc6ec7c670a2.jpg resize: (1080, 1632) 1359849184 -2.543564526140496 treat image : temp/1747763247_3651450_1359849150_6834bac48dcb9097318ec5c3f11716b9.jpg resize: (1080, 1632) 1359849150 -1.590176947192788 treat image : temp/1747763247_3651450_1359849146_d1f81877e75f9478d3fdf27f193aace4.jpg resize: (1080, 1632) 1359849146 -2.964573115217451 treat image : temp/1747763247_3651450_1359849143_78321bb5f212725326fdf31f6fa24394.jpg resize: (1080, 1632) 1359849143 -0.6179660855327015 treat image : temp/1747763247_3651450_1359849119_f15022b0cf9759b75c6e1a20bac61bcc.jpg resize: (1080, 1632) 1359849119 -5.772459458531906 treat image : temp/1747763247_3651450_1359849111_ab3f91950b8688626b2ce5e0cd5b73ba.jpg resize: (1080, 1632) 1359849111 -5.011501724500357 treat image : temp/1747763247_3651450_1359849093_ce61c83f6cf28fa5bdb287338301c42e.jpg resize: (1080, 1632) 1359849093 -4.987022633846618 treat image : temp/1747763247_3651450_1359849076_f242235391c1b5500a70e6f5dedb830c.jpg resize: (1080, 1632) 1359849076 -0.16975549166301038 treat image : temp/1747763247_3651450_1359849009_cc656c81e49df03010c892beb67d21ae.jpg resize: (1080, 1632) 1359849009 -5.107066201310676 treat image : temp/1747763247_3651450_1359849006_03bdcd1c77f78bce09f4fdb8470b7c64.jpg resize: (1080, 1632) 1359849006 -5.860198256045431 treat image : temp/1747763247_3651450_1359849002_48f2ccec357aff0ef11e53046bde847d.jpg resize: (1080, 1632) 1359849002 -5.875349986278855 treat image : temp/1747763247_3651450_1359848983_06ea8cf8213a7dfb12bd68b6c0ad4506.jpg resize: (1080, 1632) 1359848983 -2.806504056397941 treat image : temp/1747763247_3651450_1359848980_32a329524e3c70eef9323530497617cd.jpg resize: (1080, 1632) 1359848980 -5.470271512795143 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.012707710266113281 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.012811660766601562 begin to insert list_values into mtr_datou_result : length of list_values in save_final : 19 time used for this insertion : 0.01581287384033203 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.011087894439697266 time spend for datou_step_exec : 17.600215196609497 time spend to save output : 0.07326054573059082 total time spend for step 1 : 17.673475742340088 caffe_path_current : About to save ! 2 After save, about to update current ! update_current_state 14.99user 5.46system 0:22.04elapsed 92%CPU (0avgtext+0avgdata 137184maxresident)k 8032inputs+8480outputs (26major+250922minor)pagefaults 0swaps