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 : 2568484 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 : 2030>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/2568484/ 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 ! BFBFB[Errno 104] Connection reset by peer can't download the photo : 1359808929 complete_path : /home/admin/workarea/git/Velours/python/temp/1747744047_2568484_1359808929_1248fae61119b570806fa7ef70e690ee.jpg FB[Errno 104] Connection reset by peer can't download the photo : 1359807311 complete_path : /home/admin/workarea/git/Velours/python/temp/1747744047_2568484_1359807311_3979fb18453e913a9dde92665b9110c2.jpg FBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFwe have missing 2 photos in the step downloads : photo missing : [1359808929, 1359807311] try to delete the photos missing in DB Url missing : :https://www.fotonower.com/api/v1/photo/onerrorloadautomation/1359808929 Url missing : :https://www.fotonower.com/api/v1/photo/onerrorloadautomation/1359807311 length of list_filenames : 18 ; length of list_pids : 18 ; length of list_args : 18 time to download the photos : 3.724947452545166 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 14: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/1747744047_2568484_1359808974_9f4bf88ede07e4cd90872b2004ef7829.jpg resize: (1080, 1632) 1359808974 -4.368607634914813 treat image : temp/1747744047_2568484_1359808964_df50c675eab165fdc4ccd29158d2ec26.jpg resize: (1080, 1632) 1359808964 -4.379706348933488 treat image : temp/1747744047_2568484_1359806792_09b57b16d0c1d3f2e42f7d921a24ae01.jpg resize: (1080, 1632) 1359806792 -4.587082879006905 treat image : temp/1747744047_2568484_1359806760_6a9461a5438c34693636452a2b251275.jpg resize: (1080, 1632) 1359806760 -5.1037679421182895 treat image : temp/1747744047_2568484_1359806756_6209996746780783f55124dd69a053a1.jpg resize: (1080, 1632) 1359806756 -5.461383551422915 treat image : temp/1747744047_2568484_1359806752_b8ffdbee5f67eda5b0eb65d02bb8c271.jpg resize: (1080, 1632) 1359806752 -5.729526573750985 treat image : temp/1747744047_2568484_1359806748_deb6726969a814844f2dc12168546773.jpg resize: (1080, 1632) 1359806748 -5.8462668970544565 treat image : temp/1747744047_2568484_1359806727_e3144ac9f7c6e87b56b7748bcb7034e8.jpg resize: (1080, 1632) 1359806727 -3.9479443489840595 treat image : temp/1747744047_2568484_1359806723_f3ca92600c5747f7a0d7c366962b94d7.jpg resize: (1080, 1632) 1359806723 -5.4419198499136705 treat image : temp/1747744047_2568484_1359806718_a8da386c7a078f58336de46facf533f6.jpg resize: (1080, 1632) 1359806718 -4.930812460888962 treat image : temp/1747744047_2568484_1359806711_9112a938e50da8eb9839a4db209f9273.jpg resize: (1080, 1632) 1359806711 -5.624431339120147 treat image : temp/1747744047_2568484_1359806706_1cd4413a3e1ad3cdc4109b47816078a4.jpg resize: (1080, 1632) 1359806706 -5.2992830795647174 treat image : temp/1747744047_2568484_1359775031_790b7558767e16b13965c538f5eccfc0.jpg resize: (1080, 1632) 1359775031 -5.291132914343294 treat image : temp/1747744047_2568484_1359775026_790eca2bde9500a4905c35718a9861a1.jpg resize: (1080, 1632) 1359775026 -5.316772867193351 treat image : temp/1747744047_2568484_1359775022_c0c7799bb7d9afbcdbd8684a84d1dba4.jpg resize: (1080, 1632) 1359775022 -1.5734492390724228 treat image : temp/1747744047_2568484_1359775019_27a5d87aaed81841867ea720e7804cab.jpg resize: (1080, 1632) 1359775019 -2.8090854774218146 treat image : temp/1747744047_2568484_1359774868_9ac09a93dc4168ad10ac89fd11029aa0.jpg resize: (1080, 1632) 1359774868 -5.454493236274637 treat image : temp/1747744047_2568484_1359774864_e50d3913191fecd597e97e52049da217.jpg resize: (1080, 1632) 1359774864 -5.0738418042398665 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 : 18 time used for this insertion : 0.013439655303955078 begin to insert list_values into photo_hahstag_ids : length of list_valuse in save_photo_hashtag_id_type : 18 time used for this insertion : 0.016139984130859375 begin to insert list_values into mtr_datou_result : length of list_values in save_final : 18 time used for this insertion : 0.017525911331176758 save missing photos in datou_result : begin to insert list_values into mtr_datou_result : length of list_values in save_final : 2 time used for this insertion : 0.015981674194335938 time spend for datou_step_exec : 16.912060499191284 time spend to save output : 0.06920003890991211 total time spend for step 1 : 16.981260538101196 caffe_path_current : About to save ! 2 After save, about to update current ! update_current_state 13.49user 5.63system 0:24.04elapsed 79%CPU (0avgtext+0avgdata 136464maxresident)k 160inputs+8744outputs (11major+237860minor)pagefaults 0swaps