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 : 3640696 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 : 12>10 please execute split_portfolio.py -i 20729335 -l 10 size over we load limit photo not treated list_input_json: [] Current got : datou_id : 3459, datou_cur_ids : ['2605254'] with mtr_portfolio_ids : ['20729335'] and first list_photo_ids : [] new path : /proc/3640696/ 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.152683973312378 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 21 16:52:28 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 : 10814 max_wait_temp : 1 max_wait : 0 gpu_flag : 0 2025-02-21 16:52:31.527548: 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-21 16:52:31.555052: I tensorflow/core/platform/profile_utils/cpu_utils.cc:102] CPU Frequency: 3493065000 Hz 2025-02-21 16:52:31.556638: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x7f7540000b60 initialized for platform Host (this does not guarantee that XLA will be used). Devices: 2025-02-21 16:52:31.556689: I tensorflow/compiler/xla/service/service.cc:176] StreamExecutor device (0): Host, Default Version 2025-02-21 16:52:31.559306: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcuda.so.1 2025-02-21 16:52:31.803426: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x354736c0 initialized for platform CUDA (this does not guarantee that XLA will be used). Devices: 2025-02-21 16:52:31.803484: I tensorflow/compiler/xla/service/service.cc:176] StreamExecutor device (0): NVIDIA GeForce RTX 2080 Ti, Compute Capability 7.5 2025-02-21 16:52:31.804767: 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-21 16:52:31.805216: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1 2025-02-21 16:52:31.808469: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcublas.so.10 2025-02-21 16:52:31.811563: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcufft.so.10 2025-02-21 16:52:31.812066: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcurand.so.10 2025-02-21 16:52:31.815000: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusolver.so.10 2025-02-21 16:52:31.816347: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusparse.so.10 2025-02-21 16:52:31.821725: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudnn.so.7 2025-02-21 16:52:31.823198: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1703] Adding visible gpu devices: 0 2025-02-21 16:52:31.823277: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1 2025-02-21 16:52:31.824081: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1102] Device interconnect StreamExecutor with strength 1 edge matrix: 2025-02-21 16:52:31.824098: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1108] 0 2025-02-21 16:52:31.824107: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1121] 0: N 2025-02-21 16:52:31.825435: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1247] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 10023 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-21 16:52:32.079434: 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-21 16:52:32.079597: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1 2025-02-21 16:52:32.079627: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcublas.so.10 2025-02-21 16:52:32.079652: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcufft.so.10 2025-02-21 16:52:32.079677: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcurand.so.10 2025-02-21 16:52:32.079701: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusolver.so.10 2025-02-21 16:52:32.079726: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusparse.so.10 2025-02-21 16:52:32.079751: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudnn.so.7 2025-02-21 16:52:32.081073: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1703] Adding visible gpu devices: 0 2025-02-21 16:52:32.082198: 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-21 16:52:32.082233: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1 2025-02-21 16:52:32.082248: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcublas.so.10 2025-02-21 16:52:32.082261: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcufft.so.10 2025-02-21 16:52:32.082274: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcurand.so.10 2025-02-21 16:52:32.082287: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusolver.so.10 2025-02-21 16:52:32.082299: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusparse.so.10 2025-02-21 16:52:32.082312: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudnn.so.7 2025-02-21 16:52:32.083539: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1703] Adding visible gpu devices: 0 2025-02-21 16:52:32.083578: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1102] Device interconnect StreamExecutor with strength 1 edge matrix: 2025-02-21 16:52:32.083587: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1108] 0 2025-02-21 16:52:32.083594: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1121] 0: N 2025-02-21 16:52:32.084864: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1247] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 10023 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-21 16:52:42.261516: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcublas.so.10 2025-02-21 16:52:42.430393: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudnn.so.7 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: (2160, 3264, 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: 3264.00000 nb d'objets trouves : 20 NEW PHOTO Processing 1 images image shape: (2160, 3264, 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: 3264.00000 nb d'objets trouves : 6 NEW PHOTO Processing 1 images image shape: (2160, 3264, 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: 3264.00000 nb d'objets trouves : 10 NEW PHOTO Processing 1 images image shape: (2160, 3264, 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: 3264.00000 nb d'objets trouves : 13 NEW PHOTO Processing 1 images image shape: (2160, 3264, 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: 3264.00000 nb d'objets trouves : 10 NEW PHOTO Processing 1 images image shape: (2160, 3264, 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: 3264.00000 nb d'objets trouves : 7 NEW PHOTO Processing 1 images image shape: (2160, 3264, 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: 3264.00000 nb d'objets trouves : 17 NEW PHOTO Processing 1 images image shape: (2160, 3264, 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: 3264.00000 nb d'objets trouves : 8 NEW PHOTO Processing 1 images image shape: (2160, 3264, 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: 3264.00000 nb d'objets trouves : 14 NEW PHOTO Processing 1 images image shape: (2160, 3264, 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: 3264.00000 nb d'objets trouves : 9 Detection mask done ! Trying to reset tf kernel 3641263 begin to check gpu status inside check gpu memory l 3610 free memory gpu now : 5525 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 : 10814 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.11306142807006836 nb_pixel_total : 2691862 time to create 1 rle with new method : 1.2983217239379883 length of segment : 2937 time for calcul the mask position with numpy : 0.00025272369384765625 nb_pixel_total : 4448 time to create 1 rle with old method : 0.0054357051849365234 length of segment : 112 time for calcul the mask position with numpy : 0.023365020751953125 nb_pixel_total : 1198705 time to create 1 rle with new method : 0.3295574188232422 length of segment : 2623 time for calcul the mask position with numpy : 0.0005824565887451172 nb_pixel_total : 22024 time to create 1 rle with old method : 0.02904534339904785 length of segment : 247 time for calcul the mask position with numpy : 0.0016829967498779297 nb_pixel_total : 84599 time to create 1 rle with old method : 0.10935544967651367 length of segment : 435 time for calcul the mask position with numpy : 0.00012993812561035156 nb_pixel_total : 2971 time to create 1 rle with old method : 0.003690481185913086 length of segment : 75 time for calcul the mask position with numpy : 0.0004279613494873047 nb_pixel_total : 22000 time to create 1 rle with old method : 0.02667999267578125 length of segment : 242 time for calcul the mask position with numpy : 0.0009522438049316406 nb_pixel_total : 46135 time to create 1 rle with old method : 0.054285526275634766 length of segment : 326 time for calcul the mask position with numpy : 0.0054247379302978516 nb_pixel_total : 390625 time to create 1 rle with new method : 0.01389765739440918 length of segment : 816 time for calcul the mask position with numpy : 0.0008647441864013672 nb_pixel_total : 44975 time to create 1 rle with old method : 0.054225921630859375 length of segment : 324 time for calcul the mask position with numpy : 0.0002162456512451172 nb_pixel_total : 3865 time to create 1 rle with old method : 0.006556272506713867 length of segment : 43 time for calcul the mask position with numpy : 0.0004918575286865234 nb_pixel_total : 16513 time to create 1 rle with old method : 0.020027637481689453 length of segment : 125 time for calcul the mask position with numpy : 0.0001392364501953125 nb_pixel_total : 856 time to create 1 rle with old method : 0.001168966293334961 length of segment : 37 time for calcul the mask position with numpy : 0.00016617774963378906 nb_pixel_total : 1823 time to create 1 rle with old method : 0.002381563186645508 length of segment : 36 time for calcul the mask position with numpy : 0.010972738265991211 nb_pixel_total : 507950 time to create 1 rle with new method : 0.01739978790283203 length of segment : 1156 time for calcul the mask position with numpy : 0.001218557357788086 nb_pixel_total : 43836 time to create 1 rle with old method : 0.05198836326599121 length of segment : 304 time for calcul the mask position with numpy : 0.0011112689971923828 nb_pixel_total : 22265 time to create 1 rle with old method : 0.038084983825683594 length of segment : 249 time for calcul the mask position with numpy : 0.2845308780670166 nb_pixel_total : 4983302 time to create 1 rle with new method : 0.7831165790557861 length of segment : 3259 time for calcul the mask position with numpy : 0.004986763000488281 nb_pixel_total : 421435 time to create 1 rle with new method : 0.009301900863647461 length of segment : 737 time for calcul the mask position with numpy : 7.772445678710938e-05 nb_pixel_total : 1987 time to create 1 rle with old method : 0.002337932586669922 length of segment : 50 time for calcul the mask position with numpy : 0.0014345645904541016 nb_pixel_total : 117689 time to create 1 rle with old method : 0.1278374195098877 length of segment : 389 time for calcul the mask position with numpy : 0.007416486740112305 nb_pixel_total : 567080 time to create 1 rle with new method : 0.040007591247558594 length of segment : 927 time for calcul the mask position with numpy : 0.0014107227325439453 nb_pixel_total : 26777 time to create 1 rle with old method : 0.03255724906921387 length of segment : 298 time for calcul the mask position with numpy : 0.001474618911743164 nb_pixel_total : 66946 time to create 1 rle with old method : 0.07642126083374023 length of segment : 319 time for calcul the mask position with numpy : 0.0006108283996582031 nb_pixel_total : 25840 time to create 1 rle with old method : 0.030596494674682617 length of segment : 244 time for calcul the mask position with numpy : 0.0008857250213623047 nb_pixel_total : 43022 time to create 1 rle with old method : 0.05114865303039551 length of segment : 301 time for calcul the mask position with numpy : 0.0011758804321289062 nb_pixel_total : 46006 time to create 1 rle with old method : 0.05691885948181152 length of segment : 208 time for calcul the mask position with numpy : 0.0002994537353515625 nb_pixel_total : 6838 time to create 1 rle with old method : 0.008547782897949219 length of segment : 92 time for calcul the mask position with numpy : 0.0005235671997070312 nb_pixel_total : 10809 time to create 1 rle with old method : 0.013394832611083984 length of segment : 178 time for calcul the mask position with numpy : 0.0030469894409179688 nb_pixel_total : 124005 time to create 1 rle with old method : 0.14469504356384277 length of segment : 419 time for calcul the mask position with numpy : 0.0015387535095214844 nb_pixel_total : 69963 time to create 1 rle with old method : 0.07818269729614258 length of segment : 319 time for calcul the mask position with numpy : 0.0031125545501708984 nb_pixel_total : 152523 time to create 1 rle with new method : 0.004647493362426758 length of segment : 340 time for calcul the mask position with numpy : 0.0015184879302978516 nb_pixel_total : 49526 time to create 1 rle with old method : 0.05897068977355957 length of segment : 365 time for calcul the mask position with numpy : 0.0010149478912353516 nb_pixel_total : 39176 time to create 1 rle with old method : 0.04983949661254883 length of segment : 286 time for calcul the mask position with numpy : 0.0012803077697753906 nb_pixel_total : 67093 time to create 1 rle with old method : 0.0783534049987793 length of segment : 365 time for calcul the mask position with numpy : 0.00038552284240722656 nb_pixel_total : 10430 time to create 1 rle with old method : 0.012585878372192383 length of segment : 146 time for calcul the mask position with numpy : 0.0007309913635253906 nb_pixel_total : 9162 time to create 1 rle with old method : 0.011400461196899414 length of segment : 137 time for calcul the mask position with numpy : 0.0007162094116210938 nb_pixel_total : 32823 time to create 1 rle with old method : 0.04652094841003418 length of segment : 171 time for calcul the mask position with numpy : 0.0013971328735351562 nb_pixel_total : 30918 time to create 1 rle with old method : 0.03675651550292969 length of segment : 339 time for calcul the mask position with numpy : 0.0028162002563476562 nb_pixel_total : 107415 time to create 1 rle with old method : 0.12555551528930664 length of segment : 506 time for calcul the mask position with numpy : 0.003422260284423828 nb_pixel_total : 165097 time to create 1 rle with new method : 0.005731105804443359 length of segment : 766 time for calcul the mask position with numpy : 0.003312826156616211 nb_pixel_total : 171746 time to create 1 rle with new method : 0.010025978088378906 length of segment : 858 time for calcul the mask position with numpy : 0.0002739429473876953 nb_pixel_total : 6214 time to create 1 rle with old method : 0.0077970027923583984 length of segment : 97 time for calcul the mask position with numpy : 0.0007519721984863281 nb_pixel_total : 18093 time to create 1 rle with old method : 0.021332502365112305 length of segment : 252 time for calcul the mask position with numpy : 0.0006377696990966797 nb_pixel_total : 21397 time to create 1 rle with old method : 0.02508831024169922 length of segment : 295 time for calcul the mask position with numpy : 0.0006685256958007812 nb_pixel_total : 24728 time to create 1 rle with old method : 0.029044628143310547 length of segment : 181 time for calcul the mask position with numpy : 0.00012826919555664062 nb_pixel_total : 1858 time to create 1 rle with old method : 0.002203226089477539 length of segment : 62 time for calcul the mask position with numpy : 0.0011637210845947266 nb_pixel_total : 57694 time to create 1 rle with old method : 0.06630492210388184 length of segment : 268 time for calcul the mask position with numpy : 0.0004146099090576172 nb_pixel_total : 13730 time to create 1 rle with old method : 0.016712188720703125 length of segment : 108 time for calcul the mask position with numpy : 0.0004062652587890625 nb_pixel_total : 11768 time to create 1 rle with old method : 0.013867855072021484 length of segment : 104 time for calcul the mask position with numpy : 0.0007655620574951172 nb_pixel_total : 13978 time to create 1 rle with old method : 0.023946523666381836 length of segment : 159 time for calcul the mask position with numpy : 0.0014576911926269531 nb_pixel_total : 42030 time to create 1 rle with old method : 0.062224388122558594 length of segment : 235 time for calcul the mask position with numpy : 0.000240325927734375 nb_pixel_total : 3835 time to create 1 rle with old method : 0.005037069320678711 length of segment : 98 time for calcul the mask position with numpy : 0.00015234947204589844 nb_pixel_total : 1698 time to create 1 rle with old method : 0.002125978469848633 length of segment : 75 time for calcul the mask position with numpy : 0.00052642822265625 nb_pixel_total : 7943 time to create 1 rle with old method : 0.009792804718017578 length of segment : 165 time for calcul the mask position with numpy : 0.0005643367767333984 nb_pixel_total : 20234 time to create 1 rle with old method : 0.026197433471679688 length of segment : 204 time for calcul the mask position with numpy : 0.0008985996246337891 nb_pixel_total : 41503 time to create 1 rle with old method : 0.04743361473083496 length of segment : 232 time for calcul the mask position with numpy : 0.0035314559936523438 nb_pixel_total : 180673 time to create 1 rle with new method : 0.006345510482788086 length of segment : 676 time for calcul the mask position with numpy : 0.0005745887756347656 nb_pixel_total : 17156 time to create 1 rle with old method : 0.020559072494506836 length of segment : 160 time for calcul the mask position with numpy : 0.0012600421905517578 nb_pixel_total : 50396 time to create 1 rle with old method : 0.05864310264587402 length of segment : 219 time for calcul the mask position with numpy : 0.0013337135314941406 nb_pixel_total : 49629 time to create 1 rle with old method : 0.05978870391845703 length of segment : 429 time for calcul the mask position with numpy : 0.0014493465423583984 nb_pixel_total : 57923 time to create 1 rle with old method : 0.07020688056945801 length of segment : 257 time for calcul the mask position with numpy : 0.0002543926239013672 nb_pixel_total : 6567 time to create 1 rle with old method : 0.008317232131958008 length of segment : 71 time for calcul the mask position with numpy : 0.0013701915740966797 nb_pixel_total : 51000 time to create 1 rle with old method : 0.059328556060791016 length of segment : 393 time for calcul the mask position with numpy : 0.0006821155548095703 nb_pixel_total : 25167 time to create 1 rle with old method : 0.03015732765197754 length of segment : 209 time for calcul the mask position with numpy : 0.0013589859008789062 nb_pixel_total : 61710 time to create 1 rle with old method : 0.07495307922363281 length of segment : 212 time for calcul the mask position with numpy : 0.0007214546203613281 nb_pixel_total : 19022 time to create 1 rle with old method : 0.02291250228881836 length of segment : 254 time for calcul the mask position with numpy : 0.0015075206756591797 nb_pixel_total : 50312 time to create 1 rle with old method : 0.061075687408447266 length of segment : 381 time for calcul the mask position with numpy : 0.0012903213500976562 nb_pixel_total : 50484 time to create 1 rle with old method : 0.062337636947631836 length of segment : 258 time for calcul the mask position with numpy : 0.0048618316650390625 nb_pixel_total : 165228 time to create 1 rle with new method : 0.008628606796264648 length of segment : 572 time for calcul the mask position with numpy : 0.0002429485321044922 nb_pixel_total : 2920 time to create 1 rle with old method : 0.003672361373901367 length of segment : 89 time for calcul the mask position with numpy : 0.0005919933319091797 nb_pixel_total : 23720 time to create 1 rle with old method : 0.028720617294311523 length of segment : 151 time for calcul the mask position with numpy : 0.0005104541778564453 nb_pixel_total : 17925 time to create 1 rle with old method : 0.02148127555847168 length of segment : 170 time for calcul the mask position with numpy : 0.0005488395690917969 nb_pixel_total : 13840 time to create 1 rle with old method : 0.01638960838317871 length of segment : 122 time for calcul the mask position with numpy : 0.000194549560546875 nb_pixel_total : 9423 time to create 1 rle with old method : 0.01082158088684082 length of segment : 145 time for calcul the mask position with numpy : 0.007792234420776367 nb_pixel_total : 405099 time to create 1 rle with new method : 0.01795506477355957 length of segment : 562 time for calcul the mask position with numpy : 0.00019812583923339844 nb_pixel_total : 3976 time to create 1 rle with old method : 0.004777669906616211 length of segment : 79 time for calcul the mask position with numpy : 0.0006034374237060547 nb_pixel_total : 35010 time to create 1 rle with old method : 0.03870058059692383 length of segment : 233 time for calcul the mask position with numpy : 0.001966714859008789 nb_pixel_total : 137554 time to create 1 rle with old method : 0.15569519996643066 length of segment : 402 time for calcul the mask position with numpy : 0.005571603775024414 nb_pixel_total : 322148 time to create 1 rle with new method : 0.009443521499633789 length of segment : 667 time for calcul the mask position with numpy : 0.0015382766723632812 nb_pixel_total : 144151 time to create 1 rle with old method : 0.16065573692321777 length of segment : 417 time for calcul the mask position with numpy : 0.0010209083557128906 nb_pixel_total : 42087 time to create 1 rle with old method : 0.046137094497680664 length of segment : 253 time for calcul the mask position with numpy : 0.003280162811279297 nb_pixel_total : 154969 time to create 1 rle with new method : 0.004670858383178711 length of segment : 557 time for calcul the mask position with numpy : 0.00028896331787109375 nb_pixel_total : 4325 time to create 1 rle with old method : 0.005410671234130859 length of segment : 94 time for calcul the mask position with numpy : 0.0007805824279785156 nb_pixel_total : 15484 time to create 1 rle with old method : 0.01795363426208496 length of segment : 248 time for calcul the mask position with numpy : 0.005324125289916992 nb_pixel_total : 209545 time to create 1 rle with new method : 0.00890660285949707 length of segment : 826 time for calcul the mask position with numpy : 0.0015442371368408203 nb_pixel_total : 72490 time to create 1 rle with old method : 0.0848996639251709 length of segment : 323 time for calcul the mask position with numpy : 0.0013608932495117188 nb_pixel_total : 56601 time to create 1 rle with old method : 0.06735944747924805 length of segment : 271 time for calcul the mask position with numpy : 0.0008783340454101562 nb_pixel_total : 22121 time to create 1 rle with old method : 0.027228116989135742 length of segment : 233 time for calcul the mask position with numpy : 0.0002067089080810547 nb_pixel_total : 5421 time to create 1 rle with old method : 0.0065920352935791016 length of segment : 93 time for calcul the mask position with numpy : 0.0009207725524902344 nb_pixel_total : 19808 time to create 1 rle with old method : 0.023177623748779297 length of segment : 304 time for calcul the mask position with numpy : 0.0003094673156738281 nb_pixel_total : 5817 time to create 1 rle with old method : 0.006979942321777344 length of segment : 100 time for calcul the mask position with numpy : 0.00011348724365234375 nb_pixel_total : 1180 time to create 1 rle with old method : 0.001447916030883789 length of segment : 59 time for calcul the mask position with numpy : 0.0017900466918945312 nb_pixel_total : 150660 time to create 1 rle with new method : 0.004213809967041016 length of segment : 474 time for calcul the mask position with numpy : 0.0010919570922851562 nb_pixel_total : 74177 time to create 1 rle with old method : 0.08763980865478516 length of segment : 345 time for calcul the mask position with numpy : 0.0005888938903808594 nb_pixel_total : 21174 time to create 1 rle with old method : 0.025000572204589844 length of segment : 161 time for calcul the mask position with numpy : 0.0011754035949707031 nb_pixel_total : 35396 time to create 1 rle with old method : 0.04158282279968262 length of segment : 370 time for calcul the mask position with numpy : 0.003210783004760742 nb_pixel_total : 177289 time to create 1 rle with new method : 0.005109548568725586 length of segment : 697 time for calcul the mask position with numpy : 0.0011489391326904297 nb_pixel_total : 62419 time to create 1 rle with old method : 0.07522773742675781 length of segment : 299 time for calcul the mask position with numpy : 0.0009610652923583984 nb_pixel_total : 28942 time to create 1 rle with old method : 0.035434722900390625 length of segment : 206 time for calcul the mask position with numpy : 0.0017704963684082031 nb_pixel_total : 80416 time to create 1 rle with old method : 0.09852170944213867 length of segment : 388 time for calcul the mask position with numpy : 0.0020208358764648438 nb_pixel_total : 54546 time to create 1 rle with old method : 0.06769037246704102 length of segment : 762 time for calcul the mask position with numpy : 0.0009686946868896484 nb_pixel_total : 60992 time to create 1 rle with old method : 0.07096576690673828 length of segment : 319 time spent for convertir_results : 13.844183683395386 Inside saveOutput : final : False verbose : 0 eke 12-6-18 : saveMask need to be cleaned for new output ! Number saved : None batch 1 Loaded 103 chid ids of type : 3663 Number RLEs to save : 39151 save missing photos in datou_result : time spend for datou_step_exec : 54.533443212509155 time spend to save output : 2.358614444732666 total time spend for step 1 : 56.89205765724182 step2:crop_condition Fri Feb 21 16:53:25 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 103 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 ! 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 : 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 ! 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 ! 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 : 16 About to insert : list_path_to_insert length 16 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 ! 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 : 5 About to insert : list_path_to_insert length 5 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 ! 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 ! 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 : 24 About to insert : list_path_to_insert length 24 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 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 ! we have both polygon and rles Next one ! map_result returned by crop_photo_return_map_crop : length : 4 About to insert : list_path_to_insert length 4 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 [1338816296, 1338816279, 1338816059, 1338816057, 1338816040, 1338816037, 1338816034, 1338815780, 1338815771, 1338815733] Looping around the photos to save general results len do output : 51 /-3682269904Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3682269919Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3682269837Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3682269845Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3682269844Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3682269851Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3682269852Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3682269863Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3682269853Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3682269869Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3682269873Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3682269877Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3682269903Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3682269902Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3682269901Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3682269908Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3682269915Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3682269920Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3682269829Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3682269847Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3682269870Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3682269897Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3682269917Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3682269825Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3682269830Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3682269831Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3682269826Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3682269828Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3682269842Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3682269840Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3682269856Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3682269861Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3682269858Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3682269872Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3682269879Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3682269878Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3682269891Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3682269887Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3682269886Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3682269881Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3682269883Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3682269907Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3682269912Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3682269910Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3682269924Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3682269922Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3682269923Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3682269833Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3682269841Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3682269885Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3682269916Didn'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, '2605254') ('3459', '20729335', '1338816296', None, None, None, None, None, '2605254') ('3459', None, None, None, None, None, None, None, '2605254') ('3459', '20729335', '1338816279', None, None, None, None, None, '2605254') ('3459', None, None, None, None, None, None, None, '2605254') ('3459', '20729335', '1338816059', None, None, None, None, None, '2605254') ('3459', None, None, None, None, None, None, None, '2605254') ('3459', '20729335', '1338816057', None, None, None, None, None, '2605254') ('3459', None, None, None, None, None, None, None, '2605254') ('3459', '20729335', '1338816040', None, None, None, None, None, '2605254') ('3459', None, None, None, None, None, None, None, '2605254') ('3459', '20729335', '1338816037', None, None, None, None, None, '2605254') ('3459', None, None, None, None, None, None, None, '2605254') ('3459', '20729335', '1338816034', None, None, None, None, None, '2605254') ('3459', None, None, None, None, None, None, None, '2605254') ('3459', '20729335', '1338815780', None, None, None, None, None, '2605254') ('3459', None, None, None, None, None, None, None, '2605254') ('3459', '20729335', '1338815771', None, None, None, None, None, '2605254') ('3459', None, None, None, None, None, None, None, '2605254') ('3459', '20729335', '1338815733', None, None, None, None, None, '2605254') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 163 time used for this insertion : 0.08656930923461914 save_final save missing photos in datou_result : time spend for datou_step_exec : 25.982128143310547 time spend to save output : 0.08880615234375 total time spend for step 2 : 26.070934295654297 step3:thcl Fri Feb 21 16:53:51 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.05211472511291504 time to convert the images to numpy array : 1.430511474609375e-06 time to import caffe and check if the image exist : 0.05409717559814453 time to convert the images to numpy array : 0.022138118743896484 time to import caffe and check if the image exist : 0.05691123008728027 time to convert the images to numpy array : 0.06179189682006836 time to import caffe and check if the image exist : 0.054135799407958984 time to convert the images to numpy array : 0.09673428535461426 time to import caffe and check if the image exist : 0.0571446418762207 time to convert the images to numpy array : 0.09647154808044434 time to import caffe and check if the image exist : 0.05186176300048828 time to convert the images to numpy array : 0.20452260971069336 time to import caffe and check if the image exist : 0.05513334274291992 time to convert the images to numpy array : 0.2168877124786377 time to import caffe and check if the image exist : 0.053679704666137695 time to convert the images to numpy array : 0.218794584274292 time to import caffe and check if the image exist : 0.05801868438720703 time to convert the images to numpy array : 0.2180185317993164 time to import caffe and check if the image exist : 0.05601906776428223 time to convert the images to numpy array : 0.24206018447875977 total time to convert the images to numpy array : 0.47885823249816895 list photo_ids error: [] list photo_ids correct : [-3682269841, -3682269885, -3682269916, -3682269912, -3682269910, -3682269924, -3682269922, -3682269923, -3682269833, -3682269856, -3682269861, -3682269858, -3682269872, -3682269879, -3682269878, -3682269852, -3682269863, -3682269853, -3682269869, -3682269873, -3682269877, -3682269904, -3682269919, -3682269837, -3682269845, -3682269844, -3682269851, -3682269891, -3682269887, -3682269886, -3682269881, -3682269883, -3682269907, -3682269829, -3682269847, -3682269870, -3682269897, -3682269917, -3682269825, -3682269903, -3682269902, -3682269901, -3682269908, -3682269915, -3682269920, -3682269830, -3682269831, -3682269826, -3682269828, -3682269842, -3682269840] number of photos to traite : 51 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 : 10814 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 : 10595 max_wait_temp : 1 max_wait : 0 dict_keys(['prob']) time used to do the prepocess of the images : 0.6479756832122803 time used to do the prediction : 0.14726996421813965 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 : 10593 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 : 10593 max_wait_temp : 1 max_wait : 0 dict_keys(['prob']) time used to do the prepocess of the images : 0.6892294883728027 time used to do the prediction : 0.5696523189544678 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 : 1.1205673217773438e-05 save missing photos in datou_result : time spend for datou_step_exec : 9.028948307037354 time spend to save output : 0.000400543212890625 total time spend for step 3 : 9.029348850250244 step4:merge_mask_thcl_custom Fri Feb 21 16:54: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 ! 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 103 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 [1338816296, 1338816279, 1338816059, 1338816057, 1338816040, 1338816037, 1338816034, 1338815780, 1338815771, 1338815733] Looping around the photos to save general results len do output : 10 /1338816296Didn't retrieve data .Didn't retrieve data . /1338816279Didn't retrieve data .Didn't retrieve data . /1338816059Didn't retrieve data .Didn't retrieve data . /1338816057Didn't retrieve data .Didn't retrieve data . /1338816040Didn't retrieve data .Didn't retrieve data . /1338816037Didn't retrieve data .Didn't retrieve data . /1338816034Didn't retrieve data .Didn't retrieve data . /1338815780Didn't retrieve data .Didn't retrieve data . /1338815771Didn't retrieve data .Didn't retrieve data . /1338815733Didn'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, '2605254') ('3459', '20729335', '1338816296', None, None, None, None, None, '2605254') ('3459', None, None, None, None, None, None, None, '2605254') ('3459', '20729335', '1338816279', None, None, None, None, None, '2605254') ('3459', None, None, None, None, None, None, None, '2605254') ('3459', '20729335', '1338816059', None, None, None, None, None, '2605254') ('3459', None, None, None, None, None, None, None, '2605254') ('3459', '20729335', '1338816057', None, None, None, None, None, '2605254') ('3459', None, None, None, None, None, None, None, '2605254') ('3459', '20729335', '1338816040', None, None, None, None, None, '2605254') ('3459', None, None, None, None, None, None, None, '2605254') ('3459', '20729335', '1338816037', None, None, None, None, None, '2605254') ('3459', None, None, None, None, None, None, None, '2605254') ('3459', '20729335', '1338816034', None, None, None, None, None, '2605254') ('3459', None, None, None, None, None, None, None, '2605254') ('3459', '20729335', '1338815780', None, None, None, None, None, '2605254') ('3459', None, None, None, None, None, None, None, '2605254') ('3459', '20729335', '1338815771', None, None, None, None, None, '2605254') ('3459', None, None, None, None, None, None, None, '2605254') ('3459', '20729335', '1338815733', None, None, None, None, None, '2605254') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 time used for this insertion : 0.01661062240600586 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.061527252197265625 time spend to save output : 0.01702284812927246 total time spend for step 4 : 0.07855010032653809 step5:rle_unique_nms_with_priority Fri Feb 21 16:54: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 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 : 15 nb_hashtags : 5 time to prepare the origin masks : 10.206969499588013 time for calcul the mask position with numpy : 0.34956884384155273 nb_pixel_total : 3247193 time to create 1 rle with new method : 1.0210576057434082 time for calcul the mask position with numpy : 0.03654813766479492 nb_pixel_total : 174018 time to create 1 rle with new method : 2.2672996520996094 time for calcul the mask position with numpy : 0.0351862907409668 nb_pixel_total : 17534 time to create 1 rle with old method : 0.020242929458618164 time for calcul the mask position with numpy : 0.035481929779052734 nb_pixel_total : 1803 time to create 1 rle with old method : 0.0021409988403320312 time for calcul the mask position with numpy : 0.03522658348083496 nb_pixel_total : 768 time to create 1 rle with old method : 0.0009167194366455078 time for calcul the mask position with numpy : 0.035155534744262695 nb_pixel_total : 1463 time to create 1 rle with old method : 0.001982450485229492 time for calcul the mask position with numpy : 0.03614950180053711 nb_pixel_total : 3794 time to create 1 rle with old method : 0.004440784454345703 time for calcul the mask position with numpy : 0.036371469497680664 nb_pixel_total : 158494 time to create 1 rle with new method : 0.9365522861480713 time for calcul the mask position with numpy : 0.03461623191833496 nb_pixel_total : 45030 time to create 1 rle with old method : 0.051180362701416016 time for calcul the mask position with numpy : 0.03470945358276367 nb_pixel_total : 84407 time to create 1 rle with old method : 0.094696044921875 time for calcul the mask position with numpy : 0.03423261642456055 nb_pixel_total : 2947 time to create 1 rle with old method : 0.0033533573150634766 time for calcul the mask position with numpy : 0.03954672813415527 nb_pixel_total : 554792 time to create 1 rle with new method : 2.589848041534424 time for calcul the mask position with numpy : 0.034279823303222656 nb_pixel_total : 4433 time to create 1 rle with old method : 0.0051593780517578125 time for calcul the mask position with numpy : 1.275578498840332 nb_pixel_total : 2688069 time to create 1 rle with new method : 1.147723913192749 time for calcul the mask position with numpy : 0.032651424407958984 nb_pixel_total : 21969 time to create 1 rle with old method : 0.025287151336669922 time for calcul the mask position with numpy : 0.02950453758239746 nb_pixel_total : 43526 time to create 1 rle with old method : 0.047811031341552734 create new chi : 10.465051412582397 time to delete rle : 0.021550416946411133 batch 1 Loaded 16 chid ids of type : 3726 Number RLEs to save : 18288 TO DO : save crop sub photo not yet done ! save time : 1.069324254989624 nb_obj : 5 nb_hashtags : 3 time to prepare the origin masks : 8.795724630355835 time for calcul the mask position with numpy : 0.030672073364257812 nb_pixel_total : 1239995 time to create 1 rle with new method : 1.3277599811553955 time for calcul the mask position with numpy : 0.022943735122680664 nb_pixel_total : 80630 time to create 1 rle with old method : 0.09441518783569336 time for calcul the mask position with numpy : 0.02201986312866211 nb_pixel_total : 6163 time to create 1 rle with old method : 0.00756382942199707 time for calcul the mask position with numpy : 0.02321934700012207 nb_pixel_total : 134305 time to create 1 rle with old method : 0.15500807762145996 time for calcul the mask position with numpy : 1.2013890743255615 nb_pixel_total : 5587169 time to create 1 rle with new method : 1.060307502746582 time for calcul the mask position with numpy : 0.021435022354125977 nb_pixel_total : 1978 time to create 1 rle with old method : 0.0023620128631591797 create new chi : 4.02917742729187 time to delete rle : 0.0007846355438232422 batch 1 Loaded 6 chid ids of type : 3726 Number RLEs to save : 7490 TO DO : save crop sub photo not yet done ! save time : 0.4633948802947998 nb_obj : 8 nb_hashtags : 5 time to prepare the origin masks : 9.757404804229736 time for calcul the mask position with numpy : 0.8169174194335938 nb_pixel_total : 6698386 time to create 1 rle with new method : 0.5968718528747559 time for calcul the mask position with numpy : 0.03463268280029297 nb_pixel_total : 124747 time to create 1 rle with old method : 0.139509916305542 time for calcul the mask position with numpy : 0.037270545959472656 nb_pixel_total : 10692 time to create 1 rle with old method : 0.012757301330566406 time for calcul the mask position with numpy : 0.02405714988708496 nb_pixel_total : 6774 time to create 1 rle with old method : 0.00789952278137207 time for calcul the mask position with numpy : 0.022594928741455078 nb_pixel_total : 45627 time to create 1 rle with old method : 0.050482749938964844 time for calcul the mask position with numpy : 0.021048545837402344 nb_pixel_total : 26724 time to create 1 rle with old method : 0.029601097106933594 time for calcul the mask position with numpy : 0.021104097366333008 nb_pixel_total : 25754 time to create 1 rle with old method : 0.028801918029785156 time for calcul the mask position with numpy : 0.02245616912841797 nb_pixel_total : 44750 time to create 1 rle with old method : 0.05661654472351074 time for calcul the mask position with numpy : 0.024556398391723633 nb_pixel_total : 66786 time to create 1 rle with old method : 0.0833439826965332 create new chi : 2.0678136348724365 time to delete rle : 0.0006272792816162109 batch 1 Loaded 9 chid ids of type : 3726 Number RLEs to save : 6108 TO DO : save crop sub photo not yet done ! save time : 0.41758251190185547 nb_obj : 11 nb_hashtags : 4 time to prepare the origin masks : 10.00020146369934 time for calcul the mask position with numpy : 0.47716856002807617 nb_pixel_total : 6514349 time to create 1 rle with new method : 0.5213782787322998 time for calcul the mask position with numpy : 0.021462440490722656 nb_pixel_total : 125514 time to create 1 rle with old method : 0.14106392860412598 time for calcul the mask position with numpy : 0.02148580551147461 nb_pixel_total : 62049 time to create 1 rle with old method : 0.06975507736206055 time for calcul the mask position with numpy : 0.02085256576538086 nb_pixel_total : 30030 time to create 1 rle with old method : 0.03250479698181152 time for calcul the mask position with numpy : 0.020845651626586914 nb_pixel_total : 32525 time to create 1 rle with old method : 0.0366213321685791 time for calcul the mask position with numpy : 0.01997542381286621 nb_pixel_total : 10400 time to create 1 rle with old method : 0.011407852172851562 time for calcul the mask position with numpy : 0.0203549861907959 nb_pixel_total : 38846 time to create 1 rle with old method : 0.04292488098144531 time for calcul the mask position with numpy : 0.021324634552001953 nb_pixel_total : 106822 time to create 1 rle with old method : 0.11710619926452637 time for calcul the mask position with numpy : 0.021619796752929688 nb_pixel_total : 3450 time to create 1 rle with old method : 0.004349708557128906 time for calcul the mask position with numpy : 0.0257413387298584 nb_pixel_total : 47320 time to create 1 rle with old method : 0.06203007698059082 time for calcul the mask position with numpy : 0.024404287338256836 nb_pixel_total : 9093 time to create 1 rle with old method : 0.010622024536132812 time for calcul the mask position with numpy : 0.02210068702697754 nb_pixel_total : 69842 time to create 1 rle with old method : 0.08091473579406738 create new chi : 1.8861489295959473 time to delete rle : 0.0008566379547119141 batch 1 Loaded 12 chid ids of type : 3726 Number RLEs to save : 8424 TO DO : save crop sub photo not yet done ! save time : 1.2620537281036377 nb_obj : 9 nb_hashtags : 4 time to prepare the origin masks : 6.450092554092407 time for calcul the mask position with numpy : 0.8944497108459473 nb_pixel_total : 6881609 time to create 1 rle with new method : 1.3825623989105225 time for calcul the mask position with numpy : 0.020675182342529297 nb_pixel_total : 11717 time to create 1 rle with old method : 0.013266324996948242 time for calcul the mask position with numpy : 0.020998001098632812 nb_pixel_total : 13856 time to create 1 rle with old method : 0.01642775535583496 time for calcul the mask position with numpy : 0.021160125732421875 nb_pixel_total : 1854 time to create 1 rle with old method : 0.0021071434020996094 time for calcul the mask position with numpy : 0.023126840591430664 nb_pixel_total : 24548 time to create 1 rle with old method : 0.027832508087158203 time for calcul the mask position with numpy : 0.02314019203186035 nb_pixel_total : 13608 time to create 1 rle with old method : 0.01567220687866211 time for calcul the mask position with numpy : 0.02245163917541504 nb_pixel_total : 57545 time to create 1 rle with old method : 0.06373023986816406 time for calcul the mask position with numpy : 0.02299046516418457 nb_pixel_total : 21257 time to create 1 rle with old method : 0.02447199821472168 time for calcul the mask position with numpy : 0.02193427085876465 nb_pixel_total : 18052 time to create 1 rle with old method : 0.020084857940673828 time for calcul the mask position with numpy : 0.02314162254333496 nb_pixel_total : 6194 time to create 1 rle with old method : 0.0070514678955078125 create new chi : 2.704585075378418 time to delete rle : 0.0005979537963867188 batch 1 Loaded 10 chid ids of type : 3726 Number RLEs to save : 5264 TO DO : save crop sub photo not yet done ! save time : 0.38257479667663574 nb_obj : 7 nb_hashtags : 4 time to prepare the origin masks : 5.985692262649536 time for calcul the mask position with numpy : 0.4520139694213867 nb_pixel_total : 6753112 time to create 1 rle with new method : 1.2986345291137695 time for calcul the mask position with numpy : 0.021866321563720703 nb_pixel_total : 20190 time to create 1 rle with old method : 0.025865793228149414 time for calcul the mask position with numpy : 0.024915218353271484 nb_pixel_total : 180318 time to create 1 rle with new method : 1.2085554599761963 time for calcul the mask position with numpy : 0.02071690559387207 nb_pixel_total : 7911 time to create 1 rle with old method : 0.009417533874511719 time for calcul the mask position with numpy : 0.022281169891357422 nb_pixel_total : 1691 time to create 1 rle with old method : 0.001970529556274414 time for calcul the mask position with numpy : 0.022188425064086914 nb_pixel_total : 41906 time to create 1 rle with old method : 0.04846334457397461 time for calcul the mask position with numpy : 0.023009777069091797 nb_pixel_total : 3812 time to create 1 rle with old method : 0.004390239715576172 time for calcul the mask position with numpy : 0.022578954696655273 nb_pixel_total : 41300 time to create 1 rle with old method : 0.05237984657287598 create new chi : 3.3213324546813965 time to delete rle : 0.0006079673767089844 batch 1 Loaded 8 chid ids of type : 3726 Number RLEs to save : 5546 TO DO : save crop sub photo not yet done ! save time : 0.370314359664917 nb_obj : 16 nb_hashtags : 4 time to prepare the origin masks : 13.259089469909668 time for calcul the mask position with numpy : 0.620919942855835 nb_pixel_total : 6383996 time to create 1 rle with new method : 1.0231671333312988 time for calcul the mask position with numpy : 0.04889202117919922 nb_pixel_total : 165978 time to create 1 rle with new method : 0.8388183116912842 time for calcul the mask position with numpy : 0.03486061096191406 nb_pixel_total : 13680 time to create 1 rle with old method : 0.015558481216430664 time for calcul the mask position with numpy : 0.034773826599121094 nb_pixel_total : 17836 time to create 1 rle with old method : 0.02059149742126465 time for calcul the mask position with numpy : 0.03564858436584473 nb_pixel_total : 23477 time to create 1 rle with old method : 0.02715897560119629 time for calcul the mask position with numpy : 0.03604435920715332 nb_pixel_total : 57795 time to create 1 rle with old method : 0.06571269035339355 time for calcul the mask position with numpy : 0.03469276428222656 nb_pixel_total : 2908 time to create 1 rle with old method : 0.0033385753631591797 time for calcul the mask position with numpy : 0.03473782539367676 nb_pixel_total : 50232 time to create 1 rle with old method : 0.056252241134643555 time for calcul the mask position with numpy : 0.0391538143157959 nb_pixel_total : 50132 time to create 1 rle with old method : 0.05797886848449707 time for calcul the mask position with numpy : 0.03479313850402832 nb_pixel_total : 25086 time to create 1 rle with old method : 0.02866530418395996 time for calcul the mask position with numpy : 0.03914022445678711 nb_pixel_total : 50340 time to create 1 rle with old method : 0.05643749237060547 time for calcul the mask position with numpy : 0.03476381301879883 nb_pixel_total : 18947 time to create 1 rle with old method : 0.021013736724853516 time for calcul the mask position with numpy : 0.038051605224609375 nb_pixel_total : 6535 time to create 1 rle with old method : 0.010631799697875977 time for calcul the mask position with numpy : 0.040287017822265625 nb_pixel_total : 53376 time to create 1 rle with old method : 0.06170988082885742 time for calcul the mask position with numpy : 0.03311276435852051 nb_pixel_total : 17084 time to create 1 rle with old method : 0.01937389373779297 time for calcul the mask position with numpy : 0.033750295639038086 nb_pixel_total : 51280 time to create 1 rle with old method : 0.07953405380249023 time for calcul the mask position with numpy : 0.030751705169677734 nb_pixel_total : 61558 time to create 1 rle with old method : 0.07023978233337402 create new chi : 3.7258517742156982 time to delete rle : 0.0013096332550048828 batch 1 Loaded 17 chid ids of type : 3726 Number RLEs to save : 9816 TO DO : save crop sub photo not yet done ! save time : 0.585517168045044 nb_obj : 6 nb_hashtags : 4 time to prepare the origin masks : 6.74592924118042 time for calcul the mask position with numpy : 0.2355937957763672 nb_pixel_total : 6099530 time to create 1 rle with new method : 0.3711881637573242 time for calcul the mask position with numpy : 0.02727818489074707 nb_pixel_total : 144036 time to create 1 rle with old method : 0.15998220443725586 time for calcul the mask position with numpy : 0.02599787712097168 nb_pixel_total : 34954 time to create 1 rle with old method : 0.03884482383728027 time for calcul the mask position with numpy : 0.027390718460083008 nb_pixel_total : 321641 time to create 1 rle with new method : 0.5371270179748535 time for calcul the mask position with numpy : 0.024166584014892578 nb_pixel_total : 3870 time to create 1 rle with old method : 0.0042858123779296875 time for calcul the mask position with numpy : 0.02585911750793457 nb_pixel_total : 404292 time to create 1 rle with new method : 0.7079010009765625 time for calcul the mask position with numpy : 0.02216482162475586 nb_pixel_total : 41917 time to create 1 rle with old method : 0.04575777053833008 create new chi : 2.337308645248413 time to delete rle : 0.0007967948913574219 batch 1 Loaded 7 chid ids of type : 3726 Number RLEs to save : 6580 TO DO : save crop sub photo not yet done ! save time : 0.4256868362426758 nb_obj : 13 nb_hashtags : 3 time to prepare the origin masks : 9.784108877182007 time for calcul the mask position with numpy : 0.395336389541626 nb_pixel_total : 6476554 time to create 1 rle with new method : 0.6250064373016357 time for calcul the mask position with numpy : 0.02309250831604004 nb_pixel_total : 154912 time to create 1 rle with new method : 0.6340875625610352 time for calcul the mask position with numpy : 0.023758649826049805 nb_pixel_total : 22283 time to create 1 rle with old method : 0.02514505386352539 time for calcul the mask position with numpy : 0.0210878849029541 nb_pixel_total : 1177 time to create 1 rle with old method : 0.0012700557708740234 time for calcul the mask position with numpy : 0.02173590660095215 nb_pixel_total : 5781 time to create 1 rle with old method : 0.006163120269775391 time for calcul the mask position with numpy : 0.02047252655029297 nb_pixel_total : 1958 time to create 1 rle with old method : 0.0025877952575683594 time for calcul the mask position with numpy : 0.02169942855834961 nb_pixel_total : 5398 time to create 1 rle with old method : 0.006390571594238281 time for calcul the mask position with numpy : 0.025421857833862305 nb_pixel_total : 56438 time to create 1 rle with old method : 0.062258005142211914 time for calcul the mask position with numpy : 0.022212743759155273 nb_pixel_total : 2925 time to create 1 rle with old method : 0.003474712371826172 time for calcul the mask position with numpy : 0.022243499755859375 nb_pixel_total : 72518 time to create 1 rle with old method : 0.07923507690429688 time for calcul the mask position with numpy : 0.021694421768188477 nb_pixel_total : 15463 time to create 1 rle with old method : 0.01720285415649414 time for calcul the mask position with numpy : 0.021090984344482422 nb_pixel_total : 4296 time to create 1 rle with old method : 0.004667043685913086 time for calcul the mask position with numpy : 0.02094125747680664 nb_pixel_total : 210750 time to create 1 rle with new method : 0.3470752239227295 time for calcul the mask position with numpy : 0.02204108238220215 nb_pixel_total : 19787 time to create 1 rle with old method : 0.023221492767333984 create new chi : 2.8387885093688965 time to delete rle : 0.0009930133819580078 batch 1 Loaded 14 chid ids of type : 3726 Number RLEs to save : 8933 TO DO : save crop sub photo not yet done ! save time : 0.5468897819519043 nb_obj : 8 nb_hashtags : 5 time to prepare the origin masks : 6.04571533203125 time for calcul the mask position with numpy : 0.49128055572509766 nb_pixel_total : 6588113 time to create 1 rle with new method : 0.49100661277770996 time for calcul the mask position with numpy : 0.02085256576538086 nb_pixel_total : 177332 time to create 1 rle with new method : 0.3917374610900879 time for calcul the mask position with numpy : 0.024536609649658203 nb_pixel_total : 28629 time to create 1 rle with old method : 0.038454532623291016 time for calcul the mask position with numpy : 0.026180744171142578 nb_pixel_total : 35013 time to create 1 rle with old method : 0.04621696472167969 time for calcul the mask position with numpy : 0.022773265838623047 nb_pixel_total : 4663 time to create 1 rle with old method : 0.006045818328857422 time for calcul the mask position with numpy : 0.02400946617126465 nb_pixel_total : 60856 time to create 1 rle with old method : 0.06864356994628906 time for calcul the mask position with numpy : 0.03136754035949707 nb_pixel_total : 20956 time to create 1 rle with old method : 0.023694515228271484 time for calcul the mask position with numpy : 0.027072906494140625 nb_pixel_total : 80351 time to create 1 rle with old method : 0.08886003494262695 time for calcul the mask position with numpy : 0.040583133697509766 nb_pixel_total : 54327 time to create 1 rle with old method : 0.06886529922485352 create new chi : 1.9981474876403809 time to delete rle : 0.0007114410400390625 batch 1 Loaded 9 chid ids of type : 3726 Number RLEs to save : 8296 TO DO : save crop sub photo not yet done ! save time : 0.5231053829193115 map_output_result : {1338816296: (0.0, 'Should be the crop_list due to order', 0), 1338816279: (0.0, 'Should be the crop_list due to order', 0), 1338816059: (0.0, 'Should be the crop_list due to order', 0), 1338816057: (0.0, 'Should be the crop_list due to order', 0), 1338816040: (0.0, 'Should be the crop_list due to order', 0), 1338816037: (0.0, 'Should be the crop_list due to order', 0), 1338816034: (0.0, 'Should be the crop_list due to order', 0), 1338815780: (0.0, 'Should be the crop_list due to order', 0), 1338815771: (0.0, 'Should be the crop_list due to order', 0), 1338815733: (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 [1338816296, 1338816279, 1338816059, 1338816057, 1338816040, 1338816037, 1338816034, 1338815780, 1338815771, 1338815733] Looping around the photos to save general results len do output : 10 /1338816296.Didn't retrieve data . /1338816279.Didn't retrieve data . /1338816059.Didn't retrieve data . /1338816057.Didn't retrieve data . /1338816040.Didn't retrieve data . /1338816037.Didn't retrieve data . /1338816034.Didn't retrieve data . /1338815780.Didn't retrieve data . /1338815771.Didn't retrieve data . /1338815733.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, '2605254') ('3459', '20729335', '1338816296', None, None, None, None, None, '2605254') ('3459', None, None, None, None, None, None, None, '2605254') ('3459', '20729335', '1338816279', None, None, None, None, None, '2605254') ('3459', None, None, None, None, None, None, None, '2605254') ('3459', '20729335', '1338816059', None, None, None, None, None, '2605254') ('3459', None, None, None, None, None, None, None, '2605254') ('3459', '20729335', '1338816057', None, None, None, None, None, '2605254') ('3459', None, None, None, None, None, None, None, '2605254') ('3459', '20729335', '1338816040', None, None, None, None, None, '2605254') ('3459', None, None, None, None, None, None, None, '2605254') ('3459', '20729335', '1338816037', None, None, None, None, None, '2605254') ('3459', None, None, None, None, None, None, None, '2605254') ('3459', '20729335', '1338816034', None, None, None, None, None, '2605254') ('3459', None, None, None, None, None, None, None, '2605254') ('3459', '20729335', '1338815780', None, None, None, None, None, '2605254') ('3459', None, None, None, None, None, None, None, '2605254') ('3459', '20729335', '1338815771', None, None, None, None, None, '2605254') ('3459', None, None, None, None, None, None, None, '2605254') ('3459', '20729335', '1338815733', None, None, None, None, None, '2605254') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 time used for this insertion : 0.014101505279541016 save_final save missing photos in datou_result : time spend for datou_step_exec : 129.35098838806152 time spend to save output : 0.014539241790771484 total time spend for step 5 : 129.3655276298523 step6:crop_condition Fri Feb 21 16:56:10 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 108 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 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 ! Next one ! Next one ! Next one ! Next one ! Next one ! 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 ! About to upload 7 photos upload in portfolio : 4869462 init cache_photo without model_param we have 7 photo to upload uploaded to storage server : ovh folder_temporaire : temp/1740153374_3640696 we have uploaded 7 photos in the portfolio 4869462 time of upload the photos Elapsed time : 2.098726511001587 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 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 ! 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/1740153378_3640696 we have uploaded 2 photos in the portfolio 4869462 time of upload the photos Elapsed time : 1.580399513244629 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 ! Next one ! Next one ! Next one ! Next one ! map_result returned by crop_photo_return_map_crop : length : 5 About to insert : list_path_to_insert length 5 new photo from crops ! About to upload 5 photos upload in portfolio : 4869462 init cache_photo without model_param we have 5 photo to upload uploaded to storage server : ovh folder_temporaire : temp/1740153382_3640696 we have uploaded 5 photos in the portfolio 4869462 time of upload the photos Elapsed time : 2.081151008605957 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 ! Next one ! Next one ! map_result returned by crop_photo_return_map_crop : length : 4 About to insert : list_path_to_insert length 4 new photo from crops ! About to upload 4 photos upload in portfolio : 4869462 init cache_photo without model_param we have 4 photo to upload uploaded to storage server : ovh folder_temporaire : temp/1740153387_3640696 we have uploaded 4 photos in the portfolio 4869462 time of upload the photos Elapsed time : 1.7851731777191162 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 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/1740153391_3640696 we have uploaded 1 photos in the portfolio 4869462 time of upload the photos Elapsed time : 0.5075211524963379 we have finished the crop for the class : kraft 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 [1338816296, 1338816279, 1338816059, 1338816057, 1338816040, 1338816037, 1338816034, 1338815780, 1338815771, 1338815733] Looping around the photos to save general results len do output : 19 /1338859844Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1338859845Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1338859846Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1338859847Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1338859848Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1338859849Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1338859850Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1338859854Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1338859855Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1338859859Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1338859860Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1338859861Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1338859862Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1338859863Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1338859866Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1338859867Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1338859868Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1338859869Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1338859870Didn'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, '2605254') ('3459', '20729335', '1338816296', None, None, None, None, None, '2605254') ('3459', None, None, None, None, None, None, None, '2605254') ('3459', '20729335', '1338816279', None, None, None, None, None, '2605254') ('3459', None, None, None, None, None, None, None, '2605254') ('3459', '20729335', '1338816059', None, None, None, None, None, '2605254') ('3459', None, None, None, None, None, None, None, '2605254') ('3459', '20729335', '1338816057', None, None, None, None, None, '2605254') ('3459', None, None, None, None, None, None, None, '2605254') ('3459', '20729335', '1338816040', None, None, None, None, None, '2605254') ('3459', None, None, None, None, None, None, None, '2605254') ('3459', '20729335', '1338816037', None, None, None, None, None, '2605254') ('3459', None, None, None, None, None, None, None, '2605254') ('3459', '20729335', '1338816034', None, None, None, None, None, '2605254') ('3459', None, None, None, None, None, None, None, '2605254') ('3459', '20729335', '1338815780', None, None, None, None, None, '2605254') ('3459', None, None, None, None, None, None, None, '2605254') ('3459', '20729335', '1338815771', None, None, None, None, None, '2605254') ('3459', None, None, None, None, None, None, None, '2605254') ('3459', '20729335', '1338815733', None, None, None, None, None, '2605254') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 67 time used for this insertion : 0.030338048934936523 save_final save missing photos in datou_result : time spend for datou_step_exec : 21.754683256149292 time spend to save output : 0.0312042236328125 total time spend for step 6 : 21.785887479782104 step7:ventilate_hashtags_in_portfolio Fri Feb 21 16:56:32 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 : 20729335 get user id for portfolio 20729335 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`=20729335 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','Carton_gris','autre_refus','metal','cartonnette','papier','plastique','Carton_brun','environnement','Teint_Dans_La_Masse','kraft','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`=20729335 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','Carton_gris','autre_refus','metal','cartonnette','papier','plastique','Carton_brun','environnement','Teint_Dans_La_Masse','kraft','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`=20729335 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','Carton_gris','autre_refus','metal','cartonnette','papier','plastique','Carton_brun','environnement','Teint_Dans_La_Masse','kraft','flou')) AND mptpi.`min_score`=0.5 To do lien utilise dans velours : https://www.fotonower.com/velours/20729417,20729418,20729419,20729420,20729421,20729422,20729423,20729424,20729425,20729426,20729427,20729428?tags=mal_croppe,Carton_gris,autre_refus,metal,cartonnette,papier,plastique,Carton_brun,environnement,Teint_Dans_La_Masse,kraft,flou Inside saveOutput : final : False verbose : 0 saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1338816296, 1338816279, 1338816059, 1338816057, 1338816040, 1338816037, 1338816034, 1338815780, 1338815771, 1338815733] Looping around the photos to save general results len do output : 1 /20729335. 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, '2605254') ('3459', '20729335', '1338816296', None, None, None, None, None, '2605254') ('3459', None, None, None, None, None, None, None, '2605254') ('3459', '20729335', '1338816279', None, None, None, None, None, '2605254') ('3459', None, None, None, None, None, None, None, '2605254') ('3459', '20729335', '1338816059', None, None, None, None, None, '2605254') ('3459', None, None, None, None, None, None, None, '2605254') ('3459', '20729335', '1338816057', None, None, None, None, None, '2605254') ('3459', None, None, None, None, None, None, None, '2605254') ('3459', '20729335', '1338816040', None, None, None, None, None, '2605254') ('3459', None, None, None, None, None, None, None, '2605254') ('3459', '20729335', '1338816037', None, None, None, None, None, '2605254') ('3459', None, None, None, None, None, None, None, '2605254') ('3459', '20729335', '1338816034', None, None, None, None, None, '2605254') ('3459', None, None, None, None, None, None, None, '2605254') ('3459', '20729335', '1338815780', None, None, None, None, None, '2605254') ('3459', None, None, None, None, None, None, None, '2605254') ('3459', '20729335', '1338815771', None, None, None, None, None, '2605254') ('3459', None, None, None, None, None, None, None, '2605254') ('3459', '20729335', '1338815733', None, None, None, None, None, '2605254') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 time used for this insertion : 0.014423847198486328 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.724304437637329 time spend to save output : 0.014848709106445312 total time spend for step 7 : 1.7391531467437744 step8:final Fri Feb 21 16:56: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 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 : {1338816296: ('0.05800265082455208',), 1338816279: ('0.05800265082455208',), 1338816059: ('0.05800265082455208',), 1338816057: ('0.05800265082455208',), 1338816040: ('0.05800265082455208',), 1338816037: ('0.05800265082455208',), 1338816034: ('0.05800265082455208',), 1338815780: ('0.05800265082455208',), 1338815771: ('0.05800265082455208',), 1338815733: ('0.05800265082455208',)} new output for save of step final : {1338816296: ('0.05800265082455208',), 1338816279: ('0.05800265082455208',), 1338816059: ('0.05800265082455208',), 1338816057: ('0.05800265082455208',), 1338816040: ('0.05800265082455208',), 1338816037: ('0.05800265082455208',), 1338816034: ('0.05800265082455208',), 1338815780: ('0.05800265082455208',), 1338815771: ('0.05800265082455208',), 1338815733: ('0.05800265082455208',)} [1338816296, 1338816279, 1338816059, 1338816057, 1338816040, 1338816037, 1338816034, 1338815780, 1338815771, 1338815733] Looping around the photos to save general results len do output : 10 /1338816296.Didn't retrieve data . /1338816279.Didn't retrieve data . /1338816059.Didn't retrieve data . /1338816057.Didn't retrieve data . /1338816040.Didn't retrieve data . /1338816037.Didn't retrieve data . /1338816034.Didn't retrieve data . /1338815780.Didn't retrieve data . /1338815771.Didn't retrieve data . /1338815733.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, '2605254') ('3459', '20729335', '1338816296', None, None, None, None, None, '2605254') ('3459', None, None, None, None, None, None, None, '2605254') ('3459', '20729335', '1338816279', None, None, None, None, None, '2605254') ('3459', None, None, None, None, None, None, None, '2605254') ('3459', '20729335', '1338816059', None, None, None, None, None, '2605254') ('3459', None, None, None, None, None, None, None, '2605254') ('3459', '20729335', '1338816057', None, None, None, None, None, '2605254') ('3459', None, None, None, None, None, None, None, '2605254') ('3459', '20729335', '1338816040', None, None, None, None, None, '2605254') ('3459', None, None, None, None, None, None, None, '2605254') ('3459', '20729335', '1338816037', None, None, None, None, None, '2605254') ('3459', None, None, None, None, None, None, None, '2605254') ('3459', '20729335', '1338816034', None, None, None, None, None, '2605254') ('3459', None, None, None, None, None, None, None, '2605254') ('3459', '20729335', '1338815780', None, None, None, None, None, '2605254') ('3459', None, None, None, None, None, None, None, '2605254') ('3459', '20729335', '1338815771', None, None, None, None, None, '2605254') ('3459', None, None, None, None, None, None, None, '2605254') ('3459', '20729335', '1338815733', None, None, None, None, None, '2605254') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 time used for this insertion : 0.013724565505981445 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.1047811508178711 time spend to save output : 0.01451253890991211 total time spend for step 8 : 0.1192936897277832 step9:velours_tree Fri Feb 21 16:56: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 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.032247304916381836 time spend to save output : 4.482269287109375e-05 total time spend for step 9 : 0.03229212760925293 step10:send_mail_cod Fri Feb 21 16:56: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 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_P20729335_21-02-2025_16_56_33.pdf 20729417 imagette207294171740153393 20729419 change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .imagette207294191740153393 20729420 imagette207294201740153394 20729421 change filename to text .change filename to text .imagette207294211740153394 20729423 change filename to text .change filename to text .change filename to text .change filename to text .imagette207294231740153394 20729427 change filename to text .imagette207294271740153394 20729428 imagette207294281740153394 20729418 imagette207294181740153394 20729424 change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .imagette207294241740153394 20729426 imagette207294261740153395 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20729335 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20729417,20729418,20729419,20729420,20729421,20729422,20729423,20729424,20729425,20729426,20729427,20729428?tags=mal_croppe,Carton_gris,autre_refus,metal,cartonnette,papier,plastique,Carton_brun,environnement,Teint_Dans_La_Masse,kraft,flou your option no_mail is active, we will not send the real mail to your client args[1338816296] : ('0.05800265082455208',) no score found for photo 1338816296 We are sending mail with results at report@fotonower.com args[1338816279] : ('0.05800265082455208',) no score found for photo 1338816279 We are sending mail with results at report@fotonower.com args[1338816059] : ('0.05800265082455208',) no score found for photo 1338816059 We are sending mail with results at report@fotonower.com args[1338816057] : ('0.05800265082455208',) no score found for photo 1338816057 We are sending mail with results at report@fotonower.com args[1338816040] : ('0.05800265082455208',) no score found for photo 1338816040 We are sending mail with results at report@fotonower.com args[1338816037] : ('0.05800265082455208',) no score found for photo 1338816037 We are sending mail with results at report@fotonower.com args[1338816034] : ('0.05800265082455208',) no score found for photo 1338816034 We are sending mail with results at report@fotonower.com args[1338815780] : ('0.05800265082455208',) no score found for photo 1338815780 We are sending mail with results at report@fotonower.com args[1338815771] : ('0.05800265082455208',) no score found for photo 1338815771 We are sending mail with results at report@fotonower.com args[1338815733] : ('0.05800265082455208',) no score found for photo 1338815733 We are sending mail with results at report@fotonower.com refus_total : 0.05800265082455208 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=20729335 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 1000 SELECT photo_id, url FROM MTRBack.photos ph WHERE photo_id IN (1338815715,1338815731,1338815733,1338815771,1338815780,1338816034,1338816037,1338816040,1338816057,1338816059,1338816279,1338816296) Found this number of photos: 12 begin to download photo : 1338815715 begin to download photo : 1338815771 begin to download photo : 1338816037 begin to download photo : 1338816059 download finish for photo 1338816037 begin to download photo : 1338816040 download finish for photo 1338815771 begin to download photo : 1338815780 download finish for photo 1338816059 begin to download photo : 1338816279 download finish for photo 1338815715 begin to download photo : 1338815731 download finish for photo 1338816040 begin to download photo : 1338816057 download finish for photo 1338816279 begin to download photo : 1338816296 download finish for photo 1338815780 begin to download photo : 1338816034 download finish for photo 1338815731 begin to download photo : 1338815733 download finish for photo 1338816057 download finish for photo 1338816296 download finish for photo 1338816034 download finish for photo 1338815733 start upload file to ovh https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20729335_21-02-2025_16_56_33.pdf results_Auto_P20729335_21-02-2025_16_56_33.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20729335_21-02-2025_16_56_33.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','20729335','results_Auto_P20729335_21-02-2025_16_56_33.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20729335_21-02-2025_16_56_33.pdf','pdf','','0.51','0.05800265082455208') Inside saveOutput : final : False verbose : 0 saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1338816296, 1338816279, 1338816059, 1338816057, 1338816040, 1338816037, 1338816034, 1338815780, 1338815771, 1338815733] 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, '2605254') ('3459', '20729335', '1338816296', None, None, None, None, None, '2605254') ('3459', None, None, None, None, None, None, None, '2605254') ('3459', '20729335', '1338816279', None, None, None, None, None, '2605254') ('3459', None, None, None, None, None, None, None, '2605254') ('3459', '20729335', '1338816059', None, None, None, None, None, '2605254') ('3459', None, None, None, None, None, None, None, '2605254') ('3459', '20729335', '1338816057', None, None, None, None, None, '2605254') ('3459', None, None, None, None, None, None, None, '2605254') ('3459', '20729335', '1338816040', None, None, None, None, None, '2605254') ('3459', None, None, None, None, None, None, None, '2605254') ('3459', '20729335', '1338816037', None, None, None, None, None, '2605254') ('3459', None, None, None, None, None, None, None, '2605254') ('3459', '20729335', '1338816034', None, None, None, None, None, '2605254') ('3459', None, None, None, None, None, None, None, '2605254') ('3459', '20729335', '1338815780', None, None, None, None, None, '2605254') ('3459', None, None, None, None, None, None, None, '2605254') ('3459', '20729335', '1338815771', None, None, None, None, None, '2605254') ('3459', None, None, None, None, None, None, None, '2605254') ('3459', '20729335', '1338815733', None, None, None, None, None, '2605254') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 time used for this insertion : 0.016886234283447266 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.119629859924316 time spend to save output : 0.01715993881225586 total time spend for step 10 : 4.136789798736572 step11:split_time_score Fri Feb 21 16:56:38 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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'}] (('12', 12),) ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 21022025 20729335 Nombre de photos uploadées : 12 / 23040 (0%) 21022025 20729335 Nombre de photos taguées (types de déchets): 0 / 12 (0%) 21022025 20729335 Nombre de photos taguées (volume) : 0 / 12 (0%) elapsed_time : load_data_split_time_score 3.5762786865234375e-06 elapsed_time : order_list_meta_photo_and_scores 9.775161743164062e-06 ???????????? elapsed_time : fill_and_build_computed_from_old_data 0.0007750988006591797 elapsed_time : insert_dashboard_record_day_entry 0.024930477142333984 We will return after consolidate but for now we need the day, how to get it, for now depending on the previous heavy steps find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20729317 order by id desc limit 1 Qualite : 0.07296852712916194 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20716831_21-02-2025_14_17_42.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20716831 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 ! 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 11500 mask_detect is not consistent : 3 used against 2 in the step definition ! WARNING : number of outputs for step 11508 brightness is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 11509 blur_detection is not consistent : 2 used against 1 in the step definition ! WARNING : number of inputs for step 11504 crop_condition is not consistent : 3 used against 2 in the step definition ! Step 11504 crop_condition have less outputs used (2) than in the step definition (3) : some outputs may be not used ! Step 11507 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 11507 merge_mask_thcl_custom is not consistent : 3 used against 2 in the step definition ! WARNING : number of inputs for step 11501 rle_unique_nms_with_priority is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 11501 rle_unique_nms_with_priority is not consistent : 2 used against 1 in the step definition ! Step 11576 crop_condition have less inputs used (1) than in the step definition (2) : maybe we manage optionnal inputs ! WARNING : number of outputs for step 11576 crop_condition is not consistent : 4 used against 3 in the step definition ! WARNING : number of outputs for step 11503 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11502 final have less inputs used (2) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11502 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! Step 11511 split_time_score have less inputs used (1) than in the step definition (2) : 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 ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : type of output 1 of step 11503 doesn't seem to be define in the database( WARNING : type of input 3 of step 11502 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : type of output 2 of step 11500 doesn't seem to be define in the database( WARNING : type of input 2 of step 11504 doesn't seem to be define in the database( WARNING : output 1 of step 11500 have datatype=2 whereas input 1 of step 11507 have datatype=7 WARNING : type of output 2 of step 11507 doesn't seem to be define in the database( WARNING : type of input 1 of step 11501 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 11503 have datatype=10 whereas input 3 of step 11510 have datatype=6 WARNING : type of input 2 of step 11576 doesn't seem to be define in the database( WARNING : output 1 of step 11501 have datatype=7 whereas input 2 of step 11576 have datatype=None WARNING : type of output 3 of step 11576 doesn't seem to be define in the database( WARNING : type of input 1 of step 11503 doesn't seem to be define in the database( WARNING : output 0 of step 11503 have datatype=10 whereas input 0 of step 11582 have datatype=18 WARNING : type of input 5 of step 11510 doesn't seem to be define in the database( WARNING : output 0 of step 11582 have datatype=11 whereas input 5 of step 11510 have datatype=None WARNING : type of output 1 of step 11508 doesn't seem to be define in the database( WARNING : type of input 3 of step 11504 doesn't seem to be define in the database( WARNING : type of output 1 of step 11509 doesn't seem to be define in the database( WARNING : type of input 3 of step 11504 doesn't seem to be define in the database( WARNING : output 0 of step 11507 have datatype=1 whereas input 0 of step 11501 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`=20716831 AND mptpi.`type`=4207 To do Qualite : 0.9165530593430149 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20716832_21-02-2025_13_23_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20716832 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 ! 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 11500 mask_detect is not consistent : 3 used against 2 in the step definition ! WARNING : number of outputs for step 11508 brightness is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 11509 blur_detection is not consistent : 2 used against 1 in the step definition ! WARNING : number of inputs for step 11504 crop_condition is not consistent : 3 used against 2 in the step definition ! Step 11504 crop_condition have less outputs used (2) than in the step definition (3) : some outputs may be not used ! Step 11507 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 11507 merge_mask_thcl_custom is not consistent : 3 used against 2 in the step definition ! WARNING : number of inputs for step 11501 rle_unique_nms_with_priority is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 11501 rle_unique_nms_with_priority is not consistent : 2 used against 1 in the step definition ! Step 11576 crop_condition have less inputs used (1) than in the step definition (2) : maybe we manage optionnal inputs ! WARNING : number of outputs for step 11576 crop_condition is not consistent : 4 used against 3 in the step definition ! WARNING : number of outputs for step 11503 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11502 final have less inputs used (2) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11502 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! Step 11511 split_time_score have less inputs used (1) than in the step definition (2) : 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 ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : type of output 1 of step 11503 doesn't seem to be define in the database( WARNING : type of input 3 of step 11502 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : type of output 2 of step 11500 doesn't seem to be define in the database( WARNING : type of input 2 of step 11504 doesn't seem to be define in the database( WARNING : output 1 of step 11500 have datatype=2 whereas input 1 of step 11507 have datatype=7 WARNING : type of output 2 of step 11507 doesn't seem to be define in the database( WARNING : type of input 1 of step 11501 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 11503 have datatype=10 whereas input 3 of step 11510 have datatype=6 WARNING : type of input 2 of step 11576 doesn't seem to be define in the database( WARNING : output 1 of step 11501 have datatype=7 whereas input 2 of step 11576 have datatype=None WARNING : type of output 3 of step 11576 doesn't seem to be define in the database( WARNING : type of input 1 of step 11503 doesn't seem to be define in the database( WARNING : output 0 of step 11503 have datatype=10 whereas input 0 of step 11582 have datatype=18 WARNING : type of input 5 of step 11510 doesn't seem to be define in the database( WARNING : output 0 of step 11582 have datatype=11 whereas input 5 of step 11510 have datatype=None WARNING : type of output 1 of step 11508 doesn't seem to be define in the database( WARNING : type of input 3 of step 11504 doesn't seem to be define in the database( WARNING : type of output 1 of step 11509 doesn't seem to be define in the database( WARNING : type of input 3 of step 11504 doesn't seem to be define in the database( WARNING : output 0 of step 11507 have datatype=1 whereas input 0 of step 11501 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`=20716832 AND mptpi.`type`=4207 To do Qualite : 0.09732241897576013 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20716834_21-02-2025_13_15_39.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20716834 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 ! 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 11500 mask_detect is not consistent : 3 used against 2 in the step definition ! WARNING : number of outputs for step 11508 brightness is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 11509 blur_detection is not consistent : 2 used against 1 in the step definition ! WARNING : number of inputs for step 11504 crop_condition is not consistent : 3 used against 2 in the step definition ! Step 11504 crop_condition have less outputs used (2) than in the step definition (3) : some outputs may be not used ! Step 11507 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 11507 merge_mask_thcl_custom is not consistent : 3 used against 2 in the step definition ! WARNING : number of inputs for step 11501 rle_unique_nms_with_priority is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 11501 rle_unique_nms_with_priority is not consistent : 2 used against 1 in the step definition ! Step 11576 crop_condition have less inputs used (1) than in the step definition (2) : maybe we manage optionnal inputs ! WARNING : number of outputs for step 11576 crop_condition is not consistent : 4 used against 3 in the step definition ! WARNING : number of outputs for step 11503 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11502 final have less inputs used (2) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11502 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! Step 11511 split_time_score have less inputs used (1) than in the step definition (2) : 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 ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : type of output 1 of step 11503 doesn't seem to be define in the database( WARNING : type of input 3 of step 11502 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : type of output 2 of step 11500 doesn't seem to be define in the database( WARNING : type of input 2 of step 11504 doesn't seem to be define in the database( WARNING : output 1 of step 11500 have datatype=2 whereas input 1 of step 11507 have datatype=7 WARNING : type of output 2 of step 11507 doesn't seem to be define in the database( WARNING : type of input 1 of step 11501 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 11503 have datatype=10 whereas input 3 of step 11510 have datatype=6 WARNING : type of input 2 of step 11576 doesn't seem to be define in the database( WARNING : output 1 of step 11501 have datatype=7 whereas input 2 of step 11576 have datatype=None WARNING : type of output 3 of step 11576 doesn't seem to be define in the database( WARNING : type of input 1 of step 11503 doesn't seem to be define in the database( WARNING : output 0 of step 11503 have datatype=10 whereas input 0 of step 11582 have datatype=18 WARNING : type of input 5 of step 11510 doesn't seem to be define in the database( WARNING : output 0 of step 11582 have datatype=11 whereas input 5 of step 11510 have datatype=None WARNING : type of output 1 of step 11508 doesn't seem to be define in the database( WARNING : type of input 3 of step 11504 doesn't seem to be define in the database( WARNING : type of output 1 of step 11509 doesn't seem to be define in the database( WARNING : type of input 3 of step 11504 doesn't seem to be define in the database( WARNING : output 0 of step 11507 have datatype=1 whereas input 0 of step 11501 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`=20716834 AND mptpi.`type`=4207 To do Qualite : 0.06532980718531545 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20719966_21-02-2025_16_13_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20719966 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 ! 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 11500 mask_detect is not consistent : 3 used against 2 in the step definition ! WARNING : number of outputs for step 11508 brightness is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 11509 blur_detection is not consistent : 2 used against 1 in the step definition ! WARNING : number of inputs for step 11504 crop_condition is not consistent : 3 used against 2 in the step definition ! Step 11504 crop_condition have less outputs used (2) than in the step definition (3) : some outputs may be not used ! Step 11507 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 11507 merge_mask_thcl_custom is not consistent : 3 used against 2 in the step definition ! WARNING : number of inputs for step 11501 rle_unique_nms_with_priority is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 11501 rle_unique_nms_with_priority is not consistent : 2 used against 1 in the step definition ! Step 11576 crop_condition have less inputs used (1) than in the step definition (2) : maybe we manage optionnal inputs ! WARNING : number of outputs for step 11576 crop_condition is not consistent : 4 used against 3 in the step definition ! WARNING : number of outputs for step 11503 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11502 final have less inputs used (2) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11502 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! Step 11511 split_time_score have less inputs used (1) than in the step definition (2) : 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 ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : type of output 1 of step 11503 doesn't seem to be define in the database( WARNING : type of input 3 of step 11502 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : type of output 2 of step 11500 doesn't seem to be define in the database( WARNING : type of input 2 of step 11504 doesn't seem to be define in the database( WARNING : output 1 of step 11500 have datatype=2 whereas input 1 of step 11507 have datatype=7 WARNING : type of output 2 of step 11507 doesn't seem to be define in the database( WARNING : type of input 1 of step 11501 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 11503 have datatype=10 whereas input 3 of step 11510 have datatype=6 WARNING : type of input 2 of step 11576 doesn't seem to be define in the database( WARNING : output 1 of step 11501 have datatype=7 whereas input 2 of step 11576 have datatype=None WARNING : type of output 3 of step 11576 doesn't seem to be define in the database( WARNING : type of input 1 of step 11503 doesn't seem to be define in the database( WARNING : output 0 of step 11503 have datatype=10 whereas input 0 of step 11582 have datatype=18 WARNING : type of input 5 of step 11510 doesn't seem to be define in the database( WARNING : output 0 of step 11582 have datatype=11 whereas input 5 of step 11510 have datatype=None WARNING : type of output 1 of step 11508 doesn't seem to be define in the database( WARNING : type of input 3 of step 11504 doesn't seem to be define in the database( WARNING : type of output 1 of step 11509 doesn't seem to be define in the database( WARNING : type of input 3 of step 11504 doesn't seem to be define in the database( WARNING : output 0 of step 11507 have datatype=1 whereas input 0 of step 11501 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`=20719966 AND mptpi.`type`=4207 To do Qualite : 0.11564655242305645 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20719967_21-02-2025_15_05_44.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20719967 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 ! 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 11560 mask_detect is not consistent : 3 used against 2 in the step definition ! Step 11567 mask_detect have less inputs used (1) than in the step definition (2) : maybe we manage optionnal inputs ! WARNING : number of outputs for step 11567 mask_detect is not consistent : 3 used against 2 in the step definition ! WARNING : number of inputs for step 11563 crop_condition is not consistent : 4 used against 2 in the step definition ! Step 11563 crop_condition have less outputs used (2) than in the step definition (3) : some outputs may be not used ! Step 11564 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 11564 merge_mask_thcl_custom is not consistent : 4 used against 2 in the step definition ! WARNING : number of inputs for step 11565 rle_unique_nms_with_priority is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 11565 rle_unique_nms_with_priority is not consistent : 2 used against 1 in the step definition ! Step 11573 crop_condition have less inputs used (1) than in the step definition (2) : maybe we manage optionnal inputs ! WARNING : number of outputs for step 11573 crop_condition is not consistent : 4 used against 3 in the step definition ! WARNING : number of inputs for step 11568 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 11568 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11566 final have less inputs used (2) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11566 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! 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 11560 doesn't seem to be define in the database( WARNING : type of input 2 of step 11563 doesn't seem to be define in the database( WARNING : output 1 of step 11560 have datatype=2 whereas input 1 of step 11564 have datatype=7 WARNING : type of output 2 of step 11564 doesn't seem to be define in the database( WARNING : type of input 1 of step 11565 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : type of output 2 of step 11567 doesn't seem to be define in the database( WARNING : type of input 3 of step 11563 doesn't seem to be define in the database( WARNING : type of output 3 of step 11564 doesn't seem to be define in the database( WARNING : type of input 1 of step 11568 doesn't seem to be define in the database( WARNING : type of output 1 of step 11568 doesn't seem to be define in the database( WARNING : type of input 3 of step 11566 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : type of input 2 of step 11563 doesn't seem to be define in the database( WARNING : output 0 of step 11570 have datatype=6 whereas input 2 of step 11563 have datatype=None WARNING : type of input 2 of step 11563 doesn't seem to be define in the database( WARNING : output 0 of step 11569 have datatype=6 whereas input 2 of step 11563 have datatype=None WARNING : type of output 2 of step 11560 doesn't seem to be define in the database( WARNING : type of input 1 of step 11570 doesn't seem to be define in the database( WARNING : type of output 2 of step 11560 doesn't seem to be define in the database( WARNING : type of input 1 of step 11569 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 11568 have datatype=10 whereas input 3 of step 11571 have datatype=6 WARNING : type of input 2 of step 11573 doesn't seem to be define in the database( WARNING : output 1 of step 11565 have datatype=7 whereas input 2 of step 11573 have datatype=None WARNING : type of output 3 of step 11573 doesn't seem to be define in the database( WARNING : type of input 3 of step 11568 doesn't seem to be define in the database( WARNING : output 0 of step 11568 have datatype=10 whereas input 0 of step 11587 have datatype=18 WARNING : type of input 5 of step 11571 doesn't seem to be define in the database( WARNING : output 0 of step 11587 have datatype=11 whereas input 5 of step 11571 have datatype=None WARNING : output 0 of step 11564 have datatype=1 whereas input 0 of step 11565 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`=20719967 AND mptpi.`type`=3327 To do Qualite : 0.045556282188101004 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20719968_21-02-2025_12_05_49.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20719968 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 ! 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 11560 mask_detect is not consistent : 3 used against 2 in the step definition ! Step 11567 mask_detect have less inputs used (1) than in the step definition (2) : maybe we manage optionnal inputs ! WARNING : number of outputs for step 11567 mask_detect is not consistent : 3 used against 2 in the step definition ! WARNING : number of inputs for step 11563 crop_condition is not consistent : 4 used against 2 in the step definition ! Step 11563 crop_condition have less outputs used (2) than in the step definition (3) : some outputs may be not used ! Step 11564 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 11564 merge_mask_thcl_custom is not consistent : 4 used against 2 in the step definition ! WARNING : number of inputs for step 11565 rle_unique_nms_with_priority is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 11565 rle_unique_nms_with_priority is not consistent : 2 used against 1 in the step definition ! Step 11573 crop_condition have less inputs used (1) than in the step definition (2) : maybe we manage optionnal inputs ! WARNING : number of outputs for step 11573 crop_condition is not consistent : 4 used against 3 in the step definition ! WARNING : number of inputs for step 11568 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 11568 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11566 final have less inputs used (2) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11566 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! 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 11560 doesn't seem to be define in the database( WARNING : type of input 2 of step 11563 doesn't seem to be define in the database( WARNING : output 1 of step 11560 have datatype=2 whereas input 1 of step 11564 have datatype=7 WARNING : type of output 2 of step 11564 doesn't seem to be define in the database( WARNING : type of input 1 of step 11565 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : type of output 2 of step 11567 doesn't seem to be define in the database( WARNING : type of input 3 of step 11563 doesn't seem to be define in the database( WARNING : type of output 3 of step 11564 doesn't seem to be define in the database( WARNING : type of input 1 of step 11568 doesn't seem to be define in the database( WARNING : type of output 1 of step 11568 doesn't seem to be define in the database( WARNING : type of input 3 of step 11566 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : type of input 2 of step 11563 doesn't seem to be define in the database( WARNING : output 0 of step 11570 have datatype=6 whereas input 2 of step 11563 have datatype=None WARNING : type of input 2 of step 11563 doesn't seem to be define in the database( WARNING : output 0 of step 11569 have datatype=6 whereas input 2 of step 11563 have datatype=None WARNING : type of output 2 of step 11560 doesn't seem to be define in the database( WARNING : type of input 1 of step 11570 doesn't seem to be define in the database( WARNING : type of output 2 of step 11560 doesn't seem to be define in the database( WARNING : type of input 1 of step 11569 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 11568 have datatype=10 whereas input 3 of step 11571 have datatype=6 WARNING : type of input 2 of step 11573 doesn't seem to be define in the database( WARNING : output 1 of step 11565 have datatype=7 whereas input 2 of step 11573 have datatype=None WARNING : type of output 3 of step 11573 doesn't seem to be define in the database( WARNING : type of input 3 of step 11568 doesn't seem to be define in the database( WARNING : output 0 of step 11568 have datatype=10 whereas input 0 of step 11587 have datatype=18 WARNING : type of input 5 of step 11571 doesn't seem to be define in the database( WARNING : output 0 of step 11587 have datatype=11 whereas input 5 of step 11571 have datatype=None WARNING : output 0 of step 11564 have datatype=1 whereas input 0 of step 11565 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`=20719968 AND mptpi.`type`=3327 To do find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20719969 order by id desc limit 1 Qualite : 0.6610698223177789 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20719970_21-02-2025_10_02_20.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20719970 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`=20719970 AND mptpi.`type`=3726 To do find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20729318 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20729319 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20729320 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20729321 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20729322 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20729323 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20729324 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20729325 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20729326 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20729327 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20729328 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20729329 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20729330 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20729331 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20729332 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20729333 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20729334 order by id desc limit 1 Qualite : 0.05800265082455208 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20729335_21-02-2025_16_56_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20729335 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`=20729335 AND mptpi.`type`=3726 To do find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20729336 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20729337 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20729338 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20729339 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20729340 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20729341 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20729342 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20729343 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20729344 order by id desc limit 1 NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'21022025': {'nb_upload': 12, '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 [1338816296, 1338816279, 1338816059, 1338816057, 1338816040, 1338816037, 1338816034, 1338815780, 1338815771, 1338815733] Looping around the photos to save general results len do output : 1 /20729335Didn'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, '2605254') ('3459', '20729335', '1338816296', None, None, None, None, None, '2605254') ('3459', None, None, None, None, None, None, None, '2605254') ('3459', '20729335', '1338816279', None, None, None, None, None, '2605254') ('3459', None, None, None, None, None, None, None, '2605254') ('3459', '20729335', '1338816059', None, None, None, None, None, '2605254') ('3459', None, None, None, None, None, None, None, '2605254') ('3459', '20729335', '1338816057', None, None, None, None, None, '2605254') ('3459', None, None, None, None, None, None, None, '2605254') ('3459', '20729335', '1338816040', None, None, None, None, None, '2605254') ('3459', None, None, None, None, None, None, None, '2605254') ('3459', '20729335', '1338816037', None, None, None, None, None, '2605254') ('3459', None, None, None, None, None, None, None, '2605254') ('3459', '20729335', '1338816034', None, None, None, None, None, '2605254') ('3459', None, None, None, None, None, None, None, '2605254') ('3459', '20729335', '1338815780', None, None, None, None, None, '2605254') ('3459', None, None, None, None, None, None, None, '2605254') ('3459', '20729335', '1338815771', None, None, None, None, None, '2605254') ('3459', None, None, None, None, None, None, None, '2605254') ('3459', '20729335', '1338815733', None, None, None, None, None, '2605254') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 time used for this insertion : 0.013926982879638672 save_final save missing photos in datou_result : time spend for datou_step_exec : 22.35155940055847 time spend to save output : 0.014149904251098633 total time spend for step 11 : 22.36570930480957 caffe_path_current : About to save ! 2 After save, about to update current ! update_current_state 108.77user 135.05system 4:35.59elapsed 88%CPU (0avgtext+0avgdata 3953136maxresident)k 18576inputs+98128outputs (9major+9935460minor)pagefaults 0swaps