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 : 3943451 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 : 4791>100 please execute split_portfolio.py -i 19382293 -l 100 size over we load limit photo not treated list_input_json: {} Current got : datou_id : 4871, datou_cur_ids : ['2460022'] with mtr_portfolio_ids : ['19382293'] and first list_photo_ids : [] new path : /proc/3943451/ 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.5755183696746826 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 Mar 25 22:57: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/1742939847_3943451_1333489106_f56a985e2364bbf080abfd1c9900e5e5.jpg resize: (1080, 1632) 1333489106 4.398685312406986 treat image : temp/1742939847_3943451_1333489101_30e781c884c5b5715d44eac24ae26a58.jpg resize: (1080, 1632) 1333489101 3.600196355725014 treat image : temp/1742939847_3943451_1333489097_b7e8c7f64590ad6a484d24f0247cf5c6.jpg resize: (1080, 1632) 1333489097 4.065753935933027 treat image : temp/1742939847_3943451_1333489071_579a9f67eedba388c33020589108ac9b.jpg resize: (1080, 1632) 1333489071 4.124814867084147 treat image : temp/1742939847_3943451_1333489067_0eeb902f2b404b5ea38217ff8cf80db7.jpg resize: (1080, 1632) 1333489067 4.3397463941417955 treat image : temp/1742939847_3943451_1333489063_e2081bdee5e944e93da5cf7fcd497b69.jpg resize: (1080, 1632) 1333489063 3.665162029938584 treat image : temp/1742939847_3943451_1333489058_fbf6349fdc8db0bd66a0a74996b48cf6.jpg resize: (1080, 1632) 1333489058 4.087422398194949 treat image : temp/1742939847_3943451_1333489054_99257d1c2232d73d8d6211697636566a.jpg resize: (1080, 1632) 1333489054 4.423731460721686 treat image : temp/1742939847_3943451_1333489049_533d5de72b58dadf20c6b61ceb54fc5f.jpg resize: (1080, 1632) 1333489049 0.1702986347062993 treat image : temp/1742939847_3943451_1333489031_bdb67b29677e90b7a5ddd59354654912.jpg resize: (1080, 1632) 1333489031 -0.19528785852172476 treat image : temp/1742939847_3943451_1333489027_9baf37c0b92557228cb8cebf1d6136f0.jpg resize: (1080, 1632) 1333489027 0.28685189544385226 treat image : temp/1742939847_3943451_1333489025_e4559e82917f8b06ba428463d2185702.jpg resize: (1080, 1632) 1333489025 1.7144391474046887 treat image : temp/1742939847_3943451_1333489022_fbe4fe4ea2bcf957a2cb55a5923c67a2.jpg resize: (1080, 1632) 1333489022 1.8525453571691064 treat image : temp/1742939847_3943451_1333489021_1860461f679e9d18999139ed3edd267d.jpg resize: (1080, 1632) 1333489021 2.42778502299263 treat image : temp/1742939847_3943451_1333489018_b5c32c165dac63d3f236d2acff9dde0f.jpg resize: (1080, 1632) 1333489018 2.1867049325538717 treat image : temp/1742939847_3943451_1333488834_d2ca5576b1b8ddbce62454931ec80d60.jpg resize: (1080, 1632) 1333488834 4.420477103659326 treat image : temp/1742939847_3943451_1333488823_e035bc141b2fbac47b8b8c971b425e91.jpg resize: (1080, 1632) 1333488823 3.3305026716255703 treat image : temp/1742939847_3943451_1333488737_5521a7c2024abcc2038c356278161172.jpg resize: (1080, 1632) 1333488737 2.4206283712408028 treat image : temp/1742939847_3943451_1333488734_1f1115d4acdfe9e0fd1c44f18ea8ac0d.jpg resize: (1080, 1632) 1333488734 2.13142767384469 treat image : temp/1742939847_3943451_1333488710_b56ca55437d8879b3e442b2359d97fe6.jpg resize: (1080, 1632) 1333488710 4.863781456271114 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.15961217880249023 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 : 8.393723964691162 begin to insert list_values into mtr_datou_result : length of list_values in save_final : 20 time used for this insertion : 0.01782512664794922 save missing photos in datou_result : time spend for datou_step_exec : 13.741493463516235 time spend to save output : 8.578422546386719 total time spend for step 1 : 22.319916009902954 caffe_path_current : About to save ! 2 After save, about to update current ! update_current_state 13.98user 2.24system 0:27.78elapsed 58%CPU (0avgtext+0avgdata 139400maxresident)k 4640inputs+3056outputs (58major+143615minor)pagefaults 0swaps