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 : 3729021 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 : 2646>100 please execute split_portfolio.py -i 23183727 -l 100 size over we load limit photo not treated list_input_json: {} Current got : datou_id : 4871, datou_cur_ids : ['2914480'] with mtr_portfolio_ids : ['23183727'] and first list_photo_ids : [] new path : /proc/3729021/ 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 ! BFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFwe have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB length of list_filenames : 20 ; length of list_pids : 20 ; length of list_args : 20 time to download the photos : 2.4036076068878174 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 Wed May 21 18:07:30 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/1747843648_3729021_1360093717_d540e71ee838a13bbdb57297b9b6d2da.jpg resize: (1080, 1632) 1360093717 -2.4405878328942374 treat image : temp/1747843648_3729021_1360093714_12abd91f0ed601858ec02f06adc403c1.jpg resize: (1080, 1632) 1360093714 -3.942506554670845 treat image : temp/1747843648_3729021_1360093711_c3b5ca1292c27d506565a260cf2476c1.jpg resize: (1080, 1632) 1360093711 -5.982275828232658 treat image : temp/1747843648_3729021_1360093706_d422b6c495c4cf5202f1340e5ab2f3d8.jpg resize: (1080, 1632) 1360093706 -6.387252007190038 treat image : temp/1747843648_3729021_1360093703_190f654eef3ee744b09a1d88e6c8e1a8.jpg resize: (1080, 1632) 1360093703 -5.942001763144775 treat image : temp/1747843648_3729021_1360093697_c25c7b279b66396a2351fd4984b9b792.jpg resize: (1080, 1632) 1360093697 -3.298733391058055 treat image : temp/1747843648_3729021_1360093530_ffd2bcaa891307241eeb80d59129814c.jpg resize: (1080, 1632) 1360093530 -0.004161725645932588 treat image : temp/1747843648_3729021_1360093497_906fff2cacc8fb7faf769442bc250e48.jpg resize: (1080, 1632) 1360093497 -1.4383816696493603 treat image : temp/1747843648_3729021_1360093314_e501117e8e13856e6a6441f2e0060e46.jpg resize: (1080, 1632) 1360093314 -5.05762632967823 treat image : temp/1747843648_3729021_1360093307_95a29d428287aeb441b5ddea1806dbd5.jpg resize: (1080, 1632) 1360093307 -5.6131803859539575 treat image : temp/1747843648_3729021_1360093295_d2255fcf5b7b9b3f5f30db974122a29d.jpg resize: (1080, 1632) 1360093295 -4.58986767033569 treat image : temp/1747843648_3729021_1360093286_72fe4072edde131a5edfdfbbe7d4cbed.jpg resize: (1080, 1632) 1360093286 -5.531630782841513 treat image : temp/1747843648_3729021_1360093281_8aa8adb8792486aff6d4cb0e62c02f85.jpg resize: (1080, 1632) 1360093281 -5.738147789413076 treat image : temp/1747843648_3729021_1360093278_46b476a58220dec8521eaf7dfa5f5c93.jpg resize: (1080, 1632) 1360093278 -3.125102398980625 treat image : temp/1747843648_3729021_1360092982_a25f43dca2466742d28d7228405b5f4e.jpg resize: (1080, 1632) 1360092982 -3.6350224937387567 treat image : temp/1747843648_3729021_1360092955_162692eacd090ccda9491932352e6611.jpg resize: (1080, 1632) 1360092955 -5.540413714613529 treat image : temp/1747843648_3729021_1360092930_9182c2561d8053b737e01a0ed7e0b3df.jpg resize: (1080, 1632) 1360092930 -3.4555483180940105 treat image : temp/1747843648_3729021_1360092890_7a4f1567ac072d42c145a475dd25d7ae.jpg resize: (1080, 1632) 1360092890 -6.198582934031845 treat image : temp/1747843648_3729021_1360092860_09b883b21ccdc932dbc7a372254cbae2.jpg resize: (1080, 1632) 1360092860 -3.8444439291606898 treat image : temp/1747843648_3729021_1360092818_7b59c5b75f4c9b8dd79d9eac72b3a9eb.jpg resize: (1080, 1632) 1360092818 -5.953265510416442 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 : 20 time used for this insertion : 0.013075828552246094 begin to insert list_values into photo_hahstag_ids : length of list_valuse in save_photo_hashtag_id_type : 20 time used for this insertion : 3.1632883548736572 begin to insert list_values into mtr_datou_result : length of list_values in save_final : 20 time used for this insertion : 0.014976978302001953 save missing photos in datou_result : time spend for datou_step_exec : 18.50931215286255 time spend to save output : 3.19677996635437 total time spend for step 1 : 21.70609211921692 caffe_path_current : About to save ! 2 After save, about to update current ! update_current_state 14.66user 6.19system 0:26.73elapsed 78%CPU (0avgtext+0avgdata 138092maxresident)k 152inputs+9728outputs (2major+255404minor)pagefaults 0swaps