python /home/admin/mtr/script_for_cron.py -j datou_current3 -m 10 -a ' -a 3459 -l 10 ' -s datou_current_3459 -M 0 -S 0 -U 95,95,80 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 : 3611647 load datou : 3459 # 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) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! 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 : number of outputs for step 11449 mask_detect is not consistent : 3 used against 2 in the step definition ! Step 11452 crop_condition have less inputs used (1) than in the step definition (2) : maybe we manage optionnal inputs ! Step 11452 crop_condition have less outputs used (2) than in the step definition (3) : some outputs may be not used ! Step 11453 merge_mask_thcl_custom have less inputs used (2) than in the step definition (3) : maybe we manage optionnal inputs ! WARNING : number of outputs for step 11453 merge_mask_thcl_custom is not consistent : 4 used against 2 in the step definition ! WARNING : number of inputs for step 11454 rle_unique_nms_with_priority is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 11454 rle_unique_nms_with_priority is not consistent : 2 used against 1 in the step definition ! Step 11478 crop_condition have less inputs used (1) than in the step definition (2) : maybe we manage optionnal inputs ! WARNING : number of outputs for step 11478 crop_condition is not consistent : 4 used against 3 in the step definition ! WARNING : number of inputs for step 11456 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 11456 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11455 final have less inputs used (2) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11455 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! Step 11458 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! 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 ! WARNING : type of output 2 of step 11449 doesn't seem to be define in the database( WARNING : type of input 2 of step 11452 doesn't seem to be define in the database( WARNING : output 1 of step 11449 have datatype=2 whereas input 1 of step 11453 have datatype=7 WARNING : type of output 2 of step 11453 doesn't seem to be define in the database( WARNING : type of input 1 of step 11454 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : type of output 3 of step 11453 doesn't seem to be define in the database( WARNING : type of input 1 of step 11456 doesn't seem to be define in the database( WARNING : type of output 1 of step 11456 doesn't seem to be define in the database( WARNING : type of input 3 of step 11455 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 11456 have datatype=10 whereas input 3 of step 11458 have datatype=6 WARNING : type of input 5 of step 11458 doesn't seem to be define in the database( WARNING : output 0 of step 11477 have datatype=11 whereas input 5 of step 11458 have datatype=None WARNING : output 0 of step 11456 have datatype=10 whereas input 0 of step 11477 have datatype=18 WARNING : type of input 2 of step 11478 doesn't seem to be define in the database( WARNING : output 1 of step 11454 have datatype=7 whereas input 2 of step 11478 have datatype=None WARNING : type of output 3 of step 11478 doesn't seem to be define in the database( WARNING : type of input 2 of step 11456 doesn't seem to be define in the database( WARNING : output 0 of step 11453 have datatype=1 whereas input 0 of step 11454 have datatype=2 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 : chemin de la photo was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? [(photo_id, hashtag_id, hashtag_type, x0, x1, y0, y1, score, seg_temp, polygons), ...] was removed should we ? chemin de la photo was removed should we ? [ (photo_id_loc, hashtag_id, hashtag_type, x0, x1, y0, y1, score, None), ...] was removed should we ? chemin de la photo was removed should we ? id de la photo (peut être local ou global) was removed should we ? chemin de la photo was removed should we ? (x0, y0, x1, y1) was removed should we ? chemin de la photo was removed should we ? [ (photo_id, hashtag_id_0, score_0), (photo_id, hashtag_id_1, score_1), ...] was removed should we ? output optionnel thcl was removed should we ? id de la photo (peut être local ou global) was removed should we ? [ (photo_id, photo_id_loc, hashtag_type, x0, x1, y0, y1, score), ...] was removed should we ? [ (photo_id, hashtag_id_0, score_0), (photo_id, hashtag_id_1, score_1), ...] was removed should we ? id de la photo (peut être local ou global) was removed should we ? [ (photo_id, photo_id_loc, hashtag_type, x0, x1, y0, y1, score), ...] was removed should we ? chemin de la photo was removed should we ? donnée sous forme de texte was removed should we ? [ (photo_id, photo_id_loc, hashtag_type, x0, x1, y0, y1, score), ...] was removed should we ? [ (photo_id_loc, hashtag_id, hashtag_type, x0, x1, y0, y1, score, None), ...] was removed should we ? chemin de la photo was removed should we ? id de la photo (peut être local ou global) was removed should we ? chemin de la photo was removed should we ? (x0, y0, x1, y1) was removed should we ? None was removed should we ? donnée sous forme de texte was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? id de la photo (peut être local ou global) was removed should we ? donnée sous forme de texte was removed should we ? donnée sous forme de texte was removed should we ? donnée sous forme de texte was removed should we ? None was removed should we ? donnée sous forme de nombre was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? donnée sous forme de texte was removed should we ? None was removed should we ? donnée sous forme de texte was removed should we ? [ptf_id0,ptf_id1...] was removed should we ? FOUND : 1 Here is data_from_sql_as_vec to set the ParamDescriptorType : (4999, 'learn_qualipapia_papier_refus_from_vlg_data_aug', 16384, 25088, 'learn_qualipapia_papier_refus_from_vlg_data_aug', 'res5b', 10.0, None, None, 256, None, 0, None, 8, None, None, -1000.0, 1, datetime.datetime(2020, 10, 23, 14, 27, 22), datetime.datetime(2020, 10, 23, 14, 27, 22)) FOUND : 1 Here is data_from_sql_as_vec to set the ParamDescriptorType : (5288, 'learn_papier_nantes_300421', 512, 512, 'learn_papier_nantes_300421', 'pool5', 10.0, None, None, 256, None, 0, None, 8, None, None, -1000.0, 1, datetime.datetime(2021, 4, 30, 17, 9, 41), datetime.datetime(2021, 4, 30, 17, 9, 41)) FOUND : 1 Here is data_from_sql_as_vec to set the ParamDescriptorType : (5309, 'learn_convoyeur_qualipapia_nantes_poly_100521_1', 16384, 25088, 'learn_convoyeur_qualipapia_nantes_poly_100521_1', 'pool5', 10.0, None, None, 256, None, 0, None, 8, None, None, -1000.0, 1, datetime.datetime(2021, 5, 10, 19, 20, 46), datetime.datetime(2021, 5, 10, 19, 20, 46)) load thcls load THCL from format json or kwargs add thcl : 2456 in CacheModelConfig load THCL from format json or kwargs add thcl : 2868 in CacheModelConfig load THCL from format json or kwargs add thcl : 2896 in CacheModelConfig load pdts add pdt : 4999 in CacheModelConfig add pdt : 5288 in CacheModelConfig add pdt : 5309 in CacheModelConfig Running datou job : batch_current TODO datou_current to load to do maybe to take outside batchDatouExec updating current state to 1 we have a portfolio with more photos than limit : 29>10 please execute split_portfolio.py -i 20914260 -l 10 size over we load limit photo not treated list_input_json: [] Current got : datou_id : 3459, datou_cur_ids : ['2622555'] with mtr_portfolio_ids : ['20914260'] and first list_photo_ids : [] new path : /proc/3611647/ 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) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! 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 : number of outputs for step 11449 mask_detect is not consistent : 3 used against 2 in the step definition ! Step 11452 crop_condition have less inputs used (1) than in the step definition (2) : maybe we manage optionnal inputs ! Step 11452 crop_condition have less outputs used (2) than in the step definition (3) : some outputs may be not used ! Step 11453 merge_mask_thcl_custom have less inputs used (2) than in the step definition (3) : maybe we manage optionnal inputs ! WARNING : number of outputs for step 11453 merge_mask_thcl_custom is not consistent : 4 used against 2 in the step definition ! WARNING : number of inputs for step 11454 rle_unique_nms_with_priority is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 11454 rle_unique_nms_with_priority is not consistent : 2 used against 1 in the step definition ! Step 11478 crop_condition have less inputs used (1) than in the step definition (2) : maybe we manage optionnal inputs ! WARNING : number of outputs for step 11478 crop_condition is not consistent : 4 used against 3 in the step definition ! WARNING : number of inputs for step 11456 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 11456 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11455 final have less inputs used (2) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11455 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! Step 11458 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! 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 ! WARNING : type of output 2 of step 11449 doesn't seem to be define in the database( WARNING : type of input 2 of step 11452 doesn't seem to be define in the database( WARNING : output 1 of step 11449 have datatype=2 whereas input 1 of step 11453 have datatype=7 WARNING : type of output 2 of step 11453 doesn't seem to be define in the database( WARNING : type of input 1 of step 11454 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : type of output 3 of step 11453 doesn't seem to be define in the database( WARNING : type of input 1 of step 11456 doesn't seem to be define in the database( WARNING : type of output 1 of step 11456 doesn't seem to be define in the database( WARNING : type of input 3 of step 11455 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 11456 have datatype=10 whereas input 3 of step 11458 have datatype=6 WARNING : type of input 5 of step 11458 doesn't seem to be define in the database( WARNING : output 0 of step 11477 have datatype=11 whereas input 5 of step 11458 have datatype=None WARNING : output 0 of step 11456 have datatype=10 whereas input 0 of step 11477 have datatype=18 WARNING : type of input 2 of step 11478 doesn't seem to be define in the database( WARNING : output 1 of step 11454 have datatype=7 whereas input 2 of step 11478 have datatype=None WARNING : type of output 3 of step 11478 doesn't seem to be define in the database( WARNING : type of input 2 of step 11456 doesn't seem to be define in the database( WARNING : output 0 of step 11453 have datatype=1 whereas input 0 of step 11454 have datatype=2 DataTypes for each output/input checked ! List Step Type Loaded in datou : mask_detect, crop_condition, thcl, merge_mask_thcl_custom, rle_unique_nms_with_priority, crop_condition, ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score list_input_json : [] origin We have 1 , WARNING: data may be incomplete, need to offset and complete ! BFBFBFBFBFBFBFBFBFBFwe have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB length of list_filenames : 10 ; length of list_pids : 10 ; length of list_args : 10 time to download the photos : 2.801128625869751 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 : 11 step1:mask_detect Fri Feb 28 07:36:33 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 Beginning of datou step mask_detect ! save_polygon : True begin detect begin to check gpu status inside check gpu memory l 3637 free memory gpu now : 3091 max_wait_temp : 1 max_wait : 0 gpu_flag : 0 2025-02-28 07:36:36.895111: I tensorflow/core/platform/cpu_feature_guard.cc:143] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA 2025-02-28 07:36:36.923243: I tensorflow/core/platform/profile_utils/cpu_utils.cc:102] CPU Frequency: 3493065000 Hz 2025-02-28 07:36:36.925885: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x7f1bd8000b60 initialized for platform Host (this does not guarantee that XLA will be used). Devices: 2025-02-28 07:36:36.925972: I tensorflow/compiler/xla/service/service.cc:176] StreamExecutor device (0): Host, Default Version 2025-02-28 07:36:36.930713: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcuda.so.1 2025-02-28 07:36:37.099029: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x1623fcb0 initialized for platform CUDA (this does not guarantee that XLA will be used). Devices: 2025-02-28 07:36:37.099129: I tensorflow/compiler/xla/service/service.cc:176] StreamExecutor device (0): NVIDIA GeForce RTX 2080 Ti, Compute Capability 7.5 2025-02-28 07:36:37.100272: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1561] Found device 0 with properties: pciBusID: 0000:41:00.0 name: NVIDIA GeForce RTX 2080 Ti computeCapability: 7.5 coreClock: 1.545GHz coreCount: 68 deviceMemorySize: 10.76GiB deviceMemoryBandwidth: 573.69GiB/s 2025-02-28 07:36:37.101805: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1 2025-02-28 07:36:37.106001: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcublas.so.10 2025-02-28 07:36:37.110220: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcufft.so.10 2025-02-28 07:36:37.111472: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcurand.so.10 2025-02-28 07:36:37.116305: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusolver.so.10 2025-02-28 07:36:37.118064: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusparse.so.10 2025-02-28 07:36:37.125384: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudnn.so.7 2025-02-28 07:36:37.126801: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1703] Adding visible gpu devices: 0 2025-02-28 07:36:37.126961: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1 2025-02-28 07:36:37.127631: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1102] Device interconnect StreamExecutor with strength 1 edge matrix: 2025-02-28 07:36:37.127649: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1108] 0 2025-02-28 07:36:37.127659: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1121] 0: N 2025-02-28 07:36:37.128635: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1247] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 2245 MB memory) -> physical GPU (device: 0, name: NVIDIA GeForce RTX 2080 Ti, pci bus id: 0000:41:00.0, compute capability: 7.5) WARNING:tensorflow:From /home/admin/workarea/git/Velours/python/mtr/mask_rcnn/mask_detection.py:69: The name tf.keras.backend.set_session is deprecated. Please use tf.compat.v1.keras.backend.set_session instead. 2025-02-28 07:36:37.491324: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1561] Found device 0 with properties: pciBusID: 0000:41:00.0 name: NVIDIA GeForce RTX 2080 Ti computeCapability: 7.5 coreClock: 1.545GHz coreCount: 68 deviceMemorySize: 10.76GiB deviceMemoryBandwidth: 573.69GiB/s 2025-02-28 07:36:37.491503: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1 2025-02-28 07:36:37.491531: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcublas.so.10 2025-02-28 07:36:37.491558: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcufft.so.10 2025-02-28 07:36:37.491582: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcurand.so.10 2025-02-28 07:36:37.491603: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusolver.so.10 2025-02-28 07:36:37.491623: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusparse.so.10 2025-02-28 07:36:37.491643: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudnn.so.7 2025-02-28 07:36:37.492443: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1703] Adding visible gpu devices: 0 2025-02-28 07:36:37.493557: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1561] Found device 0 with properties: pciBusID: 0000:41:00.0 name: NVIDIA GeForce RTX 2080 Ti computeCapability: 7.5 coreClock: 1.545GHz coreCount: 68 deviceMemorySize: 10.76GiB deviceMemoryBandwidth: 573.69GiB/s 2025-02-28 07:36:37.493644: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1 2025-02-28 07:36:37.493669: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcublas.so.10 2025-02-28 07:36:37.493691: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcufft.so.10 2025-02-28 07:36:37.493712: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcurand.so.10 2025-02-28 07:36:37.493733: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusolver.so.10 2025-02-28 07:36:37.493753: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusparse.so.10 2025-02-28 07:36:37.493779: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudnn.so.7 2025-02-28 07:36:37.494586: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1703] Adding visible gpu devices: 0 2025-02-28 07:36:37.494626: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1102] Device interconnect StreamExecutor with strength 1 edge matrix: 2025-02-28 07:36:37.494639: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1108] 0 2025-02-28 07:36:37.494650: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1121] 0: N 2025-02-28 07:36:37.495496: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1247] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 2245 MB memory) -> physical GPU (device: 0, name: NVIDIA GeForce RTX 2080 Ti, pci bus id: 0000:41:00.0, compute capability: 7.5) Using TensorFlow backend. WARNING:tensorflow:From /home/admin/workarea/install/Mask_RCNN/model.py:396: calling crop_and_resize_v1 (from tensorflow.python.ops.image_ops_impl) with box_ind is deprecated and will be removed in a future version. Instructions for updating: box_ind is deprecated, use box_indices instead WARNING:tensorflow:From /home/admin/workarea/install/Mask_RCNN/model.py:703: to_int32 (from tensorflow.python.ops.math_ops) is deprecated and will be removed in a future version. Instructions for updating: Use `tf.cast` instead. WARNING:tensorflow:From /home/admin/workarea/install/Mask_RCNN/model.py:729: to_float (from tensorflow.python.ops.math_ops) is deprecated and will be removed in a future version. Instructions for updating: Use `tf.cast` instead. Inside mask_sub_process Inside mask_detect About to load cache.load_thcl_param To do loadFromThcl(), then load ParamDescType : thcl2896 thcls : [{'id': 2896, 'mtr_user_id': 31, 'name': 'learn_convoyeur_qualipapia_nantes_poly_100521_1', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'background,carton_brun,carton_gris,cartonnette,kraft,autre_refus,metal,plastique,teint_dans_la_masse,environnement', 'svm_portfolios_learning': '0,0,0,0,0,0,0,0,0,0', 'photo_hashtag_type': 3663, 'photo_desc_type': 5309, 'type_classification': 'mask_rcnn', 'hashtag_id_list': '0,0,0,0,0,0,0,0,0,0'}] thcl {'id': 2896, 'mtr_user_id': 31, 'name': 'learn_convoyeur_qualipapia_nantes_poly_100521_1', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'background,carton_brun,carton_gris,cartonnette,kraft,autre_refus,metal,plastique,teint_dans_la_masse,environnement', 'svm_portfolios_learning': '0,0,0,0,0,0,0,0,0,0', 'photo_hashtag_type': 3663, 'photo_desc_type': 5309, 'type_classification': 'mask_rcnn', 'hashtag_id_list': '0,0,0,0,0,0,0,0,0,0'} Update svm_hashtag_type_desc : 5309 FOUND : 1 Here is data_from_sql_as_vec to set the ParamDescriptorType : (5309, 'learn_convoyeur_qualipapia_nantes_poly_100521_1', 16384, 25088, 'learn_convoyeur_qualipapia_nantes_poly_100521_1', 'pool5', 10.0, None, None, 256, None, 0, None, 8, None, None, -1000.0, 1, datetime.datetime(2021, 5, 10, 19, 20, 46), datetime.datetime(2021, 5, 10, 19, 20, 46)) {'thcl': {'id': 2896, 'mtr_user_id': 31, 'name': 'learn_convoyeur_qualipapia_nantes_poly_100521_1', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'background,carton_brun,carton_gris,cartonnette,kraft,autre_refus,metal,plastique,teint_dans_la_masse,environnement', 'svm_portfolios_learning': '0,0,0,0,0,0,0,0,0,0', 'photo_hashtag_type': 3663, 'photo_desc_type': 5309, 'type_classification': 'mask_rcnn', 'hashtag_id_list': '0,0,0,0,0,0,0,0,0,0'}, 'list_hashtags': ['background', 'carton_brun', 'carton_gris', 'cartonnette', 'kraft', 'autre_refus', 'metal', 'plastique', 'teint_dans_la_masse', 'environnement'], 'list_hashtags_csv': 'background,carton_brun,carton_gris,cartonnette,kraft,autre_refus,metal,plastique,teint_dans_la_masse,environnement', 'svm_portfolios_learning': '0,0,0,0,0,0,0,0,0,0', 'photo_hashtag_type': 3663, 'svm_hashtag_type_desc': 5309, 'photo_desc_type': 5309, 'pb_hashtag_id_or_classifier': 0} list_class_names : ['background', 'carton_brun', 'carton_gris', 'cartonnette', 'kraft', 'autre_refus', 'metal', 'plastique', 'teint_dans_la_masse', 'environnement'] Configurations: BACKBONE resnet101 BACKBONE_SHAPES [[160 160] [ 80 80] [ 40 40] [ 20 20] [ 10 10]] BACKBONE_STRIDES [4, 8, 16, 32, 64] BATCH_SIZE 1 BBOX_STD_DEV [0.1 0.1 0.2 0.2] DETECTION_MAX_INSTANCES 100 DETECTION_MIN_CONFIDENCE 0.3 DETECTION_NMS_THRESHOLD 0.3 GPU_COUNT 1 IMAGES_PER_GPU 1 IMAGE_MAX_DIM 640 IMAGE_MIN_DIM 640 IMAGE_PADDING True IMAGE_SHAPE [640 640 3] LEARNING_MOMENTUM 0.9 LEARNING_RATE 0.001 LOSS_WEIGHTS {'rpn_class_loss': 1.0, 'rpn_bbox_loss': 1.0, 'mrcnn_class_loss': 1.0, 'mrcnn_bbox_loss': 1.0, 'mrcnn_mask_loss': 1.0} MASK_POOL_SIZE 14 MASK_SHAPE [28, 28] MAX_GT_INSTANCES 100 MEAN_PIXEL [123.7 116.8 103.9] MINI_MASK_SHAPE (56, 56) NAME learn_convoyeur_qualipapia_nantes_poly_100521_1 NUM_CLASSES 10 POOL_SIZE 7 POST_NMS_ROIS_INFERENCE 1000 POST_NMS_ROIS_TRAINING 2000 ROI_POSITIVE_RATIO 0.33 RPN_ANCHOR_RATIOS [0.5, 1, 2] RPN_ANCHOR_SCALES (16, 32, 64, 128, 256) RPN_ANCHOR_STRIDE 1 RPN_BBOX_STD_DEV [0.1 0.1 0.2 0.2] RPN_NMS_THRESHOLD 0.7 RPN_TRAIN_ANCHORS_PER_IMAGE 256 STEPS_PER_EPOCH 1000 TRAIN_ROIS_PER_IMAGE 200 USE_MINI_MASK True USE_RPN_ROIS True VALIDATION_STEPS 50 WEIGHT_DECAY 0.0001 model_param file didn't exist model_name : learn_convoyeur_qualipapia_nantes_poly_100521_1 model_type : mask_rcnn list file need : ['mask_model.h5'] file exist in s3 : ['mask_model.h5'] file manque in s3 : [] 2025-02-28 07:36:42.377593: W tensorflow/core/framework/cpu_allocator_impl.cc:81] Allocation of 51380224 exceeds 10% of free system memory. 2025-02-28 07:36:46.835765: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcublas.so.10 2025-02-28 07:36:47.083822: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudnn.so.7 2025-02-28 07:36:48.664386: W tensorflow/core/common_runtime/bfc_allocator.cc:245] Allocator (GPU_0_bfc) ran out of memory trying to allocate 2.06GiB with freed_by_count=0. The caller indicates that this is not a failure, but may mean that there could be performance gains if more memory were available. 2025-02-28 07:36:48.664453: W tensorflow/core/common_runtime/bfc_allocator.cc:245] Allocator (GPU_0_bfc) ran out of memory trying to allocate 2.06GiB with freed_by_count=0. The caller indicates that this is not a failure, but may mean that there could be performance gains if more memory were available. 2025-02-28 07:36:48.670933: W tensorflow/core/common_runtime/bfc_allocator.cc:245] Allocator (GPU_0_bfc) ran out of memory trying to allocate 2.06GiB with freed_by_count=0. The caller indicates that this is not a failure, but may mean that there could be performance gains if more memory were available. 2025-02-28 07:36:48.670958: W tensorflow/core/common_runtime/bfc_allocator.cc:245] Allocator (GPU_0_bfc) ran out of memory trying to allocate 2.06GiB with freed_by_count=0. The caller indicates that this is not a failure, but may mean that there could be performance gains if more memory were available. 2025-02-28 07:36:48.723468: W tensorflow/core/common_runtime/bfc_allocator.cc:245] Allocator (GPU_0_bfc) ran out of memory trying to allocate 2.06GiB with freed_by_count=0. The caller indicates that this is not a failure, but may mean that there could be performance gains if more memory were available. 2025-02-28 07:36:48.723536: W tensorflow/core/common_runtime/bfc_allocator.cc:245] Allocator (GPU_0_bfc) ran out of memory trying to allocate 2.06GiB with freed_by_count=0. The caller indicates that this is not a failure, but may mean that there could be performance gains if more memory were available. 2025-02-28 07:36:48.765704: W tensorflow/core/common_runtime/bfc_allocator.cc:245] Allocator (GPU_0_bfc) ran out of memory trying to allocate 2.09GiB with freed_by_count=0. The caller indicates that this is not a failure, but may mean that there could be performance gains if more memory were available. 2025-02-28 07:36:48.765740: W tensorflow/core/common_runtime/bfc_allocator.cc:245] Allocator (GPU_0_bfc) ran out of memory trying to allocate 2.09GiB with freed_by_count=0. The caller indicates that this is not a failure, but may mean that there could be performance gains if more memory were available. 2025-02-28 07:36:48.816210: W tensorflow/core/common_runtime/bfc_allocator.cc:245] Allocator (GPU_0_bfc) ran out of memory trying to allocate 2.15GiB with freed_by_count=0. The caller indicates that this is not a failure, but may mean that there could be performance gains if more memory were available. 2025-02-28 07:36:48.816247: W tensorflow/core/common_runtime/bfc_allocator.cc:245] Allocator (GPU_0_bfc) ran out of memory trying to allocate 2.15GiB with freed_by_count=0. The caller indicates that this is not a failure, but may mean that there could be performance gains if more memory were available. local folder : /data/models_weight/learn_convoyeur_qualipapia_nantes_poly_100521_1 /data/models_weight/learn_convoyeur_qualipapia_nantes_poly_100521_1/mask_model.h5 size_local : 256031040 size in s3 : 256031040 create time local : 2021-08-09 05:45:48 create time in s3 : 2021-08-06 18:59:51 mask_model.h5 already exist and didn't need to update list_images length : 10 NEW PHOTO Processing 1 images image shape: (1080, 1920, 3) min: 0.00000 max: 255.00000 molded_images shape: (1, 640, 640, 3) min: -123.70000 max: 151.10000 image_metas shape: (1, 18) min: 0.00000 max: 1920.00000 nb d'objets trouves : 8 NEW PHOTO Processing 1 images image shape: (1080, 1920, 3) min: 0.00000 max: 255.00000 molded_images shape: (1, 640, 640, 3) min: -123.70000 max: 151.10000 image_metas shape: (1, 18) min: 0.00000 max: 1920.00000 nb d'objets trouves : 8 NEW PHOTO Processing 1 images image shape: (1080, 1920, 3) min: 0.00000 max: 255.00000 molded_images shape: (1, 640, 640, 3) min: -123.70000 max: 151.10000 image_metas shape: (1, 18) min: 0.00000 max: 1920.00000 nb d'objets trouves : 7 NEW PHOTO Processing 1 images image shape: (1080, 1920, 3) min: 0.00000 max: 255.00000 molded_images shape: (1, 640, 640, 3) min: -123.70000 max: 151.10000 image_metas shape: (1, 18) min: 0.00000 max: 1920.00000 nb d'objets trouves : 7 NEW PHOTO Processing 1 images image shape: (1080, 1920, 3) min: 0.00000 max: 255.00000 molded_images shape: (1, 640, 640, 3) min: -123.70000 max: 143.10000 image_metas shape: (1, 18) min: 0.00000 max: 1920.00000 nb d'objets trouves : 10 NEW PHOTO Processing 1 images image shape: (1080, 1920, 3) min: 0.00000 max: 255.00000 molded_images shape: (1, 640, 640, 3) min: -123.70000 max: 145.10000 image_metas shape: (1, 18) min: 0.00000 max: 1920.00000 nb d'objets trouves : 9 NEW PHOTO Processing 1 images image shape: (1080, 1920, 3) min: 0.00000 max: 255.00000 molded_images shape: (1, 640, 640, 3) min: -123.70000 max: 151.10000 image_metas shape: (1, 18) min: 0.00000 max: 1920.00000 nb d'objets trouves : 9 NEW PHOTO Processing 1 images image shape: (1080, 1920, 3) min: 0.00000 max: 255.00000 molded_images shape: (1, 640, 640, 3) min: -123.70000 max: 151.10000 image_metas shape: (1, 18) min: 0.00000 max: 1920.00000 nb d'objets trouves : 8 NEW PHOTO Processing 1 images image shape: (1080, 1920, 3) min: 0.00000 max: 255.00000 molded_images shape: (1, 640, 640, 3) min: -123.70000 max: 151.10000 image_metas shape: (1, 18) min: 0.00000 max: 1920.00000 nb d'objets trouves : 4 NEW PHOTO Processing 1 images image shape: (1080, 1920, 3) min: 0.00000 max: 255.00000 molded_images shape: (1, 640, 640, 3) min: -123.70000 max: 151.10000 image_metas shape: (1, 18) min: 0.00000 max: 1920.00000 nb d'objets trouves : 8 Detection mask done ! Trying to reset tf kernel 3612570 begin to check gpu status inside check gpu memory l 3610 free memory gpu now : 961 tf kernel not reseted sub process len(results) : 10 len(list_Values) 0 None max_time_sub_proc : 3600 parent process len(results) : 10 len(list_Values) 0 process is alive finish correctly or not : True after detect begin to check gpu status inside check gpu memory l 3610 free memory gpu now : 3890 list_Values should be empty [] To do loadFromThcl(), then load ParamDescType : thcl2896 Catched exception ! Connect or reconnect ! thcls : [{'id': 2896, 'mtr_user_id': 31, 'name': 'learn_convoyeur_qualipapia_nantes_poly_100521_1', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'background,carton_brun,carton_gris,cartonnette,kraft,autre_refus,metal,plastique,teint_dans_la_masse,environnement', 'svm_portfolios_learning': '0,0,0,0,0,0,0,0,0,0', 'photo_hashtag_type': 3663, 'photo_desc_type': 5309, 'type_classification': 'mask_rcnn', 'hashtag_id_list': '0,0,0,0,0,0,0,0,0,0'}] thcl {'id': 2896, 'mtr_user_id': 31, 'name': 'learn_convoyeur_qualipapia_nantes_poly_100521_1', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'background,carton_brun,carton_gris,cartonnette,kraft,autre_refus,metal,plastique,teint_dans_la_masse,environnement', 'svm_portfolios_learning': '0,0,0,0,0,0,0,0,0,0', 'photo_hashtag_type': 3663, 'photo_desc_type': 5309, 'type_classification': 'mask_rcnn', 'hashtag_id_list': '0,0,0,0,0,0,0,0,0,0'} Update svm_hashtag_type_desc : 5309 ['background', 'carton_brun', 'carton_gris', 'cartonnette', 'kraft', 'autre_refus', 'metal', 'plastique', 'teint_dans_la_masse', 'environnement'] time for calcul the mask position with numpy : 0.0005965232849121094 nb_pixel_total : 23207 time to create 1 rle with old method : 0.027723073959350586 length of segment : 277 time for calcul the mask position with numpy : 0.0003380775451660156 nb_pixel_total : 17515 time to create 1 rle with old method : 0.021811485290527344 length of segment : 235 time for calcul the mask position with numpy : 0.012091636657714844 nb_pixel_total : 619412 time to create 1 rle with new method : 0.05759000778198242 length of segment : 1478 time for calcul the mask position with numpy : 0.0016407966613769531 nb_pixel_total : 107364 time to create 1 rle with old method : 0.13823795318603516 length of segment : 420 time for calcul the mask position with numpy : 0.0002765655517578125 nb_pixel_total : 11028 time to create 1 rle with old method : 0.013367891311645508 length of segment : 101 time for calcul the mask position with numpy : 0.002015352249145508 nb_pixel_total : 128613 time to create 1 rle with old method : 0.24588775634765625 length of segment : 636 time for calcul the mask position with numpy : 0.0006594657897949219 nb_pixel_total : 19163 time to create 1 rle with old method : 0.0236358642578125 length of segment : 193 time for calcul the mask position with numpy : 0.002897500991821289 nb_pixel_total : 97894 time to create 1 rle with old method : 0.13171696662902832 length of segment : 494 time for calcul the mask position with numpy : 9.822845458984375e-05 nb_pixel_total : 1405 time to create 1 rle with old method : 0.0023975372314453125 length of segment : 103 time for calcul the mask position with numpy : 0.0003387928009033203 nb_pixel_total : 4721 time to create 1 rle with old method : 0.008134603500366211 length of segment : 173 time for calcul the mask position with numpy : 0.01513671875 nb_pixel_total : 483948 time to create 1 rle with new method : 0.02896714210510254 length of segment : 1175 time for calcul the mask position with numpy : 0.0005483627319335938 nb_pixel_total : 22199 time to create 1 rle with old method : 0.02682209014892578 length of segment : 189 time for calcul the mask position with numpy : 0.00030803680419921875 nb_pixel_total : 16793 time to create 1 rle with old method : 0.019873619079589844 length of segment : 154 time for calcul the mask position with numpy : 0.0001819133758544922 nb_pixel_total : 485 time to create 1 rle with old method : 0.0007421970367431641 length of segment : 53 time for calcul the mask position with numpy : 0.00018095970153808594 nb_pixel_total : 7779 time to create 1 rle with old method : 0.011674642562866211 length of segment : 133 time for calcul the mask position with numpy : 0.0034933090209960938 nb_pixel_total : 156635 time to create 1 rle with new method : 0.0045893192291259766 length of segment : 557 time for calcul the mask position with numpy : 0.00010824203491210938 nb_pixel_total : 2470 time to create 1 rle with old method : 0.003153562545776367 length of segment : 68 time for calcul the mask position with numpy : 0.0008356571197509766 nb_pixel_total : 24489 time to create 1 rle with old method : 0.029171228408813477 length of segment : 336 time for calcul the mask position with numpy : 0.006837606430053711 nb_pixel_total : 407084 time to create 1 rle with new method : 0.01682424545288086 length of segment : 1739 time for calcul the mask position with numpy : 0.0017175674438476562 nb_pixel_total : 99352 time to create 1 rle with old method : 0.11090946197509766 length of segment : 389 time for calcul the mask position with numpy : 0.00048804283142089844 nb_pixel_total : 25412 time to create 1 rle with old method : 0.03038334846496582 length of segment : 357 time for calcul the mask position with numpy : 0.0009577274322509766 nb_pixel_total : 28354 time to create 1 rle with old method : 0.034169673919677734 length of segment : 458 time for calcul the mask position with numpy : 0.0003814697265625 nb_pixel_total : 12694 time to create 1 rle with old method : 0.014806270599365234 length of segment : 128 time for calcul the mask position with numpy : 0.0010619163513183594 nb_pixel_total : 49139 time to create 1 rle with old method : 0.056062936782836914 length of segment : 313 time for calcul the mask position with numpy : 0.01408529281616211 nb_pixel_total : 846829 time to create 1 rle with new method : 0.8327436447143555 length of segment : 1378 time for calcul the mask position with numpy : 0.003691434860229492 nb_pixel_total : 304091 time to create 1 rle with new method : 0.008310556411743164 length of segment : 932 time for calcul the mask position with numpy : 0.0006365776062011719 nb_pixel_total : 16877 time to create 1 rle with old method : 0.020559310913085938 length of segment : 147 time for calcul the mask position with numpy : 0.00020360946655273438 nb_pixel_total : 5670 time to create 1 rle with old method : 0.007071495056152344 length of segment : 76 time for calcul the mask position with numpy : 0.0007889270782470703 nb_pixel_total : 26368 time to create 1 rle with old method : 0.03105330467224121 length of segment : 138 time for calcul the mask position with numpy : 0.017447710037231445 nb_pixel_total : 601879 time to create 1 rle with new method : 0.040635108947753906 length of segment : 1209 time for calcul the mask position with numpy : 0.0014185905456542969 nb_pixel_total : 71448 time to create 1 rle with old method : 0.08451628684997559 length of segment : 367 time for calcul the mask position with numpy : 0.0001308917999267578 nb_pixel_total : 3376 time to create 1 rle with old method : 0.004109621047973633 length of segment : 56 time for calcul the mask position with numpy : 0.0019078254699707031 nb_pixel_total : 77034 time to create 1 rle with old method : 0.09240031242370605 length of segment : 507 time for calcul the mask position with numpy : 0.00010943412780761719 nb_pixel_total : 1141 time to create 1 rle with old method : 0.0014073848724365234 length of segment : 64 time for calcul the mask position with numpy : 0.0017101764678955078 nb_pixel_total : 72234 time to create 1 rle with old method : 0.08155083656311035 length of segment : 434 time for calcul the mask position with numpy : 0.0005590915679931641 nb_pixel_total : 27751 time to create 1 rle with old method : 0.033199310302734375 length of segment : 243 time for calcul the mask position with numpy : 0.0049855709075927734 nb_pixel_total : 318284 time to create 1 rle with new method : 0.013112068176269531 length of segment : 954 time for calcul the mask position with numpy : 9.918212890625e-05 nb_pixel_total : 1034 time to create 1 rle with old method : 0.0012979507446289062 length of segment : 87 time for calcul the mask position with numpy : 0.0014979839324951172 nb_pixel_total : 41617 time to create 1 rle with old method : 0.047245025634765625 length of segment : 404 time for calcul the mask position with numpy : 0.0003159046173095703 nb_pixel_total : 8461 time to create 1 rle with old method : 0.010545015335083008 length of segment : 91 time for calcul the mask position with numpy : 0.0014712810516357422 nb_pixel_total : 39338 time to create 1 rle with old method : 0.04765748977661133 length of segment : 290 time for calcul the mask position with numpy : 0.014065980911254883 nb_pixel_total : 538919 time to create 1 rle with new method : 0.02514791488647461 length of segment : 1431 time for calcul the mask position with numpy : 0.0003063678741455078 nb_pixel_total : 2823 time to create 1 rle with old method : 0.0035200119018554688 length of segment : 76 time for calcul the mask position with numpy : 0.0001304149627685547 nb_pixel_total : 1457 time to create 1 rle with old method : 0.0018239021301269531 length of segment : 51 time for calcul the mask position with numpy : 0.00038886070251464844 nb_pixel_total : 24669 time to create 1 rle with old method : 0.029610157012939453 length of segment : 166 time for calcul the mask position with numpy : 0.00029778480529785156 nb_pixel_total : 14047 time to create 1 rle with old method : 0.016233444213867188 length of segment : 179 time for calcul the mask position with numpy : 0.0003046989440917969 nb_pixel_total : 7935 time to create 1 rle with old method : 0.009835004806518555 length of segment : 82 time for calcul the mask position with numpy : 0.0002810955047607422 nb_pixel_total : 9977 time to create 1 rle with old method : 0.012063026428222656 length of segment : 55 time for calcul the mask position with numpy : 0.00040531158447265625 nb_pixel_total : 8606 time to create 1 rle with old method : 0.010313034057617188 length of segment : 113 time for calcul the mask position with numpy : 0.01131582260131836 nb_pixel_total : 429847 time to create 1 rle with new method : 0.020957469940185547 length of segment : 1324 time for calcul the mask position with numpy : 0.0001590251922607422 nb_pixel_total : 2893 time to create 1 rle with old method : 0.003527402877807617 length of segment : 61 time for calcul the mask position with numpy : 0.0007250308990478516 nb_pixel_total : 25277 time to create 1 rle with old method : 0.03073716163635254 length of segment : 224 time for calcul the mask position with numpy : 0.0005004405975341797 nb_pixel_total : 16792 time to create 1 rle with old method : 0.01940155029296875 length of segment : 181 time for calcul the mask position with numpy : 0.0011887550354003906 nb_pixel_total : 44565 time to create 1 rle with old method : 0.051801204681396484 length of segment : 248 time for calcul the mask position with numpy : 0.0021779537200927734 nb_pixel_total : 82408 time to create 1 rle with old method : 0.09494948387145996 length of segment : 470 time for calcul the mask position with numpy : 0.009342432022094727 nb_pixel_total : 304440 time to create 1 rle with new method : 0.015658855438232422 length of segment : 1418 time for calcul the mask position with numpy : 0.0013000965118408203 nb_pixel_total : 24495 time to create 1 rle with old method : 0.05382943153381348 length of segment : 354 time for calcul the mask position with numpy : 0.0006351470947265625 nb_pixel_total : 30615 time to create 1 rle with old method : 0.05090808868408203 length of segment : 187 time for calcul the mask position with numpy : 0.0012564659118652344 nb_pixel_total : 75416 time to create 1 rle with old method : 0.09842801094055176 length of segment : 218 time for calcul the mask position with numpy : 0.0009508132934570312 nb_pixel_total : 68061 time to create 1 rle with old method : 0.08356070518493652 length of segment : 311 time for calcul the mask position with numpy : 0.001422882080078125 nb_pixel_total : 72496 time to create 1 rle with old method : 0.08748674392700195 length of segment : 370 time for calcul the mask position with numpy : 0.0017566680908203125 nb_pixel_total : 55678 time to create 1 rle with old method : 0.06571531295776367 length of segment : 486 time for calcul the mask position with numpy : 0.015035629272460938 nb_pixel_total : 792544 time to create 1 rle with new method : 0.029120922088623047 length of segment : 1427 time for calcul the mask position with numpy : 0.0036208629608154297 nb_pixel_total : 298406 time to create 1 rle with new method : 0.008780717849731445 length of segment : 936 time for calcul the mask position with numpy : 0.00034117698669433594 nb_pixel_total : 15040 time to create 1 rle with old method : 0.017773866653442383 length of segment : 168 time for calcul the mask position with numpy : 0.0008924007415771484 nb_pixel_total : 19182 time to create 1 rle with old method : 0.022983789443969727 length of segment : 368 time for calcul the mask position with numpy : 0.0003578662872314453 nb_pixel_total : 10726 time to create 1 rle with old method : 0.01847052574157715 length of segment : 119 time for calcul the mask position with numpy : 0.0002880096435546875 nb_pixel_total : 5018 time to create 1 rle with old method : 0.008661508560180664 length of segment : 91 time for calcul the mask position with numpy : 0.0005428791046142578 nb_pixel_total : 23005 time to create 1 rle with old method : 0.02711772918701172 length of segment : 110 time for calcul the mask position with numpy : 0.005270242691040039 nb_pixel_total : 264818 time to create 1 rle with new method : 0.01075887680053711 length of segment : 1064 time for calcul the mask position with numpy : 0.0016863346099853516 nb_pixel_total : 97318 time to create 1 rle with old method : 0.15101122856140137 length of segment : 356 time for calcul the mask position with numpy : 0.004331350326538086 nb_pixel_total : 298123 time to create 1 rle with new method : 0.011882543563842773 length of segment : 936 time spent for convertir_results : 8.18280839920044 Inside saveOutput : final : False verbose : 0 eke 12-6-18 : saveMask need to be cleaned for new output ! Number saved : None batch 1 Loaded 72 chid ids of type : 3663 Number RLEs to save : 31116 save missing photos in datou_result : time spend for datou_step_exec : 32.59700584411621 time spend to save output : 2.2386269569396973 total time spend for step 1 : 34.83563280105591 step2:crop_condition Fri Feb 28 07:37:08 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 Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure Loading chi in step crop with photo_hashtag_type : 3663 Loading chi in step crop for list_pids : 10 ! batch 1 Loaded 72 chid ids of type : 3663 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ begin to crop the class : teint_dans_la_masse param for this class : {'min_score': 0.7} filtre for class : teint_dans_la_masse hashtag_id of this class : 2107752385 we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! map_result returned by crop_photo_return_map_crop : length : 7 About to insert : list_path_to_insert length 7 new photo from crops ! we have finished the crop for the class : teint_dans_la_masse begin to crop the class : autre_refus param for this class : {'min_score': 0.5} filtre for class : autre_refus hashtag_id of this class : 2107752406 we have both polygon and rles Next one ! map_result returned by crop_photo_return_map_crop : length : 1 About to insert : list_path_to_insert length 1 new photo from crops ! we have finished the crop for the class : autre_refus begin to crop the class : carton_gris param for this class : {'min_score': 0.5} filtre for class : carton_gris hashtag_id of this class : 2107753020 we have both polygon and rles Next one ! map_result returned by crop_photo_return_map_crop : length : 1 About to insert : list_path_to_insert length 1 new photo from crops ! we have finished the crop for the class : carton_gris begin to crop the class : cartonnette param for this class : {'min_score': 0.5} filtre for class : cartonnette hashtag_id of this class : 702398920 we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! map_result returned by crop_photo_return_map_crop : length : 10 About to insert : list_path_to_insert length 10 new photo from crops ! we have finished the crop for the class : cartonnette begin to crop the class : carton_brun param for this class : {'min_score': 0.7} filtre for class : carton_brun hashtag_id of this class : 2107753024 we have both polygon and rles Next one ! we have both polygon and rles Next one ! map_result returned by crop_photo_return_map_crop : length : 2 About to insert : list_path_to_insert length 2 new photo from crops ! we have finished the crop for the class : carton_brun begin to crop the class : plastique param for this class : {'min_score': 0.5} filtre for class : plastique hashtag_id of this class : 492725882 we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! map_result returned by crop_photo_return_map_crop : length : 3 About to insert : list_path_to_insert length 3 new photo from crops ! we have finished the crop for the class : plastique begin to crop the class : kraft param for this class : {'min_score': 0.5} filtre for class : kraft hashtag_id of this class : 493202403 begin to crop the class : metal param for this class : {'min_score': 0.5} filtre for class : metal hashtag_id of this class : 492628673 delete rles for these photos Inside saveOutput : final : False verbose : 0 saveOutput not yet implemented for datou_step.type : crop_condition we use saveGeneral [1340082585, 1340082582, 1340082578, 1340082575, 1340082570, 1340082559, 1340082528, 1340082523, 1340082516, 1340082511] Looping around the photos to save general results len do output : 24 /-3689676933Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3689676927Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3689676950Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3689676951Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3689676966Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3689676991Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3689676988Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3689676923Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3689676926Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3689676939Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3689676940Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3689676947Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3689676942Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3689676955Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3689676952Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3689676964Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3689676972Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3689676978Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3689676990Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3689676976Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3689676977Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3689676925Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3689676935Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3689676986Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . before output type Here is an output not treated by saveGeneral : Here is an output not treated by saveGeneral : Here is an output not treated by saveGeneral : Managing all output in save final without adding information in the mtr_datou_result ('3459', None, None, None, None, None, None, None, '2622555') ('3459', '20914260', '1340082585', None, None, None, None, None, '2622555') ('3459', None, None, None, None, None, None, None, '2622555') ('3459', '20914260', '1340082582', None, None, None, None, None, '2622555') ('3459', None, None, None, None, None, None, None, '2622555') ('3459', '20914260', '1340082578', None, None, None, None, None, '2622555') ('3459', None, None, None, None, None, None, None, '2622555') ('3459', '20914260', '1340082575', None, None, None, None, None, '2622555') ('3459', None, None, None, None, None, None, None, '2622555') ('3459', '20914260', '1340082570', None, None, None, None, None, '2622555') ('3459', None, None, None, None, None, None, None, '2622555') ('3459', '20914260', '1340082559', None, None, None, None, None, '2622555') ('3459', None, None, None, None, None, None, None, '2622555') ('3459', '20914260', '1340082528', None, None, None, None, None, '2622555') ('3459', None, None, None, None, None, None, None, '2622555') ('3459', '20914260', '1340082523', None, None, None, None, None, '2622555') ('3459', None, None, None, None, None, None, None, '2622555') ('3459', '20914260', '1340082516', None, None, None, None, None, '2622555') ('3459', None, None, None, None, None, None, None, '2622555') ('3459', '20914260', '1340082511', None, None, None, None, None, '2622555') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 82 time used for this insertion : 0.02788090705871582 save_final save missing photos in datou_result : time spend for datou_step_exec : 8.662630558013916 time spend to save output : 0.029126405715942383 total time spend for step 2 : 8.691756963729858 step3:thcl Fri Feb 28 07:37:17 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 Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 VR 22-3-18 : For now we do not clean correctly the datou structure Beginning of datou step Thcl ! nombre de thcls : 2 we are using the classfication for multi_thcl [2456, 2868] time to import caffe and check if the image exist : 0.012947797775268555 time to convert the images to numpy array : 1.3828277587890625e-05 time to import caffe and check if the image exist : 0.014050722122192383 time to convert the images to numpy array : 3.337860107421875e-06 time to import caffe and check if the image exist : 0.12072229385375977 time to convert the images to numpy array : 0.03473854064941406 time to import caffe and check if the image exist : 0.1179971694946289 time to convert the images to numpy array : 0.03972792625427246 time to import caffe and check if the image exist : 0.11958742141723633 time to convert the images to numpy array : 0.039450883865356445 time to import caffe and check if the image exist : 0.012661457061767578 time to convert the images to numpy array : 0.14783382415771484 time to import caffe and check if the image exist : 0.11951422691345215 time to convert the images to numpy array : 0.039952993392944336 time to import caffe and check if the image exist : 0.11932706832885742 time to convert the images to numpy array : 0.04404783248901367 time to import caffe and check if the image exist : 0.01425480842590332 time to convert the images to numpy array : 0.15855932235717773 time to import caffe and check if the image exist : 0.11958980560302734 time to convert the images to numpy array : 0.1165170669555664 total time to convert the images to numpy array : 0.7002558708190918 list photo_ids error: [] list photo_ids correct : [-3689676964, -3689676972, -3689676978, -3689676939, -3689676940, -3689676947, -3689676942, -3689676955, -3689676952, -3689676933, -3689676927, -3689676950, -3689676990, -3689676976, -3689676977, -3689676988, -3689676923, -3689676926, -3689676925, -3689676935, -3689676986, -3689676951, -3689676966, -3689676991] number of photos to traite : 24 try to delete the photos incorrect in DB tagging for thcl : 2456 To do loadFromThcl(), then load ParamDescType : thcl2456 thcls : [{'id': 2456, 'mtr_user_id': 31, 'name': 'learn_qualipapia_papier_refus_from_vlg_data_aug', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'papier,refus', 'svm_portfolios_learning': '3028087,3028251', 'photo_hashtag_type': 3049, 'photo_desc_type': 4999, 'type_classification': 'caffe', 'hashtag_id_list': '492668766,538914404'}] thcl {'id': 2456, 'mtr_user_id': 31, 'name': 'learn_qualipapia_papier_refus_from_vlg_data_aug', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'papier,refus', 'svm_portfolios_learning': '3028087,3028251', 'photo_hashtag_type': 3049, 'photo_desc_type': 4999, 'type_classification': 'caffe', 'hashtag_id_list': '492668766,538914404'} Update svm_hashtag_type_desc : 4999 FOUND : 1 Here is data_from_sql_as_vec to set the ParamDescriptorType : (4999, 'learn_qualipapia_papier_refus_from_vlg_data_aug', 16384, 25088, 'learn_qualipapia_papier_refus_from_vlg_data_aug', 'res5b', 10.0, None, None, 256, None, 0, None, 8, None, None, -1000.0, 1, datetime.datetime(2020, 10, 23, 14, 27, 22), datetime.datetime(2020, 10, 23, 14, 27, 22)) To loadFromThcl() : net_4999 begin to check gpu status inside check gpu memory l 3637 free memory gpu now : 3890 max_wait_temp : 1 max_wait : 0 FOUND : 1 Here is data_from_sql_as_vec to set the ParamDescriptorType : (4999, 'learn_qualipapia_papier_refus_from_vlg_data_aug', 16384, 25088, 'learn_qualipapia_papier_refus_from_vlg_data_aug', 'res5b', 10.0, None, None, 256, None, 0, None, 8, None, None, -1000.0, 1, datetime.datetime(2020, 10, 23, 14, 27, 22), datetime.datetime(2020, 10, 23, 14, 27, 22)) None mean_file_type : mean_file_path : prototxt_file_path : model : learn_qualipapia_papier_refus_from_vlg_data_aug Inside get_net Inside get_net before cache_data_model model_param file didn't exist Inside get_net before CDM.load_model_par_type model_name : learn_qualipapia_papier_refus_from_vlg_data_aug model_type : caffe list file need : ['caffemodel', 'deploy_conv_normal.prototxt', 'deploy_fc.prototxt', 'deploy.prototxt', 'mean.npy', 'synset_words.txt'] file exist in s3 : ['caffemodel', 'deploy.prototxt', 'mean.npy', 'synset_words.txt'] file manque in s3 : ['deploy_conv_normal.prototxt', 'deploy_fc.prototxt'] local folder : /data/models_weight/learn_qualipapia_papier_refus_from_vlg_data_aug /data/models_weight/learn_qualipapia_papier_refus_from_vlg_data_aug/caffemodel size_local : 44972172 size in s3 : 44972172 create time local : 2021-08-09 05:55:48 create time in s3 : 2021-08-06 19:28:49 caffemodel already exist and didn't need to update /data/models_weight/learn_qualipapia_papier_refus_from_vlg_data_aug/deploy.prototxt size_local : 17311 size in s3 : 17311 create time local : 2021-08-09 05:55:48 create time in s3 : 2021-08-06 19:28:49 deploy.prototxt already exist and didn't need to update /data/models_weight/learn_qualipapia_papier_refus_from_vlg_data_aug/mean.npy size_local : 1572992 size in s3 : 1572992 create time local : 2021-08-09 05:55:48 create time in s3 : 2021-08-06 19:28:51 mean.npy already exist and didn't need to update /data/models_weight/learn_qualipapia_papier_refus_from_vlg_data_aug/synset_words.txt size_local : 57 size in s3 : 57 create time local : 2021-08-09 05:55:48 create time in s3 : 2021-08-06 19:28:49 synset_words.txt already exist and didn't need to update Inside get_net after CDM.load_model_par_type After if not only_with_local_cache: /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/ Here before set mode gpu Doing nothing but we could set mode gpu after set mode gpu prototxt_filename : /data/models_weight/learn_qualipapia_papier_refus_from_vlg_data_aug/deploy.prototxt caffemodel_filename : /data/models_weight/learn_qualipapia_papier_refus_from_vlg_data_aug/caffemodel now we set caffe to gpu mode before predict begin to check gpu status inside check gpu memory l 3637 free memory gpu now : 3671 max_wait_temp : 1 max_wait : 0 dict_keys(['prob']) time used to do the prepocess of the images : 0.3074610233306885 time used to do the prediction : 0.19368958473205566 we don't save the descriptors for this thcl 2456 tagging for thcl : 2868 To do loadFromThcl(), then load ParamDescType : thcl2868 thcls : [{'id': 2868, 'mtr_user_id': 31, 'name': 'learn_papier_nantes_300421', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Carton_brun,Carton_gris,Teint_Dans_La_Masse,autre_refus,cartonnette,environnement,kraft,metal,papier,plastique', 'svm_portfolios_learning': '3752117,3752118,3752123,3752106,3752116,3752124,3752119,3581575,3486029,3752122', 'photo_hashtag_type': 3632, 'photo_desc_type': 5288, 'type_classification': 'caffe', 'hashtag_id_list': '2107753024,2107753020,2107752385,2107752406,702398920,493012381,493202403,492628673,492668766,492725882'}] thcl {'id': 2868, 'mtr_user_id': 31, 'name': 'learn_papier_nantes_300421', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Carton_brun,Carton_gris,Teint_Dans_La_Masse,autre_refus,cartonnette,environnement,kraft,metal,papier,plastique', 'svm_portfolios_learning': '3752117,3752118,3752123,3752106,3752116,3752124,3752119,3581575,3486029,3752122', 'photo_hashtag_type': 3632, 'photo_desc_type': 5288, 'type_classification': 'caffe', 'hashtag_id_list': '2107753024,2107753020,2107752385,2107752406,702398920,493012381,493202403,492628673,492668766,492725882'} Update svm_hashtag_type_desc : 5288 FOUND : 1 Here is data_from_sql_as_vec to set the ParamDescriptorType : (5288, 'learn_papier_nantes_300421', 512, 512, 'learn_papier_nantes_300421', 'pool5', 10.0, None, None, 256, None, 0, None, 8, None, None, -1000.0, 1, datetime.datetime(2021, 4, 30, 17, 9, 41), datetime.datetime(2021, 4, 30, 17, 9, 41)) To loadFromThcl() : net_5288 begin to check gpu status inside check gpu memory l 3637 free memory gpu now : 3669 max_wait_temp : 1 max_wait : 0 FOUND : 1 Here is data_from_sql_as_vec to set the ParamDescriptorType : (5288, 'learn_papier_nantes_300421', 512, 512, 'learn_papier_nantes_300421', 'pool5', 10.0, None, None, 256, None, 0, None, 8, None, None, -1000.0, 1, datetime.datetime(2021, 4, 30, 17, 9, 41), datetime.datetime(2021, 4, 30, 17, 9, 41)) None mean_file_type : mean_file_path : prototxt_file_path : model : learn_papier_nantes_300421 Inside get_net Inside get_net before cache_data_model model_param file didn't exist Inside get_net before CDM.load_model_par_type model_name : learn_papier_nantes_300421 model_type : caffe list file need : ['caffemodel', 'deploy_conv_normal.prototxt', 'deploy_fc.prototxt', 'deploy.prototxt', 'mean.npy', 'synset_words.txt'] file exist in s3 : ['caffemodel', 'deploy.prototxt', 'mean.npy', 'synset_words.txt'] file manque in s3 : ['deploy_conv_normal.prototxt', 'deploy_fc.prototxt'] local folder : /data/models_weight/learn_papier_nantes_300421 /data/models_weight/learn_papier_nantes_300421/caffemodel size_local : 44791983 size in s3 : 44791983 create time local : 2021-08-09 05:55:59 create time in s3 : 2021-08-06 19:22:13 caffemodel already exist and didn't need to update /data/models_weight/learn_papier_nantes_300421/deploy.prototxt size_local : 17255 size in s3 : 17255 create time local : 2021-08-09 05:55:59 create time in s3 : 2021-08-06 19:22:12 deploy.prototxt already exist and didn't need to update /data/models_weight/learn_papier_nantes_300421/mean.npy size_local : 1572992 size in s3 : 1572992 create time local : 2021-08-09 05:55:59 create time in s3 : 2021-08-06 19:22:14 mean.npy already exist and didn't need to update /data/models_weight/learn_papier_nantes_300421/synset_words.txt size_local : 331 size in s3 : 331 create time local : 2021-08-09 05:56:00 create time in s3 : 2021-08-06 19:22:12 synset_words.txt already exist and didn't need to update Inside get_net after CDM.load_model_par_type After if not only_with_local_cache: /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/ Here before set mode gpu Doing nothing but we could set mode gpu after set mode gpu prototxt_filename : /data/models_weight/learn_papier_nantes_300421/deploy.prototxt caffemodel_filename : /data/models_weight/learn_papier_nantes_300421/caffemodel now we set caffe to gpu mode before predict begin to check gpu status inside check gpu memory l 3637 free memory gpu now : 3669 max_wait_temp : 1 max_wait : 0 dict_keys(['prob']) time used to do the prepocess of the images : 0.4164712429046631 time used to do the prediction : 0.09265565872192383 we don't save the descriptors for this thcl 2868 Inside saveOutput : final : False verbose : 0 time used to find the portfolios of the photos test new format of the output of the step_thcl begin to insert list_values into class_photo_scores : length of list_valuse in save_photo_hashtag_id_thcl_score : 0 time used for this insertion : 3.0279159545898438e-05 save missing photos in datou_result : time spend for datou_step_exec : 8.894933223724365 time spend to save output : 0.0006117820739746094 total time spend for step 3 : 8.89554500579834 step4:merge_mask_thcl_custom Fri Feb 28 07:37:26 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 Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 1 Inconsistent number of input and output, step which parrallelize and manage error in input by avoiding sending an output for this data can't be used in tree dependencies of input and output complete output_args for input 2 VR 22-3-18 : For now we do not clean correctly the datou structure Begin step merge_mask_thcl_custom batch 1 Loaded 72 chid ids of type : 3663 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++As expected we have just one thcl present End of step merge_mask_thcl_custom Inside saveOutput : final : False verbose : 0 saveOutput not yet implemented for datou_step.type : merge_mask_thcl_custom we use saveGeneral [1340082585, 1340082582, 1340082578, 1340082575, 1340082570, 1340082559, 1340082528, 1340082523, 1340082516, 1340082511] Looping around the photos to save general results len do output : 10 /1340082585Didn't retrieve data .Didn't retrieve data . /1340082582Didn't retrieve data .Didn't retrieve data . /1340082578Didn't retrieve data .Didn't retrieve data . /1340082575Didn't retrieve data .Didn't retrieve data . /1340082570Didn't retrieve data .Didn't retrieve data . /1340082559Didn't retrieve data .Didn't retrieve data . /1340082528Didn't retrieve data .Didn't retrieve data . /1340082523Didn't retrieve data .Didn't retrieve data . /1340082516Didn't retrieve data .Didn't retrieve data . /1340082511Didn't retrieve data .Didn't retrieve data . before output type Here is an output not treated by saveGeneral : Here is an output not treated by saveGeneral : Managing all output in save final without adding information in the mtr_datou_result ('3459', None, None, None, None, None, None, None, '2622555') ('3459', '20914260', '1340082585', None, None, None, None, None, '2622555') ('3459', None, None, None, None, None, None, None, '2622555') ('3459', '20914260', '1340082582', None, None, None, None, None, '2622555') ('3459', None, None, None, None, None, None, None, '2622555') ('3459', '20914260', '1340082578', None, None, None, None, None, '2622555') ('3459', None, None, None, None, None, None, None, '2622555') ('3459', '20914260', '1340082575', None, None, None, None, None, '2622555') ('3459', None, None, None, None, None, None, None, '2622555') ('3459', '20914260', '1340082570', None, None, None, None, None, '2622555') ('3459', None, None, None, None, None, None, None, '2622555') ('3459', '20914260', '1340082559', None, None, None, None, None, '2622555') ('3459', None, None, None, None, None, None, None, '2622555') ('3459', '20914260', '1340082528', None, None, None, None, None, '2622555') ('3459', None, None, None, None, None, None, None, '2622555') ('3459', '20914260', '1340082523', None, None, None, None, None, '2622555') ('3459', None, None, None, None, None, None, None, '2622555') ('3459', '20914260', '1340082516', None, None, None, None, None, '2622555') ('3459', None, None, None, None, None, None, None, '2622555') ('3459', '20914260', '1340082511', None, None, None, None, None, '2622555') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 time used for this insertion : 0.01994013786315918 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.061636924743652344 time spend to save output : 0.020529747009277344 total time spend for step 4 : 0.08216667175292969 step5:rle_unique_nms_with_priority Fri Feb 28 07:37:26 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 Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 VR 22-3-18 : For now we do not clean correctly the datou structure Begin step rle-unique-nms nb_obj : 7 nb_hashtags : 4 time to prepare the origin masks : 1.9816501140594482 time for calcul the mask position with numpy : 0.07240700721740723 nb_pixel_total : 1247131 time to create 1 rle with new method : 0.2361917495727539 time for calcul the mask position with numpy : 0.012215614318847656 nb_pixel_total : 1772 time to create 1 rle with old method : 0.0022385120391845703 time for calcul the mask position with numpy : 0.009448766708374023 nb_pixel_total : 19030 time to create 1 rle with old method : 0.022196531295776367 time for calcul the mask position with numpy : 0.013280868530273438 nb_pixel_total : 128334 time to create 1 rle with old method : 0.1549844741821289 time for calcul the mask position with numpy : 0.011491537094116211 nb_pixel_total : 10906 time to create 1 rle with old method : 0.012986421585083008 time for calcul the mask position with numpy : 0.02734375 nb_pixel_total : 625855 time to create 1 rle with new method : 0.10564827919006348 time for calcul the mask position with numpy : 0.007719278335571289 nb_pixel_total : 17460 time to create 1 rle with old method : 0.019696950912475586 time for calcul the mask position with numpy : 0.007575035095214844 nb_pixel_total : 23112 time to create 1 rle with old method : 0.035750389099121094 create new chi : 0.7753846645355225 time to delete rle : 0.01877593994140625 batch 1 Loaded 8 chid ids of type : 3726 Number RLEs to save : 6720 TO DO : save crop sub photo not yet done ! save time : 0.4132978916168213 nb_obj : 8 nb_hashtags : 2 time to prepare the origin masks : 1.2547764778137207 time for calcul the mask position with numpy : 0.11369824409484863 nb_pixel_total : 1439822 time to create 1 rle with new method : 0.16372394561767578 time for calcul the mask position with numpy : 0.007657527923583984 nb_pixel_total : 320 time to create 1 rle with old method : 0.0006318092346191406 time for calcul the mask position with numpy : 0.007908105850219727 nb_pixel_total : 7717 time to create 1 rle with old method : 0.013098716735839844 time for calcul the mask position with numpy : 0.008290767669677734 nb_pixel_total : 16620 time to create 1 rle with old method : 0.02083444595336914 time for calcul the mask position with numpy : 0.0077342987060546875 nb_pixel_total : 22177 time to create 1 rle with old method : 0.024892807006835938 time for calcul the mask position with numpy : 0.011043071746826172 nb_pixel_total : 483428 time to create 1 rle with new method : 0.1032259464263916 time for calcul the mask position with numpy : 0.008699893951416016 nb_pixel_total : 4696 time to create 1 rle with old method : 0.005563974380493164 time for calcul the mask position with numpy : 0.008345842361450195 nb_pixel_total : 1403 time to create 1 rle with old method : 0.0016875267028808594 time for calcul the mask position with numpy : 0.008914470672607422 nb_pixel_total : 97417 time to create 1 rle with old method : 0.1106407642364502 create new chi : 0.6371622085571289 time to delete rle : 0.0007581710815429688 batch 1 Loaded 9 chid ids of type : 3726 Number RLEs to save : 5945 TO DO : save crop sub photo not yet done ! save time : 0.39024949073791504 nb_obj : 6 nb_hashtags : 3 time to prepare the origin masks : 0.6667230129241943 time for calcul the mask position with numpy : 0.14943933486938477 nb_pixel_total : 1376793 time to create 1 rle with new method : 0.14774847030639648 time for calcul the mask position with numpy : 0.00843358039855957 nb_pixel_total : 99163 time to create 1 rle with old method : 0.11479926109313965 time for calcul the mask position with numpy : 0.011380195617675781 nb_pixel_total : 409563 time to create 1 rle with new method : 0.15047478675842285 time for calcul the mask position with numpy : 0.009088993072509766 nb_pixel_total : 156530 time to create 1 rle with new method : 0.21154069900512695 time for calcul the mask position with numpy : 0.008861780166625977 nb_pixel_total : 2944 time to create 1 rle with old method : 0.003549814224243164 time for calcul the mask position with numpy : 0.00837397575378418 nb_pixel_total : 2457 time to create 1 rle with old method : 0.0027985572814941406 time for calcul the mask position with numpy : 0.013884305953979492 nb_pixel_total : 26150 time to create 1 rle with old method : 0.03044605255126953 create new chi : 0.8966889381408691 time to delete rle : 0.0011844635009765625 batch 1 Loaded 7 chid ids of type : 3726 Number RLEs to save : 7204 TO DO : save crop sub photo not yet done ! save time : 0.45789122581481934 nb_obj : 5 nb_hashtags : 2 time to prepare the origin masks : 0.714637279510498 time for calcul the mask position with numpy : 0.020344018936157227 nb_pixel_total : 1050965 time to create 1 rle with new method : 0.26725172996520996 time for calcul the mask position with numpy : 0.006806850433349609 nb_pixel_total : 12643 time to create 1 rle with old method : 0.014787435531616211 time for calcul the mask position with numpy : 0.006974458694458008 nb_pixel_total : 26725 time to create 1 rle with old method : 0.03005218505859375 time for calcul the mask position with numpy : 0.018710851669311523 nb_pixel_total : 905985 time to create 1 rle with new method : 0.1293485164642334 time for calcul the mask position with numpy : 0.00904083251953125 nb_pixel_total : 48977 time to create 1 rle with old method : 0.05732536315917969 time for calcul the mask position with numpy : 0.0064356327056884766 nb_pixel_total : 28305 time to create 1 rle with old method : 0.03167295455932617 create new chi : 0.6136772632598877 time to delete rle : 0.0006396770477294922 batch 1 Loaded 6 chid ids of type : 3726 Number RLEs to save : 5995 TO DO : save crop sub photo not yet done ! save time : 0.3383011817932129 nb_obj : 8 nb_hashtags : 3 time to prepare the origin masks : 2.0938515663146973 time for calcul the mask position with numpy : 0.07494759559631348 nb_pixel_total : 1138714 time to create 1 rle with new method : 0.2149214744567871 time for calcul the mask position with numpy : 0.014489889144897461 nb_pixel_total : 1030 time to create 1 rle with old method : 0.0017158985137939453 time for calcul the mask position with numpy : 0.009990453720092773 nb_pixel_total : 71307 time to create 1 rle with old method : 0.09240055084228516 time for calcul the mask position with numpy : 0.013279438018798828 nb_pixel_total : 27259 time to create 1 rle with old method : 0.030592918395996094 time for calcul the mask position with numpy : 0.008792400360107422 nb_pixel_total : 76405 time to create 1 rle with old method : 0.08757591247558594 time for calcul the mask position with numpy : 0.00816798210144043 nb_pixel_total : 3162 time to create 1 rle with old method : 0.003606081008911133 time for calcul the mask position with numpy : 0.009298324584960938 nb_pixel_total : 128246 time to create 1 rle with old method : 0.14984869956970215 time for calcul the mask position with numpy : 0.021715164184570312 nb_pixel_total : 601345 time to create 1 rle with new method : 0.12337946891784668 time for calcul the mask position with numpy : 0.01290130615234375 nb_pixel_total : 26132 time to create 1 rle with old method : 0.1661977767944336 create new chi : 1.0646030902862549 time to delete rle : 0.0007886886596679688 batch 1 Loaded 9 chid ids of type : 3726 Number RLEs to save : 7324 TO DO : save crop sub photo not yet done ! save time : 0.4293484687805176 nb_obj : 7 nb_hashtags : 2 time to prepare the origin masks : 0.9350512027740479 time for calcul the mask position with numpy : 0.03166556358337402 nb_pixel_total : 1389345 time to create 1 rle with new method : 0.1192026138305664 time for calcul the mask position with numpy : 0.007534027099609375 nb_pixel_total : 12582 time to create 1 rle with old method : 0.015302181243896484 time for calcul the mask position with numpy : 0.007585763931274414 nb_pixel_total : 40 time to create 1 rle with old method : 9.679794311523438e-05 time for calcul the mask position with numpy : 0.014135360717773438 nb_pixel_total : 557829 time to create 1 rle with new method : 0.18763375282287598 time for calcul the mask position with numpy : 0.008064031600952148 nb_pixel_total : 39209 time to create 1 rle with old method : 0.04470968246459961 time for calcul the mask position with numpy : 0.009504079818725586 nb_pixel_total : 8439 time to create 1 rle with old method : 0.009562492370605469 time for calcul the mask position with numpy : 0.007974624633789062 nb_pixel_total : 24632 time to create 1 rle with old method : 0.028198957443237305 time for calcul the mask position with numpy : 0.009027481079101562 nb_pixel_total : 41524 time to create 1 rle with old method : 0.05049443244934082 create new chi : 0.561213493347168 time to delete rle : 0.0010943412780761719 batch 1 Loaded 8 chid ids of type : 3726 Number RLEs to save : 5280 TO DO : save crop sub photo not yet done ! save time : 0.3306400775909424 nb_obj : 7 nb_hashtags : 3 time to prepare the origin masks : 1.171375036239624 time for calcul the mask position with numpy : 0.2910423278808594 nb_pixel_total : 1584674 time to create 1 rle with new method : 0.10744094848632812 time for calcul the mask position with numpy : 0.007854223251342773 nb_pixel_total : 16744 time to create 1 rle with old method : 0.021155834197998047 time for calcul the mask position with numpy : 0.011505603790283203 nb_pixel_total : 8279 time to create 1 rle with old method : 0.009408950805664062 time for calcul the mask position with numpy : 0.01298666000366211 nb_pixel_total : 2881 time to create 1 rle with old method : 0.004361391067504883 time for calcul the mask position with numpy : 0.018695592880249023 nb_pixel_total : 434579 time to create 1 rle with new method : 0.1977849006652832 time for calcul the mask position with numpy : 0.011993169784545898 nb_pixel_total : 7915 time to create 1 rle with old method : 0.008923053741455078 time for calcul the mask position with numpy : 0.0077381134033203125 nb_pixel_total : 8559 time to create 1 rle with old method : 0.011356115341186523 time for calcul the mask position with numpy : 0.008095741271972656 nb_pixel_total : 9969 time to create 1 rle with old method : 0.011226892471313477 create new chi : 0.7525413036346436 time to delete rle : 0.0008177757263183594 batch 1 Loaded 8 chid ids of type : 3726 Number RLEs to save : 4632 TO DO : save crop sub photo not yet done ! save time : 0.2764101028442383 nb_obj : 6 nb_hashtags : 3 time to prepare the origin masks : 0.6822097301483154 time for calcul the mask position with numpy : 0.01793670654296875 nb_pixel_total : 1546208 time to create 1 rle with new method : 0.10831403732299805 time for calcul the mask position with numpy : 0.006617307662963867 nb_pixel_total : 45316 time to create 1 rle with old method : 0.05219316482543945 time for calcul the mask position with numpy : 0.010478496551513672 nb_pixel_total : 31622 time to create 1 rle with old method : 0.035369873046875 time for calcul the mask position with numpy : 0.006512641906738281 nb_pixel_total : 24364 time to create 1 rle with old method : 0.027379989624023438 time for calcul the mask position with numpy : 0.008402347564697266 nb_pixel_total : 299595 time to create 1 rle with new method : 0.08603525161743164 time for calcul the mask position with numpy : 0.010895252227783203 nb_pixel_total : 82036 time to create 1 rle with old method : 0.09496665000915527 time for calcul the mask position with numpy : 0.010495424270629883 nb_pixel_total : 44459 time to create 1 rle with old method : 0.04909086227416992 create new chi : 0.5335872173309326 time to delete rle : 0.0005953311920166016 batch 1 Loaded 7 chid ids of type : 3726 Number RLEs to save : 6297 TO DO : save crop sub photo not yet done ! save time : 0.3743288516998291 nb_obj : 4 nb_hashtags : 1 time to prepare the origin masks : 0.48325371742248535 time for calcul the mask position with numpy : 0.018954992294311523 nb_pixel_total : 1124395 time to create 1 rle with new method : 0.1470041275024414 time for calcul the mask position with numpy : 0.006924867630004883 nb_pixel_total : 14003 time to create 1 rle with old method : 0.016032934188842773 time for calcul the mask position with numpy : 0.007311344146728516 nb_pixel_total : 81930 time to create 1 rle with old method : 0.10149574279785156 time for calcul the mask position with numpy : 0.012232542037963867 nb_pixel_total : 797746 time to create 1 rle with new method : 0.031223773956298828 time for calcul the mask position with numpy : 0.006617546081542969 nb_pixel_total : 55526 time to create 1 rle with old method : 0.06273818016052246 create new chi : 0.41153621673583984 time to delete rle : 0.0006320476531982422 batch 1 Loaded 5 chid ids of type : 3726 Number RLEs to save : 5527 TO DO : save crop sub photo not yet done ! save time : 0.34454822540283203 nb_obj : 7 nb_hashtags : 4 time to prepare the origin masks : 0.9711129665374756 time for calcul the mask position with numpy : 0.8720541000366211 nb_pixel_total : 1610304 time to create 1 rle with new method : 0.13287711143493652 time for calcul the mask position with numpy : 0.00712895393371582 nb_pixel_total : 97123 time to create 1 rle with old method : 0.11235809326171875 time for calcul the mask position with numpy : 0.0069506168365478516 nb_pixel_total : 41242 time to create 1 rle with old method : 0.04686307907104492 time for calcul the mask position with numpy : 0.008634567260742188 nb_pixel_total : 267335 time to create 1 rle with new method : 0.09835100173950195 time for calcul the mask position with numpy : 0.006903171539306641 nb_pixel_total : 4973 time to create 1 rle with old method : 0.005913496017456055 time for calcul the mask position with numpy : 0.00667572021484375 nb_pixel_total : 22951 time to create 1 rle with old method : 0.0250241756439209 time for calcul the mask position with numpy : 0.006638288497924805 nb_pixel_total : 10699 time to create 1 rle with old method : 0.012358427047729492 time for calcul the mask position with numpy : 0.0079193115234375 nb_pixel_total : 18973 time to create 1 rle with old method : 0.021157503128051758 create new chi : 1.389014482498169 time to delete rle : 0.0007054805755615234 batch 1 Loaded 8 chid ids of type : 3726 Number RLEs to save : 6148 TO DO : save crop sub photo not yet done ! save time : 0.3703131675720215 map_output_result : {1340082585: (0.0, 'Should be the crop_list due to order', 0), 1340082582: (0.0, 'Should be the crop_list due to order', 0), 1340082578: (0.0, 'Should be the crop_list due to order', 0), 1340082575: (0.0, 'Should be the crop_list due to order', 0), 1340082570: (0.0, 'Should be the crop_list due to order', 0), 1340082559: (0.0, 'Should be the crop_list due to order', 0), 1340082528: (0.0, 'Should be the crop_list due to order', 0), 1340082523: (0.0, 'Should be the crop_list due to order', 0), 1340082516: (0.0, 'Should be the crop_list due to order', 0), 1340082511: (0.0, 'Should be the crop_list due to order', 0)} End step rle-unique-nms Inside saveOutput : final : False verbose : 0 saveOutput not yet implemented for datou_step.type : rle_unique_nms_with_priority we use saveGeneral [1340082585, 1340082582, 1340082578, 1340082575, 1340082570, 1340082559, 1340082528, 1340082523, 1340082516, 1340082511] Looping around the photos to save general results len do output : 10 /1340082585.Didn't retrieve data . /1340082582.Didn't retrieve data . /1340082578.Didn't retrieve data . /1340082575.Didn't retrieve data . /1340082570.Didn't retrieve data . /1340082559.Didn't retrieve data . /1340082528.Didn't retrieve data . /1340082523.Didn't retrieve data . /1340082516.Didn't retrieve data . /1340082511.Didn't retrieve data . before output type Used above Here is an output not treated by saveGeneral : Managing all output in save final without adding information in the mtr_datou_result ('3459', None, None, None, None, None, None, None, '2622555') ('3459', '20914260', '1340082585', None, None, None, None, None, '2622555') ('3459', None, None, None, None, None, None, None, '2622555') ('3459', '20914260', '1340082582', None, None, None, None, None, '2622555') ('3459', None, None, None, None, None, None, None, '2622555') ('3459', '20914260', '1340082578', None, None, None, None, None, '2622555') ('3459', None, None, None, None, None, None, None, '2622555') ('3459', '20914260', '1340082575', None, None, None, None, None, '2622555') ('3459', None, None, None, None, None, None, None, '2622555') ('3459', '20914260', '1340082570', None, None, None, None, None, '2622555') ('3459', None, None, None, None, None, None, None, '2622555') ('3459', '20914260', '1340082559', None, None, None, None, None, '2622555') ('3459', None, None, None, None, None, None, None, '2622555') ('3459', '20914260', '1340082528', None, None, None, None, None, '2622555') ('3459', None, None, None, None, None, None, None, '2622555') ('3459', '20914260', '1340082523', None, None, None, None, None, '2622555') ('3459', None, None, None, None, None, None, None, '2622555') ('3459', '20914260', '1340082516', None, None, None, None, None, '2622555') ('3459', None, None, None, None, None, None, None, '2622555') ('3459', '20914260', '1340082511', None, None, None, None, None, '2622555') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 time used for this insertion : 0.014025211334228516 save_final save missing photos in datou_result : time spend for datou_step_exec : 22.739056825637817 time spend to save output : 0.07502555847167969 total time spend for step 5 : 22.814082384109497 step6:crop_condition Fri Feb 28 07:37:48 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 Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure some photos are not treated, begin crop_condition Loading chi in step crop with photo_hashtag_type : 3726 Loading chi in step crop for list_pids : 10 ! batch 1 Loaded 75 chid ids of type : 3726 begin to crop the class : teint_dans_la_masse param for this class : {'min_score': 0.7} filtre for class : teint_dans_la_masse hashtag_id of this class : 2107752385 Next one ! map_result returned by crop_photo_return_map_crop : length : 1 About to insert : list_path_to_insert length 1 new photo from crops ! About to upload 1 photos upload in portfolio : 4869462 init cache_photo without model_param we have 1 photo to upload uploaded to storage server : ovh folder_temporaire : temp/1740724669_3611647 we have uploaded 1 photos in the portfolio 4869462 time of upload the photos Elapsed time : 0.6926348209381104 we have finished the crop for the class : teint_dans_la_masse begin to crop the class : autre_refus param for this class : {'min_score': 0.5} filtre for class : autre_refus hashtag_id of this class : 2107752406 Next one ! map_result returned by crop_photo_return_map_crop : length : 1 About to insert : list_path_to_insert length 1 new photo from crops ! About to upload 1 photos upload in portfolio : 4869462 init cache_photo without model_param we have 1 photo to upload uploaded to storage server : ovh folder_temporaire : temp/1740724670_3611647 we have uploaded 1 photos in the portfolio 4869462 time of upload the photos Elapsed time : 0.5305263996124268 we have finished the crop for the class : autre_refus begin to crop the class : carton_gris param for this class : {'min_score': 0.5} filtre for class : carton_gris hashtag_id of this class : 2107753020 Next one ! map_result returned by crop_photo_return_map_crop : length : 1 About to insert : list_path_to_insert length 1 new photo from crops ! About to upload 1 photos upload in portfolio : 4869462 init cache_photo without model_param we have 1 photo to upload uploaded to storage server : ovh folder_temporaire : temp/1740724671_3611647 we have uploaded 1 photos in the portfolio 4869462 time of upload the photos Elapsed time : 0.89176344871521 we have finished the crop for the class : carton_gris begin to crop the class : cartonnette param for this class : {'min_score': 0.5} filtre for class : cartonnette hashtag_id of this class : 702398920 Next one ! map_result returned by crop_photo_return_map_crop : length : 1 About to insert : list_path_to_insert length 1 new photo from crops ! About to upload 1 photos upload in portfolio : 4869462 init cache_photo without model_param we have 1 photo to upload uploaded to storage server : ovh folder_temporaire : temp/1740724673_3611647 we have uploaded 1 photos in the portfolio 4869462 time of upload the photos Elapsed time : 0.5628471374511719 we have finished the crop for the class : cartonnette begin to crop the class : carton_brun param for this class : {'min_score': 0.7} filtre for class : carton_brun hashtag_id of this class : 2107753024 Next one ! map_result returned by crop_photo_return_map_crop : length : 1 About to insert : list_path_to_insert length 1 new photo from crops ! About to upload 1 photos upload in portfolio : 4869462 init cache_photo without model_param we have 1 photo to upload uploaded to storage server : ovh folder_temporaire : temp/1740724674_3611647 we have uploaded 1 photos in the portfolio 4869462 time of upload the photos Elapsed time : 0.5802206993103027 we have finished the crop for the class : carton_brun begin to crop the class : plastique param for this class : {'min_score': 0.5} filtre for class : plastique hashtag_id of this class : 492725882 Next one ! Next one ! map_result returned by crop_photo_return_map_crop : length : 2 About to insert : list_path_to_insert length 2 new photo from crops ! About to upload 2 photos upload in portfolio : 4869462 init cache_photo without model_param we have 2 photo to upload uploaded to storage server : ovh folder_temporaire : temp/1740724676_3611647 we have uploaded 2 photos in the portfolio 4869462 time of upload the photos Elapsed time : 1.2888765335083008 we have finished the crop for the class : plastique begin to crop the class : kraft param for this class : {'min_score': 0.5} filtre for class : kraft hashtag_id of this class : 493202403 begin to crop the class : metal param for this class : {'min_score': 0.5} filtre for class : metal hashtag_id of this class : 492628673 delete rles for these photos Inside saveOutput : final : False verbose : 0 saveOutput not yet implemented for datou_step.type : crop_condition we use saveGeneral [1340082585, 1340082582, 1340082578, 1340082575, 1340082570, 1340082559, 1340082528, 1340082523, 1340082516, 1340082511] Looping around the photos to save general results len do output : 7 /1340085167Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1340085171Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1340085173Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1340085177Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1340085178Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1340085188Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1340085189Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . before output type Here is an output not treated by saveGeneral : Here is an output not treated by saveGeneral : Here is an output not treated by saveGeneral : Managing all output in save final without adding information in the mtr_datou_result ('3459', None, None, None, None, None, None, None, '2622555') ('3459', '20914260', '1340082585', None, None, None, None, None, '2622555') ('3459', None, None, None, None, None, None, None, '2622555') ('3459', '20914260', '1340082582', None, None, None, None, None, '2622555') ('3459', None, None, None, None, None, None, None, '2622555') ('3459', '20914260', '1340082578', None, None, None, None, None, '2622555') ('3459', None, None, None, None, None, None, None, '2622555') ('3459', '20914260', '1340082575', None, None, None, None, None, '2622555') ('3459', None, None, None, None, None, None, None, '2622555') ('3459', '20914260', '1340082570', None, None, None, None, None, '2622555') ('3459', None, None, None, None, None, None, None, '2622555') ('3459', '20914260', '1340082559', None, None, None, None, None, '2622555') ('3459', None, None, None, None, None, None, None, '2622555') ('3459', '20914260', '1340082528', None, None, None, None, None, '2622555') ('3459', None, None, None, None, None, None, None, '2622555') ('3459', '20914260', '1340082523', None, None, None, None, None, '2622555') ('3459', None, None, None, None, None, None, None, '2622555') ('3459', '20914260', '1340082516', None, None, None, None, None, '2622555') ('3459', None, None, None, None, None, None, None, '2622555') ('3459', '20914260', '1340082511', None, None, None, None, None, '2622555') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 31 time used for this insertion : 0.02881932258605957 save_final save missing photos in datou_result : time spend for datou_step_exec : 9.227555274963379 time spend to save output : 0.029645681381225586 total time spend for step 6 : 9.257200956344604 step7:ventilate_hashtags_in_portfolio Fri Feb 28 07:37:58 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 Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure beginning of datou step ventilate_hashtags_in_portfolio : To implement ! To do loadFromThcl(), then load ParamDescType : thcl2725 thcls : [{'id': 2725, 'mtr_user_id': 31, 'name': 'learn_qualipapia_rle_210302_2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Carton_brun,Carton_gris,Teint_Dans_La_Masse,autre_refus,cartonnette,environnement,kraft,metal,papier,plastique', 'svm_portfolios_learning': '3460440,3460441,3460446,3460434,3460439,3467416,3460442,3460443,3486028,3460445', 'photo_hashtag_type': 3410, 'photo_desc_type': 5186, 'type_classification': 'caffe', 'hashtag_id_list': '2107753024,2107753020,2107752385,2107752406,702398920,493012381,493202403,492628673,492668766,492725882'}] thcl {'id': 2725, 'mtr_user_id': 31, 'name': 'learn_qualipapia_rle_210302_2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Carton_brun,Carton_gris,Teint_Dans_La_Masse,autre_refus,cartonnette,environnement,kraft,metal,papier,plastique', 'svm_portfolios_learning': '3460440,3460441,3460446,3460434,3460439,3467416,3460442,3460443,3486028,3460445', 'photo_hashtag_type': 3410, 'photo_desc_type': 5186, 'type_classification': 'caffe', 'hashtag_id_list': '2107753024,2107753020,2107752385,2107752406,702398920,493012381,493202403,492628673,492668766,492725882'} Update svm_hashtag_type_desc : 5186 Iterating over portfolio : 20914260 get user id for portfolio 20914260 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20914260 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','mal_croppe','Carton_brun','kraft','plastique','cartonnette','Carton_gris','metal','papier','autre_refus','Teint_Dans_La_Masse','flou')) AND mptpi.`min_score`=0.5 To do To do SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20914260 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','mal_croppe','Carton_brun','kraft','plastique','cartonnette','Carton_gris','metal','papier','autre_refus','Teint_Dans_La_Masse','flou')) AND mptpi.`min_score`=0.5 To do Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20914260 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','mal_croppe','Carton_brun','kraft','plastique','cartonnette','Carton_gris','metal','papier','autre_refus','Teint_Dans_La_Masse','flou')) AND mptpi.`min_score`=0.5 To do lien utilise dans velours : https://www.fotonower.com/velours/20914493,20914494,20914495,20914496,20914497,20914498,20914499,20914500,20914501,20914502,20914503,20914504?tags=environnement,mal_croppe,Carton_brun,kraft,plastique,cartonnette,Carton_gris,metal,papier,autre_refus,Teint_Dans_La_Masse,flou Inside saveOutput : final : False verbose : 0 saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1340082585, 1340082582, 1340082578, 1340082575, 1340082570, 1340082559, 1340082528, 1340082523, 1340082516, 1340082511] Looping around the photos to save general results len do output : 1 /20914260. before output type Here is an output not treated by saveGeneral : Managing all output in save final without adding information in the mtr_datou_result ('3459', None, None, None, None, None, None, None, '2622555') ('3459', '20914260', '1340082585', None, None, None, None, None, '2622555') ('3459', None, None, None, None, None, None, None, '2622555') ('3459', '20914260', '1340082582', None, None, None, None, None, '2622555') ('3459', None, None, None, None, None, None, None, '2622555') ('3459', '20914260', '1340082578', None, None, None, None, None, '2622555') ('3459', None, None, None, None, None, None, None, '2622555') ('3459', '20914260', '1340082575', None, None, None, None, None, '2622555') ('3459', None, None, None, None, None, None, None, '2622555') ('3459', '20914260', '1340082570', None, None, None, None, None, '2622555') ('3459', None, None, None, None, None, None, None, '2622555') ('3459', '20914260', '1340082559', None, None, None, None, None, '2622555') ('3459', None, None, None, None, None, None, None, '2622555') ('3459', '20914260', '1340082528', None, None, None, None, None, '2622555') ('3459', None, None, None, None, None, None, None, '2622555') ('3459', '20914260', '1340082523', None, None, None, None, None, '2622555') ('3459', None, None, None, None, None, None, None, '2622555') ('3459', '20914260', '1340082516', None, None, None, None, None, '2622555') ('3459', None, None, None, None, None, None, None, '2622555') ('3459', '20914260', '1340082511', None, None, None, None, None, '2622555') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 time used for this insertion : 0.015124320983886719 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.6530303955078125 time spend to save output : 0.015372991561889648 total time spend for step 7 : 1.6684033870697021 step8:final Fri Feb 28 07:37:59 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 Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 VR 22-3-18 : For now we do not clean correctly the datou structure Beginning of datou step final ! Catched exception ! Connect or reconnect ! Inside saveOutput : final : False verbose : 0 original output for save of step final : {1340082585: ('0.060759440672359714',), 1340082582: ('0.060759440672359714',), 1340082578: ('0.060759440672359714',), 1340082575: ('0.060759440672359714',), 1340082570: ('0.060759440672359714',), 1340082559: ('0.060759440672359714',), 1340082528: ('0.060759440672359714',), 1340082523: ('0.060759440672359714',), 1340082516: ('0.060759440672359714',), 1340082511: ('0.060759440672359714',)} new output for save of step final : {1340082585: ('0.060759440672359714',), 1340082582: ('0.060759440672359714',), 1340082578: ('0.060759440672359714',), 1340082575: ('0.060759440672359714',), 1340082570: ('0.060759440672359714',), 1340082559: ('0.060759440672359714',), 1340082528: ('0.060759440672359714',), 1340082523: ('0.060759440672359714',), 1340082516: ('0.060759440672359714',), 1340082511: ('0.060759440672359714',)} [1340082585, 1340082582, 1340082578, 1340082575, 1340082570, 1340082559, 1340082528, 1340082523, 1340082516, 1340082511] Looping around the photos to save general results len do output : 10 /1340082585.Didn't retrieve data . /1340082582.Didn't retrieve data . /1340082578.Didn't retrieve data . /1340082575.Didn't retrieve data . /1340082570.Didn't retrieve data . /1340082559.Didn't retrieve data . /1340082528.Didn't retrieve data . /1340082523.Didn't retrieve data . /1340082516.Didn't retrieve data . /1340082511.Didn't retrieve data . before output type Used above Used above Managing all output in save final without adding information in the mtr_datou_result ('3459', None, None, None, None, None, None, None, '2622555') ('3459', '20914260', '1340082585', None, None, None, None, None, '2622555') ('3459', None, None, None, None, None, None, None, '2622555') ('3459', '20914260', '1340082582', None, None, None, None, None, '2622555') ('3459', None, None, None, None, None, None, None, '2622555') ('3459', '20914260', '1340082578', None, None, None, None, None, '2622555') ('3459', None, None, None, None, None, None, None, '2622555') ('3459', '20914260', '1340082575', None, None, None, None, None, '2622555') ('3459', None, None, None, None, None, None, None, '2622555') ('3459', '20914260', '1340082570', None, None, None, None, None, '2622555') ('3459', None, None, None, None, None, None, None, '2622555') ('3459', '20914260', '1340082559', None, None, None, None, None, '2622555') ('3459', None, None, None, None, None, None, None, '2622555') ('3459', '20914260', '1340082528', None, None, None, None, None, '2622555') ('3459', None, None, None, None, None, None, None, '2622555') ('3459', '20914260', '1340082523', None, None, None, None, None, '2622555') ('3459', None, None, None, None, None, None, None, '2622555') ('3459', '20914260', '1340082516', None, None, None, None, None, '2622555') ('3459', None, None, None, None, None, None, None, '2622555') ('3459', '20914260', '1340082511', None, None, None, None, None, '2622555') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 time used for this insertion : 0.01233673095703125 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.10172653198242188 time spend to save output : 0.012877464294433594 total time spend for step 8 : 0.11460399627685547 step9:velours_tree Fri Feb 28 07:37:59 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 Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 VR 22-3-18 : For now we do not clean correctly the datou structure can't find the photo_desc_type Inside saveOutput : final : False verbose : 0 ouput is None No outpout to save, returning out of save general time spend for datou_step_exec : 0.12165617942810059 time spend to save output : 5.1975250244140625e-05 total time spend for step 9 : 0.12170815467834473 step10:send_mail_cod Fri Feb 28 07:38:00 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 Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 Inconsistent number of input and output, step which parrallelize and manage error in input by avoiding sending an output for this data can't be used in tree dependencies of input and output complete output_args for input 3 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector results_Auto_P20914260_28-02-2025_07_38_00.pdf 20914494 imagette209144941740724680 20914496 imagette209144961740724680 20914497 change filename to text .change filename to text .imagette209144971740724680 20914498 change filename to text .imagette209144981740724680 20914500 imagette209145001740724680 20914502 change filename to text .imagette209145021740724680 20914504 imagette209145041740724680 20914495 change filename to text .imagette209144951740724680 20914499 change filename to text .imagette209144991740724680 20914503 change filename to text .imagette209145031740724680 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20914260 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20914493,20914494,20914495,20914496,20914497,20914498,20914499,20914500,20914501,20914502,20914503,20914504?tags=environnement,mal_croppe,Carton_brun,kraft,plastique,cartonnette,Carton_gris,metal,papier,autre_refus,Teint_Dans_La_Masse,flou your option no_mail is active, we will not send the real mail to your client args[1340082585] : ('0.060759440672359714',) no score found for photo 1340082585 We are sending mail with results at report@fotonower.com args[1340082582] : ('0.060759440672359714',) no score found for photo 1340082582 We are sending mail with results at report@fotonower.com args[1340082578] : ('0.060759440672359714',) no score found for photo 1340082578 We are sending mail with results at report@fotonower.com args[1340082575] : ('0.060759440672359714',) no score found for photo 1340082575 We are sending mail with results at report@fotonower.com args[1340082570] : ('0.060759440672359714',) no score found for photo 1340082570 We are sending mail with results at report@fotonower.com args[1340082559] : ('0.060759440672359714',) no score found for photo 1340082559 We are sending mail with results at report@fotonower.com args[1340082528] : ('0.060759440672359714',) no score found for photo 1340082528 We are sending mail with results at report@fotonower.com args[1340082523] : ('0.060759440672359714',) no score found for photo 1340082523 We are sending mail with results at report@fotonower.com args[1340082516] : ('0.060759440672359714',) no score found for photo 1340082516 We are sending mail with results at report@fotonower.com args[1340082511] : ('0.060759440672359714',) no score found for photo 1340082511 We are sending mail with results at report@fotonower.com refus_total : 0.060759440672359714 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=20914260 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 1000 SELECT photo_id, url FROM MTRBack.photos ph WHERE photo_id IN (1340080066,1340080070,1340081059,1340081072) Found this number of photos: 4 begin to download photo : 1340080066 begin to download photo : 1340080070 begin to download photo : 1340081059 begin to download photo : 1340081072 download finish for photo 1340081072 download finish for photo 1340080070 download finish for photo 1340080066 download finish for photo 1340081059 start upload file to ovh https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20914260_28-02-2025_07_38_00.pdf results_Auto_P20914260_28-02-2025_07_38_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20914260_28-02-2025_07_38_00.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('3459','20914260','results_Auto_P20914260_28-02-2025_07_38_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20914260_28-02-2025_07_38_00.pdf','pdf','','0.13','0.060759440672359714') Inside saveOutput : final : False verbose : 0 saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1340082585, 1340082582, 1340082578, 1340082575, 1340082570, 1340082559, 1340082528, 1340082523, 1340082516, 1340082511] Looping around the photos to save general results len do output : 0 before output type Used above Managing all output in save final without adding information in the mtr_datou_result ('3459', None, None, None, None, None, None, None, '2622555') ('3459', '20914260', '1340082585', None, None, None, None, None, '2622555') ('3459', None, None, None, None, None, None, None, '2622555') ('3459', '20914260', '1340082582', None, None, None, None, None, '2622555') ('3459', None, None, None, None, None, None, None, '2622555') ('3459', '20914260', '1340082578', None, None, None, None, None, '2622555') ('3459', None, None, None, None, None, None, None, '2622555') ('3459', '20914260', '1340082575', None, None, None, None, None, '2622555') ('3459', None, None, None, None, None, None, None, '2622555') ('3459', '20914260', '1340082570', None, None, None, None, None, '2622555') ('3459', None, None, None, None, None, None, None, '2622555') ('3459', '20914260', '1340082559', None, None, None, None, None, '2622555') ('3459', None, None, None, None, None, None, None, '2622555') ('3459', '20914260', '1340082528', None, None, None, None, None, '2622555') ('3459', None, None, None, None, None, None, None, '2622555') ('3459', '20914260', '1340082523', None, None, None, None, None, '2622555') ('3459', None, None, None, None, None, None, None, '2622555') ('3459', '20914260', '1340082516', None, None, None, None, None, '2622555') ('3459', None, None, None, None, None, None, None, '2622555') ('3459', '20914260', '1340082511', None, None, None, None, None, '2622555') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 time used for this insertion : 0.012917280197143555 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.8258423805236816 time spend to save output : 0.013088464736938477 total time spend for step 10 : 1.8389308452606201 step11:split_time_score Fri Feb 28 07:38:01 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 Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 We expect there is only one output and this part is used while all output are not tuple or array We expect there is only one output and this part is used while all output are not tuple or array We expect there is only one output and this part is used while all output are not tuple or array We expect there is only one output and this part is used while all output are not tuple or array We expect there is only one output and this part is used while all output are not tuple or array We expect there is only one output and this part is used while all output are not tuple or array We expect there is only one output and this part is used while all output are not tuple or array We expect there is only one output and this part is used while all output are not tuple or array We expect there is only one output and this part is used while all output are not tuple or array We expect there is only one output and this part is used while all output are not tuple or array Inconsistent number of input and output, step which parrallelize and manage error in input by avoiding sending an output for this data can't be used in tree dependencies of input and output complete output_args for input 1 VR 22-3-18 : For now we do not clean correctly the datou structure begin split time score Catched exception ! Connect or reconnect ! TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] (('07', 29),) ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 28022025 20914260 Nombre de photos uploadées : 29 / 23040 (0%) 28022025 20914260 Nombre de photos taguées (types de déchets): 0 / 29 (0%) 28022025 20914260 Nombre de photos taguées (volume) : 0 / 29 (0%) elapsed_time : load_data_split_time_score 1.1920928955078125e-06 elapsed_time : order_list_meta_photo_and_scores 5.245208740234375e-06 ????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002343416213989258 elapsed_time : insert_dashboard_record_day_entry 0.02358412742614746 We will return after consolidate but for now we need the day, how to get it, for now depending on the previous heavy steps Qualite : 0.060759440672359714 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20914260_28-02-2025_07_38_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20914260 order by id desc limit 1 # 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) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! 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 : number of outputs for step 11449 mask_detect is not consistent : 3 used against 2 in the step definition ! Step 11452 crop_condition have less inputs used (1) than in the step definition (2) : maybe we manage optionnal inputs ! Step 11452 crop_condition have less outputs used (2) than in the step definition (3) : some outputs may be not used ! Step 11453 merge_mask_thcl_custom have less inputs used (2) than in the step definition (3) : maybe we manage optionnal inputs ! WARNING : number of outputs for step 11453 merge_mask_thcl_custom is not consistent : 4 used against 2 in the step definition ! WARNING : number of inputs for step 11454 rle_unique_nms_with_priority is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 11454 rle_unique_nms_with_priority is not consistent : 2 used against 1 in the step definition ! Step 11478 crop_condition have less inputs used (1) than in the step definition (2) : maybe we manage optionnal inputs ! WARNING : number of outputs for step 11478 crop_condition is not consistent : 4 used against 3 in the step definition ! WARNING : number of inputs for step 11456 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 11456 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11455 final have less inputs used (2) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11455 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! Step 11458 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! 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 ! WARNING : type of output 2 of step 11449 doesn't seem to be define in the database( WARNING : type of input 2 of step 11452 doesn't seem to be define in the database( WARNING : output 1 of step 11449 have datatype=2 whereas input 1 of step 11453 have datatype=7 WARNING : type of output 2 of step 11453 doesn't seem to be define in the database( WARNING : type of input 1 of step 11454 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : type of output 3 of step 11453 doesn't seem to be define in the database( WARNING : type of input 1 of step 11456 doesn't seem to be define in the database( WARNING : type of output 1 of step 11456 doesn't seem to be define in the database( WARNING : type of input 3 of step 11455 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 11456 have datatype=10 whereas input 3 of step 11458 have datatype=6 WARNING : type of input 5 of step 11458 doesn't seem to be define in the database( WARNING : output 0 of step 11477 have datatype=11 whereas input 5 of step 11458 have datatype=None WARNING : output 0 of step 11456 have datatype=10 whereas input 0 of step 11477 have datatype=18 WARNING : type of input 2 of step 11478 doesn't seem to be define in the database( WARNING : output 1 of step 11454 have datatype=7 whereas input 2 of step 11478 have datatype=None WARNING : type of output 3 of step 11478 doesn't seem to be define in the database( WARNING : type of input 2 of step 11456 doesn't seem to be define in the database( WARNING : output 0 of step 11453 have datatype=1 whereas input 0 of step 11454 have datatype=2 DataTypes for each output/input checked ! TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20914260 AND mptpi.`type`=3726 To do NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'28022025': {'nb_upload': 29, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} Inside saveOutput : final : True verbose : 0 saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1340082585, 1340082582, 1340082578, 1340082575, 1340082570, 1340082559, 1340082528, 1340082523, 1340082516, 1340082511] Looping around the photos to save general results len do output : 1 /20914260Didn't retrieve data . before output type Here is an output not treated by saveGeneral : Managing all output in save final without adding information in the mtr_datou_result ('3459', None, None, None, None, None, None, None, '2622555') ('3459', '20914260', '1340082585', None, None, None, None, None, '2622555') ('3459', None, None, None, None, None, None, None, '2622555') ('3459', '20914260', '1340082582', None, None, None, None, None, '2622555') ('3459', None, None, None, None, None, None, None, '2622555') ('3459', '20914260', '1340082578', None, None, None, None, None, '2622555') ('3459', None, None, None, None, None, None, None, '2622555') ('3459', '20914260', '1340082575', None, None, None, None, None, '2622555') ('3459', None, None, None, None, None, None, None, '2622555') ('3459', '20914260', '1340082570', None, None, None, None, None, '2622555') ('3459', None, None, None, None, None, None, None, '2622555') ('3459', '20914260', '1340082559', None, None, None, None, None, '2622555') ('3459', None, None, None, None, None, None, None, '2622555') ('3459', '20914260', '1340082528', None, None, None, None, None, '2622555') ('3459', None, None, None, None, None, None, None, '2622555') ('3459', '20914260', '1340082523', None, None, None, None, None, '2622555') ('3459', None, None, None, None, None, None, None, '2622555') ('3459', '20914260', '1340082516', None, None, None, None, None, '2622555') ('3459', None, None, None, None, None, None, None, '2622555') ('3459', '20914260', '1340082511', None, None, None, None, None, '2622555') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 time used for this insertion : 0.013478994369506836 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.2413167953491211 time spend to save output : 0.013705730438232422 total time spend for step 11 : 0.2550225257873535 caffe_path_current : About to save ! 2 After save, about to update current ! update_current_state 50.90user 30.06system 1:36.92elapsed 83%CPU (0avgtext+0avgdata 2692204maxresident)k 1048208inputs+26304outputs (2118major+2511905minor)pagefaults 0swaps