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 : 1026312 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 : 30>10 please execute split_portfolio.py -i 20965613 -l 10 size over we load limit photo not treated list_input_json: [] Current got : datou_id : 3459, datou_cur_ids : ['2628212'] with mtr_portfolio_ids : ['20965613'] and first list_photo_ids : [] new path : /proc/1026312/ 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 : 1.2464377880096436 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 Mon Mar 3 08:24:29 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 : 7037 max_wait_temp : 1 max_wait : 0 gpu_flag : 0 2025-03-03 08:24:31.879013: 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-03-03 08:24:31.911133: I tensorflow/core/platform/profile_utils/cpu_utils.cc:102] CPU Frequency: 3493065000 Hz 2025-03-03 08:24:31.912998: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x7ff078000b60 initialized for platform Host (this does not guarantee that XLA will be used). Devices: 2025-03-03 08:24:31.913060: I tensorflow/compiler/xla/service/service.cc:176] StreamExecutor device (0): Host, Default Version 2025-03-03 08:24:31.916399: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcuda.so.1 2025-03-03 08:24:32.150921: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x36bf0d60 initialized for platform CUDA (this does not guarantee that XLA will be used). Devices: 2025-03-03 08:24:32.150980: I tensorflow/compiler/xla/service/service.cc:176] StreamExecutor device (0): NVIDIA GeForce RTX 2080 Ti, Compute Capability 7.5 2025-03-03 08:24:32.152397: 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-03-03 08:24:32.152848: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1 2025-03-03 08:24:32.155806: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcublas.so.10 2025-03-03 08:24:32.158823: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcufft.so.10 2025-03-03 08:24:32.159293: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcurand.so.10 2025-03-03 08:24:32.163300: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusolver.so.10 2025-03-03 08:24:32.164901: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusparse.so.10 2025-03-03 08:24:32.170619: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudnn.so.7 2025-03-03 08:24:32.172017: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1703] Adding visible gpu devices: 0 2025-03-03 08:24:32.172108: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1 2025-03-03 08:24:32.172789: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1102] Device interconnect StreamExecutor with strength 1 edge matrix: 2025-03-03 08:24:32.172805: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1108] 0 2025-03-03 08:24:32.172815: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1121] 0: N 2025-03-03 08:24:32.173968: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1247] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 6472 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-03-03 08:24:32.474269: 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-03-03 08:24:32.474387: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1 2025-03-03 08:24:32.474416: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcublas.so.10 2025-03-03 08:24:32.474442: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcufft.so.10 2025-03-03 08:24:32.474466: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcurand.so.10 2025-03-03 08:24:32.474490: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusolver.so.10 2025-03-03 08:24:32.474514: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusparse.so.10 2025-03-03 08:24:32.474538: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudnn.so.7 2025-03-03 08:24:32.476199: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1703] Adding visible gpu devices: 0 2025-03-03 08:24:32.477228: 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-03-03 08:24:32.477271: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1 2025-03-03 08:24:32.477287: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcublas.so.10 2025-03-03 08:24:32.477301: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcufft.so.10 2025-03-03 08:24:32.477314: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcurand.so.10 2025-03-03 08:24:32.477328: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusolver.so.10 2025-03-03 08:24:32.477342: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusparse.so.10 2025-03-03 08:24:32.477355: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudnn.so.7 2025-03-03 08:24:32.478412: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1703] Adding visible gpu devices: 0 2025-03-03 08:24:32.478439: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1102] Device interconnect StreamExecutor with strength 1 edge matrix: 2025-03-03 08:24:32.478448: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1108] 0 2025-03-03 08:24:32.478456: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1121] 0: N 2025-03-03 08:24:32.479572: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1247] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 6472 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-03-03 08:24:40.041218: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcublas.so.10 2025-03-03 08:24:40.233977: 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: (1080, 1920, 3) min: 0.00000 max: 255.00000 molded_images shape: (1, 640, 640, 3) min: -123.70000 max: 151.10000 image_metas shape: (1, 18) min: 0.00000 max: 1920.00000 nb d'objets trouves : 3 NEW PHOTO Processing 1 images image shape: (1080, 1920, 3) min: 0.00000 max: 255.00000 molded_images shape: (1, 640, 640, 3) min: -123.70000 max: 151.10000 image_metas shape: (1, 18) min: 0.00000 max: 1920.00000 nb d'objets trouves : 8 NEW PHOTO Processing 1 images image shape: (1080, 1920, 3) min: 0.00000 max: 255.00000 molded_images shape: (1, 640, 640, 3) min: -123.70000 max: 151.10000 image_metas shape: (1, 18) min: 0.00000 max: 1920.00000 nb d'objets trouves : 9 NEW PHOTO Processing 1 images image shape: (1080, 1920, 3) min: 0.00000 max: 255.00000 molded_images shape: (1, 640, 640, 3) min: -123.70000 max: 151.10000 image_metas shape: (1, 18) min: 0.00000 max: 1920.00000 nb d'objets trouves : 8 NEW PHOTO Processing 1 images image shape: (1080, 1920, 3) min: 0.00000 max: 255.00000 molded_images shape: (1, 640, 640, 3) min: -123.70000 max: 151.10000 image_metas shape: (1, 18) min: 0.00000 max: 1920.00000 nb d'objets trouves : 5 NEW PHOTO Processing 1 images image shape: (1080, 1920, 3) min: 0.00000 max: 255.00000 molded_images shape: (1, 640, 640, 3) min: -123.70000 max: 151.10000 image_metas shape: (1, 18) min: 0.00000 max: 1920.00000 nb d'objets trouves : 2 NEW PHOTO Processing 1 images image shape: (1080, 1920, 3) min: 0.00000 max: 255.00000 molded_images shape: (1, 640, 640, 3) min: -123.70000 max: 151.10000 image_metas shape: (1, 18) min: 0.00000 max: 1920.00000 nb d'objets trouves : 7 NEW PHOTO Processing 1 images image shape: (1080, 1920, 3) min: 0.00000 max: 255.00000 molded_images shape: (1, 640, 640, 3) min: -123.70000 max: 151.10000 image_metas shape: (1, 18) min: 0.00000 max: 1920.00000 nb d'objets trouves : 12 NEW PHOTO Processing 1 images image shape: (1080, 1920, 3) min: 0.00000 max: 255.00000 molded_images shape: (1, 640, 640, 3) min: -123.70000 max: 151.10000 image_metas shape: (1, 18) min: 0.00000 max: 1920.00000 nb d'objets trouves : 8 NEW PHOTO Processing 1 images image shape: (1080, 1920, 3) min: 0.00000 max: 255.00000 molded_images shape: (1, 640, 640, 3) min: -123.70000 max: 151.10000 image_metas shape: (1, 18) min: 0.00000 max: 1920.00000 nb d'objets trouves : 7 Detection mask done ! Trying to reset tf kernel 1026752 begin to check gpu status inside check gpu memory l 3610 free memory gpu now : 1748 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 : 7037 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.055178165435791016 nb_pixel_total : 1148737 time to create 1 rle with new method : 0.38871026039123535 length of segment : 1823 time for calcul the mask position with numpy : 0.004514455795288086 nb_pixel_total : 304872 time to create 1 rle with new method : 0.00903010368347168 length of segment : 923 time for calcul the mask position with numpy : 0.0022690296173095703 nb_pixel_total : 164993 time to create 1 rle with new method : 0.00562286376953125 length of segment : 785 time for calcul the mask position with numpy : 0.0003399848937988281 nb_pixel_total : 17411 time to create 1 rle with old method : 0.01914668083190918 length of segment : 268 time for calcul the mask position with numpy : 0.00015401840209960938 nb_pixel_total : 7145 time to create 1 rle with old method : 0.008170843124389648 length of segment : 136 time for calcul the mask position with numpy : 0.014764785766601562 nb_pixel_total : 856229 time to create 1 rle with new method : 0.07253670692443848 length of segment : 1500 time for calcul the mask position with numpy : 0.0012712478637695312 nb_pixel_total : 85755 time to create 1 rle with old method : 0.10482525825500488 length of segment : 346 time for calcul the mask position with numpy : 0.0003268718719482422 nb_pixel_total : 11134 time to create 1 rle with old method : 0.018076658248901367 length of segment : 118 time for calcul the mask position with numpy : 0.003098726272583008 nb_pixel_total : 142305 time to create 1 rle with old method : 0.16540169715881348 length of segment : 681 time for calcul the mask position with numpy : 0.004225254058837891 nb_pixel_total : 312202 time to create 1 rle with new method : 0.012573003768920898 length of segment : 1016 time for calcul the mask position with numpy : 0.020292997360229492 nb_pixel_total : 926607 time to create 1 rle with new method : 0.05495786666870117 length of segment : 1706 time for calcul the mask position with numpy : 0.0010344982147216797 nb_pixel_total : 56932 time to create 1 rle with old method : 0.06406974792480469 length of segment : 601 time for calcul the mask position with numpy : 0.0009691715240478516 nb_pixel_total : 56109 time to create 1 rle with old method : 0.06596779823303223 length of segment : 288 time for calcul the mask position with numpy : 0.0003910064697265625 nb_pixel_total : 10284 time to create 1 rle with old method : 0.012041330337524414 length of segment : 264 time for calcul the mask position with numpy : 0.00027298927307128906 nb_pixel_total : 15866 time to create 1 rle with old method : 0.01810431480407715 length of segment : 195 time for calcul the mask position with numpy : 0.0008103847503662109 nb_pixel_total : 50834 time to create 1 rle with old method : 0.05795598030090332 length of segment : 233 time for calcul the mask position with numpy : 0.0044515132904052734 nb_pixel_total : 302757 time to create 1 rle with new method : 0.00833582878112793 length of segment : 1089 time for calcul the mask position with numpy : 0.0004086494445800781 nb_pixel_total : 8502 time to create 1 rle with old method : 0.009931087493896484 length of segment : 220 time for calcul the mask position with numpy : 0.0006501674652099609 nb_pixel_total : 36569 time to create 1 rle with old method : 0.04191088676452637 length of segment : 174 time for calcul the mask position with numpy : 0.0008254051208496094 nb_pixel_total : 39549 time to create 1 rle with old method : 0.04469585418701172 length of segment : 257 time for calcul the mask position with numpy : 0.00010943412780761719 nb_pixel_total : 3181 time to create 1 rle with old method : 0.003975391387939453 length of segment : 75 time for calcul the mask position with numpy : 0.00019097328186035156 nb_pixel_total : 6562 time to create 1 rle with old method : 0.007715940475463867 length of segment : 120 time for calcul the mask position with numpy : 0.0006878376007080078 nb_pixel_total : 33006 time to create 1 rle with old method : 0.03779125213623047 length of segment : 225 time for calcul the mask position with numpy : 0.0060465335845947266 nb_pixel_total : 335594 time to create 1 rle with new method : 0.012666702270507812 length of segment : 1965 time for calcul the mask position with numpy : 0.0005080699920654297 nb_pixel_total : 22182 time to create 1 rle with old method : 0.025987625122070312 length of segment : 226 time for calcul the mask position with numpy : 0.021735668182373047 nb_pixel_total : 1085320 time to create 1 rle with new method : 0.0935659408569336 length of segment : 2275 time for calcul the mask position with numpy : 0.00335693359375 nb_pixel_total : 216479 time to create 1 rle with new method : 0.009332656860351562 length of segment : 1128 time for calcul the mask position with numpy : 0.003536701202392578 nb_pixel_total : 301360 time to create 1 rle with new method : 0.007708311080932617 length of segment : 899 time for calcul the mask position with numpy : 0.00013971328735351562 nb_pixel_total : 6768 time to create 1 rle with old method : 0.008469581604003906 length of segment : 77 time for calcul the mask position with numpy : 0.028102636337280273 nb_pixel_total : 1427371 time to create 1 rle with new method : 0.2131671905517578 length of segment : 1277 time for calcul the mask position with numpy : 0.005502462387084961 nb_pixel_total : 307358 time to create 1 rle with new method : 0.010405778884887695 length of segment : 1001 time for calcul the mask position with numpy : 0.0008640289306640625 nb_pixel_total : 27101 time to create 1 rle with old method : 0.03126406669616699 length of segment : 241 time for calcul the mask position with numpy : 0.003854990005493164 nb_pixel_total : 172967 time to create 1 rle with new method : 0.005730152130126953 length of segment : 646 time for calcul the mask position with numpy : 0.010076284408569336 nb_pixel_total : 506930 time to create 1 rle with new method : 0.05746102333068848 length of segment : 1240 time for calcul the mask position with numpy : 0.0002608299255371094 nb_pixel_total : 13918 time to create 1 rle with old method : 0.019676923751831055 length of segment : 100 time for calcul the mask position with numpy : 0.004084587097167969 nb_pixel_total : 306541 time to create 1 rle with new method : 0.009953975677490234 length of segment : 1107 time for calcul the mask position with numpy : 0.00167083740234375 nb_pixel_total : 124536 time to create 1 rle with old method : 0.15938472747802734 length of segment : 387 time for calcul the mask position with numpy : 0.0010821819305419922 nb_pixel_total : 36285 time to create 1 rle with old method : 0.04462242126464844 length of segment : 322 time for calcul the mask position with numpy : 0.00014662742614746094 nb_pixel_total : 943 time to create 1 rle with old method : 0.0012323856353759766 length of segment : 66 time for calcul the mask position with numpy : 0.0002791881561279297 nb_pixel_total : 8176 time to create 1 rle with old method : 0.01107478141784668 length of segment : 96 time for calcul the mask position with numpy : 0.020326614379882812 nb_pixel_total : 756619 time to create 1 rle with new method : 0.025475025177001953 length of segment : 1643 time for calcul the mask position with numpy : 0.0001308917999267578 nb_pixel_total : 3578 time to create 1 rle with old method : 0.004523038864135742 length of segment : 58 time for calcul the mask position with numpy : 0.0002548694610595703 nb_pixel_total : 12041 time to create 1 rle with old method : 0.014750242233276367 length of segment : 68 time for calcul the mask position with numpy : 0.00015091896057128906 nb_pixel_total : 3343 time to create 1 rle with old method : 0.00432133674621582 length of segment : 38 time for calcul the mask position with numpy : 0.0004494190216064453 nb_pixel_total : 10942 time to create 1 rle with old method : 0.013242483139038086 length of segment : 309 time for calcul the mask position with numpy : 0.00035500526428222656 nb_pixel_total : 12550 time to create 1 rle with old method : 0.014690876007080078 length of segment : 309 time for calcul the mask position with numpy : 0.0011897087097167969 nb_pixel_total : 71157 time to create 1 rle with old method : 0.0824136734008789 length of segment : 542 time for calcul the mask position with numpy : 0.003882884979248047 nb_pixel_total : 331023 time to create 1 rle with new method : 0.008563756942749023 length of segment : 1177 time for calcul the mask position with numpy : 0.0014715194702148438 nb_pixel_total : 86106 time to create 1 rle with old method : 0.10744023323059082 length of segment : 290 time for calcul the mask position with numpy : 0.017513036727905273 nb_pixel_total : 925569 time to create 1 rle with new method : 0.12534236907958984 length of segment : 1003 time for calcul the mask position with numpy : 0.001811981201171875 nb_pixel_total : 120163 time to create 1 rle with old method : 0.13627409934997559 length of segment : 729 time for calcul the mask position with numpy : 0.0006155967712402344 nb_pixel_total : 29226 time to create 1 rle with old method : 0.0357518196105957 length of segment : 355 time for calcul the mask position with numpy : 0.0034880638122558594 nb_pixel_total : 300924 time to create 1 rle with new method : 0.008191108703613281 length of segment : 1042 time for calcul the mask position with numpy : 0.0011394023895263672 nb_pixel_total : 99572 time to create 1 rle with old method : 0.11201262474060059 length of segment : 398 time for calcul the mask position with numpy : 0.00023555755615234375 nb_pixel_total : 5656 time to create 1 rle with old method : 0.0072650909423828125 length of segment : 169 time for calcul the mask position with numpy : 0.0010952949523925781 nb_pixel_total : 100005 time to create 1 rle with old method : 0.11705589294433594 length of segment : 361 time for calcul the mask position with numpy : 0.01828765869140625 nb_pixel_total : 885062 time to create 1 rle with new method : 0.06995224952697754 length of segment : 1424 time for calcul the mask position with numpy : 0.0011746883392333984 nb_pixel_total : 61695 time to create 1 rle with old method : 0.07347416877746582 length of segment : 665 time for calcul the mask position with numpy : 0.00025153160095214844 nb_pixel_total : 15889 time to create 1 rle with old method : 0.019458293914794922 length of segment : 114 time for calcul the mask position with numpy : 0.0004107952117919922 nb_pixel_total : 29574 time to create 1 rle with old method : 0.035756587982177734 length of segment : 178 time for calcul the mask position with numpy : 0.000698089599609375 nb_pixel_total : 50717 time to create 1 rle with old method : 0.05983901023864746 length of segment : 419 time for calcul the mask position with numpy : 0.0002593994140625 nb_pixel_total : 10469 time to create 1 rle with old method : 0.013103008270263672 length of segment : 111 time spent for convertir_results : 8.596518993377686 Inside saveOutput : final : False verbose : 0 eke 12-6-18 : saveMask need to be cleaned for new output ! Number saved : None batch 1 Loaded 62 chid ids of type : 3663 Number RLEs to save : 37498 save missing photos in datou_result : time spend for datou_step_exec : 29.125043630599976 time spend to save output : 2.1670103073120117 total time spend for step 1 : 31.292053937911987 step2:crop_condition Mon Mar 3 08:25:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! 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 62 chid ids of type : 3663 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ begin to crop the class : teint_dans_la_masse param for this class : {'min_score': 0.7} filtre for class : teint_dans_la_masse hashtag_id of this class : 2107752385 we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! 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 : 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 ! map_result returned by crop_photo_return_map_crop : length : 3 About to insert : list_path_to_insert length 3 new photo from crops ! we have finished the crop for the class : autre_refus begin to crop the class : carton_gris param for this class : {'min_score': 0.5} filtre for class : carton_gris hashtag_id of this class : 2107753020 we have both polygon and rles Next one ! map_result returned by crop_photo_return_map_crop : length : 1 About to insert : list_path_to_insert length 1 new photo from crops ! we have finished the crop for the class : carton_gris begin to crop the class : cartonnette param for this class : {'min_score': 0.5} filtre for class : cartonnette hashtag_id of this class : 702398920 we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! map_result returned by crop_photo_return_map_crop : length : 9 About to insert : list_path_to_insert length 9 new photo from crops ! we have finished the crop for the class : cartonnette begin to crop the class : carton_brun param for this class : {'min_score': 0.7} filtre for class : carton_brun hashtag_id of this class : 2107753024 we have both polygon and rles Next one ! we have both polygon and rles Next one ! map_result returned by crop_photo_return_map_crop : length : 2 About to insert : list_path_to_insert length 2 new photo from crops ! we have finished the crop for the class : carton_brun begin to crop the class : plastique param for this class : {'min_score': 0.5} filtre for class : plastique hashtag_id of this class : 492725882 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 [1340587285, 1340587196, 1340587189, 1340587082, 1340587075, 1340586997, 1340586989, 1340586931, 1340586924, 1340586883] Looping around the photos to save general results len do output : 20 /-3692193939Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3692193944Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3692193951Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3692193963Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3692193980Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3692193945Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3692193966Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3692193974Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3692193977Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3692193935Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3692193950Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3692193968Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3692193976Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3692193987Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3692193990Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3692193989Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3692193991Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3692193993Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3692193975Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3692193973Didn'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, '2628212') ('3459', None, '1340587285', None, None, None, None, None, '2628212') ('3459', None, None, None, None, None, None, None, '2628212') ('3459', None, '1340587196', None, None, None, None, None, '2628212') ('3459', None, None, None, None, None, None, None, '2628212') ('3459', None, '1340587189', None, None, None, None, None, '2628212') ('3459', None, None, None, None, None, None, None, '2628212') ('3459', None, '1340587082', None, None, None, None, None, '2628212') ('3459', None, None, None, None, None, None, None, '2628212') ('3459', None, '1340587075', None, None, None, None, None, '2628212') ('3459', None, None, None, None, None, None, None, '2628212') ('3459', None, '1340586997', None, None, None, None, None, '2628212') ('3459', None, None, None, None, None, None, None, '2628212') ('3459', None, '1340586989', None, None, None, None, None, '2628212') ('3459', None, None, None, None, None, None, None, '2628212') ('3459', None, '1340586931', None, None, None, None, None, '2628212') ('3459', None, None, None, None, None, None, None, '2628212') ('3459', None, '1340586924', None, None, None, None, None, '2628212') ('3459', None, None, None, None, None, None, None, '2628212') ('3459', None, '1340586883', None, None, None, None, None, '2628212') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 70 time used for this insertion : 0.02261972427368164 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.373162031173706 time spend to save output : 0.023812055587768555 total time spend for step 2 : 4.396974086761475 step3:thcl Mon Mar 3 08:25:04 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.008654594421386719 time to convert the images to numpy array : 0.003914594650268555 time to import caffe and check if the image exist : 0.006162166595458984 time to convert the images to numpy array : 0.011633634567260742 time to import caffe and check if the image exist : 0.0062525272369384766 time to convert the images to numpy array : 0.01168680191040039 time to import caffe and check if the image exist : 0.003950834274291992 time to convert the images to numpy array : 0.01572108268737793 time to import caffe and check if the image exist : 0.00757908821105957 time to convert the images to numpy array : 0.011777639389038086 time to import caffe and check if the image exist : 0.005944728851318359 time to convert the images to numpy array : 0.015685319900512695 time to import caffe and check if the image exist : 0.003694295883178711 time to convert the images to numpy array : 0.018201589584350586 time to import caffe and check if the image exist : 0.004347562789916992 time to convert the images to numpy array : 0.019716262817382812 time to import caffe and check if the image exist : 0.007807016372680664 time to convert the images to numpy array : 0.017446041107177734 time to import caffe and check if the image exist : 0.006983757019042969 time to convert the images to numpy array : 0.021595478057861328 total time to convert the images to numpy array : 0.22141242027282715 list photo_ids error: [] list photo_ids correct : [-3692193975, -3692193973, -3692193966, -3692193974, -3692193977, -3692193935, -3692193939, -3692193944, -3692193991, -3692193993, -3692193951, -3692193963, -3692193980, -3692193945, -3692193976, -3692193987, -3692193990, -3692193989, -3692193950, -3692193968] number of photos to traite : 20 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 : 7037 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 : 6818 max_wait_temp : 1 max_wait : 0 dict_keys(['prob']) time used to do the prepocess of the images : 0.1579725742340088 time used to do the prediction : 0.06785750389099121 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 : 6816 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 : 6832 max_wait_temp : 1 max_wait : 0 dict_keys(['prob']) time used to do the prepocess of the images : 0.15321016311645508 time used to do the prediction : 0.04976058006286621 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 : 7.3909759521484375e-06 save missing photos in datou_result : time spend for datou_step_exec : 7.3589982986450195 time spend to save output : 0.0002295970916748047 total time spend for step 3 : 7.359227895736694 step4:merge_mask_thcl_custom Mon Mar 3 08:25:12 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 62 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 [1340587285, 1340587196, 1340587189, 1340587082, 1340587075, 1340586997, 1340586989, 1340586931, 1340586924, 1340586883] Looping around the photos to save general results len do output : 10 /1340587285Didn't retrieve data .Didn't retrieve data . /1340587196Didn't retrieve data .Didn't retrieve data . /1340587189Didn't retrieve data .Didn't retrieve data . /1340587082Didn't retrieve data .Didn't retrieve data . /1340587075Didn't retrieve data .Didn't retrieve data . /1340586997Didn't retrieve data .Didn't retrieve data . /1340586989Didn't retrieve data .Didn't retrieve data . /1340586931Didn't retrieve data .Didn't retrieve data . /1340586924Didn't retrieve data .Didn't retrieve data . /1340586883Didn'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, '2628212') ('3459', None, '1340587285', None, None, None, None, None, '2628212') ('3459', None, None, None, None, None, None, None, '2628212') ('3459', None, '1340587196', None, None, None, None, None, '2628212') ('3459', None, None, None, None, None, None, None, '2628212') ('3459', None, '1340587189', None, None, None, None, None, '2628212') ('3459', None, None, None, None, None, None, None, '2628212') ('3459', None, '1340587082', None, None, None, None, None, '2628212') ('3459', None, None, None, None, None, None, None, '2628212') ('3459', None, '1340587075', None, None, None, None, None, '2628212') ('3459', None, None, None, None, None, None, None, '2628212') ('3459', None, '1340586997', None, None, None, None, None, '2628212') ('3459', None, None, None, None, None, None, None, '2628212') ('3459', None, '1340586989', None, None, None, None, None, '2628212') ('3459', None, None, None, None, None, None, None, '2628212') ('3459', None, '1340586931', None, None, None, None, None, '2628212') ('3459', None, None, None, None, None, None, None, '2628212') ('3459', None, '1340586924', None, None, None, None, None, '2628212') ('3459', None, None, None, None, None, None, None, '2628212') ('3459', None, '1340586883', None, None, None, None, None, '2628212') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 time used for this insertion : 0.013881683349609375 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.04858756065368652 time spend to save output : 0.014490604400634766 total time spend for step 4 : 0.06307816505432129 step5:rle_unique_nms_with_priority Mon Mar 3 08:25:12 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 : 3 nb_hashtags : 1 time to prepare the origin masks : 0.9550976753234863 time for calcul the mask position with numpy : 0.01275181770324707 nb_pixel_total : 790309 time to create 1 rle with new method : 0.29512643814086914 time for calcul the mask position with numpy : 0.007004261016845703 nb_pixel_total : 17045 time to create 1 rle with old method : 0.023713350296020508 time for calcul the mask position with numpy : 0.007537364959716797 nb_pixel_total : 120341 time to create 1 rle with old method : 0.13811182975769043 time for calcul the mask position with numpy : 0.04368090629577637 nb_pixel_total : 1145905 time to create 1 rle with new method : 0.1823136806488037 create new chi : 0.7273702621459961 time to delete rle : 0.02147674560546875 batch 1 Loaded 4 chid ids of type : 3726 Number RLEs to save : 6704 TO DO : save crop sub photo not yet done ! save time : 0.4141378402709961 nb_obj : 7 nb_hashtags : 3 time to prepare the origin masks : 1.0859286785125732 time for calcul the mask position with numpy : 0.0357358455657959 nb_pixel_total : 1003004 time to create 1 rle with new method : 0.09406805038452148 time for calcul the mask position with numpy : 0.0067081451416015625 nb_pixel_total : 50985 time to create 1 rle with old method : 0.060344696044921875 time for calcul the mask position with numpy : 0.00696873664855957 nb_pixel_total : 17293 time to create 1 rle with old method : 0.02238941192626953 time for calcul the mask position with numpy : 0.006892681121826172 nb_pixel_total : 35531 time to create 1 rle with old method : 0.040097713470458984 time for calcul the mask position with numpy : 0.007394075393676758 nb_pixel_total : 8901 time to create 1 rle with old method : 0.010477781295776367 time for calcul the mask position with numpy : 0.007394552230834961 nb_pixel_total : 85574 time to create 1 rle with old method : 0.09663677215576172 time for calcul the mask position with numpy : 0.01306605339050293 nb_pixel_total : 865194 time to create 1 rle with new method : 0.08500099182128906 time for calcul the mask position with numpy : 0.006015300750732422 nb_pixel_total : 7118 time to create 1 rle with old method : 0.007529020309448242 create new chi : 0.5218429565429688 time to delete rle : 0.0006694793701171875 batch 1 Loaded 8 chid ids of type : 3726 Number RLEs to save : 7027 TO DO : save crop sub photo not yet done ! save time : 0.42824459075927734 nb_obj : 7 nb_hashtags : 2 time to prepare the origin masks : 0.9415662288665771 time for calcul the mask position with numpy : 0.013338088989257812 nb_pixel_total : 920607 time to create 1 rle with new method : 0.17154550552368164 time for calcul the mask position with numpy : 0.007236957550048828 nb_pixel_total : 101627 time to create 1 rle with old method : 0.11866402626037598 time for calcul the mask position with numpy : 0.00654911994934082 nb_pixel_total : 37161 time to create 1 rle with old method : 0.0405726432800293 time for calcul the mask position with numpy : 0.009621381759643555 nb_pixel_total : 32647 time to create 1 rle with old method : 0.03604555130004883 time for calcul the mask position with numpy : 0.010315418243408203 nb_pixel_total : 1375 time to create 1 rle with old method : 0.0016560554504394531 time for calcul the mask position with numpy : 0.010044336318969727 nb_pixel_total : 8508 time to create 1 rle with old method : 0.009251832962036133 time for calcul the mask position with numpy : 0.010351419448852539 nb_pixel_total : 50082 time to create 1 rle with old method : 0.05358624458312988 time for calcul the mask position with numpy : 0.020477294921875 nb_pixel_total : 921593 time to create 1 rle with new method : 0.26056504249572754 create new chi : 0.7976090908050537 time to delete rle : 0.001134634017944336 batch 1 Loaded 8 chid ids of type : 3726 Number RLEs to save : 7520 TO DO : save crop sub photo not yet done ! save time : 1.227207899093628 nb_obj : 8 nb_hashtags : 3 time to prepare the origin masks : 0.7927799224853516 time for calcul the mask position with numpy : 0.05582284927368164 nb_pixel_total : 1588595 time to create 1 rle with new method : 0.18461132049560547 time for calcul the mask position with numpy : 0.006476879119873047 nb_pixel_total : 39358 time to create 1 rle with old method : 0.04710984230041504 time for calcul the mask position with numpy : 0.0059816837310791016 nb_pixel_total : 22068 time to create 1 rle with old method : 0.024646520614624023 time for calcul the mask position with numpy : 0.006243467330932617 nb_pixel_total : 36514 time to create 1 rle with old method : 0.039904117584228516 time for calcul the mask position with numpy : 0.007838249206542969 nb_pixel_total : 335896 time to create 1 rle with new method : 0.07802319526672363 time for calcul the mask position with numpy : 0.00633692741394043 nb_pixel_total : 32972 time to create 1 rle with old method : 0.03723907470703125 time for calcul the mask position with numpy : 0.006028890609741211 nb_pixel_total : 6533 time to create 1 rle with old method : 0.0073053836822509766 time for calcul the mask position with numpy : 0.0062100887298583984 nb_pixel_total : 3175 time to create 1 rle with old method : 0.003592252731323242 time for calcul the mask position with numpy : 0.006110668182373047 nb_pixel_total : 8489 time to create 1 rle with old method : 0.009446144104003906 create new chi : 0.5495302677154541 time to delete rle : 0.0008778572082519531 batch 1 Loaded 9 chid ids of type : 3726 Number RLEs to save : 7428 TO DO : save crop sub photo not yet done ! save time : 0.46770477294921875 nb_obj : 3 nb_hashtags : 1 time to prepare the origin masks : 0.38567018508911133 time for calcul the mask position with numpy : 0.01264333724975586 nb_pixel_total : 895401 time to create 1 rle with new method : 0.030656099319458008 time for calcul the mask position with numpy : 0.00649261474609375 nb_pixel_total : 53502 time to create 1 rle with old method : 0.06196999549865723 time for calcul the mask position with numpy : 0.006726503372192383 nb_pixel_total : 18215 time to create 1 rle with old method : 0.02363896369934082 time for calcul the mask position with numpy : 0.015503168106079102 nb_pixel_total : 1106482 time to create 1 rle with new method : 0.03220987319946289 create new chi : 0.19767451286315918 time to delete rle : 0.0005993843078613281 batch 1 Loaded 4 chid ids of type : 3726 Number RLEs to save : 6766 TO DO : save crop sub photo not yet done ! save time : 0.5174894332885742 nb_obj : 2 nb_hashtags : 1 time to prepare the origin masks : 0.3730168342590332 time for calcul the mask position with numpy : 0.010564327239990234 nb_pixel_total : 582755 time to create 1 rle with new method : 0.33194828033447266 time for calcul the mask position with numpy : 0.010714292526245117 nb_pixel_total : 58895 time to create 1 rle with old method : 0.06799530982971191 time for calcul the mask position with numpy : 0.09837865829467773 nb_pixel_total : 1431950 time to create 1 rle with new method : 0.08158373832702637 create new chi : 0.6170032024383545 time to delete rle : 0.0005505084991455078 batch 1 Loaded 3 chid ids of type : 3726 Number RLEs to save : 4199 TO DO : save crop sub photo not yet done ! save time : 0.3557620048522949 nb_obj : 6 nb_hashtags : 4 time to prepare the origin masks : 0.8945283889770508 time for calcul the mask position with numpy : 0.09108829498291016 nb_pixel_total : 1140517 time to create 1 rle with new method : 0.2636423110961914 time for calcul the mask position with numpy : 0.00739598274230957 nb_pixel_total : 138251 time to create 1 rle with old method : 0.1710045337677002 time for calcul the mask position with numpy : 0.0072553157806396484 nb_pixel_total : 51143 time to create 1 rle with old method : 0.05709981918334961 time for calcul the mask position with numpy : 0.006130218505859375 nb_pixel_total : 13818 time to create 1 rle with old method : 0.015155315399169922 time for calcul the mask position with numpy : 0.009874820709228516 nb_pixel_total : 530176 time to create 1 rle with new method : 0.09430503845214844 time for calcul the mask position with numpy : 0.00792551040649414 nb_pixel_total : 172702 time to create 1 rle with new method : 0.033501625061035156 time for calcul the mask position with numpy : 0.007935762405395508 nb_pixel_total : 26993 time to create 1 rle with old method : 0.04639577865600586 create new chi : 0.8286395072937012 time to delete rle : 0.0006480216979980469 batch 1 Loaded 7 chid ids of type : 3726 Number RLEs to save : 6586 TO DO : save crop sub photo not yet done ! save time : 0.4811592102050781 nb_obj : 11 nb_hashtags : 5 time to prepare the origin masks : 1.820814847946167 time for calcul the mask position with numpy : 0.054952144622802734 nb_pixel_total : 1051932 time to create 1 rle with new method : 0.1697995662689209 time for calcul the mask position with numpy : 0.006317138671875 nb_pixel_total : 11990 time to create 1 rle with old method : 0.013249397277832031 time for calcul the mask position with numpy : 0.010644674301147461 nb_pixel_total : 3206 time to create 1 rle with old method : 0.0038373470306396484 time for calcul the mask position with numpy : 0.0062792301177978516 nb_pixel_total : 3575 time to create 1 rle with old method : 0.00407719612121582 time for calcul the mask position with numpy : 0.007838964462280273 nb_pixel_total : 159114 time to create 1 rle with new method : 0.1264190673828125 time for calcul the mask position with numpy : 0.009147405624389648 nb_pixel_total : 843 time to create 1 rle with old method : 0.0010595321655273438 time for calcul the mask position with numpy : 0.010024547576904297 nb_pixel_total : 3318 time to create 1 rle with old method : 0.0037598609924316406 time for calcul the mask position with numpy : 0.00983881950378418 nb_pixel_total : 10938 time to create 1 rle with old method : 0.011972665786743164 time for calcul the mask position with numpy : 0.018332958221435547 nb_pixel_total : 783424 time to create 1 rle with new method : 0.028287887573242188 time for calcul the mask position with numpy : 0.010189294815063477 nb_pixel_total : 8134 time to create 1 rle with old method : 0.009111881256103516 time for calcul the mask position with numpy : 0.010008573532104492 nb_pixel_total : 942 time to create 1 rle with old method : 0.0010912418365478516 time for calcul the mask position with numpy : 0.010605096817016602 nb_pixel_total : 36184 time to create 1 rle with old method : 0.04064202308654785 create new chi : 0.5874359607696533 time to delete rle : 0.0008258819580078125 batch 1 Loaded 12 chid ids of type : 3726 Number RLEs to save : 7332 TO DO : save crop sub photo not yet done ! save time : 0.6412770748138428 nb_obj : 6 nb_hashtags : 2 time to prepare the origin masks : 0.5885341167449951 time for calcul the mask position with numpy : 0.01259613037109375 nb_pixel_total : 778085 time to create 1 rle with new method : 0.0336148738861084 time for calcul the mask position with numpy : 0.006986856460571289 nb_pixel_total : 99705 time to create 1 rle with old method : 0.11246132850646973 time for calcul the mask position with numpy : 0.009164094924926758 nb_pixel_total : 36127 time to create 1 rle with old method : 0.06044793128967285 time for calcul the mask position with numpy : 0.007918834686279297 nb_pixel_total : 85765 time to create 1 rle with old method : 0.10499691963195801 time for calcul the mask position with numpy : 0.006976127624511719 nb_pixel_total : 29108 time to create 1 rle with old method : 0.03505659103393555 time for calcul the mask position with numpy : 0.007971525192260742 nb_pixel_total : 119916 time to create 1 rle with old method : 0.1518542766571045 time for calcul the mask position with numpy : 0.016763925552368164 nb_pixel_total : 924894 time to create 1 rle with new method : 0.0348820686340332 create new chi : 0.613884449005127 time to delete rle : 0.0008418560028076172 batch 1 Loaded 7 chid ids of type : 3726 Number RLEs to save : 7272 TO DO : save crop sub photo not yet done ! save time : 0.9990744590759277 nb_obj : 6 nb_hashtags : 4 time to prepare the origin masks : 0.45833683013916016 time for calcul the mask position with numpy : 0.01327061653137207 nb_pixel_total : 1039409 time to create 1 rle with new method : 0.07767844200134277 time for calcul the mask position with numpy : 0.00642848014831543 nb_pixel_total : 10452 time to create 1 rle with old method : 0.012214422225952148 time for calcul the mask position with numpy : 0.008372306823730469 nb_pixel_total : 15832 time to create 1 rle with old method : 0.021187782287597656 time for calcul the mask position with numpy : 0.006062746047973633 nb_pixel_total : 5324 time to create 1 rle with old method : 0.006256580352783203 time for calcul the mask position with numpy : 0.006749629974365234 nb_pixel_total : 61446 time to create 1 rle with old method : 0.08268237113952637 time for calcul the mask position with numpy : 0.021413087844848633 nb_pixel_total : 911696 time to create 1 rle with new method : 0.0835878849029541 time for calcul the mask position with numpy : 0.010592222213745117 nb_pixel_total : 29441 time to create 1 rle with old method : 0.032227516174316406 create new chi : 0.3969454765319824 time to delete rle : 0.0007295608520507812 batch 1 Loaded 7 chid ids of type : 3726 Number RLEs to save : 6043 TO DO : save crop sub photo not yet done ! save time : 1.0495071411132812 map_output_result : {1340587285: (0.0, 'Should be the crop_list due to order', 0), 1340587196: (0.0, 'Should be the crop_list due to order', 0), 1340587189: (0.0, 'Should be the crop_list due to order', 0), 1340587082: (0.0, 'Should be the crop_list due to order', 0), 1340587075: (0.0, 'Should be the crop_list due to order', 0), 1340586997: (0.0, 'Should be the crop_list due to order', 0), 1340586989: (0.0, 'Should be the crop_list due to order', 0), 1340586931: (0.0, 'Should be the crop_list due to order', 0), 1340586924: (0.0, 'Should be the crop_list due to order', 0), 1340586883: (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 [1340587285, 1340587196, 1340587189, 1340587082, 1340587075, 1340586997, 1340586989, 1340586931, 1340586924, 1340586883] Looping around the photos to save general results len do output : 10 /1340587285.Didn't retrieve data . /1340587196.Didn't retrieve data . /1340587189.Didn't retrieve data . /1340587082.Didn't retrieve data . /1340587075.Didn't retrieve data . /1340586997.Didn't retrieve data . /1340586989.Didn't retrieve data . /1340586931.Didn't retrieve data . /1340586924.Didn't retrieve data . /1340586883.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, '2628212') ('3459', None, '1340587285', None, None, None, None, None, '2628212') ('3459', None, None, None, None, None, None, None, '2628212') ('3459', None, '1340587196', None, None, None, None, None, '2628212') ('3459', None, None, None, None, None, None, None, '2628212') ('3459', None, '1340587189', None, None, None, None, None, '2628212') ('3459', None, None, None, None, None, None, None, '2628212') ('3459', None, '1340587082', None, None, None, None, None, '2628212') ('3459', None, None, None, None, None, None, None, '2628212') ('3459', None, '1340587075', None, None, None, None, None, '2628212') ('3459', None, None, None, None, None, None, None, '2628212') ('3459', None, '1340586997', None, None, None, None, None, '2628212') ('3459', None, None, None, None, None, None, None, '2628212') ('3459', None, '1340586989', None, None, None, None, None, '2628212') ('3459', None, None, None, None, None, None, None, '2628212') ('3459', None, '1340586931', None, None, None, None, None, '2628212') ('3459', None, None, None, None, None, None, None, '2628212') ('3459', None, '1340586924', None, None, None, None, None, '2628212') ('3459', None, None, None, None, None, None, None, '2628212') ('3459', None, '1340586883', None, None, None, None, None, '2628212') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 time used for this insertion : 0.013276100158691406 save_final save missing photos in datou_result : time spend for datou_step_exec : 21.164413928985596 time spend to save output : 0.01408529281616211 total time spend for step 5 : 21.178499221801758 step6:crop_condition Mon Mar 3 08:25: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 ! 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 69 chid ids of type : 3726 begin to crop the class : teint_dans_la_masse param for this class : {'min_score': 0.7} filtre for class : teint_dans_la_masse hashtag_id of this class : 2107752385 Next one ! 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/1740986734_1026312 we have uploaded 2 photos in the portfolio 4869462 time of upload the photos Elapsed time : 0.8723711967468262 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 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 ! Next one ! map_result returned by crop_photo_return_map_crop : length : 3 About to insert : list_path_to_insert length 3 new photo from crops ! About to upload 3 photos upload in portfolio : 4869462 init cache_photo without model_param we have 3 photo to upload uploaded to storage server : ovh folder_temporaire : temp/1740986736_1026312 we have uploaded 3 photos in the portfolio 4869462 time of upload the photos Elapsed time : 1.9033215045928955 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 ! 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/1740986738_1026312 we have uploaded 2 photos in the portfolio 4869462 time of upload the photos Elapsed time : 0.9891924858093262 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 ! 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/1740986739_1026312 we have uploaded 1 photos in the portfolio 4869462 time of upload the photos Elapsed time : 0.5417706966400146 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/1740986740_1026312 we have uploaded 1 photos in the portfolio 4869462 time of upload the photos Elapsed time : 0.6145734786987305 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 [1340587285, 1340587196, 1340587189, 1340587082, 1340587075, 1340586997, 1340586989, 1340586931, 1340586924, 1340586883] Looping around the photos to save general results len do output : 9 /1340593507Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1340593508Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1340593512Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1340593513Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1340593514Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1340593519Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1340593520Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1340593521Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1340593523Didn'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, '2628212') ('3459', None, '1340587285', None, None, None, None, None, '2628212') ('3459', None, None, None, None, None, None, None, '2628212') ('3459', None, '1340587196', None, None, None, None, None, '2628212') ('3459', None, None, None, None, None, None, None, '2628212') ('3459', None, '1340587189', None, None, None, None, None, '2628212') ('3459', None, None, None, None, None, None, None, '2628212') ('3459', None, '1340587082', None, None, None, None, None, '2628212') ('3459', None, None, None, None, None, None, None, '2628212') ('3459', None, '1340587075', None, None, None, None, None, '2628212') ('3459', None, None, None, None, None, None, None, '2628212') ('3459', None, '1340586997', None, None, None, None, None, '2628212') ('3459', None, None, None, None, None, None, None, '2628212') ('3459', None, '1340586989', None, None, None, None, None, '2628212') ('3459', None, None, None, None, None, None, None, '2628212') ('3459', None, '1340586931', None, None, None, None, None, '2628212') ('3459', None, None, None, None, None, None, None, '2628212') ('3459', None, '1340586924', None, None, None, None, None, '2628212') ('3459', None, None, None, None, None, None, None, '2628212') ('3459', None, '1340586883', None, None, None, None, None, '2628212') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 37 time used for this insertion : 0.023131847381591797 save_final save missing photos in datou_result : time spend for datou_step_exec : 8.060729503631592 time spend to save output : 0.023852825164794922 total time spend for step 6 : 8.084582328796387 step7:ventilate_hashtags_in_portfolio Mon Mar 3 08:25:41 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 : 20965613 get user id for portfolio 20965613 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`=20965613 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','Carton_gris','kraft','mal_croppe','flou','Teint_Dans_La_Masse','cartonnette','environnement','autre_refus','metal','Carton_brun','papier')) AND mptpi.`min_score`=0.5 To do 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`=20965613 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','Carton_gris','kraft','mal_croppe','flou','Teint_Dans_La_Masse','cartonnette','environnement','autre_refus','metal','Carton_brun','papier')) AND mptpi.`min_score`=0.5 To do lien utilise dans velours : https://www.fotonower.com/velours/20966204,20966205,20966206,20966207,20966208,20966209,20966210,20966211,20966212,20966213,20966214,20966215?tags=metal,papier,environnement,kraft,Carton_gris,cartonnette,autre_refus,flou,Carton_brun,plastique,Teint_Dans_La_Masse,mal_croppe Inside saveOutput : final : False verbose : 0 saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1340587285, 1340587196, 1340587189, 1340587082, 1340587075, 1340586997, 1340586989, 1340586931, 1340586924, 1340586883] Looping around the photos to save general results len do output : 1 /20965613. 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, '2628212') ('3459', None, '1340587285', None, None, None, None, None, '2628212') ('3459', None, None, None, None, None, None, None, '2628212') ('3459', None, '1340587196', None, None, None, None, None, '2628212') ('3459', None, None, None, None, None, None, None, '2628212') ('3459', None, '1340587189', None, None, None, None, None, '2628212') ('3459', None, None, None, None, None, None, None, '2628212') ('3459', None, '1340587082', None, None, None, None, None, '2628212') ('3459', None, None, None, None, None, None, None, '2628212') ('3459', None, '1340587075', None, None, None, None, None, '2628212') ('3459', None, None, None, None, None, None, None, '2628212') ('3459', None, '1340586997', None, None, None, None, None, '2628212') ('3459', None, None, None, None, None, None, None, '2628212') ('3459', None, '1340586989', None, None, None, None, None, '2628212') ('3459', None, None, None, None, None, None, None, '2628212') ('3459', None, '1340586931', None, None, None, None, None, '2628212') ('3459', None, None, None, None, None, None, None, '2628212') ('3459', None, '1340586924', None, None, None, None, None, '2628212') ('3459', None, None, None, None, None, None, None, '2628212') ('3459', None, '1340586883', None, None, None, None, None, '2628212') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 time used for this insertion : 0.014690637588500977 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.41527462005615234 time spend to save output : 0.014970064163208008 total time spend for step 7 : 0.43024468421936035 step8:final Mon Mar 3 08:25:41 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 : {1340587285: ('0.05692958709668446',), 1340587196: ('0.05692958709668446',), 1340587189: ('0.05692958709668446',), 1340587082: ('0.05692958709668446',), 1340587075: ('0.05692958709668446',), 1340586997: ('0.05692958709668446',), 1340586989: ('0.05692958709668446',), 1340586931: ('0.05692958709668446',), 1340586924: ('0.05692958709668446',), 1340586883: ('0.05692958709668446',)} new output for save of step final : {1340587285: ('0.05692958709668446',), 1340587196: ('0.05692958709668446',), 1340587189: ('0.05692958709668446',), 1340587082: ('0.05692958709668446',), 1340587075: ('0.05692958709668446',), 1340586997: ('0.05692958709668446',), 1340586989: ('0.05692958709668446',), 1340586931: ('0.05692958709668446',), 1340586924: ('0.05692958709668446',), 1340586883: ('0.05692958709668446',)} [1340587285, 1340587196, 1340587189, 1340587082, 1340587075, 1340586997, 1340586989, 1340586931, 1340586924, 1340586883] Looping around the photos to save general results len do output : 10 /1340587285.Didn't retrieve data . /1340587196.Didn't retrieve data . /1340587189.Didn't retrieve data . /1340587082.Didn't retrieve data . /1340587075.Didn't retrieve data . /1340586997.Didn't retrieve data . /1340586989.Didn't retrieve data . /1340586931.Didn't retrieve data . /1340586924.Didn't retrieve data . /1340586883.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, '2628212') ('3459', None, '1340587285', None, None, None, None, None, '2628212') ('3459', None, None, None, None, None, None, None, '2628212') ('3459', None, '1340587196', None, None, None, None, None, '2628212') ('3459', None, None, None, None, None, None, None, '2628212') ('3459', None, '1340587189', None, None, None, None, None, '2628212') ('3459', None, None, None, None, None, None, None, '2628212') ('3459', None, '1340587082', None, None, None, None, None, '2628212') ('3459', None, None, None, None, None, None, None, '2628212') ('3459', None, '1340587075', None, None, None, None, None, '2628212') ('3459', None, None, None, None, None, None, None, '2628212') ('3459', None, '1340586997', None, None, None, None, None, '2628212') ('3459', None, None, None, None, None, None, None, '2628212') ('3459', None, '1340586989', None, None, None, None, None, '2628212') ('3459', None, None, None, None, None, None, None, '2628212') ('3459', None, '1340586931', None, None, None, None, None, '2628212') ('3459', None, None, None, None, None, None, None, '2628212') ('3459', None, '1340586924', None, None, None, None, None, '2628212') ('3459', None, None, None, None, None, None, None, '2628212') ('3459', None, '1340586883', None, None, None, None, None, '2628212') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 time used for this insertion : 0.01267385482788086 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.10084867477416992 time spend to save output : 0.013089656829833984 total time spend for step 8 : 0.1139383316040039 step9:velours_tree Mon Mar 3 08:25:42 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.03144478797912598 time spend to save output : 3.361701965332031e-05 total time spend for step 9 : 0.0314784049987793 step10:send_mail_cod Mon Mar 3 08:25:42 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_P20965613_03-03-2025_08_25_42.pdf 20966204 change filename to text .imagette209662041740986742 20966207 change filename to text .imagette209662071740986742 20966209 change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .imagette209662091740986742 20966210 change filename to text .change filename to text .change filename to text .imagette209662101740986742 20966211 imagette209662111740986742 20966213 change filename to text .change filename to text .change filename to text .imagette209662131740986742 20966215 imagette209662151740986743 20966208 imagette209662081740986743 20966212 change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .imagette209662121740986743 20966214 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 .change filename to text .imagette209662141740986743 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20965613 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20966204,20966205,20966206,20966207,20966208,20966209,20966210,20966211,20966212,20966213,20966214,20966215?tags=metal,papier,environnement,kraft,Carton_gris,cartonnette,autre_refus,flou,Carton_brun,plastique,Teint_Dans_La_Masse,mal_croppe your option no_mail is active, we will not send the real mail to your client args[1340587285] : ('0.05692958709668446',) no score found for photo 1340587285 We are sending mail with results at report@fotonower.com args[1340587196] : ('0.05692958709668446',) no score found for photo 1340587196 We are sending mail with results at report@fotonower.com args[1340587189] : ('0.05692958709668446',) no score found for photo 1340587189 We are sending mail with results at report@fotonower.com args[1340587082] : ('0.05692958709668446',) no score found for photo 1340587082 We are sending mail with results at report@fotonower.com args[1340587075] : ('0.05692958709668446',) no score found for photo 1340587075 We are sending mail with results at report@fotonower.com args[1340586997] : ('0.05692958709668446',) no score found for photo 1340586997 We are sending mail with results at report@fotonower.com args[1340586989] : ('0.05692958709668446',) no score found for photo 1340586989 We are sending mail with results at report@fotonower.com args[1340586931] : ('0.05692958709668446',) no score found for photo 1340586931 We are sending mail with results at report@fotonower.com args[1340586924] : ('0.05692958709668446',) no score found for photo 1340586924 We are sending mail with results at report@fotonower.com args[1340586883] : ('0.05692958709668446',) no score found for photo 1340586883 We are sending mail with results at report@fotonower.com refus_total : 0.05692958709668446 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=20965613 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 1000 SELECT photo_id, url FROM MTRBack.photos ph WHERE photo_id IN (1340588176,1340586883,1340587075,1340587829,1340588296,1340588257,1340588252,1340588181,1340588107,1340588103,1340588048,1340588044,1340587984,1340587980,1340587900,1340587896,1340587833,1340587766,1340587758,1340587631) Found this number of photos: 20 begin to download photo : 1340588176 begin to download photo : 1340588257 begin to download photo : 1340588048 begin to download photo : 1340587896 download finish for photo 1340588176 begin to download photo : 1340586883 download finish for photo 1340588257 begin to download photo : 1340588252 download finish for photo 1340587896 begin to download photo : 1340587833 download finish for photo 1340588048 begin to download photo : 1340588044 download finish for photo 1340587833 begin to download photo : 1340587766 download finish for photo 1340586883 begin to download photo : 1340587075 download finish for photo 1340588252 begin to download photo : 1340588181 download finish for photo 1340588044 begin to download photo : 1340587984 download finish for photo 1340587766 begin to download photo : 1340587758 download finish for photo 1340587075 begin to download photo : 1340587829 download finish for photo 1340588181 begin to download photo : 1340588107 download finish for photo 1340587984 begin to download photo : 1340587980 download finish for photo 1340587758 begin to download photo : 1340587631 download finish for photo 1340587829 begin to download photo : 1340588296 download finish for photo 1340588107 begin to download photo : 1340588103 download finish for photo 1340587980 begin to download photo : 1340587900 download finish for photo 1340587631 download finish for photo 1340588296 download finish for photo 1340588103 download finish for photo 1340587900 start upload file to ovh https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20965613_03-03-2025_08_25_42.pdf results_Auto_P20965613_03-03-2025_08_25_42.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20965613_03-03-2025_08_25_42.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','20965613','results_Auto_P20965613_03-03-2025_08_25_42.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20965613_03-03-2025_08_25_42.pdf','pdf','','0.32','0.05692958709668446') Inside saveOutput : final : False verbose : 0 saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1340587285, 1340587196, 1340587189, 1340587082, 1340587075, 1340586997, 1340586989, 1340586931, 1340586924, 1340586883] 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, '2628212') ('3459', None, '1340587285', None, None, None, None, None, '2628212') ('3459', None, None, None, None, None, None, None, '2628212') ('3459', None, '1340587196', None, None, None, None, None, '2628212') ('3459', None, None, None, None, None, None, None, '2628212') ('3459', None, '1340587189', None, None, None, None, None, '2628212') ('3459', None, None, None, None, None, None, None, '2628212') ('3459', None, '1340587082', None, None, None, None, None, '2628212') ('3459', None, None, None, None, None, None, None, '2628212') ('3459', None, '1340587075', None, None, None, None, None, '2628212') ('3459', None, None, None, None, None, None, None, '2628212') ('3459', None, '1340586997', None, None, None, None, None, '2628212') ('3459', None, None, None, None, None, None, None, '2628212') ('3459', None, '1340586989', None, None, None, None, None, '2628212') ('3459', None, None, None, None, None, None, None, '2628212') ('3459', None, '1340586931', None, None, None, None, None, '2628212') ('3459', None, None, None, None, None, None, None, '2628212') ('3459', None, '1340586924', None, None, None, None, None, '2628212') ('3459', None, None, None, None, None, None, None, '2628212') ('3459', None, '1340586883', None, None, None, None, None, '2628212') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 time used for this insertion : 0.013506174087524414 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.79361891746521 time spend to save output : 0.013802766799926758 total time spend for step 10 : 3.8074216842651367 step11:split_time_score Mon Mar 3 08:25:45 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 We expect there is only one output and this part is used while all output are not tuple or array We expect there is only one output and this part is used while all output are not tuple or array We expect there is only one output and this part is used while all output are not tuple or array We expect there is only one output and this part is used while all output are not tuple or array We expect there is only one output and this part is used while all output are not tuple or array We expect there is only one output and this part is used while all output are not tuple or array We expect there is only one output and this part is used while all output are not tuple or array We expect there is only one output and this part is used while all output are not tuple or array We expect there is only one output and this part is used while all output are not tuple or array We expect there is only one output and this part is used while all output are not tuple or array Inconsistent number of input and output, step which parrallelize and manage error in input by avoiding sending an output for this data can't be used in tree dependencies of input and output complete output_args for input 1 VR 22-3-18 : For now we do not clean correctly the datou structure begin split time score Catched exception ! Connect or reconnect ! TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] (('07', 30),) ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 03032025 20965613 Nombre de photos uploadées : 30 / 23040 (0%) 03032025 20965613 Nombre de photos taguées (types de déchets): 0 / 30 (0%) 03032025 20965613 Nombre de photos taguées (volume) : 0 / 30 (0%) elapsed_time : load_data_split_time_score 3.0994415283203125e-06 elapsed_time : order_list_meta_photo_and_scores 8.344650268554688e-06 ?????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0015804767608642578 elapsed_time : insert_dashboard_record_day_entry 0.024450302124023438 We will return after consolidate but for now we need the day, how to get it, for now depending on the previous heavy steps Qualite : 0.039863729332333855 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20964506_03-03-2025_07_37_44.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20964506 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`=20964506 AND mptpi.`type`=3726 To do Qualite : 0.07603242440997401 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20965613_03-03-2025_08_25_42.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20965613 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`=20965613 AND mptpi.`type`=3726 To do Qualite : 0.02575062473468879 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20965638_03-03-2025_08_15_41.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20965638 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`=20965638 AND mptpi.`type`=3726 To do Qualite : 0.05752190734891299 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20965639_03-03-2025_08_11_47.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20965639 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`=20965639 AND mptpi.`type`=3726 To do find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20966218 order by id desc limit 1 NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'03032025': {'nb_upload': 30, '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 [1340587285, 1340587196, 1340587189, 1340587082, 1340587075, 1340586997, 1340586989, 1340586931, 1340586924, 1340586883] Looping around the photos to save general results len do output : 1 /20965613Didn'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, '2628212') ('3459', None, '1340587285', None, None, None, None, None, '2628212') ('3459', None, None, None, None, None, None, None, '2628212') ('3459', None, '1340587196', None, None, None, None, None, '2628212') ('3459', None, None, None, None, None, None, None, '2628212') ('3459', None, '1340587189', None, None, None, None, None, '2628212') ('3459', None, None, None, None, None, None, None, '2628212') ('3459', None, '1340587082', None, None, None, None, None, '2628212') ('3459', None, None, None, None, None, None, None, '2628212') ('3459', None, '1340587075', None, None, None, None, None, '2628212') ('3459', None, None, None, None, None, None, None, '2628212') ('3459', None, '1340586997', None, None, None, None, None, '2628212') ('3459', None, None, None, None, None, None, None, '2628212') ('3459', None, '1340586989', None, None, None, None, None, '2628212') ('3459', None, None, None, None, None, None, None, '2628212') ('3459', None, '1340586931', None, None, None, None, None, '2628212') ('3459', None, None, None, None, None, None, None, '2628212') ('3459', None, '1340586924', None, None, None, None, None, '2628212') ('3459', None, None, None, None, None, None, None, '2628212') ('3459', None, '1340586883', None, None, None, None, None, '2628212') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 time used for this insertion : 0.013162612915039062 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.177039384841919 time spend to save output : 0.013453245162963867 total time spend for step 11 : 1.1904926300048828 caffe_path_current : About to save ! 2 After save, about to update current ! update_current_state 41.08user 27.30system 1:21.21elapsed 84%CPU (0avgtext+0avgdata 2813536maxresident)k 19632inputs+32904outputs (194major+2329933minor)pagefaults 0swaps