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 : 607201 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 : 3331>100 please execute split_portfolio.py -i 20234215 -l 100 size over we load limit photo not treated list_input_json: {} Current got : datou_id : 4871, datou_cur_ids : ['2547945'] with mtr_portfolio_ids : ['20234215'] and first list_photo_ids : [] new path : /proc/607201/ 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 : 3.514563798904419 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 Feb 5 19:27: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/1738780048_607201_1335010341_4bcba4574d217fc3c6fadd01605b3929.jpg resize: (1080, 1632) 1335010341 -4.890818060667264 treat image : temp/1738780048_607201_1335010338_ee9322694a72972d3aa1abf0d95a7e75.jpg resize: (1080, 1632) 1335010338 -6.148009746112934 treat image : temp/1738780048_607201_1335010315_918b75a4c41e8cf5ab3a910b247f9ee9.jpg resize: (1080, 1632) 1335010315 -5.714448354066991 treat image : temp/1738780048_607201_1335010306_1bd72e3ff9780439ce18402e574bb8e4.jpg resize: (1080, 1632) 1335010306 -6.028987692300357 treat image : temp/1738780048_607201_1335010300_72fe367181bc34a26412bf7f9a2563a1.jpg resize: (1080, 1632) 1335010300 -6.349193797669708 treat image : temp/1738780048_607201_1335010298_8dc5cf3a581277a72b11ad21dea51b8d.jpg resize: (1080, 1632) 1335010298 -5.991914955830134 treat image : temp/1738780048_607201_1335010272_f551c42b45f6c155f4e3e06e379cf40f.jpg resize: (1080, 1632) 1335010272 -2.5013987781842517 treat image : temp/1738780048_607201_1335010268_26891221569c9e5ec2aa54c4fb493060.jpg resize: (1080, 1632) 1335010268 -3.6354366277579433 treat image : temp/1738780048_607201_1335010259_8bfb1e570e1e91de6aada05f4412fc06.jpg resize: (1080, 1632) 1335010259 -5.582103813801781 treat image : temp/1738780048_607201_1335010254_c437fb4e1357256f60634e9e3bcb8ec4.jpg resize: (1080, 1632) 1335010254 -6.205040003547734 treat image : temp/1738780048_607201_1335010214_308e5681e3912a601414c57124816d0e.jpg resize: (1080, 1632) 1335010214 -4.190840592906679 treat image : temp/1738780048_607201_1335010211_003388e39e323bba3a0f0f9a0559a978.jpg resize: (1080, 1632) 1335010211 -5.874358034998693 treat image : temp/1738780048_607201_1335010209_e6e2584cf8be6c71181801c8489de696.jpg resize: (1080, 1632) 1335010209 -5.565872414809185 treat image : temp/1738780048_607201_1335010156_dbd474021da3a2e184639ec2d45361a1.jpg resize: (1080, 1632) 1335010156 -6.2223268940376615 treat image : temp/1738780048_607201_1335010155_1d74e00cbf7b5f75cc59db7ac1b8fd67.jpg resize: (1080, 1632) 1335010155 -4.49018869275402 treat image : temp/1738780048_607201_1335010152_ee0c21354ad36df9b97b3b2d3d06c830.jpg resize: (1080, 1632) 1335010152 -6.175972352277776 treat image : temp/1738780048_607201_1335010150_3eabf9cf53e08f3c224f6fd36c2774cf.jpg resize: (1080, 1632) 1335010150 -5.614033996308098 treat image : temp/1738780048_607201_1335010136_c3f45e172fc1f7d253e9f6c443615cbd.jpg resize: (1080, 1632) 1335010136 -4.092838251594082 treat image : temp/1738780048_607201_1335010132_2e1efc703ca3de456970ba76c492b0f8.jpg resize: (1080, 1632) 1335010132 -6.006660739097124 treat image : temp/1738780048_607201_1335010105_17c9d342b404686fc5d37fb24da39898.jpg resize: (1080, 1632) 1335010105 -0.6670225634943773 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.013822078704833984 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 : 0.012766838073730469 begin to insert list_values into mtr_datou_result : length of list_values in save_final : 20 time used for this insertion : 0.01502847671508789 save missing photos in datou_result : time spend for datou_step_exec : 12.70344066619873 time spend to save output : 0.04619431495666504 total time spend for step 1 : 12.749634981155396 caffe_path_current : About to save ! 2 After save, about to update current ! update_current_state 13.71user 1.42system 0:20.21elapsed 74%CPU (0avgtext+0avgdata 140380maxresident)k 104inputs+10784outputs (17major+114959minor)pagefaults 0swaps