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 : 2975688 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 : 1432>100 please execute split_portfolio.py -i 21403117 -l 100 size over we load limit photo not treated list_input_json: {} Current got : datou_id : 4871, datou_cur_ids : ['2667237'] with mtr_portfolio_ids : ['21403117'] and first list_photo_ids : [] new path : /proc/2975688/ 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 ! BFBFBFBHTTP Error 503: Service Unavailable can't download the photo : 1344101660 complete_path : /home/admin/workarea/git/Velours/python/temp/1741942048_2975688_1344101660_0436280beda024f4f944f8da3c401b60.jpg FBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFwe have missing 1 photos in the step downloads : photo missing : [1344101660] try to delete the photos missing in DB Url missing : :https://www.fotonower.com/api/v1/photo/onerrorloadautomation/1344101660 length of list_filenames : 19 ; length of list_pids : 19 ; length of list_args : 19 time to download the photos : 127.79692077636719 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 Fri Mar 14 09:49:36 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/1741942048_2975688_1344101685_c9e4d1b5ef0345405e8b4dc84b1b2f5f.jpg resize: (1080, 1632) 1344101685 -6.472772799424948 treat image : temp/1741942048_2975688_1344101668_538a97a9d47c8d82b8bbcbf5adb53b87.jpg resize: (1080, 1632) 1344101668 -4.502248009793488 treat image : temp/1741942048_2975688_1344101664_0c57dc90c8585ecab7138b7a02037a6a.jpg resize: (1080, 1632) 1344101664 -6.008224838414868 treat image : temp/1741942048_2975688_1344101659_2225a8306f0623b55d6ce948cd874235.jpg resize: (1080, 1632) 1344101659 -6.354610807382463 treat image : temp/1741942048_2975688_1344101657_86c19beddaac22b153f7e0f691382c2c.jpg resize: (1080, 1632) 1344101657 -3.4323111940559863 treat image : temp/1741942048_2975688_1344101647_dd9d480d8d9e0c1302d1fa1923f7c166.jpg resize: (1080, 1632) 1344101647 -5.333421199648521 treat image : temp/1741942048_2975688_1344101646_e4548032a1c861381f8ed91920cde4bc.jpg resize: (1080, 1632) 1344101646 -5.333421199648521 treat image : temp/1741942048_2975688_1344101645_82abb476b3ac59d85ff0724d64efabac.jpg resize: (1080, 1632) 1344101645 -2.4531351130846573 treat image : temp/1741942048_2975688_1344101643_f3823011bcc1b2623667c14cb54c9263.jpg resize: (1080, 1632) 1344101643 -2.4531351130846573 treat image : temp/1741942048_2975688_1344101638_89a95adcf4f58d1ada31f7e9a43f04a8.jpg resize: (1080, 1632) 1344101638 -6.711745021397196 treat image : temp/1741942048_2975688_1344101636_7c705feaa4c7157f09ea88fd54d00b73.jpg resize: (1080, 1632) 1344101636 -6.711745021397196 treat image : temp/1741942048_2975688_1344101630_897c442acf850581b429d82c2ed4652b.jpg resize: (1080, 1632) 1344101630 -7.198417330996449 treat image : temp/1741942048_2975688_1344101622_2b1346ab86b2c4cddbc5c214a927ec58.jpg resize: (1080, 1632) 1344101622 -7.198417330996449 treat image : temp/1741942048_2975688_1344101618_206ff06ae15fe8944df986ddd4068159.jpg resize: (1080, 1632) 1344101618 -4.970155684007426 treat image : temp/1741942048_2975688_1344101617_0660de9b5c4c31bcc3aa5fe5d6edb0d4.jpg resize: (1080, 1632) 1344101617 -4.970155684007426 treat image : temp/1741942048_2975688_1344101583_c9fd6ad82f1f561d564c5ba6c47cdc6d.jpg resize: (1080, 1632) 1344101583 -5.454595886668806 treat image : temp/1741942048_2975688_1344101582_a9a5337ad6c63d0fc808b8ba83846cc4.jpg resize: (1080, 1632) 1344101582 -5.454595886668806 treat image : temp/1741942048_2975688_1344101379_e6e7c7e6ceecaf0b950ae893d73e0c17.jpg resize: (1080, 1632) 1344101379 -5.36654701978995 treat image : temp/1741942048_2975688_1344101376_f350ec4f7c3718bf3a283f4d4731ee05.jpg resize: (1080, 1632) 1344101376 -4.969361335555554 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 : 19 time used for this insertion : 0.012784481048583984 begin to insert list_values into photo_hahstag_ids : length of list_valuse in save_photo_hashtag_id_type : 19 time used for this insertion : 0.012035369873046875 begin to insert list_values into mtr_datou_result : length of list_values in save_final : 19 time used for this insertion : 0.013868093490600586 save missing photos in datou_result : begin to insert list_values into mtr_datou_result : length of list_values in save_final : 1 time used for this insertion : 0.010756731033325195 time spend for datou_step_exec : 13.977277994155884 time spend to save output : 0.1268455982208252 total time spend for step 1 : 14.104123592376709 caffe_path_current : About to save ! 2 After save, about to update current ! update_current_state 13.29user 2.87system 2:24.84elapsed 11%CPU (0avgtext+0avgdata 139916maxresident)k 440inputs+11296outputs (43major+254656minor)pagefaults 0swaps