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 : 2847275 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 20879062 -l 10 size over we load limit photo not treated list_input_json: [] Current got : datou_id : 3459, datou_cur_ids : ['2619500'] with mtr_portfolio_ids : ['20879062'] and first list_photo_ids : [] new path : /proc/2847275/ 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.0496253967285156 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 Thu Feb 27 09:06:30 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 havn't enough memory gpu , need / 3000 l 3632 free memory gpu now : 1944 wait 20 seconds l 3637 free memory gpu now : 1944 max_wait_temp : 1 max_wait : 0 gpu_flag : 0 2025-02-27 09:06:57.025694: I tensorflow/core/platform/cpu_feature_guard.cc:143] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA 2025-02-27 09:06:57.059141: I tensorflow/core/platform/profile_utils/cpu_utils.cc:102] CPU Frequency: 3493065000 Hz 2025-02-27 09:06:57.061854: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x7fb760000b60 initialized for platform Host (this does not guarantee that XLA will be used). Devices: 2025-02-27 09:06:57.061887: I tensorflow/compiler/xla/service/service.cc:176] StreamExecutor device (0): Host, Default Version 2025-02-27 09:06:57.068106: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcuda.so.1 2025-02-27 09:06:57.322778: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0xaee7b60 initialized for platform CUDA (this does not guarantee that XLA will be used). Devices: 2025-02-27 09:06:57.322850: I tensorflow/compiler/xla/service/service.cc:176] StreamExecutor device (0): NVIDIA GeForce RTX 2080 Ti, Compute Capability 7.5 2025-02-27 09:06:57.323810: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1561] Found device 0 with properties: pciBusID: 0000:41:00.0 name: NVIDIA GeForce RTX 2080 Ti computeCapability: 7.5 coreClock: 1.545GHz coreCount: 68 deviceMemorySize: 10.76GiB deviceMemoryBandwidth: 573.69GiB/s 2025-02-27 09:06:57.324657: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1 2025-02-27 09:06:57.328807: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcublas.so.10 2025-02-27 09:06:57.346066: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcufft.so.10 2025-02-27 09:06:57.347478: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcurand.so.10 2025-02-27 09:06:57.377483: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusolver.so.10 2025-02-27 09:06:57.381861: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusparse.so.10 2025-02-27 09:06:57.433516: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudnn.so.7 2025-02-27 09:06:57.434603: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1703] Adding visible gpu devices: 0 2025-02-27 09:06:57.435028: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1 2025-02-27 09:06:57.435551: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1102] Device interconnect StreamExecutor with strength 1 edge matrix: 2025-02-27 09:06:57.435573: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1108] 0 2025-02-27 09:06:57.435585: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1121] 0: N 2025-02-27 09:06:57.436755: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1247] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 1567 MB memory) -> physical GPU (device: 0, name: NVIDIA GeForce RTX 2080 Ti, pci bus id: 0000:41:00.0, compute capability: 7.5) WARNING:tensorflow:From /home/admin/workarea/git/Velours/python/mtr/mask_rcnn/mask_detection.py:69: The name tf.keras.backend.set_session is deprecated. Please use tf.compat.v1.keras.backend.set_session instead. 2025-02-27 09:06:57.879049: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1561] Found device 0 with properties: pciBusID: 0000:41:00.0 name: NVIDIA GeForce RTX 2080 Ti computeCapability: 7.5 coreClock: 1.545GHz coreCount: 68 deviceMemorySize: 10.76GiB deviceMemoryBandwidth: 573.69GiB/s 2025-02-27 09:06:57.879139: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1 2025-02-27 09:06:57.879157: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcublas.so.10 2025-02-27 09:06:57.879173: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcufft.so.10 2025-02-27 09:06:57.879188: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcurand.so.10 2025-02-27 09:06:57.879202: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusolver.so.10 2025-02-27 09:06:57.879216: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusparse.so.10 2025-02-27 09:06:57.879231: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudnn.so.7 2025-02-27 09:06:57.879984: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1703] Adding visible gpu devices: 0 2025-02-27 09:06:57.880796: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1561] Found device 0 with properties: pciBusID: 0000:41:00.0 name: NVIDIA GeForce RTX 2080 Ti computeCapability: 7.5 coreClock: 1.545GHz coreCount: 68 deviceMemorySize: 10.76GiB deviceMemoryBandwidth: 573.69GiB/s 2025-02-27 09:06:57.880828: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1 2025-02-27 09:06:57.880851: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcublas.so.10 2025-02-27 09:06:57.880868: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcufft.so.10 2025-02-27 09:06:57.880884: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcurand.so.10 2025-02-27 09:06:57.880900: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusolver.so.10 2025-02-27 09:06:57.880916: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusparse.so.10 2025-02-27 09:06:57.880932: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudnn.so.7 2025-02-27 09:06:57.881675: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1703] Adding visible gpu devices: 0 2025-02-27 09:06:57.881701: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1102] Device interconnect StreamExecutor with strength 1 edge matrix: 2025-02-27 09:06:57.881710: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1108] 0 2025-02-27 09:06:57.881717: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1121] 0: N 2025-02-27 09:06:57.882489: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1247] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 1567 MB memory) -> physical GPU (device: 0, name: NVIDIA GeForce RTX 2080 Ti, pci bus id: 0000:41:00.0, compute capability: 7.5) Using TensorFlow backend. WARNING:tensorflow:From /home/admin/workarea/install/Mask_RCNN/model.py:396: calling crop_and_resize_v1 (from tensorflow.python.ops.image_ops_impl) with box_ind is deprecated and will be removed in a future version. Instructions for updating: box_ind is deprecated, use box_indices instead WARNING:tensorflow:From /home/admin/workarea/install/Mask_RCNN/model.py:703: to_int32 (from tensorflow.python.ops.math_ops) is deprecated and will be removed in a future version. Instructions for updating: Use `tf.cast` instead. WARNING:tensorflow:From /home/admin/workarea/install/Mask_RCNN/model.py:729: to_float (from tensorflow.python.ops.math_ops) is deprecated and will be removed in a future version. Instructions for updating: Use `tf.cast` instead. Inside mask_sub_process Inside mask_detect About to load cache.load_thcl_param To do loadFromThcl(), then load ParamDescType : thcl2896 thcls : [{'id': 2896, 'mtr_user_id': 31, 'name': 'learn_convoyeur_qualipapia_nantes_poly_100521_1', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'background,carton_brun,carton_gris,cartonnette,kraft,autre_refus,metal,plastique,teint_dans_la_masse,environnement', 'svm_portfolios_learning': '0,0,0,0,0,0,0,0,0,0', 'photo_hashtag_type': 3663, 'photo_desc_type': 5309, 'type_classification': 'mask_rcnn', 'hashtag_id_list': '0,0,0,0,0,0,0,0,0,0'}] thcl {'id': 2896, 'mtr_user_id': 31, 'name': 'learn_convoyeur_qualipapia_nantes_poly_100521_1', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'background,carton_brun,carton_gris,cartonnette,kraft,autre_refus,metal,plastique,teint_dans_la_masse,environnement', 'svm_portfolios_learning': '0,0,0,0,0,0,0,0,0,0', 'photo_hashtag_type': 3663, 'photo_desc_type': 5309, 'type_classification': 'mask_rcnn', 'hashtag_id_list': '0,0,0,0,0,0,0,0,0,0'} Update svm_hashtag_type_desc : 5309 FOUND : 1 Here is data_from_sql_as_vec to set the ParamDescriptorType : (5309, 'learn_convoyeur_qualipapia_nantes_poly_100521_1', 16384, 25088, 'learn_convoyeur_qualipapia_nantes_poly_100521_1', 'pool5', 10.0, None, None, 256, None, 0, None, 8, None, None, -1000.0, 1, datetime.datetime(2021, 5, 10, 19, 20, 46), datetime.datetime(2021, 5, 10, 19, 20, 46)) {'thcl': {'id': 2896, 'mtr_user_id': 31, 'name': 'learn_convoyeur_qualipapia_nantes_poly_100521_1', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'background,carton_brun,carton_gris,cartonnette,kraft,autre_refus,metal,plastique,teint_dans_la_masse,environnement', 'svm_portfolios_learning': '0,0,0,0,0,0,0,0,0,0', 'photo_hashtag_type': 3663, 'photo_desc_type': 5309, 'type_classification': 'mask_rcnn', 'hashtag_id_list': '0,0,0,0,0,0,0,0,0,0'}, 'list_hashtags': ['background', 'carton_brun', 'carton_gris', 'cartonnette', 'kraft', 'autre_refus', 'metal', 'plastique', 'teint_dans_la_masse', 'environnement'], 'list_hashtags_csv': 'background,carton_brun,carton_gris,cartonnette,kraft,autre_refus,metal,plastique,teint_dans_la_masse,environnement', 'svm_portfolios_learning': '0,0,0,0,0,0,0,0,0,0', 'photo_hashtag_type': 3663, 'svm_hashtag_type_desc': 5309, 'photo_desc_type': 5309, 'pb_hashtag_id_or_classifier': 0} list_class_names : ['background', 'carton_brun', 'carton_gris', 'cartonnette', 'kraft', 'autre_refus', 'metal', 'plastique', 'teint_dans_la_masse', 'environnement'] Configurations: BACKBONE resnet101 BACKBONE_SHAPES [[160 160] [ 80 80] [ 40 40] [ 20 20] [ 10 10]] BACKBONE_STRIDES [4, 8, 16, 32, 64] BATCH_SIZE 1 BBOX_STD_DEV [0.1 0.1 0.2 0.2] DETECTION_MAX_INSTANCES 100 DETECTION_MIN_CONFIDENCE 0.3 DETECTION_NMS_THRESHOLD 0.3 GPU_COUNT 1 IMAGES_PER_GPU 1 IMAGE_MAX_DIM 640 IMAGE_MIN_DIM 640 IMAGE_PADDING True IMAGE_SHAPE [640 640 3] LEARNING_MOMENTUM 0.9 LEARNING_RATE 0.001 LOSS_WEIGHTS {'rpn_class_loss': 1.0, 'rpn_bbox_loss': 1.0, 'mrcnn_class_loss': 1.0, 'mrcnn_bbox_loss': 1.0, 'mrcnn_mask_loss': 1.0} MASK_POOL_SIZE 14 MASK_SHAPE [28, 28] MAX_GT_INSTANCES 100 MEAN_PIXEL [123.7 116.8 103.9] MINI_MASK_SHAPE (56, 56) NAME learn_convoyeur_qualipapia_nantes_poly_100521_1 NUM_CLASSES 10 POOL_SIZE 7 POST_NMS_ROIS_INFERENCE 1000 POST_NMS_ROIS_TRAINING 2000 ROI_POSITIVE_RATIO 0.33 RPN_ANCHOR_RATIOS [0.5, 1, 2] RPN_ANCHOR_SCALES (16, 32, 64, 128, 256) RPN_ANCHOR_STRIDE 1 RPN_BBOX_STD_DEV [0.1 0.1 0.2 0.2] RPN_NMS_THRESHOLD 0.7 RPN_TRAIN_ANCHORS_PER_IMAGE 256 STEPS_PER_EPOCH 1000 TRAIN_ROIS_PER_IMAGE 200 USE_MINI_MASK True USE_RPN_ROIS True VALIDATION_STEPS 50 WEIGHT_DECAY 0.0001 model_param file didn't exist model_name : learn_convoyeur_qualipapia_nantes_poly_100521_1 model_type : mask_rcnn list file need : ['mask_model.h5'] file exist in s3 : ['mask_model.h5'] file manque in s3 : [] 2025-02-27 09:07:06.619867: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcublas.so.10 2025-02-27 09:07:06.788216: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudnn.so.7 2025-02-27 09:07:08.520689: W tensorflow/core/common_runtime/bfc_allocator.cc:245] Allocator (GPU_0_bfc) ran out of memory trying to allocate 2.06GiB with freed_by_count=0. The caller indicates that this is not a failure, but may mean that there could be performance gains if more memory were available. 2025-02-27 09:07:08.520775: W tensorflow/core/common_runtime/bfc_allocator.cc:245] Allocator (GPU_0_bfc) ran out of memory trying to allocate 2.06GiB with freed_by_count=0. The caller indicates that this is not a failure, but may mean that there could be performance gains if more memory were available. 2025-02-27 09:07:08.527502: W tensorflow/core/common_runtime/bfc_allocator.cc:245] Allocator (GPU_0_bfc) ran out of memory trying to allocate 2.06GiB with freed_by_count=0. The caller indicates that this is not a failure, but may mean that there could be performance gains if more memory were available. 2025-02-27 09:07:08.527533: W tensorflow/core/common_runtime/bfc_allocator.cc:245] Allocator (GPU_0_bfc) ran out of memory trying to allocate 2.06GiB with freed_by_count=0. The caller indicates that this is not a failure, but may mean that there could be performance gains if more memory were available. 2025-02-27 09:07:08.576429: W tensorflow/core/common_runtime/bfc_allocator.cc:245] Allocator (GPU_0_bfc) ran out of memory trying to allocate 2.06GiB with freed_by_count=0. The caller indicates that this is not a failure, but may mean that there could be performance gains if more memory were available. 2025-02-27 09:07:08.576500: W tensorflow/core/common_runtime/bfc_allocator.cc:245] Allocator (GPU_0_bfc) ran out of memory trying to allocate 2.06GiB with freed_by_count=0. The caller indicates that this is not a failure, but may mean that there could be performance gains if more memory were available. 2025-02-27 09:07:08.618051: W tensorflow/core/common_runtime/bfc_allocator.cc:245] Allocator (GPU_0_bfc) ran out of memory trying to allocate 2.09GiB with freed_by_count=0. The caller indicates that this is not a failure, but may mean that there could be performance gains if more memory were available. 2025-02-27 09:07:08.618079: W tensorflow/core/common_runtime/bfc_allocator.cc:245] Allocator (GPU_0_bfc) ran out of memory trying to allocate 2.09GiB with freed_by_count=0. The caller indicates that this is not a failure, but may mean that there could be performance gains if more memory were available. 2025-02-27 09:07:08.668886: W tensorflow/core/common_runtime/bfc_allocator.cc:245] Allocator (GPU_0_bfc) ran out of memory trying to allocate 2.15GiB with freed_by_count=0. The caller indicates that this is not a failure, but may mean that there could be performance gains if more memory were available. 2025-02-27 09:07:08.668918: W tensorflow/core/common_runtime/bfc_allocator.cc:245] Allocator (GPU_0_bfc) ran out of memory trying to allocate 2.15GiB with freed_by_count=0. The caller indicates that this is not a failure, but may mean that there could be performance gains if more memory were available. 2025-02-27 09:07:08.700034: W tensorflow/core/common_runtime/bfc_allocator.cc:311] Garbage collection: deallocate free memory regions (i.e., allocations) so that we can re-allocate a larger region to avoid OOM due to memory fragmentation. If you see this message frequently, you are running near the threshold of the available device memory and re-allocation may incur great performance overhead. You may try smaller batch sizes to observe the performance impact. Set TF_ENABLE_GPU_GARBAGE_COLLECTION=false if you'd like to disable this feature. 2025-02-27 09:07:08.716658: I tensorflow/stream_executor/cuda/cuda_driver.cc:763] failed to allocate 1.00G (1073741824 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY: out of memory 2025-02-27 09:07:08.717609: I tensorflow/stream_executor/cuda/cuda_driver.cc:763] failed to allocate 921.60M (966367744 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY: out of memory 2025-02-27 09:07:08.718548: I tensorflow/stream_executor/cuda/cuda_driver.cc:763] failed to allocate 829.44M (869731072 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY: out of memory 2025-02-27 09:07:08.719518: I tensorflow/stream_executor/cuda/cuda_driver.cc:763] failed to allocate 746.50M (782758144 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY: out of memory 2025-02-27 09:07:08.882173: W tensorflow/core/common_runtime/bfc_allocator.cc:311] Garbage collection: deallocate free memory regions (i.e., allocations) so that we can re-allocate a larger region to avoid OOM due to memory fragmentation. If you see this message frequently, you are running near the threshold of the available device memory and re-allocation may incur great performance overhead. You may try smaller batch sizes to observe the performance impact. Set TF_ENABLE_GPU_GARBAGE_COLLECTION=false if you'd like to disable this feature. 2025-02-27 09:07:08.900682: I tensorflow/stream_executor/cuda/cuda_driver.cc:763] failed to allocate 1.03G (1108213760 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY: out of memory 2025-02-27 09:07:08.901691: I tensorflow/stream_executor/cuda/cuda_driver.cc:763] failed to allocate 1.03G (1108213760 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY: out of memory 2025-02-27 09:07:08.907060: I tensorflow/stream_executor/cuda/cuda_driver.cc:763] failed to allocate 1.03G (1108213760 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY: out of memory 2025-02-27 09:07:08.907709: I tensorflow/stream_executor/cuda/cuda_driver.cc:763] failed to allocate 1.03G (1108213760 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY: out of memory 2025-02-27 09:07:08.912326: I tensorflow/stream_executor/cuda/cuda_driver.cc:763] failed to allocate 1.03G (1108213760 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY: out of memory 2025-02-27 09:07:08.912902: I tensorflow/stream_executor/cuda/cuda_driver.cc:763] failed to allocate 1.03G (1108213760 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY: out of memory 2025-02-27 09:07:08.924651: I tensorflow/stream_executor/cuda/cuda_driver.cc:763] failed to allocate 1.03G (1108213760 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY: out of memory 2025-02-27 09:07:08.925183: I tensorflow/stream_executor/cuda/cuda_driver.cc:763] failed to allocate 1.03G (1108213760 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY: out of memory 2025-02-27 09:07:08.929137: I tensorflow/stream_executor/cuda/cuda_driver.cc:763] failed to allocate 1.03G (1108213760 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY: out of memory 2025-02-27 09:07:08.929641: I tensorflow/stream_executor/cuda/cuda_driver.cc:763] failed to allocate 1.03G (1108213760 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY: out of memory 2025-02-27 09:07:08.930329: I tensorflow/stream_executor/cuda/cuda_driver.cc:763] failed to allocate 1.03G (1108213760 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY: out of memory 2025-02-27 09:07:08.930836: I tensorflow/stream_executor/cuda/cuda_driver.cc:763] failed to allocate 1.03G (1108213760 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY: out of memory 2025-02-27 09:07:08.941156: I tensorflow/stream_executor/cuda/cuda_driver.cc:763] failed to allocate 1.03G (1108213760 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY: out of memory 2025-02-27 09:07:08.941661: I tensorflow/stream_executor/cuda/cuda_driver.cc:763] failed to allocate 1.03G (1108213760 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY: out of memory 2025-02-27 09:07:08.942173: I tensorflow/stream_executor/cuda/cuda_driver.cc:763] failed to allocate 1.03G (1108213760 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY: out of memory 2025-02-27 09:07:08.942685: I tensorflow/stream_executor/cuda/cuda_driver.cc:763] failed to allocate 1.03G (1108213760 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY: out of memory 2025-02-27 09:07:08.943224: I tensorflow/stream_executor/cuda/cuda_driver.cc:763] failed to allocate 1.03G (1108213760 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY: out of memory 2025-02-27 09:07:08.943768: I tensorflow/stream_executor/cuda/cuda_driver.cc:763] failed to allocate 1.03G (1108213760 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY: out of memory 2025-02-27 09:07:09.030039: I tensorflow/stream_executor/cuda/cuda_driver.cc:763] failed to allocate 1.03G (1108213760 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY: out of memory 2025-02-27 09:07:09.030596: I tensorflow/stream_executor/cuda/cuda_driver.cc:763] failed to allocate 1.03G (1108213760 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY: out of memory 2025-02-27 09:07:09.050889: I tensorflow/stream_executor/cuda/cuda_driver.cc:763] failed to allocate 1.03G (1108213760 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY: out of memory 2025-02-27 09:07:09.051610: I tensorflow/stream_executor/cuda/cuda_driver.cc:763] failed to allocate 1.03G (1108213760 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY: out of memory 2025-02-27 09:07:09.052295: I tensorflow/stream_executor/cuda/cuda_driver.cc:763] failed to allocate 1.03G (1108213760 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY: out of memory 2025-02-27 09:07:09.052961: I tensorflow/stream_executor/cuda/cuda_driver.cc:763] failed to allocate 1.03G (1108213760 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY: out of memory 2025-02-27 09:07:09.056962: I tensorflow/stream_executor/cuda/cuda_driver.cc:763] failed to allocate 1.03G (1108213760 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY: out of memory 2025-02-27 09:07:09.057464: I tensorflow/stream_executor/cuda/cuda_driver.cc:763] failed to allocate 1.03G (1108213760 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY: out of memory 2025-02-27 09:07:09.057961: I tensorflow/stream_executor/cuda/cuda_driver.cc:763] failed to allocate 1.03G (1108213760 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY: out of memory 2025-02-27 09:07:09.058456: I tensorflow/stream_executor/cuda/cuda_driver.cc:763] failed to allocate 1.03G (1108213760 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY: out of memory 2025-02-27 09:07:09.059977: I tensorflow/stream_executor/cuda/cuda_driver.cc:763] failed to allocate 1.03G (1108213760 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY: out of memory 2025-02-27 09:07:09.059996: W tensorflow/core/kernels/gpu_utils.cc:49] Failed to allocate memory for convolution redzone checking; skipping this check. This is benign and only means that we won't check cudnn for out-of-bounds reads and writes. This message will only be printed once. 2025-02-27 09:07:09.069510: I tensorflow/stream_executor/cuda/cuda_driver.cc:763] failed to allocate 1.03G (1108213760 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY: out of memory 2025-02-27 09:07:09.070012: I tensorflow/stream_executor/cuda/cuda_driver.cc:763] failed to allocate 1.03G (1108213760 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY: out of memory 2025-02-27 09:07:09.078820: I tensorflow/stream_executor/cuda/cuda_driver.cc:763] failed to allocate 1.03G (1108213760 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY: out of memory 2025-02-27 09:07:09.079359: I tensorflow/stream_executor/cuda/cuda_driver.cc:763] failed to allocate 1.03G (1108213760 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY: out of memory 2025-02-27 09:07:09.079912: I tensorflow/stream_executor/cuda/cuda_driver.cc:763] failed to allocate 1.03G (1108213760 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY: out of memory 2025-02-27 09:07:09.080443: I tensorflow/stream_executor/cuda/cuda_driver.cc:763] failed to allocate 1.03G (1108213760 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY: out of memory 2025-02-27 09:07:09.080949: I tensorflow/stream_executor/cuda/cuda_driver.cc:763] failed to allocate 1.03G (1108213760 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY: out of memory 2025-02-27 09:07:09.081464: I tensorflow/stream_executor/cuda/cuda_driver.cc:763] failed to allocate 1.03G (1108213760 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY: out of memory 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 : 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 : 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 : 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 : 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 : 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 : 11 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 : 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 : 14 NEW PHOTO Processing 1 images image shape: (1080, 1920, 3) min: 0.00000 max: 255.00000 molded_images shape: (1, 640, 640, 3) min: -123.70000 max: 151.10000 image_metas shape: (1, 18) min: 0.00000 max: 1920.00000 nb d'objets trouves : 4 Detection mask done ! Trying to reset tf kernel 2848234 begin to check gpu status inside check gpu memory l 3610 free memory gpu now : 972 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 : 2165 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.0006465911865234375 nb_pixel_total : 33224 time to create 1 rle with old method : 0.03547048568725586 length of segment : 227 time for calcul the mask position with numpy : 0.0009214878082275391 nb_pixel_total : 51780 time to create 1 rle with old method : 0.060259103775024414 length of segment : 611 time for calcul the mask position with numpy : 0.19198036193847656 nb_pixel_total : 860066 time to create 1 rle with new method : 0.056214332580566406 length of segment : 991 time for calcul the mask position with numpy : 0.0008709430694580078 nb_pixel_total : 13395 time to create 1 rle with old method : 0.016379356384277344 length of segment : 278 time for calcul the mask position with numpy : 0.003397226333618164 nb_pixel_total : 300602 time to create 1 rle with new method : 0.007925748825073242 length of segment : 907 time for calcul the mask position with numpy : 0.00026607513427734375 nb_pixel_total : 13846 time to create 1 rle with old method : 0.017137527465820312 length of segment : 210 time for calcul the mask position with numpy : 0.0002982616424560547 nb_pixel_total : 8684 time to create 1 rle with old method : 0.010098934173583984 length of segment : 147 time for calcul the mask position with numpy : 0.01098775863647461 nb_pixel_total : 811780 time to create 1 rle with new method : 0.022499799728393555 length of segment : 1107 time for calcul the mask position with numpy : 0.00041174888610839844 nb_pixel_total : 27116 time to create 1 rle with old method : 0.03058791160583496 length of segment : 183 time for calcul the mask position with numpy : 0.0003707408905029297 nb_pixel_total : 27254 time to create 1 rle with old method : 0.030745506286621094 length of segment : 185 time for calcul the mask position with numpy : 8.749961853027344e-05 nb_pixel_total : 2407 time to create 1 rle with old method : 0.002995729446411133 length of segment : 70 time for calcul the mask position with numpy : 0.0033555030822753906 nb_pixel_total : 305556 time to create 1 rle with new method : 0.007838249206542969 length of segment : 1015 time for calcul the mask position with numpy : 0.0005233287811279297 nb_pixel_total : 30495 time to create 1 rle with old method : 0.03390359878540039 length of segment : 351 time for calcul the mask position with numpy : 0.0021626949310302734 nb_pixel_total : 174294 time to create 1 rle with new method : 0.005557537078857422 length of segment : 605 time for calcul the mask position with numpy : 0.001600027084350586 nb_pixel_total : 102686 time to create 1 rle with old method : 0.11766767501831055 length of segment : 470 time for calcul the mask position with numpy : 0.0184781551361084 nb_pixel_total : 821121 time to create 1 rle with new method : 0.036786556243896484 length of segment : 1380 time for calcul the mask position with numpy : 0.00012350082397460938 nb_pixel_total : 3501 time to create 1 rle with old method : 0.004505634307861328 length of segment : 64 time for calcul the mask position with numpy : 0.0002589225769042969 nb_pixel_total : 9266 time to create 1 rle with old method : 0.011309385299682617 length of segment : 171 time for calcul the mask position with numpy : 0.0013420581817626953 nb_pixel_total : 14249 time to create 1 rle with old method : 0.017384052276611328 length of segment : 252 time for calcul the mask position with numpy : 0.00026416778564453125 nb_pixel_total : 13932 time to create 1 rle with old method : 0.015958786010742188 length of segment : 198 time for calcul the mask position with numpy : 0.0008053779602050781 nb_pixel_total : 44278 time to create 1 rle with old method : 0.05242657661437988 length of segment : 224 time for calcul the mask position with numpy : 0.0001735687255859375 nb_pixel_total : 1786 time to create 1 rle with old method : 0.0022122859954833984 length of segment : 94 time for calcul the mask position with numpy : 0.0074117183685302734 nb_pixel_total : 358831 time to create 1 rle with new method : 0.014306783676147461 length of segment : 1315 time for calcul the mask position with numpy : 0.0007488727569580078 nb_pixel_total : 54489 time to create 1 rle with old method : 0.06118321418762207 length of segment : 198 time for calcul the mask position with numpy : 0.00010442733764648438 nb_pixel_total : 4494 time to create 1 rle with old method : 0.005444765090942383 length of segment : 109 time for calcul the mask position with numpy : 0.017673492431640625 nb_pixel_total : 1232102 time to create 1 rle with new method : 0.07143378257751465 length of segment : 1555 time for calcul the mask position with numpy : 0.0012521743774414062 nb_pixel_total : 112884 time to create 1 rle with old method : 0.12534213066101074 length of segment : 357 time for calcul the mask position with numpy : 0.0016143321990966797 nb_pixel_total : 134985 time to create 1 rle with old method : 0.15292572975158691 length of segment : 518 time for calcul the mask position with numpy : 0.003345966339111328 nb_pixel_total : 301081 time to create 1 rle with new method : 0.0077168941497802734 length of segment : 915 time for calcul the mask position with numpy : 0.0013060569763183594 nb_pixel_total : 108913 time to create 1 rle with old method : 0.12352943420410156 length of segment : 377 time for calcul the mask position with numpy : 0.0018913745880126953 nb_pixel_total : 58159 time to create 1 rle with old method : 0.06358599662780762 length of segment : 432 time for calcul the mask position with numpy : 0.0007901191711425781 nb_pixel_total : 59713 time to create 1 rle with old method : 0.06632471084594727 length of segment : 310 time for calcul the mask position with numpy : 0.0010638236999511719 nb_pixel_total : 59380 time to create 1 rle with old method : 0.06886744499206543 length of segment : 510 time for calcul the mask position with numpy : 0.01981806755065918 nb_pixel_total : 822166 time to create 1 rle with new method : 0.2614867687225342 length of segment : 1315 time for calcul the mask position with numpy : 0.0029706954956054688 nb_pixel_total : 138183 time to create 1 rle with old method : 0.1733090877532959 length of segment : 449 time for calcul the mask position with numpy : 0.001491546630859375 nb_pixel_total : 81691 time to create 1 rle with old method : 0.09624791145324707 length of segment : 559 time for calcul the mask position with numpy : 0.0005884170532226562 nb_pixel_total : 30271 time to create 1 rle with old method : 0.03597664833068848 length of segment : 153 time for calcul the mask position with numpy : 5.7220458984375e-05 nb_pixel_total : 798 time to create 1 rle with old method : 0.0010628700256347656 length of segment : 33 time for calcul the mask position with numpy : 0.002880573272705078 nb_pixel_total : 59267 time to create 1 rle with old method : 0.0683286190032959 length of segment : 862 time for calcul the mask position with numpy : 0.00452113151550293 nb_pixel_total : 361555 time to create 1 rle with new method : 0.012108325958251953 length of segment : 1794 time for calcul the mask position with numpy : 0.0011990070343017578 nb_pixel_total : 37221 time to create 1 rle with old method : 0.060378313064575195 length of segment : 425 time for calcul the mask position with numpy : 0.008248329162597656 nb_pixel_total : 432262 time to create 1 rle with new method : 0.014788627624511719 length of segment : 1383 time for calcul the mask position with numpy : 0.0007982254028320312 nb_pixel_total : 5573 time to create 1 rle with old method : 0.007897138595581055 length of segment : 179 time for calcul the mask position with numpy : 0.00036597251892089844 nb_pixel_total : 3320 time to create 1 rle with old method : 0.005774497985839844 length of segment : 95 time for calcul the mask position with numpy : 0.001398324966430664 nb_pixel_total : 54938 time to create 1 rle with old method : 0.0729222297668457 length of segment : 320 time for calcul the mask position with numpy : 0.00695347785949707 nb_pixel_total : 389823 time to create 1 rle with new method : 0.016535520553588867 length of segment : 1324 time for calcul the mask position with numpy : 0.0003185272216796875 nb_pixel_total : 6040 time to create 1 rle with old method : 0.007372617721557617 length of segment : 82 time for calcul the mask position with numpy : 0.00015020370483398438 nb_pixel_total : 1331 time to create 1 rle with old method : 0.0017926692962646484 length of segment : 61 time for calcul the mask position with numpy : 0.00020647048950195312 nb_pixel_total : 3419 time to create 1 rle with old method : 0.004263639450073242 length of segment : 80 time for calcul the mask position with numpy : 0.013579368591308594 nb_pixel_total : 584740 time to create 1 rle with new method : 0.02486252784729004 length of segment : 1586 time for calcul the mask position with numpy : 0.00012302398681640625 nb_pixel_total : 2526 time to create 1 rle with old method : 0.0034322738647460938 length of segment : 34 time for calcul the mask position with numpy : 0.00028634071350097656 nb_pixel_total : 9176 time to create 1 rle with old method : 0.011341094970703125 length of segment : 102 time for calcul the mask position with numpy : 0.002646207809448242 nb_pixel_total : 126750 time to create 1 rle with old method : 0.13637089729309082 length of segment : 518 time for calcul the mask position with numpy : 0.0005559921264648438 nb_pixel_total : 22804 time to create 1 rle with old method : 0.026801347732543945 length of segment : 246 time for calcul the mask position with numpy : 0.0004909038543701172 nb_pixel_total : 20237 time to create 1 rle with old method : 0.024566173553466797 length of segment : 220 time for calcul the mask position with numpy : 0.00011467933654785156 nb_pixel_total : 2263 time to create 1 rle with old method : 0.004002094268798828 length of segment : 67 time for calcul the mask position with numpy : 0.00022125244140625 nb_pixel_total : 9231 time to create 1 rle with old method : 0.013668298721313477 length of segment : 99 time for calcul the mask position with numpy : 0.00034809112548828125 nb_pixel_total : 19283 time to create 1 rle with old method : 0.02299666404724121 length of segment : 230 time for calcul the mask position with numpy : 0.0013628005981445312 nb_pixel_total : 72518 time to create 1 rle with old method : 0.08321142196655273 length of segment : 178 time for calcul the mask position with numpy : 0.0004999637603759766 nb_pixel_total : 12905 time to create 1 rle with old method : 0.016278982162475586 length of segment : 180 time for calcul the mask position with numpy : 0.000339508056640625 nb_pixel_total : 12595 time to create 1 rle with old method : 0.015946626663208008 length of segment : 86 time for calcul the mask position with numpy : 0.009527921676635742 nb_pixel_total : 432031 time to create 1 rle with new method : 0.019048213958740234 length of segment : 1659 time spent for convertir_results : 7.129107236862183 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 : 30655 save missing photos in datou_result : time spend for datou_step_exec : 54.06082201004028 time spend to save output : 1.7660982608795166 total time spend for step 1 : 55.8269202709198 step2:crop_condition Thu Feb 27 09:07:26 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! 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 ! 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 : 11 About to insert : list_path_to_insert length 11 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 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 ! map_result returned by crop_photo_return_map_crop : length : 7 About to insert : list_path_to_insert length 7 new photo from crops ! we have finished the crop for the class : cartonnette begin to crop the class : carton_brun param for this class : {'min_score': 0.7} filtre for class : carton_brun hashtag_id of this class : 2107753024 we have both polygon and rles Next one ! we have both polygon and rles Next one ! map_result returned by crop_photo_return_map_crop : length : 2 About to insert : list_path_to_insert length 2 new photo from crops ! we have finished the crop for the class : carton_brun begin to crop the class : plastique param for this class : {'min_score': 0.5} filtre for class : plastique hashtag_id of this class : 492725882 we have both polygon and rles Next one ! 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 : plastique begin to crop the class : kraft param for this class : {'min_score': 0.5} filtre for class : kraft hashtag_id of this class : 493202403 begin to crop the class : metal param for this class : {'min_score': 0.5} filtre for class : metal hashtag_id of this class : 492628673 delete rles for these photos Inside saveOutput : final : False verbose : 0 saveOutput not yet implemented for datou_step.type : crop_condition we use saveGeneral [1339881932, 1339881852, 1339881647, 1339881619, 1339881618, 1339881575, 1339881557, 1339881539, 1339881410, 1339881091] Looping around the photos to save general results len do output : 22 /-3688485142Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3688485151Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3688485155Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3688485156Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3688485176Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3688485173Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3688485186Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3688485189Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3688485192Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3688485200Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3688485202Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3688485198Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3688485165Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3688485168Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3688485182Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3688485178Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3688485193Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3688485194Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3688485195Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3688485150Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3688485190Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3688485196Didn'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, '2619500') ('3459', '20879062', '1339881932', None, None, None, None, None, '2619500') ('3459', None, None, None, None, None, None, None, '2619500') ('3459', '20879062', '1339881852', None, None, None, None, None, '2619500') ('3459', None, None, None, None, None, None, None, '2619500') ('3459', '20879062', '1339881647', None, None, None, None, None, '2619500') ('3459', None, None, None, None, None, None, None, '2619500') ('3459', '20879062', '1339881619', None, None, None, None, None, '2619500') ('3459', None, None, None, None, None, None, None, '2619500') ('3459', '20879062', '1339881618', None, None, None, None, None, '2619500') ('3459', None, None, None, None, None, None, None, '2619500') ('3459', '20879062', '1339881575', None, None, None, None, None, '2619500') ('3459', None, None, None, None, None, None, None, '2619500') ('3459', '20879062', '1339881557', None, None, None, None, None, '2619500') ('3459', None, None, None, None, None, None, None, '2619500') ('3459', '20879062', '1339881539', None, None, None, None, None, '2619500') ('3459', None, None, None, None, None, None, None, '2619500') ('3459', '20879062', '1339881410', None, None, None, None, None, '2619500') ('3459', None, None, None, None, None, None, None, '2619500') ('3459', '20879062', '1339881091', None, None, None, None, None, '2619500') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 76 time used for this insertion : 0.022526979446411133 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.558020353317261 time spend to save output : 0.02375960350036621 total time spend for step 2 : 6.581779956817627 step3:thcl Thu Feb 27 09:07:33 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 VR 22-3-18 : For now we do not clean correctly the datou structure 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.004821062088012695 time to convert the images to numpy array : 2.6226043701171875e-06 time to import caffe and check if the image exist : 0.004936695098876953 time to convert the images to numpy array : 2.86102294921875e-06 time to import caffe and check if the image exist : 0.00620579719543457 time to convert the images to numpy array : 0.005925893783569336 time to import caffe and check if the image exist : 0.008554935455322266 time to convert the images to numpy array : 0.011943817138671875 time to import caffe and check if the image exist : 0.00762629508972168 time to convert the images to numpy array : 0.012953996658325195 time to import caffe and check if the image exist : 0.005375862121582031 time to convert the images to numpy array : 0.015462636947631836 time to import caffe and check if the image exist : 0.005968570709228516 time to convert the images to numpy array : 0.02722334861755371 time to import caffe and check if the image exist : 0.004605531692504883 time to convert the images to numpy array : 0.032854318618774414 time to import caffe and check if the image exist : 0.007129669189453125 time to convert the images to numpy array : 0.03575396537780762 time to import caffe and check if the image exist : 0.004152059555053711 time to convert the images to numpy array : 0.04150795936584473 total time to convert the images to numpy array : 0.31766343116760254 list photo_ids error: [] list photo_ids correct : [-3688485196, -3688485186, -3688485189, -3688485192, -3688485195, -3688485150, -3688485190, -3688485200, -3688485202, -3688485198, -3688485178, -3688485193, -3688485194, -3688485165, -3688485168, -3688485182, -3688485156, -3688485176, -3688485173, -3688485142, -3688485151, -3688485155] number of photos to traite : 22 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 havn't enough memory gpu , need / 2500 l 3632 free memory gpu now : 2165 wait 20 seconds l 3637 free memory gpu now : 2165 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 havn't enough memory gpu , need / 2500 l 3632 free memory gpu now : 1946 wait 20 seconds l 3637 free memory gpu now : 1946 max_wait_temp : 1 max_wait : 0 dict_keys(['prob']) time used to do the prepocess of the images : 0.20118474960327148 time used to do the prediction : 0.24889707565307617 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 havn't enough memory gpu , need / 2500 l 3632 free memory gpu now : 1944 wait 20 seconds l 3637 free memory gpu now : 1944 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 havn't enough memory gpu , need / 2500 l 3632 free memory gpu now : 1944 wait 20 seconds l 3637 free memory gpu now : 1944 max_wait_temp : 1 max_wait : 0 dict_keys(['prob']) time used to do the prepocess of the images : 0.19663715362548828 time used to do the prediction : 0.08348298072814941 we don't save the descriptors for this thcl 2868 Inside saveOutput : final : False verbose : 0 time used to find the portfolios of the photos test new format of the output of the step_thcl begin to insert list_values into class_photo_scores : length of list_valuse in save_photo_hashtag_id_thcl_score : 0 time used for this insertion : 1.621246337890625e-05 save missing photos in datou_result : time spend for datou_step_exec : 87.86189246177673 time spend to save output : 0.0002696514129638672 total time spend for step 3 : 87.8621621131897 step4:merge_mask_thcl_custom Thu Feb 27 09:09:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed 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 [1339881932, 1339881852, 1339881647, 1339881619, 1339881618, 1339881575, 1339881557, 1339881539, 1339881410, 1339881091] Looping around the photos to save general results len do output : 10 /1339881932Didn't retrieve data .Didn't retrieve data . /1339881852Didn't retrieve data .Didn't retrieve data . /1339881647Didn't retrieve data .Didn't retrieve data . /1339881619Didn't retrieve data .Didn't retrieve data . /1339881618Didn't retrieve data .Didn't retrieve data . /1339881575Didn't retrieve data .Didn't retrieve data . /1339881557Didn't retrieve data .Didn't retrieve data . /1339881539Didn't retrieve data .Didn't retrieve data . /1339881410Didn't retrieve data .Didn't retrieve data . /1339881091Didn'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, '2619500') ('3459', '20879062', '1339881932', None, None, None, None, None, '2619500') ('3459', None, None, None, None, None, None, None, '2619500') ('3459', '20879062', '1339881852', None, None, None, None, None, '2619500') ('3459', None, None, None, None, None, None, None, '2619500') ('3459', '20879062', '1339881647', None, None, None, None, None, '2619500') ('3459', None, None, None, None, None, None, None, '2619500') ('3459', '20879062', '1339881619', None, None, None, None, None, '2619500') ('3459', None, None, None, None, None, None, None, '2619500') ('3459', '20879062', '1339881618', None, None, None, None, None, '2619500') ('3459', None, None, None, None, None, None, None, '2619500') ('3459', '20879062', '1339881575', None, None, None, None, None, '2619500') ('3459', None, None, None, None, None, None, None, '2619500') ('3459', '20879062', '1339881557', None, None, None, None, None, '2619500') ('3459', None, None, None, None, None, None, None, '2619500') ('3459', '20879062', '1339881539', None, None, None, None, None, '2619500') ('3459', None, None, None, None, None, None, None, '2619500') ('3459', '20879062', '1339881410', None, None, None, None, None, '2619500') ('3459', None, None, None, None, None, None, None, '2619500') ('3459', '20879062', '1339881091', None, None, None, None, None, '2619500') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 time used for this insertion : 0.014016866683959961 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.05135202407836914 time spend to save output : 0.01456904411315918 total time spend for step 4 : 0.06592106819152832 step5:rle_unique_nms_with_priority Thu Feb 27 09:09:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 VR 22-3-18 : For now we do not clean correctly the datou structure Begin step rle-unique-nms nb_obj : 4 nb_hashtags : 2 time to prepare the origin masks : 1.154254674911499 time for calcul the mask position with numpy : 0.036093711853027344 nb_pixel_total : 1052658 time to create 1 rle with new method : 0.26206016540527344 time for calcul the mask position with numpy : 0.007411479949951172 nb_pixel_total : 79318 time to create 1 rle with old method : 0.08992886543273926 time for calcul the mask position with numpy : 0.013509273529052734 nb_pixel_total : 856876 time to create 1 rle with new method : 0.08581662178039551 time for calcul the mask position with numpy : 0.00658726692199707 nb_pixel_total : 51659 time to create 1 rle with old method : 0.054949045181274414 time for calcul the mask position with numpy : 0.0066144466400146484 nb_pixel_total : 33089 time to create 1 rle with old method : 0.034992218017578125 create new chi : 0.6127848625183105 time to delete rle : 0.02354121208190918 batch 1 Loaded 5 chid ids of type : 3726 Number RLEs to save : 5428 TO DO : save crop sub photo not yet done ! save time : 0.3545985221862793 nb_obj : 7 nb_hashtags : 2 time to prepare the origin masks : 2.015209436416626 time for calcul the mask position with numpy : 0.04207491874694824 nb_pixel_total : 1163918 time to create 1 rle with new method : 0.1227567195892334 time for calcul the mask position with numpy : 0.006559133529663086 nb_pixel_total : 463 time to create 1 rle with old method : 0.0008196830749511719 time for calcul the mask position with numpy : 0.007116794586181641 nb_pixel_total : 27193 time to create 1 rle with old method : 0.030600786209106445 time for calcul the mask position with numpy : 0.007007122039794922 nb_pixel_total : 36480 time to create 1 rle with old method : 0.04380607604980469 time for calcul the mask position with numpy : 0.00690913200378418 nb_pixel_total : 2396 time to create 1 rle with old method : 0.003172636032104492 time for calcul the mask position with numpy : 0.013401985168457031 nb_pixel_total : 820734 time to create 1 rle with new method : 0.18873095512390137 time for calcul the mask position with numpy : 0.006255149841308594 nb_pixel_total : 8646 time to create 1 rle with old method : 0.011196374893188477 time for calcul the mask position with numpy : 0.007284641265869141 nb_pixel_total : 13770 time to create 1 rle with old method : 0.022916316986083984 create new chi : 0.530087947845459 time to delete rle : 0.0008697509765625 batch 1 Loaded 8 chid ids of type : 3726 Number RLEs to save : 5240 TO DO : save crop sub photo not yet done ! save time : 0.3361928462982178 nb_obj : 7 nb_hashtags : 3 time to prepare the origin masks : 0.6770358085632324 time for calcul the mask position with numpy : 0.02267765998840332 nb_pixel_total : 914915 time to create 1 rle with new method : 0.0883326530456543 time for calcul the mask position with numpy : 0.006518125534057617 nb_pixel_total : 13911 time to create 1 rle with old method : 0.015401601791381836 time for calcul the mask position with numpy : 0.01092982292175293 nb_pixel_total : 9239 time to create 1 rle with old method : 0.010807514190673828 time for calcul the mask position with numpy : 0.009356498718261719 nb_pixel_total : 2558 time to create 1 rle with old method : 0.0026848316192626953 time for calcul the mask position with numpy : 0.006995677947998047 nb_pixel_total : 175122 time to create 1 rle with new method : 0.34955739974975586 time for calcul the mask position with numpy : 0.015454769134521484 nb_pixel_total : 824752 time to create 1 rle with new method : 0.03146934509277344 time for calcul the mask position with numpy : 0.0071048736572265625 nb_pixel_total : 102652 time to create 1 rle with old method : 0.11359000205993652 time for calcul the mask position with numpy : 0.006676435470581055 nb_pixel_total : 30451 time to create 1 rle with old method : 0.03370809555053711 create new chi : 0.7393395900726318 time to delete rle : 0.0009658336639404297 batch 1 Loaded 8 chid ids of type : 3726 Number RLEs to save : 7111 TO DO : save crop sub photo not yet done ! save time : 0.4337019920349121 nb_obj : 5 nb_hashtags : 2 time to prepare the origin masks : 0.38545703887939453 time for calcul the mask position with numpy : 0.016879796981811523 nb_pixel_total : 1610901 time to create 1 rle with new method : 0.030757665634155273 time for calcul the mask position with numpy : 0.006396293640136719 nb_pixel_total : 54386 time to create 1 rle with old method : 0.057816505432128906 time for calcul the mask position with numpy : 0.006229877471923828 nb_pixel_total : 4481 time to create 1 rle with old method : 0.004975795745849609 time for calcul the mask position with numpy : 0.008138895034790039 nb_pixel_total : 357937 time to create 1 rle with new method : 0.05155682563781738 time for calcul the mask position with numpy : 0.0058934688568115234 nb_pixel_total : 1776 time to create 1 rle with old method : 0.0018508434295654297 time for calcul the mask position with numpy : 0.006120443344116211 nb_pixel_total : 44119 time to create 1 rle with old method : 0.0494382381439209 create new chi : 0.25334763526916504 time to delete rle : 0.0004944801330566406 batch 1 Loaded 6 chid ids of type : 3726 Number RLEs to save : 4900 TO DO : save crop sub photo not yet done ! save time : 0.431682825088501 nb_obj : 5 nb_hashtags : 2 time to prepare the origin masks : 0.9678022861480713 time for calcul the mask position with numpy : 0.01397848129272461 nb_pixel_total : 719778 time to create 1 rle with new method : 0.294370174407959 time for calcul the mask position with numpy : 0.009433746337890625 nb_pixel_total : 3276 time to create 1 rle with old method : 0.0042002201080322266 time for calcul the mask position with numpy : 0.010247230529785156 nb_pixel_total : 51731 time to create 1 rle with old method : 0.05672502517700195 time for calcul the mask position with numpy : 0.006341457366943359 nb_pixel_total : 40218 time to create 1 rle with old method : 0.042227745056152344 time for calcul the mask position with numpy : 0.00635981559753418 nb_pixel_total : 29868 time to create 1 rle with old method : 0.03385734558105469 time for calcul the mask position with numpy : 0.24081873893737793 nb_pixel_total : 1228729 time to create 1 rle with new method : 0.07745075225830078 create new chi : 0.8114449977874756 time to delete rle : 0.0005505084991455078 batch 1 Loaded 6 chid ids of type : 3726 Number RLEs to save : 6452 TO DO : save crop sub photo not yet done ! save time : 0.40464162826538086 nb_obj : 11 nb_hashtags : 4 time to prepare the origin masks : 1.7106273174285889 time for calcul the mask position with numpy : 0.011814117431640625 nb_pixel_total : 725598 time to create 1 rle with new method : 0.11605596542358398 time for calcul the mask position with numpy : 0.0065729618072509766 nb_pixel_total : 30211 time to create 1 rle with old method : 0.03245043754577637 time for calcul the mask position with numpy : 0.006899833679199219 nb_pixel_total : 142065 time to create 1 rle with old method : 0.16919898986816406 time for calcul the mask position with numpy : 0.006631374359130859 nb_pixel_total : 8749 time to create 1 rle with old method : 0.009733438491821289 time for calcul the mask position with numpy : 0.006020069122314453 nb_pixel_total : 795 time to create 1 rle with old method : 0.0008969306945800781 time for calcul the mask position with numpy : 0.006638288497924805 nb_pixel_total : 81677 time to create 1 rle with old method : 0.09413290023803711 time for calcul the mask position with numpy : 0.006713390350341797 nb_pixel_total : 37098 time to create 1 rle with old method : 0.04392576217651367 time for calcul the mask position with numpy : 0.006809711456298828 nb_pixel_total : 10762 time to create 1 rle with old method : 0.012826681137084961 time for calcul the mask position with numpy : 0.012193441390991211 nb_pixel_total : 781684 time to create 1 rle with new method : 0.11663007736206055 time for calcul the mask position with numpy : 0.0064127445220947266 nb_pixel_total : 58932 time to create 1 rle with old method : 0.06320309638977051 time for calcul the mask position with numpy : 0.006402730941772461 nb_pixel_total : 57963 time to create 1 rle with old method : 0.06252193450927734 time for calcul the mask position with numpy : 0.007012605667114258 nb_pixel_total : 138066 time to create 1 rle with old method : 0.15156316757202148 create new chi : 0.9724423885345459 time to delete rle : 0.0012905597686767578 batch 1 Loaded 12 chid ids of type : 3726 Number RLEs to save : 10242 TO DO : save crop sub photo not yet done ! save time : 0.6191713809967041 nb_obj : 2 nb_hashtags : 1 time to prepare the origin masks : 0.25597333908081055 time for calcul the mask position with numpy : 0.01882004737854004 nb_pixel_total : 1633149 time to create 1 rle with new method : 0.032695770263671875 time for calcul the mask position with numpy : 0.007338762283325195 nb_pixel_total : 3271 time to create 1 rle with old method : 0.003513813018798828 time for calcul the mask position with numpy : 0.00982213020324707 nb_pixel_total : 437180 time to create 1 rle with new method : 0.028599023818969727 create new chi : 0.10977792739868164 time to delete rle : 0.0003414154052734375 batch 1 Loaded 3 chid ids of type : 3726 Number RLEs to save : 3792 TO DO : save crop sub photo not yet done ! save time : 0.24650144577026367 nb_obj : 2 nb_hashtags : 2 time to prepare the origin masks : 0.23549699783325195 time for calcul the mask position with numpy : 0.01985931396484375 nb_pixel_total : 1626623 time to create 1 rle with new method : 0.033432960510253906 time for calcul the mask position with numpy : 0.006809711456298828 nb_pixel_total : 54878 time to create 1 rle with old method : 0.061916351318359375 time for calcul the mask position with numpy : 0.008534669876098633 nb_pixel_total : 392099 time to create 1 rle with new method : 0.028825044631958008 create new chi : 0.15997028350830078 time to delete rle : 0.0004286766052246094 batch 1 Loaded 3 chid ids of type : 3726 Number RLEs to save : 4168 TO DO : save crop sub photo not yet done ! save time : 0.2949409484863281 nb_obj : 11 nb_hashtags : 6 time to prepare the origin masks : 1.0411322116851807 time for calcul the mask position with numpy : 0.16741943359375 nb_pixel_total : 1271136 time to create 1 rle with new method : 0.16951513290405273 time for calcul the mask position with numpy : 0.006365060806274414 nb_pixel_total : 164 time to create 1 rle with old method : 0.0003142356872558594 time for calcul the mask position with numpy : 0.006325960159301758 nb_pixel_total : 20190 time to create 1 rle with old method : 0.02193927764892578 time for calcul the mask position with numpy : 0.006040096282958984 nb_pixel_total : 3390 time to create 1 rle with old method : 0.0037834644317626953 time for calcul the mask position with numpy : 0.005854606628417969 nb_pixel_total : 2511 time to create 1 rle with old method : 0.002897977828979492 time for calcul the mask position with numpy : 0.005972385406494141 nb_pixel_total : 3062 time to create 1 rle with old method : 0.003558635711669922 time for calcul the mask position with numpy : 0.006668806076049805 nb_pixel_total : 117051 time to create 1 rle with old method : 0.12560701370239258 time for calcul the mask position with numpy : 0.005976438522338867 nb_pixel_total : 9177 time to create 1 rle with old method : 0.01024007797241211 time for calcul the mask position with numpy : 0.011369466781616211 nb_pixel_total : 616848 time to create 1 rle with new method : 0.08651018142700195 time for calcul the mask position with numpy : 0.006350040435791016 nb_pixel_total : 1327 time to create 1 rle with old method : 0.0015716552734375 time for calcul the mask position with numpy : 0.006283760070800781 nb_pixel_total : 6013 time to create 1 rle with old method : 0.006679058074951172 time for calcul the mask position with numpy : 0.007796287536621094 nb_pixel_total : 22731 time to create 1 rle with old method : 0.02789926528930664 create new chi : 0.7144467830657959 time to delete rle : 0.0006458759307861328 batch 1 Loaded 12 chid ids of type : 3726 Number RLEs to save : 6378 TO DO : save crop sub photo not yet done ! save time : 0.38107800483703613 nb_obj : 4 nb_hashtags : 2 time to prepare the origin masks : 0.3117947578430176 time for calcul the mask position with numpy : 0.01665472984313965 nb_pixel_total : 1515089 time to create 1 rle with new method : 0.03323698043823242 time for calcul the mask position with numpy : 0.00902700424194336 nb_pixel_total : 460869 time to create 1 rle with new method : 0.03074026107788086 time for calcul the mask position with numpy : 0.005950212478637695 nb_pixel_total : 12509 time to create 1 rle with old method : 0.015233516693115234 time for calcul the mask position with numpy : 0.0063664913177490234 nb_pixel_total : 72297 time to create 1 rle with old method : 0.08229684829711914 time for calcul the mask position with numpy : 0.006006479263305664 nb_pixel_total : 12836 time to create 1 rle with old method : 0.015502452850341797 create new chi : 0.22992634773254395 time to delete rle : 0.0004029273986816406 batch 1 Loaded 5 chid ids of type : 3726 Number RLEs to save : 4502 TO DO : save crop sub photo not yet done ! save time : 0.2982809543609619 map_output_result : {1339881932: (0.0, 'Should be the crop_list due to order', 0), 1339881852: (0.0, 'Should be the crop_list due to order', 0), 1339881647: (0.0, 'Should be the crop_list due to order', 0), 1339881619: (0.0, 'Should be the crop_list due to order', 0), 1339881618: (0.0, 'Should be the crop_list due to order', 0), 1339881575: (0.0, 'Should be the crop_list due to order', 0), 1339881557: (0.0, 'Should be the crop_list due to order', 0), 1339881539: (0.0, 'Should be the crop_list due to order', 0), 1339881410: (0.0, 'Should be the crop_list due to order', 0), 1339881091: (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 [1339881932, 1339881852, 1339881647, 1339881619, 1339881618, 1339881575, 1339881557, 1339881539, 1339881410, 1339881091] Looping around the photos to save general results len do output : 10 /1339881932.Didn't retrieve data . /1339881852.Didn't retrieve data . /1339881647.Didn't retrieve data . /1339881619.Didn't retrieve data . /1339881618.Didn't retrieve data . /1339881575.Didn't retrieve data . /1339881557.Didn't retrieve data . /1339881539.Didn't retrieve data . /1339881410.Didn't retrieve data . /1339881091.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, '2619500') ('3459', '20879062', '1339881932', None, None, None, None, None, '2619500') ('3459', None, None, None, None, None, None, None, '2619500') ('3459', '20879062', '1339881852', None, None, None, None, None, '2619500') ('3459', None, None, None, None, None, None, None, '2619500') ('3459', '20879062', '1339881647', None, None, None, None, None, '2619500') ('3459', None, None, None, None, None, None, None, '2619500') ('3459', '20879062', '1339881619', None, None, None, None, None, '2619500') ('3459', None, None, None, None, None, None, None, '2619500') ('3459', '20879062', '1339881618', None, None, None, None, None, '2619500') ('3459', None, None, None, None, None, None, None, '2619500') ('3459', '20879062', '1339881575', None, None, None, None, None, '2619500') ('3459', None, None, None, None, None, None, None, '2619500') ('3459', '20879062', '1339881557', None, None, None, None, None, '2619500') ('3459', None, None, None, None, None, None, None, '2619500') ('3459', '20879062', '1339881539', None, None, None, None, None, '2619500') ('3459', None, None, None, None, None, None, None, '2619500') ('3459', '20879062', '1339881410', None, None, None, None, None, '2619500') ('3459', None, None, None, None, None, None, None, '2619500') ('3459', '20879062', '1339881091', None, None, None, None, None, '2619500') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 time used for this insertion : 0.014103174209594727 save_final save missing photos in datou_result : time spend for datou_step_exec : 18.085023403167725 time spend to save output : 0.01465463638305664 total time spend for step 5 : 18.09967803955078 step6:crop_condition Thu Feb 27 09:09:19 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 68 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 ! Next one ! Next one ! Next one ! map_result returned by crop_photo_return_map_crop : length : 5 About to insert : list_path_to_insert length 5 new photo from crops ! About to upload 5 photos upload in portfolio : 4869462 init cache_photo without model_param we have 5 photo to upload uploaded to storage server : ovh folder_temporaire : temp/1740643761_2847275 we have uploaded 5 photos in the portfolio 4869462 time of upload the photos Elapsed time : 1.5381238460540771 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 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/1740643763_2847275 we have uploaded 1 photos in the portfolio 4869462 time of upload the photos Elapsed time : 0.6525068283081055 we have finished the crop for the class : carton_gris begin to crop the class : cartonnette param for this class : {'min_score': 0.5} filtre for class : cartonnette hashtag_id of this class : 702398920 Next one ! map_result returned by crop_photo_return_map_crop : length : 1 About to insert : list_path_to_insert length 1 new photo from crops ! About to upload 1 photos upload in portfolio : 4869462 init cache_photo without model_param we have 1 photo to upload uploaded to storage server : ovh folder_temporaire : temp/1740643764_2847275 we have uploaded 1 photos in the portfolio 4869462 time of upload the photos Elapsed time : 0.5847761631011963 we have finished the crop for the class : cartonnette begin to crop the class : carton_brun param for this class : {'min_score': 0.7} filtre for class : carton_brun hashtag_id of this class : 2107753024 begin to crop the class : plastique param for this class : {'min_score': 0.5} filtre for class : plastique hashtag_id of this class : 492725882 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/1740643765_2847275 we have uploaded 1 photos in the portfolio 4869462 time of upload the photos Elapsed time : 0.7131936550140381 we have finished the crop for the class : plastique begin to crop the class : kraft param for this class : {'min_score': 0.5} filtre for class : kraft hashtag_id of this class : 493202403 begin to crop the class : metal param for this class : {'min_score': 0.5} filtre for class : metal hashtag_id of this class : 492628673 delete rles for these photos Inside saveOutput : final : False verbose : 0 saveOutput not yet implemented for datou_step.type : crop_condition we use saveGeneral [1339881932, 1339881852, 1339881647, 1339881619, 1339881618, 1339881575, 1339881557, 1339881539, 1339881410, 1339881091] Looping around the photos to save general results len do output : 8 /1339883974Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1339883975Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1339883976Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1339883977Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1339883978Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1339884001Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1339884064Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1339884117Didn'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, '2619500') ('3459', '20879062', '1339881932', None, None, None, None, None, '2619500') ('3459', None, None, None, None, None, None, None, '2619500') ('3459', '20879062', '1339881852', None, None, None, None, None, '2619500') ('3459', None, None, None, None, None, None, None, '2619500') ('3459', '20879062', '1339881647', None, None, None, None, None, '2619500') ('3459', None, None, None, None, None, None, None, '2619500') ('3459', '20879062', '1339881619', None, None, None, None, None, '2619500') ('3459', None, None, None, None, None, None, None, '2619500') ('3459', '20879062', '1339881618', None, None, None, None, None, '2619500') ('3459', None, None, None, None, None, None, None, '2619500') ('3459', '20879062', '1339881575', None, None, None, None, None, '2619500') ('3459', None, None, None, None, None, None, None, '2619500') ('3459', '20879062', '1339881557', None, None, None, None, None, '2619500') ('3459', None, None, None, None, None, None, None, '2619500') ('3459', '20879062', '1339881539', None, None, None, None, None, '2619500') ('3459', None, None, None, None, None, None, None, '2619500') ('3459', '20879062', '1339881410', None, None, None, None, None, '2619500') ('3459', None, None, None, None, None, None, None, '2619500') ('3459', '20879062', '1339881091', None, None, None, None, None, '2619500') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 34 time used for this insertion : 0.021727800369262695 save_final save missing photos in datou_result : time spend for datou_step_exec : 7.375621318817139 time spend to save output : 0.022382020950317383 total time spend for step 6 : 7.398003339767456 step7:ventilate_hashtags_in_portfolio Thu Feb 27 09:09:26 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! 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 : 20879062 get user id for portfolio 20879062 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`=20879062 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','Carton_brun','autre_refus','environnement','Carton_gris','mal_croppe','metal','plastique','kraft','papier','Teint_Dans_La_Masse','cartonnette')) AND mptpi.`min_score`=0.5 To do To do SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20879062 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','Carton_brun','autre_refus','environnement','Carton_gris','mal_croppe','metal','plastique','kraft','papier','Teint_Dans_La_Masse','cartonnette')) AND mptpi.`min_score`=0.5 To do Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20879062 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','Carton_brun','autre_refus','environnement','Carton_gris','mal_croppe','metal','plastique','kraft','papier','Teint_Dans_La_Masse','cartonnette')) AND mptpi.`min_score`=0.5 To do lien utilise dans velours : https://www.fotonower.com/velours/20879321,20879322,20879323,20879324,20879325,20879326,20879327,20879328,20879329,20879330,20879331,20879332?tags=flou,Carton_brun,autre_refus,environnement,Carton_gris,mal_croppe,metal,plastique,kraft,papier,Teint_Dans_La_Masse,cartonnette Inside saveOutput : final : False verbose : 0 saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1339881932, 1339881852, 1339881647, 1339881619, 1339881618, 1339881575, 1339881557, 1339881539, 1339881410, 1339881091] Looping around the photos to save general results len do output : 1 /20879062. 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, '2619500') ('3459', '20879062', '1339881932', None, None, None, None, None, '2619500') ('3459', None, None, None, None, None, None, None, '2619500') ('3459', '20879062', '1339881852', None, None, None, None, None, '2619500') ('3459', None, None, None, None, None, None, None, '2619500') ('3459', '20879062', '1339881647', None, None, None, None, None, '2619500') ('3459', None, None, None, None, None, None, None, '2619500') ('3459', '20879062', '1339881619', None, None, None, None, None, '2619500') ('3459', None, None, None, None, None, None, None, '2619500') ('3459', '20879062', '1339881618', None, None, None, None, None, '2619500') ('3459', None, None, None, None, None, None, None, '2619500') ('3459', '20879062', '1339881575', None, None, None, None, None, '2619500') ('3459', None, None, None, None, None, None, None, '2619500') ('3459', '20879062', '1339881557', None, None, None, None, None, '2619500') ('3459', None, None, None, None, None, None, None, '2619500') ('3459', '20879062', '1339881539', None, None, None, None, None, '2619500') ('3459', None, None, None, None, None, None, None, '2619500') ('3459', '20879062', '1339881410', None, None, None, None, None, '2619500') ('3459', None, None, None, None, None, None, None, '2619500') ('3459', '20879062', '1339881091', None, None, None, None, None, '2619500') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 time used for this insertion : 0.01380014419555664 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.701425313949585 time spend to save output : 0.014034748077392578 total time spend for step 7 : 1.7154600620269775 step8:final Thu Feb 27 09:09:28 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {1339881932: ('0.05471118690922062',), 1339881852: ('0.05471118690922062',), 1339881647: ('0.05471118690922062',), 1339881619: ('0.05471118690922062',), 1339881618: ('0.05471118690922062',), 1339881575: ('0.05471118690922062',), 1339881557: ('0.05471118690922062',), 1339881539: ('0.05471118690922062',), 1339881410: ('0.05471118690922062',), 1339881091: ('0.05471118690922062',)} new output for save of step final : {1339881932: ('0.05471118690922062',), 1339881852: ('0.05471118690922062',), 1339881647: ('0.05471118690922062',), 1339881619: ('0.05471118690922062',), 1339881618: ('0.05471118690922062',), 1339881575: ('0.05471118690922062',), 1339881557: ('0.05471118690922062',), 1339881539: ('0.05471118690922062',), 1339881410: ('0.05471118690922062',), 1339881091: ('0.05471118690922062',)} [1339881932, 1339881852, 1339881647, 1339881619, 1339881618, 1339881575, 1339881557, 1339881539, 1339881410, 1339881091] Looping around the photos to save general results len do output : 10 /1339881932.Didn't retrieve data . /1339881852.Didn't retrieve data . /1339881647.Didn't retrieve data . /1339881619.Didn't retrieve data . /1339881618.Didn't retrieve data . /1339881575.Didn't retrieve data . /1339881557.Didn't retrieve data . /1339881539.Didn't retrieve data . /1339881410.Didn't retrieve data . /1339881091.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, '2619500') ('3459', '20879062', '1339881932', None, None, None, None, None, '2619500') ('3459', None, None, None, None, None, None, None, '2619500') ('3459', '20879062', '1339881852', None, None, None, None, None, '2619500') ('3459', None, None, None, None, None, None, None, '2619500') ('3459', '20879062', '1339881647', None, None, None, None, None, '2619500') ('3459', None, None, None, None, None, None, None, '2619500') ('3459', '20879062', '1339881619', None, None, None, None, None, '2619500') ('3459', None, None, None, None, None, None, None, '2619500') ('3459', '20879062', '1339881618', None, None, None, None, None, '2619500') ('3459', None, None, None, None, None, None, None, '2619500') ('3459', '20879062', '1339881575', None, None, None, None, None, '2619500') ('3459', None, None, None, None, None, None, None, '2619500') ('3459', '20879062', '1339881557', None, None, None, None, None, '2619500') ('3459', None, None, None, None, None, None, None, '2619500') ('3459', '20879062', '1339881539', None, None, None, None, None, '2619500') ('3459', None, None, None, None, None, None, None, '2619500') ('3459', '20879062', '1339881410', None, None, None, None, None, '2619500') ('3459', None, None, None, None, None, None, None, '2619500') ('3459', '20879062', '1339881091', None, None, None, None, None, '2619500') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 time used for this insertion : 0.012873649597167969 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.12237858772277832 time spend to save output : 0.013364315032958984 total time spend for step 8 : 0.1357429027557373 step9:velours_tree Thu Feb 27 09:09:28 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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.03024911880493164 time spend to save output : 2.7179718017578125e-05 total time spend for step 9 : 0.03027629852294922 step10:send_mail_cod Thu Feb 27 09:09:28 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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_P20879062_27-02-2025_09_09_28.pdf 20879321 imagette208793211740643768 20879323 imagette208793231740643768 20879326 imagette208793261740643768 20879327 imagette208793271740643768 20879328 change filename to text .imagette208793281740643768 20879329 imagette208793291740643768 20879332 change filename to text .imagette208793321740643768 20879322 imagette208793221740643768 20879325 change filename to text .imagette208793251740643768 20879331 change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .imagette208793311740643768 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20879062 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20879321,20879322,20879323,20879324,20879325,20879326,20879327,20879328,20879329,20879330,20879331,20879332?tags=flou,Carton_brun,autre_refus,environnement,Carton_gris,mal_croppe,metal,plastique,kraft,papier,Teint_Dans_La_Masse,cartonnette your option no_mail is active, we will not send the real mail to your client args[1339881932] : ('0.05471118690922062',) no score found for photo 1339881932 We are sending mail with results at report@fotonower.com args[1339881852] : ('0.05471118690922062',) no score found for photo 1339881852 We are sending mail with results at report@fotonower.com args[1339881647] : ('0.05471118690922062',) no score found for photo 1339881647 We are sending mail with results at report@fotonower.com args[1339881619] : ('0.05471118690922062',) no score found for photo 1339881619 We are sending mail with results at report@fotonower.com args[1339881618] : ('0.05471118690922062',) no score found for photo 1339881618 We are sending mail with results at report@fotonower.com args[1339881575] : ('0.05471118690922062',) no score found for photo 1339881575 We are sending mail with results at report@fotonower.com args[1339881557] : ('0.05471118690922062',) no score found for photo 1339881557 We are sending mail with results at report@fotonower.com args[1339881539] : ('0.05471118690922062',) no score found for photo 1339881539 We are sending mail with results at report@fotonower.com args[1339881410] : ('0.05471118690922062',) no score found for photo 1339881410 We are sending mail with results at report@fotonower.com args[1339881091] : ('0.05471118690922062',) no score found for photo 1339881091 We are sending mail with results at report@fotonower.com refus_total : 0.05471118690922062 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=20879062 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 1000 SELECT photo_id, url FROM MTRBack.photos ph WHERE photo_id IN (1339879802,1339880973,1339881575,1339881557,1339881539,1339881410,1339879932,1339881049,1339881025,1339881052,1339881089,1339881091,1339881618,1339881619,1339881647,1339881852,1339881932,1339881028,1339879660,1339880975) Found this number of photos: 20 begin to download photo : 1339879802 begin to download photo : 1339881410 begin to download photo : 1339881089 begin to download photo : 1339881852 download finish for photo 1339881089 begin to download photo : 1339881091 download finish for photo 1339881410 begin to download photo : 1339879932 download finish for photo 1339881852 begin to download photo : 1339881932 download finish for photo 1339879802 begin to download photo : 1339880973 download finish for photo 1339879932 begin to download photo : 1339881049 download finish for photo 1339881091 begin to download photo : 1339881618 download finish for photo 1339881932 begin to download photo : 1339881028 download finish for photo 1339881049 begin to download photo : 1339881025 download finish for photo 1339880973 begin to download photo : 1339881575 download finish for photo 1339881618 begin to download photo : 1339881619 download finish for photo 1339881028 begin to download photo : 1339879660 download finish for photo 1339881575 begin to download photo : 1339881557 download finish for photo 1339881619 begin to download photo : 1339881647 download finish for photo 1339881025 begin to download photo : 1339881052 download finish for photo 1339879660 begin to download photo : 1339880975 download finish for photo 1339881647 download finish for photo 1339881557 begin to download photo : 1339881539 download finish for photo 1339881052 download finish for photo 1339880975 download finish for photo 1339881539 start upload file to ovh https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20879062_27-02-2025_09_09_28.pdf results_Auto_P20879062_27-02-2025_09_09_28.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20879062_27-02-2025_09_09_28.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','20879062','results_Auto_P20879062_27-02-2025_09_09_28.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20879062_27-02-2025_09_09_28.pdf','pdf','','0.23','0.05471118690922062') Inside saveOutput : final : False verbose : 0 saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1339881932, 1339881852, 1339881647, 1339881619, 1339881618, 1339881575, 1339881557, 1339881539, 1339881410, 1339881091] 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, '2619500') ('3459', '20879062', '1339881932', None, None, None, None, None, '2619500') ('3459', None, None, None, None, None, None, None, '2619500') ('3459', '20879062', '1339881852', None, None, None, None, None, '2619500') ('3459', None, None, None, None, None, None, None, '2619500') ('3459', '20879062', '1339881647', None, None, None, None, None, '2619500') ('3459', None, None, None, None, None, None, None, '2619500') ('3459', '20879062', '1339881619', None, None, None, None, None, '2619500') ('3459', None, None, None, None, None, None, None, '2619500') ('3459', '20879062', '1339881618', None, None, None, None, None, '2619500') ('3459', None, None, None, None, None, None, None, '2619500') ('3459', '20879062', '1339881575', None, None, None, None, None, '2619500') ('3459', None, None, None, None, None, None, None, '2619500') ('3459', '20879062', '1339881557', None, None, None, None, None, '2619500') ('3459', None, None, None, None, None, None, None, '2619500') ('3459', '20879062', '1339881539', None, None, None, None, None, '2619500') ('3459', None, None, None, None, None, None, None, '2619500') ('3459', '20879062', '1339881410', None, None, None, None, None, '2619500') ('3459', None, None, None, None, None, None, None, '2619500') ('3459', '20879062', '1339881091', None, None, None, None, None, '2619500') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 time used for this insertion : 0.013725042343139648 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.673400640487671 time spend to save output : 0.013993263244628906 total time spend for step 10 : 2.6873939037323 step11:split_time_score Thu Feb 27 09:09:31 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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'}] (('08', 30),) ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 27022025 20879062 Nombre de photos uploadées : 30 / 23040 (0%) 27022025 20879062 Nombre de photos taguées (types de déchets): 0 / 30 (0%) 27022025 20879062 Nombre de photos taguées (volume) : 0 / 30 (0%) elapsed_time : load_data_split_time_score 1.1205673217773438e-05 elapsed_time : order_list_meta_photo_and_scores 1.1682510375976562e-05 ?????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0017750263214111328 elapsed_time : insert_dashboard_record_day_entry 0.023967266082763672 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.0632687756809284 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20875450_27-02-2025_07_41_21.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20875450 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`=20875450 AND mptpi.`type`=3726 To do find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20876646 order by id desc limit 1 Qualite : 0.05016083197612013 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20876647_27-02-2025_08_17_48.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20876647 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`=20876647 AND mptpi.`type`=3726 To do Qualite : 0.06677441255269197 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20876649_27-02-2025_08_11_52.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20876649 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`=20876649 AND mptpi.`type`=3726 To do find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20879059 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20879060 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20879061 order by id desc limit 1 Qualite : 0.05471118690922062 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20879062_27-02-2025_09_09_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20879062 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`=20879062 AND mptpi.`type`=3726 To do NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'27022025': {'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 [1339881932, 1339881852, 1339881647, 1339881619, 1339881618, 1339881575, 1339881557, 1339881539, 1339881410, 1339881091] Looping around the photos to save general results len do output : 1 /20879062Didn'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, '2619500') ('3459', '20879062', '1339881932', None, None, None, None, None, '2619500') ('3459', None, None, None, None, None, None, None, '2619500') ('3459', '20879062', '1339881852', None, None, None, None, None, '2619500') ('3459', None, None, None, None, None, None, None, '2619500') ('3459', '20879062', '1339881647', None, None, None, None, None, '2619500') ('3459', None, None, None, None, None, None, None, '2619500') ('3459', '20879062', '1339881619', None, None, None, None, None, '2619500') ('3459', None, None, None, None, None, None, None, '2619500') ('3459', '20879062', '1339881618', None, None, None, None, None, '2619500') ('3459', None, None, None, None, None, None, None, '2619500') ('3459', '20879062', '1339881575', None, None, None, None, None, '2619500') ('3459', None, None, None, None, None, None, None, '2619500') ('3459', '20879062', '1339881557', None, None, None, None, None, '2619500') ('3459', None, None, None, None, None, None, None, '2619500') ('3459', '20879062', '1339881539', None, None, None, None, None, '2619500') ('3459', None, None, None, None, None, None, None, '2619500') ('3459', '20879062', '1339881410', None, None, None, None, None, '2619500') ('3459', None, None, None, None, None, None, None, '2619500') ('3459', '20879062', '1339881091', None, None, None, None, None, '2619500') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 time used for this insertion : 0.013202667236328125 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.5001907348632812 time spend to save output : 0.013414621353149414 total time spend for step 11 : 3.5136053562164307 caffe_path_current : About to save ! 2 After save, about to update current ! update_current_state 41.80user 30.58system 3:09.21elapsed 38%CPU (0avgtext+0avgdata 2701136maxresident)k 2329656inputs+28832outputs (7824major+2022262minor)pagefaults 0swaps