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 : 3129369 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 : 2630>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/3129369/ 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 : 1359828346 complete_path : /home/admin/workarea/git/Velours/python/temp/1747752748_3129369_1359828346_a57556b6988ffccfd15e2c6c575aa583.jpg FBFB[Errno 104] Connection reset by peer can't download the photo : 1359828225 complete_path : /home/admin/workarea/git/Velours/python/temp/1747752748_3129369_1359828225_eceb9aa0b6ae7843dadae0b77264ff98.jpg FBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFwe have missing 2 photos in the step downloads : photo missing : [1359828346, 1359828225] try to delete the photos missing in DB Url missing : :https://www.fotonower.com/api/v1/photo/onerrorloadautomation/1359828346 Url missing : :https://www.fotonower.com/api/v1/photo/onerrorloadautomation/1359828225 length of list_filenames : 18 ; length of list_pids : 18 ; length of list_args : 18 time to download the photos : 2.932554006576538 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 16:52: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/1747752748_3129369_1359828354_a7227ea4c5fe4c99200bb0b659d1435d.jpg resize: (1080, 1632) 1359828354 -6.35349150543593 treat image : temp/1747752748_3129369_1359828352_dc730f6a0081e23b5585d0b0cca83ed7.jpg resize: (1080, 1632) 1359828352 -5.445181062033349 treat image : temp/1747752748_3129369_1359828339_b2bb5282c43bb5a5a2c0451a43f07f4a.jpg resize: (1080, 1632) 1359828339 2.613017195638645 treat image : temp/1747752748_3129369_1359828211_22455d5cef0d6eb0fdbf78257f49a14e.jpg resize: (1080, 1632) 1359828211 -6.456564735344061 treat image : temp/1747752748_3129369_1359828181_941896562997748aa117818685355725.jpg resize: (1080, 1632) 1359828181 -4.252386269507352 treat image : temp/1747752748_3129369_1359828178_c28d65a64a795b257208883dfdb276bb.jpg resize: (1080, 1632) 1359828178 12.821870060873538 treat image : temp/1747752748_3129369_1359828176_95956076ee63852ba71c260abcaaa888.jpg resize: (1080, 1632) 1359828176 -5.572609928640059 treat image : temp/1747752748_3129369_1359828174_7f9b487d294f1939901b7a88d0298c2f.jpg resize: (1080, 1632) 1359828174 -5.761453692259353 treat image : temp/1747752748_3129369_1359828171_910c1184d7cc027e23359bab37dc9490.jpg resize: (1080, 1632) 1359828171 -5.566356501689673 treat image : temp/1747752748_3129369_1359828167_3ba36e710faa725fcb7b4fe38efebb66.jpg resize: (1080, 1632) 1359828167 -5.751211622283081 treat image : temp/1747752748_3129369_1359828084_4e9d03ad57bfe1f85f5f1a9fabba3fef.jpg resize: (1080, 1632) 1359828084 -4.8443390705352 treat image : temp/1747752748_3129369_1359828080_3f19c62c46a6b0cec89308db7fc5b287.jpg resize: (1080, 1632) 1359828080 -4.75116310313953 treat image : temp/1747752748_3129369_1359828074_206ee1fd97bfa6119147aeee7ce18077.jpg resize: (1080, 1632) 1359828074 -1.5903746402610974 treat image : temp/1747752748_3129369_1359828046_34ecf1fd2a330028753ecf22d0864a09.jpg resize: (1080, 1632) 1359828046 -3.262660694957098 treat image : temp/1747752748_3129369_1359828042_ca8b7129c1a44eb4f4274d856abe6dee.jpg resize: (1080, 1632) 1359828042 -5.597382339589772 treat image : temp/1747752748_3129369_1359828040_2c10fea3925df79cec2b95e1fe006252.jpg resize: (1080, 1632) 1359828040 -5.9143393097241255 treat image : temp/1747752748_3129369_1359828037_da29736daedd566f63e3fbe7c38470ef.jpg resize: (1080, 1632) 1359828037 -6.190691165189273 treat image : temp/1747752748_3129369_1359828032_0923b63681b7c32c9dcbe82f2c465ba2.jpg resize: (1080, 1632) 1359828032 -5.746227423272676 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.01255655288696289 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.013928890228271484 begin to insert list_values into mtr_datou_result : length of list_values in save_final : 18 time used for this insertion : 0.014963865280151367 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.014136075973510742 time spend for datou_step_exec : 14.652140617370605 time spend to save output : 0.060369014739990234 total time spend for step 1 : 14.712509632110596 caffe_path_current : About to save ! 2 After save, about to update current ! update_current_state 13.34user 3.76system 0:21.70elapsed 78%CPU (0avgtext+0avgdata 139824maxresident)k 144inputs+9040outputs (30major+238984minor)pagefaults 0swaps