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 : 2261362 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 : 1875>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/2261362/ 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 ! BFBFBFB[Errno 104] Connection reset by peer can't download the photo : 1359792966 complete_path : /home/admin/workarea/git/Velours/python/temp/1747738647_2261362_1359792966_003a1457bddf4bcabf870d18c2a22b0c.jpg FBFBFBFBFB[Errno 104] Connection reset by peer can't download the photo : 1359792733 complete_path : /home/admin/workarea/git/Velours/python/temp/1747738647_2261362_1359792733_16488cf5ff3d870e16f6959cd0ebae89.jpg FB[Errno 104] Connection reset by peer can't download the photo : 1359792729 complete_path : /home/admin/workarea/git/Velours/python/temp/1747738647_2261362_1359792729_556dd3cbe39cbe8460d2ef7fede8d062.jpg FBFBFBFBFBFBFBFBFBFBFwe have missing 3 photos in the step downloads : photo missing : [1359792966, 1359792733, 1359792729] try to delete the photos missing in DB Url missing : :https://www.fotonower.com/api/v1/photo/onerrorloadautomation/1359792966 Url missing : :https://www.fotonower.com/api/v1/photo/onerrorloadautomation/1359792733 Url missing : :https://www.fotonower.com/api/v1/photo/onerrorloadautomation/1359792729 length of list_filenames : 17 ; length of list_pids : 17 ; length of list_args : 17 time to download the photos : 3.7011353969573975 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 12:57: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/1747738647_2261362_1359801117_26135e9d490682aa95e5811580effccc.jpg resize: (1080, 1632) 1359801117 -5.485456466668877 treat image : temp/1747738647_2261362_1359792975_7763b1af86721debcf4cc5261b6b1fea.jpg resize: (1080, 1632) 1359792975 -3.832424080204826 treat image : temp/1747738647_2261362_1359792972_455b0ace23053f063f456d385724f633.jpg resize: (1080, 1632) 1359792972 -5.78837467890015 treat image : temp/1747738647_2261362_1359792961_8e8fbb5455dfc205ed8d109b1a706bd6.jpg resize: (1080, 1632) 1359792961 -5.447215957307221 treat image : temp/1747738647_2261362_1359792956_f8d1a69d6cb4f0e883693c60ea25dd60.jpg resize: (1080, 1632) 1359792956 -5.837472346108812 treat image : temp/1747738647_2261362_1359792952_ff4bf54643999f33c3d129e8150d315c.jpg resize: (1080, 1632) 1359792952 -3.9558619291648416 treat image : temp/1747738647_2261362_1359792764_4d034064894de45af7314dd64e7655c5.jpg resize: (1080, 1632) 1359792764 -1.9787831557884084 treat image : temp/1747738647_2261362_1359792726_077c05bbf576a0d9eb8eb2a8e3dcda92.jpg resize: (1080, 1632) 1359792726 -4.759846440596762 treat image : temp/1747738647_2261362_1359792722_2329e7c6cbef3b49a2f82f4f3efd6ef1.jpg resize: (1080, 1632) 1359792722 -3.704531240958249 treat image : temp/1747738647_2261362_1359792714_c859ed0ac0dd5adeed18eea57a491692.jpg resize: (1080, 1632) 1359792714 -3.1500169569953154 treat image : temp/1747738647_2261362_1359791792_295e028a4f2c1a4dfc8303baf3069ed0.jpg resize: (1080, 1632) 1359791792 -2.1820728028783036 treat image : temp/1747738647_2261362_1359791779_cb67f4f8bad84b0a19bd40aff7a6ccb7.jpg resize: (1080, 1632) 1359791779 -3.419080376124783 treat image : temp/1747738647_2261362_1359791776_7412338e33f25387bc67b92e80b97d9f.jpg resize: (1080, 1632) 1359791776 -5.535179509861714 treat image : temp/1747738647_2261362_1359791773_60335e4ee0aad70e342e9b06bd89a772.jpg resize: (1080, 1632) 1359791773 -4.261495747896398 treat image : temp/1747738647_2261362_1359791769_f434bedd1806915025ff7f137083e1fe.jpg resize: (1080, 1632) 1359791769 -4.0250149403358515 treat image : temp/1747738647_2261362_1359791765_f97ef6eeb010cb886f00bd10d82db493.jpg resize: (1080, 1632) 1359791765 -5.311214868849182 treat image : temp/1747738647_2261362_1359791762_79046d1db4624c3bbd1e42f7d876f5bb.jpg resize: (1080, 1632) 1359791762 -5.730690516998435 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 : 17 time used for this insertion : 0.013550758361816406 begin to insert list_values into photo_hahstag_ids : length of list_valuse in save_photo_hashtag_id_type : 17 time used for this insertion : 0.01316070556640625 begin to insert list_values into mtr_datou_result : length of list_values in save_final : 17 time used for this insertion : 0.014880657196044922 save missing photos in datou_result : begin to insert list_values into mtr_datou_result : length of list_values in save_final : 3 time used for this insertion : 0.012038469314575195 time spend for datou_step_exec : 13.455651760101318 time spend to save output : 0.058324337005615234 total time spend for step 1 : 13.513976097106934 caffe_path_current : About to save ! 2 After save, about to update current ! update_current_state 12.29user 3.24system 0:20.34elapsed 76%CPU (0avgtext+0avgdata 139880maxresident)k 80inputs+8288outputs (4major+170431minor)pagefaults 0swaps