python /home/admin/mtr/script_for_cron.py -j default -m 20 -a 'python3 ~/workarea/git/Velours/python/prod/datou.py -j batch_current -C 2660211' -s traitement_4871 -M 0 -S 0 -U 100,80,95 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/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', '/home/admin/workarea/git/apy', '/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 : 3716850 load datou : 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 ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : step 0 init_dummy_multi_datou is not linked in the step_by_step architecture ! WARNING : step 1294 init_dummy_multi_datou is not linked in the step_by_step architecture ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! DataTypes for each output/input checked ! 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 : (photo_id, hashtag_id, score_max) was removed should we ? (x0, y0, x1, y1) was removed should we ? chemin de la photo was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? (x0, y0, x1, y1) was removed should we ? chemin de la photo 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 : 3809>1000 please execute split_portfolio.py -i 21319625 -l 1000 size over we load limit photo not treated list_input_json: {} Current got : datou_id : 4871, datou_cur_ids : ['2660211'] with mtr_portfolio_ids : ['21319625'] and first list_photo_ids : [] new path : /proc/3716850/ 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 : 4.114315986633301 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 Mar 13 17:07:38 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/1741882054_3716850_1343659699_0432d1a97f3bb18e8b9182404c7c08f9.jpg resize: (1080, 1632) 1343659699 -2.1221618514860228 treat image : temp/1741882054_3716850_1343654559_3e4fd7db978a34f4153ce7793c7f72b3.jpg resize: (1080, 1632) 1343654559 -3.93593477793676 treat image : temp/1741882054_3716850_1343654095_ca398f20a5ca153381a72fcd1e671c96.jpg resize: (1080, 1632) 1343654095 -5.530354305231776 treat image : temp/1741882054_3716850_1343653761_40223332d6fec0f19c38589b736a222e.jpg resize: (1080, 1632) 1343653761 -5.8017821531093166 treat image : temp/1741882054_3716850_1343653319_fdda53958b41d1a22031cfece64b3151.jpg resize: (1080, 1632) 1343653319 -5.919923702491942 treat image : temp/1741882054_3716850_1343653316_36b3266b2b2d45f812bc7426a35244e4.jpg resize: (1080, 1632) 1343653316 -5.809525020760318 treat image : temp/1741882054_3716850_1343653007_a656b3fa65c8eabf43634ce4709b2a86.jpg resize: (1080, 1632) 1343653007 -3.948115560666597 treat image : temp/1741882054_3716850_1343652192_8054e0d41c697d47d00629ed8095bd61.jpg resize: (1080, 1632) 1343652192 -3.6696639632133334 treat image : temp/1741882054_3716850_1343651393_470eb8fcf0ae8746de217b275f06be17.jpg resize: (1080, 1632) 1343651393 -3.996303970044082 treat image : temp/1741882054_3716850_1343646892_216648f66ca26d333b544ba9b50fe003.jpg resize: (1080, 1632) 1343646892 -2.234479646127061 treat image : temp/1741882054_3716850_1343646866_e78b6d2659c5ba5b7f05a22213d96f6d.jpg resize: (1080, 1632) 1343646866 -3.952193175928676 treat image : temp/1741882054_3716850_1343643409_fcee5d32d3e0aac7a31b5f1cc736fb50.jpg resize: (1080, 1632) 1343643409 -2.422953383118012 treat image : temp/1741882054_3716850_1343642345_717e09b5c66509263b230c41d9e1a719.jpg resize: (1080, 1632) 1343642345 -5.742761154061042 treat image : temp/1741882054_3716850_1343642296_d38494b40df3e5737589930a98e42386.jpg resize: (1080, 1632) 1343642296 -6.00662458260561 treat image : temp/1741882054_3716850_1343639301_e9fcbfcb8bfbde77d61a6820694e54b7.jpg resize: (1080, 1632) 1343639301 -5.789921388318601 treat image : temp/1741882054_3716850_1343639164_d73a419cd74a5ab0f61330041cc6b7d3.jpg resize: (1080, 1632) 1343639164 -4.393026041554751 treat image : temp/1741882054_3716850_1343639158_541869ef029a595b533ecfb1be42e6a9.jpg resize: (1080, 1632) 1343639158 -4.855300519348623 treat image : temp/1741882054_3716850_1343638682_25a3f081d0a3ae261c84364224a223ce.jpg resize: (1080, 1632) 1343638682 -4.116991104696699 treat image : temp/1741882054_3716850_1343637341_ae3a259fbaaf4d6406916783f4996a39.jpg resize: (1080, 1632) 1343637341 -3.453530023373305 treat image : temp/1741882054_3716850_1343637094_d0dc03f46369c13f2784454c8e8d1bad.jpg resize: (1080, 1632) 1343637094 -2.312817659203738 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.013725042343139648 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 : 0.0159914493560791 begin to insert list_values into mtr_datou_result : length of list_values in save_final : 20 time used for this insertion : 0.021775007247924805 save missing photos in datou_result : time spend for datou_step_exec : 17.989086627960205 time spend to save output : 0.05788278579711914 total time spend for step 1 : 18.046969413757324 caffe_path_current : About to save ! 2 After save, about to update current ! update_current_state 14.97user 3.99system 0:25.48elapsed 74%CPU (0avgtext+0avgdata 138588maxresident)k 1392inputs+9224outputs (32major+244132minor)pagefaults 0swaps