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 : 79679 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 : 15>10 please execute split_portfolio.py -i 21178362 -l 10 size over we load limit photo not treated list_input_json: [] Current got : datou_id : 3459, datou_cur_ids : ['2652113'] with mtr_portfolio_ids : ['21178362'] and first list_photo_ids : [] new path : /proc/79679/ Inside batchDatouExec : verbose : 0 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 11449 mask_detect is not consistent : 3 used against 2 in the step definition ! Step 11452 crop_condition have less inputs used (1) than in the step definition (2) : maybe we manage optionnal inputs ! Step 11452 crop_condition have less outputs used (2) than in the step definition (3) : some outputs may be not used ! Step 11453 merge_mask_thcl_custom have less inputs used (2) than in the step definition (3) : maybe we manage optionnal inputs ! WARNING : number of outputs for step 11453 merge_mask_thcl_custom is not consistent : 4 used against 2 in the step definition ! WARNING : number of inputs for step 11454 rle_unique_nms_with_priority is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 11454 rle_unique_nms_with_priority is not consistent : 2 used against 1 in the step definition ! Step 11478 crop_condition have less inputs used (1) than in the step definition (2) : maybe we manage optionnal inputs ! WARNING : number of outputs for step 11478 crop_condition is not consistent : 4 used against 3 in the step definition ! WARNING : number of inputs for step 11456 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 11456 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11455 final have less inputs used (2) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11455 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! Step 11458 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! WARNING : type of output 2 of step 11449 doesn't seem to be define in the database( WARNING : type of input 2 of step 11452 doesn't seem to be define in the database( WARNING : output 1 of step 11449 have datatype=2 whereas input 1 of step 11453 have datatype=7 WARNING : type of output 2 of step 11453 doesn't seem to be define in the database( WARNING : type of input 1 of step 11454 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : type of output 3 of step 11453 doesn't seem to be define in the database( WARNING : type of input 1 of step 11456 doesn't seem to be define in the database( WARNING : type of output 1 of step 11456 doesn't seem to be define in the database( WARNING : type of input 3 of step 11455 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 11456 have datatype=10 whereas input 3 of step 11458 have datatype=6 WARNING : type of input 5 of step 11458 doesn't seem to be define in the database( WARNING : output 0 of step 11477 have datatype=11 whereas input 5 of step 11458 have datatype=None WARNING : output 0 of step 11456 have datatype=10 whereas input 0 of step 11477 have datatype=18 WARNING : type of input 2 of step 11478 doesn't seem to be define in the database( WARNING : output 1 of step 11454 have datatype=7 whereas input 2 of step 11478 have datatype=None WARNING : type of output 3 of step 11478 doesn't seem to be define in the database( WARNING : type of input 2 of step 11456 doesn't seem to be define in the database( WARNING : output 0 of step 11453 have datatype=1 whereas input 0 of step 11454 have datatype=2 DataTypes for each output/input checked ! List Step Type Loaded in datou : mask_detect, crop_condition, thcl, merge_mask_thcl_custom, rle_unique_nms_with_priority, crop_condition, ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score list_input_json : [] origin We have 1 , WARNING: data may be incomplete, need to offset and complete ! BFBFBFBFBFBFBFBFBFBFwe have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB length of list_filenames : 10 ; length of list_pids : 10 ; length of list_args : 10 time to download the photos : 2.5310513973236084 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 Sat Mar 8 11:58:32 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Beginning of datou step mask_detect ! save_polygon : True begin detect begin to check gpu status inside check gpu memory l 3637 free memory gpu now : 2942 max_wait_temp : 1 max_wait : 0 gpu_flag : 0 2025-03-08 11:58:36.422694: I tensorflow/core/platform/cpu_feature_guard.cc:143] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA 2025-03-08 11:58:36.455045: I tensorflow/core/platform/profile_utils/cpu_utils.cc:102] CPU Frequency: 3493065000 Hz 2025-03-08 11:58:36.457132: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x7f1da0000b60 initialized for platform Host (this does not guarantee that XLA will be used). Devices: 2025-03-08 11:58:36.457171: I tensorflow/compiler/xla/service/service.cc:176] StreamExecutor device (0): Host, Default Version 2025-03-08 11:58:36.462941: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcuda.so.1 2025-03-08 11:58:36.731648: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x1e3cebc0 initialized for platform CUDA (this does not guarantee that XLA will be used). Devices: 2025-03-08 11:58:36.731709: I tensorflow/compiler/xla/service/service.cc:176] StreamExecutor device (0): NVIDIA GeForce RTX 2080 Ti, Compute Capability 7.5 2025-03-08 11:58:36.733118: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1561] Found device 0 with properties: pciBusID: 0000:41:00.0 name: NVIDIA GeForce RTX 2080 Ti computeCapability: 7.5 coreClock: 1.545GHz coreCount: 68 deviceMemorySize: 10.76GiB deviceMemoryBandwidth: 573.69GiB/s 2025-03-08 11:58:36.734256: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1 2025-03-08 11:58:36.740870: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcublas.so.10 2025-03-08 11:58:36.761602: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcufft.so.10 2025-03-08 11:58:36.763212: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcurand.so.10 2025-03-08 11:58:36.795904: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusolver.so.10 2025-03-08 11:58:36.803783: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusparse.so.10 2025-03-08 11:58:36.860908: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudnn.so.7 2025-03-08 11:58:36.862328: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1703] Adding visible gpu devices: 0 2025-03-08 11:58:36.862847: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1 2025-03-08 11:58:36.863620: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1102] Device interconnect StreamExecutor with strength 1 edge matrix: 2025-03-08 11:58:36.863643: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1108] 0 2025-03-08 11:58:36.863656: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1121] 0: N 2025-03-08 11:58:36.865468: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1247] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 2490 MB memory) -> physical GPU (device: 0, name: NVIDIA GeForce RTX 2080 Ti, pci bus id: 0000:41:00.0, compute capability: 7.5) WARNING:tensorflow:From /home/admin/workarea/git/Velours/python/mtr/mask_rcnn/mask_detection.py:69: The name tf.keras.backend.set_session is deprecated. Please use tf.compat.v1.keras.backend.set_session instead. 2025-03-08 11:58:37.193677: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1561] Found device 0 with properties: pciBusID: 0000:41:00.0 name: NVIDIA GeForce RTX 2080 Ti computeCapability: 7.5 coreClock: 1.545GHz coreCount: 68 deviceMemorySize: 10.76GiB deviceMemoryBandwidth: 573.69GiB/s 2025-03-08 11:58:37.193813: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1 2025-03-08 11:58:37.193838: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcublas.so.10 2025-03-08 11:58:37.193859: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcufft.so.10 2025-03-08 11:58:37.193879: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcurand.so.10 2025-03-08 11:58:37.193898: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusolver.so.10 2025-03-08 11:58:37.193918: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusparse.so.10 2025-03-08 11:58:37.193939: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudnn.so.7 2025-03-08 11:58:37.195054: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1703] Adding visible gpu devices: 0 2025-03-08 11:58:37.196285: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1561] Found device 0 with properties: pciBusID: 0000:41:00.0 name: NVIDIA GeForce RTX 2080 Ti computeCapability: 7.5 coreClock: 1.545GHz coreCount: 68 deviceMemorySize: 10.76GiB deviceMemoryBandwidth: 573.69GiB/s 2025-03-08 11:58:37.196324: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1 2025-03-08 11:58:37.196344: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcublas.so.10 2025-03-08 11:58:37.196360: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcufft.so.10 2025-03-08 11:58:37.196373: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcurand.so.10 2025-03-08 11:58:37.196386: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusolver.so.10 2025-03-08 11:58:37.196398: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusparse.so.10 2025-03-08 11:58:37.196411: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudnn.so.7 2025-03-08 11:58:37.197187: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1703] Adding visible gpu devices: 0 2025-03-08 11:58:37.197222: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1102] Device interconnect StreamExecutor with strength 1 edge matrix: 2025-03-08 11:58:37.197230: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1108] 0 2025-03-08 11:58:37.197238: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1121] 0: N 2025-03-08 11:58:37.198065: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1247] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 2490 MB memory) -> physical GPU (device: 0, name: NVIDIA GeForce RTX 2080 Ti, pci bus id: 0000:41:00.0, compute capability: 7.5) Using TensorFlow backend. WARNING:tensorflow:From /home/admin/workarea/install/Mask_RCNN/model.py:396: calling crop_and_resize_v1 (from tensorflow.python.ops.image_ops_impl) with box_ind is deprecated and will be removed in a future version. Instructions for updating: box_ind is deprecated, use box_indices instead WARNING:tensorflow:From /home/admin/workarea/install/Mask_RCNN/model.py:703: to_int32 (from tensorflow.python.ops.math_ops) is deprecated and will be removed in a future version. Instructions for updating: Use `tf.cast` instead. WARNING:tensorflow:From /home/admin/workarea/install/Mask_RCNN/model.py:729: to_float (from tensorflow.python.ops.math_ops) is deprecated and will be removed in a future version. Instructions for updating: Use `tf.cast` instead. Inside mask_sub_process Inside mask_detect About to load cache.load_thcl_param To do loadFromThcl(), then load ParamDescType : thcl2896 thcls : [{'id': 2896, 'mtr_user_id': 31, 'name': 'learn_convoyeur_qualipapia_nantes_poly_100521_1', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'background,carton_brun,carton_gris,cartonnette,kraft,autre_refus,metal,plastique,teint_dans_la_masse,environnement', 'svm_portfolios_learning': '0,0,0,0,0,0,0,0,0,0', 'photo_hashtag_type': 3663, 'photo_desc_type': 5309, 'type_classification': 'mask_rcnn', 'hashtag_id_list': '0,0,0,0,0,0,0,0,0,0'}] thcl {'id': 2896, 'mtr_user_id': 31, 'name': 'learn_convoyeur_qualipapia_nantes_poly_100521_1', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'background,carton_brun,carton_gris,cartonnette,kraft,autre_refus,metal,plastique,teint_dans_la_masse,environnement', 'svm_portfolios_learning': '0,0,0,0,0,0,0,0,0,0', 'photo_hashtag_type': 3663, 'photo_desc_type': 5309, 'type_classification': 'mask_rcnn', 'hashtag_id_list': '0,0,0,0,0,0,0,0,0,0'} Update svm_hashtag_type_desc : 5309 FOUND : 1 Here is data_from_sql_as_vec to set the ParamDescriptorType : (5309, 'learn_convoyeur_qualipapia_nantes_poly_100521_1', 16384, 25088, 'learn_convoyeur_qualipapia_nantes_poly_100521_1', 'pool5', 10.0, None, None, 256, None, 0, None, 8, None, None, -1000.0, 1, datetime.datetime(2021, 5, 10, 19, 20, 46), datetime.datetime(2021, 5, 10, 19, 20, 46)) {'thcl': {'id': 2896, 'mtr_user_id': 31, 'name': 'learn_convoyeur_qualipapia_nantes_poly_100521_1', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'background,carton_brun,carton_gris,cartonnette,kraft,autre_refus,metal,plastique,teint_dans_la_masse,environnement', 'svm_portfolios_learning': '0,0,0,0,0,0,0,0,0,0', 'photo_hashtag_type': 3663, 'photo_desc_type': 5309, 'type_classification': 'mask_rcnn', 'hashtag_id_list': '0,0,0,0,0,0,0,0,0,0'}, 'list_hashtags': ['background', 'carton_brun', 'carton_gris', 'cartonnette', 'kraft', 'autre_refus', 'metal', 'plastique', 'teint_dans_la_masse', 'environnement'], 'list_hashtags_csv': 'background,carton_brun,carton_gris,cartonnette,kraft,autre_refus,metal,plastique,teint_dans_la_masse,environnement', 'svm_portfolios_learning': '0,0,0,0,0,0,0,0,0,0', 'photo_hashtag_type': 3663, 'svm_hashtag_type_desc': 5309, 'photo_desc_type': 5309, 'pb_hashtag_id_or_classifier': 0} list_class_names : ['background', 'carton_brun', 'carton_gris', 'cartonnette', 'kraft', 'autre_refus', 'metal', 'plastique', 'teint_dans_la_masse', 'environnement'] Configurations: BACKBONE resnet101 BACKBONE_SHAPES [[160 160] [ 80 80] [ 40 40] [ 20 20] [ 10 10]] BACKBONE_STRIDES [4, 8, 16, 32, 64] BATCH_SIZE 1 BBOX_STD_DEV [0.1 0.1 0.2 0.2] DETECTION_MAX_INSTANCES 100 DETECTION_MIN_CONFIDENCE 0.3 DETECTION_NMS_THRESHOLD 0.3 GPU_COUNT 1 IMAGES_PER_GPU 1 IMAGE_MAX_DIM 640 IMAGE_MIN_DIM 640 IMAGE_PADDING True IMAGE_SHAPE [640 640 3] LEARNING_MOMENTUM 0.9 LEARNING_RATE 0.001 LOSS_WEIGHTS {'rpn_class_loss': 1.0, 'rpn_bbox_loss': 1.0, 'mrcnn_class_loss': 1.0, 'mrcnn_bbox_loss': 1.0, 'mrcnn_mask_loss': 1.0} MASK_POOL_SIZE 14 MASK_SHAPE [28, 28] MAX_GT_INSTANCES 100 MEAN_PIXEL [123.7 116.8 103.9] MINI_MASK_SHAPE (56, 56) NAME learn_convoyeur_qualipapia_nantes_poly_100521_1 NUM_CLASSES 10 POOL_SIZE 7 POST_NMS_ROIS_INFERENCE 1000 POST_NMS_ROIS_TRAINING 2000 ROI_POSITIVE_RATIO 0.33 RPN_ANCHOR_RATIOS [0.5, 1, 2] RPN_ANCHOR_SCALES (16, 32, 64, 128, 256) RPN_ANCHOR_STRIDE 1 RPN_BBOX_STD_DEV [0.1 0.1 0.2 0.2] RPN_NMS_THRESHOLD 0.7 RPN_TRAIN_ANCHORS_PER_IMAGE 256 STEPS_PER_EPOCH 1000 TRAIN_ROIS_PER_IMAGE 200 USE_MINI_MASK True USE_RPN_ROIS True VALIDATION_STEPS 50 WEIGHT_DECAY 0.0001 model_param file didn't exist model_name : learn_convoyeur_qualipapia_nantes_poly_100521_1 model_type : mask_rcnn list file need : ['mask_model.h5'] file exist in s3 : ['mask_model.h5'] file manque in s3 : [] 2025-03-08 11:58:50.562840: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcublas.so.10 2025-03-08 11:58:51.317790: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudnn.so.7 2025-03-08 11:58:54.261526: 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-03-08 11:58:54.261656: 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-03-08 11:58:54.268132: 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-03-08 11:58:54.268155: 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-03-08 11:58:54.320550: 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-03-08 11:58:54.320617: 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-03-08 11:58:54.364919: 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-03-08 11:58:54.365025: 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-03-08 11:58:54.412019: 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-03-08 11:58:54.412081: 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-03-08 11:58:54.414318: I tensorflow/stream_executor/cuda/cuda_driver.cc:763] failed to allocate 1.43G (1539178496 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY: out of memory 2025-03-08 11:58:54.414844: I tensorflow/stream_executor/cuda/cuda_driver.cc:763] failed to allocate 1.29G (1385260800 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY: out of memory 2025-03-08 11:58:54.784321: 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-03-08 11:58:54.828853: I tensorflow/stream_executor/cuda/cuda_driver.cc:763] failed to allocate 1.93G (2076049408 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY: out of memory 2025-03-08 11:58:54.829771: I tensorflow/stream_executor/cuda/cuda_driver.cc:763] failed to allocate 1.93G (2076049408 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY: out of memory 2025-03-08 11:58:54.831044: I tensorflow/stream_executor/cuda/cuda_driver.cc:763] failed to allocate 1.93G (2076049408 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY: out of memory 2025-03-08 11:58:54.831792: I tensorflow/stream_executor/cuda/cuda_driver.cc:763] failed to allocate 1.93G (2076049408 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY: out of memory 2025-03-08 11:58:54.842253: I tensorflow/stream_executor/cuda/cuda_driver.cc:763] failed to allocate 1.93G (2076049408 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY: out of memory 2025-03-08 11:58:54.843004: I tensorflow/stream_executor/cuda/cuda_driver.cc:763] failed to allocate 1.93G (2076049408 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY: out of memory 2025-03-08 11:58:54.843743: I tensorflow/stream_executor/cuda/cuda_driver.cc:763] failed to allocate 1.93G (2076049408 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY: out of memory 2025-03-08 11:58:54.844378: I tensorflow/stream_executor/cuda/cuda_driver.cc:763] failed to allocate 1.93G (2076049408 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY: out of memory 2025-03-08 11:58:54.844947: I tensorflow/stream_executor/cuda/cuda_driver.cc:763] failed to allocate 1.93G (2076049408 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY: out of memory 2025-03-08 11:58:54.845516: I tensorflow/stream_executor/cuda/cuda_driver.cc:763] failed to allocate 1.93G (2076049408 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY: out of memory 2025-03-08 11:58:54.860079: I tensorflow/stream_executor/cuda/cuda_driver.cc:763] failed to allocate 1.93G (2076049408 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY: out of memory 2025-03-08 11:58:54.860644: I tensorflow/stream_executor/cuda/cuda_driver.cc:763] failed to allocate 1.93G (2076049408 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY: out of memory 2025-03-08 11:58:54.928162: I tensorflow/stream_executor/cuda/cuda_driver.cc:763] failed to allocate 1.93G (2076049408 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY: out of memory 2025-03-08 11:58:54.928782: I tensorflow/stream_executor/cuda/cuda_driver.cc:763] failed to allocate 1.93G (2076049408 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY: out of memory 2025-03-08 11:58:54.940038: I tensorflow/stream_executor/cuda/cuda_driver.cc:763] failed to allocate 1.93G (2076049408 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY: out of memory 2025-03-08 11:58:54.940643: I tensorflow/stream_executor/cuda/cuda_driver.cc:763] failed to allocate 1.93G (2076049408 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY: out of memory 2025-03-08 11:58:54.964475: I tensorflow/stream_executor/cuda/cuda_driver.cc:763] failed to allocate 1.93G (2076049408 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY: out of memory 2025-03-08 11:58:54.965134: I tensorflow/stream_executor/cuda/cuda_driver.cc:763] failed to allocate 1.93G (2076049408 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY: out of memory 2025-03-08 11:58:54.965702: I tensorflow/stream_executor/cuda/cuda_driver.cc:763] failed to allocate 1.93G (2076049408 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY: out of memory 2025-03-08 11:58:54.966244: I tensorflow/stream_executor/cuda/cuda_driver.cc:763] failed to allocate 1.93G (2076049408 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY: out of memory 2025-03-08 11:58:54.970298: I tensorflow/stream_executor/cuda/cuda_driver.cc:763] failed to allocate 1.93G (2076049408 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY: out of memory 2025-03-08 11:58:54.970851: I tensorflow/stream_executor/cuda/cuda_driver.cc:763] failed to allocate 1.93G (2076049408 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY: out of memory 2025-03-08 11:58:54.971415: I tensorflow/stream_executor/cuda/cuda_driver.cc:763] failed to allocate 1.93G (2076049408 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY: out of memory 2025-03-08 11:58:54.971993: I tensorflow/stream_executor/cuda/cuda_driver.cc:763] failed to allocate 1.93G (2076049408 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY: out of memory 2025-03-08 11:58:54.973582: I tensorflow/stream_executor/cuda/cuda_driver.cc:763] failed to allocate 1.93G (2076049408 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY: out of memory 2025-03-08 11:58:54.973599: 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-03-08 11:58:54.983135: I tensorflow/stream_executor/cuda/cuda_driver.cc:763] failed to allocate 1.93G (2076049408 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY: out of memory 2025-03-08 11:58:54.983671: I tensorflow/stream_executor/cuda/cuda_driver.cc:763] failed to allocate 1.93G (2076049408 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY: out of memory 2025-03-08 11:58:54.992632: I tensorflow/stream_executor/cuda/cuda_driver.cc:763] failed to allocate 1.93G (2076049408 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY: out of memory 2025-03-08 11:58:54.993168: I tensorflow/stream_executor/cuda/cuda_driver.cc:763] failed to allocate 1.93G (2076049408 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY: out of memory 2025-03-08 11:58:54.993705: I tensorflow/stream_executor/cuda/cuda_driver.cc:763] failed to allocate 1.93G (2076049408 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY: out of memory 2025-03-08 11:58:54.994234: I tensorflow/stream_executor/cuda/cuda_driver.cc:763] failed to allocate 1.93G (2076049408 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY: out of memory 2025-03-08 11:58:54.994772: I tensorflow/stream_executor/cuda/cuda_driver.cc:763] failed to allocate 1.93G (2076049408 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY: out of memory 2025-03-08 11:58:54.995351: I tensorflow/stream_executor/cuda/cuda_driver.cc:763] failed to allocate 1.93G (2076049408 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: (2160, 3840, 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: 3840.00000 nb d'objets trouves : 12 NEW PHOTO Processing 1 images image shape: (2160, 3840, 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: 3840.00000 nb d'objets trouves : 18 NEW PHOTO Processing 1 images image shape: (2160, 3840, 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: 3840.00000 nb d'objets trouves : 9 NEW PHOTO Processing 1 images image shape: (2160, 3840, 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: 3840.00000 nb d'objets trouves : 19 NEW PHOTO Processing 1 images image shape: (2160, 3840, 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: 3840.00000 nb d'objets trouves : 22 NEW PHOTO Processing 1 images image shape: (2160, 3840, 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: 3840.00000 nb d'objets trouves : 20 NEW PHOTO Processing 1 images image shape: (2160, 3840, 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: 3840.00000 nb d'objets trouves : 16 NEW PHOTO Processing 1 images image shape: (2160, 3840, 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: 3840.00000 nb d'objets trouves : 5 NEW PHOTO Processing 1 images image shape: (2160, 3840, 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: 3840.00000 nb d'objets trouves : 15 NEW PHOTO Processing 1 images image shape: (2160, 3840, 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: 3840.00000 nb d'objets trouves : 18 Detection mask done ! Trying to reset tf kernel 79993 begin to check gpu status inside check gpu memory l 3610 free memory gpu now : 1749 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 : 2942 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.006589412689208984 nb_pixel_total : 174839 time to create 1 rle with new method : 0.010384082794189453 length of segment : 629 time for calcul the mask position with numpy : 0.6024446487426758 nb_pixel_total : 1600937 time to create 1 rle with new method : 0.1911473274230957 length of segment : 2329 time for calcul the mask position with numpy : 0.0002589225769042969 nb_pixel_total : 8756 time to create 1 rle with old method : 0.009947776794433594 length of segment : 133 time for calcul the mask position with numpy : 0.0010569095611572266 nb_pixel_total : 45194 time to create 1 rle with old method : 0.05055999755859375 length of segment : 131 time for calcul the mask position with numpy : 0.014224052429199219 nb_pixel_total : 457370 time to create 1 rle with new method : 0.3253617286682129 length of segment : 994 time for calcul the mask position with numpy : 0.0005342960357666016 nb_pixel_total : 21968 time to create 1 rle with old method : 0.029692888259887695 length of segment : 174 time for calcul the mask position with numpy : 0.0003223419189453125 nb_pixel_total : 13742 time to create 1 rle with old method : 0.020026445388793945 length of segment : 107 time for calcul the mask position with numpy : 0.0014996528625488281 nb_pixel_total : 80754 time to create 1 rle with old method : 0.11405420303344727 length of segment : 431 time for calcul the mask position with numpy : 0.0054454803466796875 nb_pixel_total : 252322 time to create 1 rle with new method : 0.016907453536987305 length of segment : 1230 time for calcul the mask position with numpy : 0.0006206035614013672 nb_pixel_total : 23402 time to create 1 rle with old method : 0.03165578842163086 length of segment : 164 time for calcul the mask position with numpy : 0.0005047321319580078 nb_pixel_total : 19788 time to create 1 rle with old method : 0.025275230407714844 length of segment : 221 time for calcul the mask position with numpy : 0.022240161895751953 nb_pixel_total : 954484 time to create 1 rle with new method : 1.4696078300476074 length of segment : 1556 time for calcul the mask position with numpy : 0.0030393600463867188 nb_pixel_total : 178855 time to create 1 rle with new method : 0.008542060852050781 length of segment : 597 time for calcul the mask position with numpy : 0.00225067138671875 nb_pixel_total : 118937 time to create 1 rle with old method : 0.13435602188110352 length of segment : 430 time for calcul the mask position with numpy : 0.0036203861236572266 nb_pixel_total : 128326 time to create 1 rle with old method : 0.13711166381835938 length of segment : 395 time for calcul the mask position with numpy : 0.004754543304443359 nb_pixel_total : 152532 time to create 1 rle with new method : 0.013090372085571289 length of segment : 452 time for calcul the mask position with numpy : 0.005588054656982422 nb_pixel_total : 126516 time to create 1 rle with old method : 0.16587591171264648 length of segment : 378 time for calcul the mask position with numpy : 0.004737138748168945 nb_pixel_total : 180027 time to create 1 rle with new method : 0.007008075714111328 length of segment : 1567 time for calcul the mask position with numpy : 0.19632291793823242 nb_pixel_total : 1570716 time to create 1 rle with new method : 0.32646632194519043 length of segment : 2427 time for calcul the mask position with numpy : 0.0009665489196777344 nb_pixel_total : 24356 time to create 1 rle with old method : 0.029282331466674805 length of segment : 131 time for calcul the mask position with numpy : 0.0036776065826416016 nb_pixel_total : 117982 time to create 1 rle with old method : 0.12707209587097168 length of segment : 396 time for calcul the mask position with numpy : 0.011127471923828125 nb_pixel_total : 372172 time to create 1 rle with new method : 0.0721275806427002 length of segment : 1486 time for calcul the mask position with numpy : 0.0017056465148925781 nb_pixel_total : 40369 time to create 1 rle with old method : 0.045818328857421875 length of segment : 173 time for calcul the mask position with numpy : 0.0007443428039550781 nb_pixel_total : 41461 time to create 1 rle with old method : 0.046587467193603516 length of segment : 235 time for calcul the mask position with numpy : 0.0016331672668457031 nb_pixel_total : 94032 time to create 1 rle with old method : 0.10280990600585938 length of segment : 409 time for calcul the mask position with numpy : 0.000675201416015625 nb_pixel_total : 41449 time to create 1 rle with old method : 0.04565238952636719 length of segment : 161 time for calcul the mask position with numpy : 0.0010449886322021484 nb_pixel_total : 33317 time to create 1 rle with old method : 0.03723764419555664 length of segment : 189 time for calcul the mask position with numpy : 0.0009522438049316406 nb_pixel_total : 21992 time to create 1 rle with old method : 0.024207592010498047 length of segment : 302 time for calcul the mask position with numpy : 0.003541707992553711 nb_pixel_total : 146148 time to create 1 rle with old method : 0.15380215644836426 length of segment : 475 time for calcul the mask position with numpy : 0.0037186145782470703 nb_pixel_total : 177434 time to create 1 rle with new method : 0.0061991214752197266 length of segment : 597 time for calcul the mask position with numpy : 0.3099491596221924 nb_pixel_total : 3527312 time to create 1 rle with new method : 0.49988722801208496 length of segment : 2584 time for calcul the mask position with numpy : 0.0006129741668701172 nb_pixel_total : 45558 time to create 1 rle with old method : 0.04945707321166992 length of segment : 187 time for calcul the mask position with numpy : 0.002057313919067383 nb_pixel_total : 130572 time to create 1 rle with old method : 0.13349556922912598 length of segment : 1271 time for calcul the mask position with numpy : 0.016887187957763672 nb_pixel_total : 1343624 time to create 1 rle with new method : 0.08023190498352051 length of segment : 2689 time for calcul the mask position with numpy : 0.0008780956268310547 nb_pixel_total : 55034 time to create 1 rle with old method : 0.06163215637207031 length of segment : 253 time for calcul the mask position with numpy : 0.016449928283691406 nb_pixel_total : 988119 time to create 1 rle with new method : 0.08422017097473145 length of segment : 1733 time for calcul the mask position with numpy : 0.01673293113708496 nb_pixel_total : 757492 time to create 1 rle with new method : 0.046883583068847656 length of segment : 1433 time for calcul the mask position with numpy : 0.0004711151123046875 nb_pixel_total : 11781 time to create 1 rle with old method : 0.012541770935058594 length of segment : 141 time for calcul the mask position with numpy : 0.003869295120239258 nb_pixel_total : 150117 time to create 1 rle with new method : 0.005776166915893555 length of segment : 577 time for calcul the mask position with numpy : 0.0020742416381835938 nb_pixel_total : 68360 time to create 1 rle with old method : 0.07593941688537598 length of segment : 423 time for calcul the mask position with numpy : 0.003053903579711914 nb_pixel_total : 95080 time to create 1 rle with old method : 0.11785101890563965 length of segment : 370 time for calcul the mask position with numpy : 0.00013637542724609375 nb_pixel_total : 7294 time to create 1 rle with old method : 0.008160829544067383 length of segment : 91 time for calcul the mask position with numpy : 0.014931678771972656 nb_pixel_total : 670510 time to create 1 rle with new method : 0.04842948913574219 length of segment : 1524 time for calcul the mask position with numpy : 0.0005228519439697266 nb_pixel_total : 15482 time to create 1 rle with old method : 0.01767253875732422 length of segment : 119 time for calcul the mask position with numpy : 0.0026903152465820312 nb_pixel_total : 74223 time to create 1 rle with old method : 0.08719134330749512 length of segment : 302 time for calcul the mask position with numpy : 0.001592397689819336 nb_pixel_total : 36849 time to create 1 rle with old method : 0.03962373733520508 length of segment : 518 time for calcul the mask position with numpy : 0.00443267822265625 nb_pixel_total : 171112 time to create 1 rle with new method : 0.008542776107788086 length of segment : 577 time for calcul the mask position with numpy : 0.0002651214599609375 nb_pixel_total : 14519 time to create 1 rle with old method : 0.01609039306640625 length of segment : 110 time for calcul the mask position with numpy : 0.0005085468292236328 nb_pixel_total : 18902 time to create 1 rle with old method : 0.020164966583251953 length of segment : 151 time for calcul the mask position with numpy : 0.002117156982421875 nb_pixel_total : 181681 time to create 1 rle with new method : 0.005247354507446289 length of segment : 1080 time for calcul the mask position with numpy : 0.014285564422607422 nb_pixel_total : 705972 time to create 1 rle with new method : 0.1784060001373291 length of segment : 1746 time for calcul the mask position with numpy : 0.0021271705627441406 nb_pixel_total : 56957 time to create 1 rle with old method : 0.06098675727844238 length of segment : 625 time for calcul the mask position with numpy : 0.0005295276641845703 nb_pixel_total : 18030 time to create 1 rle with old method : 0.025702953338623047 length of segment : 159 time for calcul the mask position with numpy : 0.004050016403198242 nb_pixel_total : 173119 time to create 1 rle with new method : 0.005975008010864258 length of segment : 626 time for calcul the mask position with numpy : 0.00040602684020996094 nb_pixel_total : 9805 time to create 1 rle with old method : 0.011368274688720703 length of segment : 96 time for calcul the mask position with numpy : 0.0009255409240722656 nb_pixel_total : 22696 time to create 1 rle with old method : 0.025411128997802734 length of segment : 201 time for calcul the mask position with numpy : 0.00018835067749023438 nb_pixel_total : 2154 time to create 1 rle with old method : 0.002596139907836914 length of segment : 47 time for calcul the mask position with numpy : 0.0028150081634521484 nb_pixel_total : 62488 time to create 1 rle with old method : 0.0698401927947998 length of segment : 423 time for calcul the mask position with numpy : 0.00421452522277832 nb_pixel_total : 163665 time to create 1 rle with new method : 0.0059049129486083984 length of segment : 452 time for calcul the mask position with numpy : 0.0006389617919921875 nb_pixel_total : 23567 time to create 1 rle with old method : 0.02596902847290039 length of segment : 235 time for calcul the mask position with numpy : 0.004480600357055664 nb_pixel_total : 197599 time to create 1 rle with new method : 0.006876230239868164 length of segment : 748 time for calcul the mask position with numpy : 0.00016927719116210938 nb_pixel_total : 1799 time to create 1 rle with old method : 0.0020377635955810547 length of segment : 61 time for calcul the mask position with numpy : 0.0007472038269042969 nb_pixel_total : 21855 time to create 1 rle with old method : 0.023795366287231445 length of segment : 138 time for calcul the mask position with numpy : 0.0012974739074707031 nb_pixel_total : 48077 time to create 1 rle with old method : 0.05155658721923828 length of segment : 341 time for calcul the mask position with numpy : 0.00016117095947265625 nb_pixel_total : 2285 time to create 1 rle with old method : 0.0026247501373291016 length of segment : 78 time for calcul the mask position with numpy : 0.014655351638793945 nb_pixel_total : 654094 time to create 1 rle with new method : 0.04494810104370117 length of segment : 1370 time for calcul the mask position with numpy : 0.0005409717559814453 nb_pixel_total : 13172 time to create 1 rle with old method : 0.01528167724609375 length of segment : 169 time for calcul the mask position with numpy : 0.00016951560974121094 nb_pixel_total : 2074 time to create 1 rle with old method : 0.002531290054321289 length of segment : 68 time for calcul the mask position with numpy : 0.002373933792114258 nb_pixel_total : 78201 time to create 1 rle with old method : 0.08406782150268555 length of segment : 365 time for calcul the mask position with numpy : 0.0008273124694824219 nb_pixel_total : 19132 time to create 1 rle with old method : 0.022034883499145508 length of segment : 182 time for calcul the mask position with numpy : 0.0017955303192138672 nb_pixel_total : 28635 time to create 1 rle with old method : 0.032421112060546875 length of segment : 520 time for calcul the mask position with numpy : 0.0023415088653564453 nb_pixel_total : 99501 time to create 1 rle with old method : 0.10787248611450195 length of segment : 360 time for calcul the mask position with numpy : 0.0002684593200683594 nb_pixel_total : 4401 time to create 1 rle with old method : 0.004909038543701172 length of segment : 101 time for calcul the mask position with numpy : 0.0042493343353271484 nb_pixel_total : 168877 time to create 1 rle with new method : 0.006020307540893555 length of segment : 581 time for calcul the mask position with numpy : 0.03864765167236328 nb_pixel_total : 1465759 time to create 1 rle with new method : 0.25194668769836426 length of segment : 2322 time for calcul the mask position with numpy : 0.022458553314208984 nb_pixel_total : 633135 time to create 1 rle with new method : 0.07119941711425781 length of segment : 2163 time for calcul the mask position with numpy : 0.002732992172241211 nb_pixel_total : 137090 time to create 1 rle with old method : 0.14789319038391113 length of segment : 442 time for calcul the mask position with numpy : 0.002578258514404297 nb_pixel_total : 120960 time to create 1 rle with old method : 0.12916159629821777 length of segment : 829 time for calcul the mask position with numpy : 0.00047707557678222656 nb_pixel_total : 29159 time to create 1 rle with old method : 0.03280234336853027 length of segment : 186 time for calcul the mask position with numpy : 0.0030951499938964844 nb_pixel_total : 157684 time to create 1 rle with new method : 0.005804300308227539 length of segment : 450 time for calcul the mask position with numpy : 0.0010533332824707031 nb_pixel_total : 51282 time to create 1 rle with old method : 0.0568537712097168 length of segment : 340 time for calcul the mask position with numpy : 0.005043745040893555 nb_pixel_total : 200921 time to create 1 rle with new method : 0.013917922973632812 length of segment : 717 time for calcul the mask position with numpy : 0.003510713577270508 nb_pixel_total : 189712 time to create 1 rle with new method : 0.008266210556030273 length of segment : 470 time for calcul the mask position with numpy : 0.007783174514770508 nb_pixel_total : 452518 time to create 1 rle with new method : 0.029210329055786133 length of segment : 1190 time for calcul the mask position with numpy : 0.003436565399169922 nb_pixel_total : 207316 time to create 1 rle with new method : 0.008941411972045898 length of segment : 807 time for calcul the mask position with numpy : 0.0005962848663330078 nb_pixel_total : 8602 time to create 1 rle with old method : 0.010154962539672852 length of segment : 185 time for calcul the mask position with numpy : 0.0006635189056396484 nb_pixel_total : 14501 time to create 1 rle with old method : 0.01683950424194336 length of segment : 151 time for calcul the mask position with numpy : 0.0015423297882080078 nb_pixel_total : 29593 time to create 1 rle with old method : 0.03294181823730469 length of segment : 326 time for calcul the mask position with numpy : 0.0015325546264648438 nb_pixel_total : 58273 time to create 1 rle with old method : 0.06485438346862793 length of segment : 607 time for calcul the mask position with numpy : 0.004360198974609375 nb_pixel_total : 153599 time to create 1 rle with new method : 0.005373239517211914 length of segment : 757 time for calcul the mask position with numpy : 0.0002541542053222656 nb_pixel_total : 3759 time to create 1 rle with old method : 0.004441261291503906 length of segment : 111 time for calcul the mask position with numpy : 0.0003681182861328125 nb_pixel_total : 15759 time to create 1 rle with old method : 0.018052101135253906 length of segment : 178 time for calcul the mask position with numpy : 0.0074615478515625 nb_pixel_total : 229199 time to create 1 rle with new method : 0.006757974624633789 length of segment : 593 time for calcul the mask position with numpy : 0.0004031658172607422 nb_pixel_total : 6666 time to create 1 rle with old method : 0.008250951766967773 length of segment : 100 time for calcul the mask position with numpy : 0.0005009174346923828 nb_pixel_total : 8687 time to create 1 rle with old method : 0.013277530670166016 length of segment : 250 time for calcul the mask position with numpy : 0.0024023056030273438 nb_pixel_total : 98242 time to create 1 rle with old method : 0.11323428153991699 length of segment : 503 time for calcul the mask position with numpy : 0.001753091812133789 nb_pixel_total : 82401 time to create 1 rle with old method : 0.09367036819458008 length of segment : 361 time for calcul the mask position with numpy : 0.0004773139953613281 nb_pixel_total : 12238 time to create 1 rle with old method : 0.014463424682617188 length of segment : 156 time for calcul the mask position with numpy : 0.0007915496826171875 nb_pixel_total : 18318 time to create 1 rle with old method : 0.022917509078979492 length of segment : 349 time for calcul the mask position with numpy : 0.003719329833984375 nb_pixel_total : 173347 time to create 1 rle with new method : 0.006584644317626953 length of segment : 523 time for calcul the mask position with numpy : 0.002710580825805664 nb_pixel_total : 120545 time to create 1 rle with old method : 0.28853750228881836 length of segment : 622 time for calcul the mask position with numpy : 0.001981496810913086 nb_pixel_total : 21867 time to create 1 rle with old method : 0.07090020179748535 length of segment : 386 time for calcul the mask position with numpy : 0.0048711299896240234 nb_pixel_total : 111412 time to create 1 rle with old method : 0.14597010612487793 length of segment : 715 time for calcul the mask position with numpy : 0.0010406970977783203 nb_pixel_total : 50391 time to create 1 rle with old method : 0.059677839279174805 length of segment : 209 time for calcul the mask position with numpy : 0.0037157535552978516 nb_pixel_total : 153557 time to create 1 rle with new method : 0.0065729618072509766 length of segment : 596 time for calcul the mask position with numpy : 0.003703594207763672 nb_pixel_total : 89514 time to create 1 rle with old method : 0.11963343620300293 length of segment : 459 time for calcul the mask position with numpy : 0.004553079605102539 nb_pixel_total : 146406 time to create 1 rle with old method : 0.1808335781097412 length of segment : 501 time for calcul the mask position with numpy : 0.0006716251373291016 nb_pixel_total : 19183 time to create 1 rle with old method : 0.023760557174682617 length of segment : 126 time for calcul the mask position with numpy : 0.0005600452423095703 nb_pixel_total : 13448 time to create 1 rle with old method : 0.0167236328125 length of segment : 167 time for calcul the mask position with numpy : 0.0041065216064453125 nb_pixel_total : 162126 time to create 1 rle with new method : 0.006956815719604492 length of segment : 563 time for calcul the mask position with numpy : 0.0022497177124023438 nb_pixel_total : 48325 time to create 1 rle with old method : 0.06100654602050781 length of segment : 314 time for calcul the mask position with numpy : 0.00037169456481933594 nb_pixel_total : 5304 time to create 1 rle with old method : 0.006230354309082031 length of segment : 154 time for calcul the mask position with numpy : 0.006821870803833008 nb_pixel_total : 231031 time to create 1 rle with new method : 0.012235164642333984 length of segment : 662 time for calcul the mask position with numpy : 0.002458333969116211 nb_pixel_total : 85471 time to create 1 rle with old method : 0.0969095230102539 length of segment : 435 time for calcul the mask position with numpy : 0.003482818603515625 nb_pixel_total : 229132 time to create 1 rle with new method : 0.00902247428894043 length of segment : 664 time for calcul the mask position with numpy : 0.0017352104187011719 nb_pixel_total : 78573 time to create 1 rle with old method : 0.08891034126281738 length of segment : 462 time for calcul the mask position with numpy : 0.0017502307891845703 nb_pixel_total : 31866 time to create 1 rle with old method : 0.036782264709472656 length of segment : 349 time for calcul the mask position with numpy : 0.0001938343048095703 nb_pixel_total : 5812 time to create 1 rle with old method : 0.006785154342651367 length of segment : 155 time for calcul the mask position with numpy : 0.004670381546020508 nb_pixel_total : 172353 time to create 1 rle with new method : 0.0059375762939453125 length of segment : 597 time for calcul the mask position with numpy : 0.0008914470672607422 nb_pixel_total : 23877 time to create 1 rle with old method : 0.027350902557373047 length of segment : 182 time for calcul the mask position with numpy : 0.0009377002716064453 nb_pixel_total : 23820 time to create 1 rle with old method : 0.02802562713623047 length of segment : 208 time for calcul the mask position with numpy : 0.013965606689453125 nb_pixel_total : 662316 time to create 1 rle with new method : 0.22506141662597656 length of segment : 1503 time for calcul the mask position with numpy : 0.00020813941955566406 nb_pixel_total : 5416 time to create 1 rle with old method : 0.00658416748046875 length of segment : 121 time for calcul the mask position with numpy : 0.002016782760620117 nb_pixel_total : 78785 time to create 1 rle with old method : 0.09122228622436523 length of segment : 312 time for calcul the mask position with numpy : 0.012852907180786133 nb_pixel_total : 368476 time to create 1 rle with new method : 0.025352954864501953 length of segment : 1582 time for calcul the mask position with numpy : 0.0003066062927246094 nb_pixel_total : 2648 time to create 1 rle with old method : 0.0033173561096191406 length of segment : 90 time for calcul the mask position with numpy : 0.018894433975219727 nb_pixel_total : 738807 time to create 1 rle with new method : 0.2867705821990967 length of segment : 2326 time for calcul the mask position with numpy : 0.0011734962463378906 nb_pixel_total : 51613 time to create 1 rle with old method : 0.060572147369384766 length of segment : 339 time for calcul the mask position with numpy : 0.01365208625793457 nb_pixel_total : 444951 time to create 1 rle with new method : 0.2913062572479248 length of segment : 825 time for calcul the mask position with numpy : 0.0006067752838134766 nb_pixel_total : 12328 time to create 1 rle with old method : 0.01519322395324707 length of segment : 124 time for calcul the mask position with numpy : 0.002346038818359375 nb_pixel_total : 68593 time to create 1 rle with old method : 0.11113286018371582 length of segment : 235 time for calcul the mask position with numpy : 0.0006783008575439453 nb_pixel_total : 19904 time to create 1 rle with old method : 0.02540135383605957 length of segment : 130 time for calcul the mask position with numpy : 0.001463174819946289 nb_pixel_total : 52802 time to create 1 rle with old method : 0.06526064872741699 length of segment : 346 time spent for convertir_results : 24.39819598197937 Inside saveOutput : final : False verbose : 0 eke 12-6-18 : saveMask need to be cleaned for new output ! Number saved : None batch 1 Loaded 137 chid ids of type : 3663 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++Number RLEs to save : 76249 save missing photos in datou_result : time spend for datou_step_exec : 93.02760100364685 time spend to save output : 70.50464177131653 total time spend for step 1 : 163.53224277496338 step2:crop_condition Sat Mar 8 12:01:16 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 137 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 ! 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 : 17 About to insert : list_path_to_insert length 17 new photo from crops ! we have finished the crop for the class : teint_dans_la_masse begin to crop the class : autre_refus param for this class : {'min_score': 0.5} filtre for class : autre_refus hashtag_id of this class : 2107752406 we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! map_result returned by crop_photo_return_map_crop : length : 12 About to insert : list_path_to_insert length 12 new photo from crops ! we have finished the crop for the class : autre_refus begin to crop the class : carton_gris param for this class : {'min_score': 0.5} filtre for class : carton_gris hashtag_id of this class : 2107753020 we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! map_result returned by crop_photo_return_map_crop : length : 5 About to insert : list_path_to_insert length 5 new photo from crops ! we have finished the crop for the class : carton_gris begin to crop the class : cartonnette param for this class : {'min_score': 0.5} filtre for class : cartonnette hashtag_id of this class : 702398920 we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! 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 : 32 About to insert : list_path_to_insert length 32 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 ! 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 : 8 About to insert : list_path_to_insert length 8 new photo from crops ! we have finished the crop for the class : carton_brun begin to crop the class : plastique param for this class : {'min_score': 0.5} filtre for class : plastique hashtag_id of this class : 492725882 we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! 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 : 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 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 : kraft begin to crop the class : metal param for this class : {'min_score': 0.5} filtre for class : metal hashtag_id of this class : 492628673 delete rles for these photos Inside saveOutput : final : False verbose : 0 saveOutput not yet implemented for datou_step.type : crop_condition we use saveGeneral [1338867245, 1335238113, 1335237999, 1335237967, 1335237931, 1335237877, 1335237738, 1335237734, 1335237716, 1335237690] Looping around the photos to save general results len do output : 82 /-3699508972Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3699508978Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3671663078Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3671663095Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3671663112Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3671663108Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3671663104Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3671663106Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3671663125Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3671663119Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3671663123Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3671663139Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3671663142Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3671663173Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3671663185Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3671663191Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3671663187Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3699508975Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3699508977Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3671663089Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3671663085Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3671663090Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3671663162Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3671663172Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3671663179Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3671663178Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3671663176Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3671663194Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3671663190Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3671663088Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3671663094Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3671663148Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3671663147Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3671663145Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3699508981Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3699508979Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3699508980Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3671663086Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3671663082Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3671663080Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3671663079Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3671663087Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3671663092Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3671663097Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3671663100Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3671663111Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3671663105Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3671663110Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3671663117Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3671663124Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3671663126Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3671663137Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3671663136Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3671663121Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3671663128Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3671663143Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3671663161Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3671663158Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3671663169Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3671663170Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3671663168Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3671663180Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3671663182Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3671663198Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3671663197Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3671663186Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3699508974Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3671663103Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3671663107Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3671663120Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3671663129Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3671663159Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3671663157Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3671663174Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3699508976Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3671663093Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3671663081Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3671663144Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3671663175Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3671663181Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3671663199Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3671663135Didn'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, '2652113') ('3459', '21178362', '1338867245', None, None, None, None, None, '2652113') ('3459', None, None, None, None, None, None, None, '2652113') ('3459', '21178362', '1335238113', None, None, None, None, None, '2652113') ('3459', None, None, None, None, None, None, None, '2652113') ('3459', '21178362', '1335237999', None, None, None, None, None, '2652113') ('3459', None, None, None, None, None, None, None, '2652113') ('3459', '21178362', '1335237967', None, None, None, None, None, '2652113') ('3459', None, None, None, None, None, None, None, '2652113') ('3459', '21178362', '1335237931', None, None, None, None, None, '2652113') ('3459', None, None, None, None, None, None, None, '2652113') ('3459', '21178362', '1335237877', None, None, None, None, None, '2652113') ('3459', None, None, None, None, None, None, None, '2652113') ('3459', '21178362', '1335237738', None, None, None, None, None, '2652113') ('3459', None, None, None, None, None, None, None, '2652113') ('3459', '21178362', '1335237734', None, None, None, None, None, '2652113') ('3459', None, None, None, None, None, None, None, '2652113') ('3459', '21178362', '1335237716', None, None, None, None, None, '2652113') ('3459', None, None, None, None, None, None, None, '2652113') ('3459', '21178362', '1335237690', None, None, None, None, None, '2652113') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 256 time used for this insertion : 0.723691463470459 save_final save missing photos in datou_result : time spend for datou_step_exec : 57.58122396469116 time spend to save output : 0.7368409633636475 total time spend for step 2 : 58.31806492805481 step3:thcl Sat Mar 8 12:02:14 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.010105133056640625 time to convert the images to numpy array : 0.010561466217041016 time to import caffe and check if the image exist : 0.016929149627685547 time to convert the images to numpy array : 0.07677245140075684 time to import caffe and check if the image exist : 0.01984548568725586 time to convert the images to numpy array : 0.33294200897216797 time to import caffe and check if the image exist : 0.017671823501586914 time to convert the images to numpy array : 0.4575953483581543 time to import caffe and check if the image exist : 0.01815009117126465 time to convert the images to numpy array : 0.6486966609954834 time to import caffe and check if the image exist : 0.023813724517822266 time to convert the images to numpy array : 0.6592955589294434 time to import caffe and check if the image exist : 0.01577448844909668 time to convert the images to numpy array : 0.6696341037750244 time to import caffe and check if the image exist : 0.01728987693786621 time to convert the images to numpy array : 0.7861158847808838 time to import caffe and check if the image exist : 0.015894651412963867 time to convert the images to numpy array : 0.7988603115081787 time to import caffe and check if the image exist : 0.02327728271484375 time to convert the images to numpy array : 0.8199999332427979 total time to convert the images to numpy array : 1.2329587936401367 list photo_ids error: [] list photo_ids correct : [-3671663135, -3671663198, -3671663197, -3671663186, -3699508974, -3671663103, -3671663107, -3671663120, -3671663129, -3671663159, -3699508977, -3671663089, -3671663085, -3671663090, -3671663162, -3671663172, -3671663179, -3671663178, -3671663176, -3671663111, -3671663105, -3671663110, -3671663117, -3671663124, -3671663126, -3671663137, -3671663136, -3671663121, -3671663194, -3671663190, -3671663088, -3671663094, -3671663148, -3671663147, -3671663145, -3699508981, -3699508979, -3671663119, -3671663123, -3671663139, -3671663142, -3671663173, -3671663185, -3671663191, -3671663187, -3699508975, -3671663157, -3671663174, -3699508976, -3671663093, -3671663081, -3671663144, -3671663175, -3671663181, -3671663199, -3671663128, -3671663143, -3671663161, -3671663158, -3671663169, -3671663170, -3671663168, -3671663180, -3671663182, -3699508972, -3699508978, -3671663078, -3671663095, -3671663112, -3671663108, -3671663104, -3671663106, -3671663125, -3699508980, -3671663086, -3671663082, -3671663080, -3671663079, -3671663087, -3671663092, -3671663097, -3671663100] number of photos to traite : 82 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 : 425 wait 20 seconds l 3637 free memory gpu now : 425 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 : 206 wait 20 seconds WARNING: Logging before InitGoogleLogging() is written to STDERR F0308 12:03:01.502148 79679 syncedmem.cpp:71] Check failed: error == cudaSuccess (2 vs. 0) out of memory *** Check failure stack trace: *** Command terminated by signal 6 86.59user 73.83system 4:36.20elapsed 58%CPU (0avgtext+0avgdata 4150552maxresident)k 2584384inputs+55560outputs (15583major+6735749minor)pagefaults 0swaps