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 : 2400885 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 : 458>100 please execute split_portfolio.py -i 22364229 -l 100 size over we load limit photo not treated list_input_json: {} Current got : datou_id : 4871, datou_cur_ids : ['2755102'] with mtr_portfolio_ids : ['22364229'] and first list_photo_ids : [] new path : /proc/2400885/ 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 ! BFBFBFBFBFBFB[Errno 104] Connection reset by peer can't download the photo : 1353280913 complete_path : /home/admin/workarea/git/Velours/python/temp/1745468248_2400885_1353280913_885674d19c672f7f419a894aa9dadd88.jpg FBFBFB[Errno 104] Connection reset by peer can't download the photo : 1353280907 complete_path : /home/admin/workarea/git/Velours/python/temp/1745468248_2400885_1353280907_b160c966268bfb4e983d4467ae667bb9.jpg Fwe have missing 2 photos in the step downloads : photo missing : [1353280913, 1353280907] try to delete the photos missing in DB Url missing : :https://www.fotonower.com/api/v1/photo/onerrorloadautomation/1353280913 Url missing : :https://www.fotonower.com/api/v1/photo/onerrorloadautomation/1353280907 length of list_filenames : 8 ; length of list_pids : 8 ; length of list_args : 8 time to download the photos : 1.798809289932251 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 Thu Apr 24 06:17: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/1745468248_2400885_1353280971_4eab7edf2a7d244c114fd4b081815329.jpg resize: (1080, 1632) 1353280971 -6.374531539541997 treat image : temp/1745468248_2400885_1353280970_d104e8c3c571bb7638cb8777736bcc06.jpg resize: (1080, 1632) 1353280970 -4.690460353141768 treat image : temp/1745468248_2400885_1353280964_39111f9c2f2b91579d815957e3032dd1.jpg resize: (1080, 1632) 1353280964 -5.3985370466389755 treat image : temp/1745468248_2400885_1353280959_a035c56c844c5e8f795c5356a0576362.jpg resize: (1080, 1632) 1353280959 -3.5810658183875805 treat image : temp/1745468248_2400885_1353280921_fc4272a78c791ee537b95c8e0848e227.jpg resize: (1080, 1632) 1353280921 -1.7922703476359854 treat image : temp/1745468248_2400885_1353280917_47ee2f65125ca87b7d774b938df09e43.jpg resize: (1080, 1632) 1353280917 -1.9776819492172455 treat image : temp/1745468248_2400885_1353280911_7660983e27f3ce5ea85a05cb3cd1b9ca.jpg resize: (1080, 1632) 1353280911 -5.980586355576425 treat image : temp/1745468248_2400885_1353280909_8558df8194d4e348c7daaabac61e050f.jpg resize: (1080, 1632) 1353280909 -6.306555857962935 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 : 8 time used for this insertion : 0.013203144073486328 begin to insert list_values into photo_hahstag_ids : length of list_valuse in save_photo_hashtag_id_type : 8 time used for this insertion : 0.012014389038085938 begin to insert list_values into mtr_datou_result : length of list_values in save_final : 8 time used for this insertion : 0.012973546981811523 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.01189422607421875 time spend for datou_step_exec : 6.668380975723267 time spend to save output : 0.05518507957458496 total time spend for step 1 : 6.723566055297852 caffe_path_current : About to save ! 2 After save, about to update current ! ret : 2 len(input) + len(total_photo_id_missing) : 10 set_done_treatment 6.91user 2.43system 0:12.43elapsed 75%CPU (0avgtext+0avgdata 140224maxresident)k 4296inputs+4120outputs (39major+143420minor)pagefaults 0swaps