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 : 3615540 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 : 424>10 please execute split_portfolio.py -i 21046826 -l 10 size over we load limit photo not treated list_input_json: [] Current got : datou_id : 3459, datou_cur_ids : ['2635775'] with mtr_portfolio_ids : ['21046826'] and first list_photo_ids : [] new path : /proc/3615540/ 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.7526021003723145 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 Wed Mar 5 06:18:29 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Beginning of datou step mask_detect ! save_polygon : True begin detect begin to check gpu status inside check gpu memory l 3637 free memory gpu now : 2743 max_wait_temp : 1 max_wait : 0 gpu_flag : 0 2025-03-05 06:18:32.333751: 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-05 06:18:32.363160: I tensorflow/core/platform/profile_utils/cpu_utils.cc:102] CPU Frequency: 3493065000 Hz 2025-03-05 06:18:32.365880: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x7f92e4000b60 initialized for platform Host (this does not guarantee that XLA will be used). Devices: 2025-03-05 06:18:32.365913: I tensorflow/compiler/xla/service/service.cc:176] StreamExecutor device (0): Host, Default Version 2025-03-05 06:18:32.370517: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcuda.so.1 2025-03-05 06:18:32.643251: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x433bccf0 initialized for platform CUDA (this does not guarantee that XLA will be used). Devices: 2025-03-05 06:18:32.643318: I tensorflow/compiler/xla/service/service.cc:176] StreamExecutor device (0): NVIDIA GeForce RTX 2080 Ti, Compute Capability 7.5 2025-03-05 06:18:32.644574: 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-05 06:18:32.645041: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1 2025-03-05 06:18:32.648800: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcublas.so.10 2025-03-05 06:18:32.661456: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcufft.so.10 2025-03-05 06:18:32.661882: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcurand.so.10 2025-03-05 06:18:32.681206: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusolver.so.10 2025-03-05 06:18:32.685059: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusparse.so.10 2025-03-05 06:18:32.711091: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudnn.so.7 2025-03-05 06:18:32.712427: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1703] Adding visible gpu devices: 0 2025-03-05 06:18:32.712531: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1 2025-03-05 06:18:32.713223: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1102] Device interconnect StreamExecutor with strength 1 edge matrix: 2025-03-05 06:18:32.713245: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1108] 0 2025-03-05 06:18:32.713256: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1121] 0: N 2025-03-05 06:18:32.714728: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1247] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 2291 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-05 06:18:33.036165: 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-05 06:18:33.036308: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1 2025-03-05 06:18:33.036331: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcublas.so.10 2025-03-05 06:18:33.036350: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcufft.so.10 2025-03-05 06:18:33.036368: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcurand.so.10 2025-03-05 06:18:33.036386: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusolver.so.10 2025-03-05 06:18:33.036405: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusparse.so.10 2025-03-05 06:18:33.036424: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudnn.so.7 2025-03-05 06:18:33.037421: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1703] Adding visible gpu devices: 0 2025-03-05 06:18:33.038695: 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-05 06:18:33.038742: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1 2025-03-05 06:18:33.038764: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcublas.so.10 2025-03-05 06:18:33.038784: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcufft.so.10 2025-03-05 06:18:33.038804: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcurand.so.10 2025-03-05 06:18:33.038823: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusolver.so.10 2025-03-05 06:18:33.038843: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusparse.so.10 2025-03-05 06:18:33.038863: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudnn.so.7 2025-03-05 06:18:33.039847: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1703] Adding visible gpu devices: 0 2025-03-05 06:18:33.039895: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1102] Device interconnect StreamExecutor with strength 1 edge matrix: 2025-03-05 06:18:33.039905: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1108] 0 2025-03-05 06:18:33.039915: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1121] 0: N 2025-03-05 06:18:33.040819: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1247] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 2291 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-05 06:18:45.257226: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcublas.so.10 2025-03-05 06:18:45.445156: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudnn.so.7 2025-03-05 06:18:46.933064: 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-05 06:18:46.933127: 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-05 06:18:46.939617: 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-05 06:18:46.939642: 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-05 06:18:46.991346: 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-05 06:18:46.991416: 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-05 06:18:47.033085: 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-05 06:18:47.033116: 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-05 06:18:47.077506: 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-05 06:18:47.077545: W tensorflow/core/common_runtime/bfc_allocator.cc:245] Allocator (GPU_0_bfc) ran out of memory trying to allocate 2.15GiB with freed_by_count=0. The caller indicates that this is not a failure, but may mean that there could be performance gains if more memory were available. local folder : /data/models_weight/learn_convoyeur_qualipapia_nantes_poly_100521_1 /data/models_weight/learn_convoyeur_qualipapia_nantes_poly_100521_1/mask_model.h5 size_local : 256031040 size in s3 : 256031040 create time local : 2021-08-09 05:45:48 create time in s3 : 2021-08-06 18:59:51 mask_model.h5 already exist and didn't need to update list_images length : 10 NEW PHOTO Processing 1 images image shape: (2160, 3264, 3) min: 0.00000 max: 255.00000 molded_images shape: (1, 640, 640, 3) min: -123.70000 max: 151.10000 image_metas shape: (1, 18) min: 0.00000 max: 3264.00000 nb d'objets trouves : 19 NEW PHOTO Processing 1 images image shape: (2160, 3264, 3) min: 0.00000 max: 255.00000 molded_images shape: (1, 640, 640, 3) min: -123.70000 max: 151.10000 image_metas shape: (1, 18) min: 0.00000 max: 3264.00000 nb d'objets trouves : 12 NEW PHOTO Processing 1 images image shape: (2160, 3264, 3) min: 0.00000 max: 255.00000 molded_images shape: (1, 640, 640, 3) min: -123.70000 max: 151.10000 image_metas shape: (1, 18) min: 0.00000 max: 3264.00000 nb d'objets trouves : 18 NEW PHOTO Processing 1 images image shape: (2160, 3264, 3) min: 0.00000 max: 255.00000 molded_images shape: (1, 640, 640, 3) min: -123.70000 max: 151.10000 image_metas shape: (1, 18) min: 0.00000 max: 3264.00000 nb d'objets trouves : 13 NEW PHOTO Processing 1 images image shape: (2160, 3264, 3) min: 0.00000 max: 255.00000 molded_images shape: (1, 640, 640, 3) min: -123.70000 max: 151.10000 image_metas shape: (1, 18) min: 0.00000 max: 3264.00000 nb d'objets trouves : 15 NEW PHOTO Processing 1 images image shape: (2160, 3264, 3) min: 0.00000 max: 255.00000 molded_images shape: (1, 640, 640, 3) min: -123.70000 max: 151.10000 image_metas shape: (1, 18) min: 0.00000 max: 3264.00000 nb d'objets trouves : 26 NEW PHOTO Processing 1 images image shape: (2160, 3264, 3) min: 0.00000 max: 255.00000 molded_images shape: (1, 640, 640, 3) min: -123.70000 max: 151.10000 image_metas shape: (1, 18) min: 0.00000 max: 3264.00000 nb d'objets trouves : 18 NEW PHOTO Processing 1 images image shape: (2160, 3264, 3) min: 0.00000 max: 255.00000 molded_images shape: (1, 640, 640, 3) min: -123.70000 max: 151.10000 image_metas shape: (1, 18) min: 0.00000 max: 3264.00000 nb d'objets trouves : 2 NEW PHOTO Processing 1 images image shape: (2160, 3264, 3) min: 0.00000 max: 255.00000 molded_images shape: (1, 640, 640, 3) min: -123.70000 max: 151.10000 image_metas shape: (1, 18) min: 0.00000 max: 3264.00000 nb d'objets trouves : 2 NEW PHOTO Processing 1 images image shape: (2160, 3264, 3) min: 0.00000 max: 255.00000 molded_images shape: (1, 640, 640, 3) min: -123.70000 max: 151.10000 image_metas shape: (1, 18) min: 0.00000 max: 3264.00000 nb d'objets trouves : 2 Detection mask done ! Trying to reset tf kernel 3615955 begin to check gpu status inside check gpu memory l 3610 free memory gpu now : 210 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 : 3185 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.0007414817810058594 nb_pixel_total : 23181 time to create 1 rle with old method : 0.026203155517578125 length of segment : 213 time for calcul the mask position with numpy : 0.0025453567504882812 nb_pixel_total : 99876 time to create 1 rle with old method : 0.12364768981933594 length of segment : 447 time for calcul the mask position with numpy : 0.0007088184356689453 nb_pixel_total : 36596 time to create 1 rle with old method : 0.039502859115600586 length of segment : 283 time for calcul the mask position with numpy : 0.0005466938018798828 nb_pixel_total : 26807 time to create 1 rle with old method : 0.031603097915649414 length of segment : 184 time for calcul the mask position with numpy : 0.0018720626831054688 nb_pixel_total : 102440 time to create 1 rle with old method : 0.11292099952697754 length of segment : 381 time for calcul the mask position with numpy : 0.00020313262939453125 nb_pixel_total : 9066 time to create 1 rle with old method : 0.010661125183105469 length of segment : 138 time for calcul the mask position with numpy : 0.00016188621520996094 nb_pixel_total : 5456 time to create 1 rle with old method : 0.006367921829223633 length of segment : 89 time for calcul the mask position with numpy : 0.0005028247833251953 nb_pixel_total : 25576 time to create 1 rle with old method : 0.029413700103759766 length of segment : 163 time for calcul the mask position with numpy : 0.002931356430053711 nb_pixel_total : 144881 time to create 1 rle with old method : 0.1792917251586914 length of segment : 650 time for calcul the mask position with numpy : 0.0014951229095458984 nb_pixel_total : 77937 time to create 1 rle with old method : 0.0874783992767334 length of segment : 601 time for calcul the mask position with numpy : 9.918212890625e-05 nb_pixel_total : 2289 time to create 1 rle with old method : 0.002747774124145508 length of segment : 61 time for calcul the mask position with numpy : 0.00015473365783691406 nb_pixel_total : 2723 time to create 1 rle with old method : 0.003623485565185547 length of segment : 110 time for calcul the mask position with numpy : 0.0005555152893066406 nb_pixel_total : 25537 time to create 1 rle with old method : 0.03019881248474121 length of segment : 172 time for calcul the mask position with numpy : 8.392333984375e-05 nb_pixel_total : 2340 time to create 1 rle with old method : 0.003037691116333008 length of segment : 52 time for calcul the mask position with numpy : 0.0005848407745361328 nb_pixel_total : 19734 time to create 1 rle with old method : 0.02279496192932129 length of segment : 296 time for calcul the mask position with numpy : 0.0005338191986083984 nb_pixel_total : 25758 time to create 1 rle with old method : 0.029009580612182617 length of segment : 270 time for calcul the mask position with numpy : 0.00012731552124023438 nb_pixel_total : 2789 time to create 1 rle with old method : 0.0034139156341552734 length of segment : 79 time for calcul the mask position with numpy : 0.0007834434509277344 nb_pixel_total : 49707 time to create 1 rle with old method : 0.059293508529663086 length of segment : 282 time for calcul the mask position with numpy : 0.0012936592102050781 nb_pixel_total : 64375 time to create 1 rle with old method : 0.07219839096069336 length of segment : 351 time for calcul the mask position with numpy : 0.0002295970916748047 nb_pixel_total : 5764 time to create 1 rle with old method : 0.0071604251861572266 length of segment : 149 time for calcul the mask position with numpy : 0.0007674694061279297 nb_pixel_total : 45409 time to create 1 rle with old method : 0.056960105895996094 length of segment : 306 time for calcul the mask position with numpy : 0.009717941284179688 nb_pixel_total : 407784 time to create 1 rle with new method : 0.04612398147583008 length of segment : 1371 time for calcul the mask position with numpy : 0.0007767677307128906 nb_pixel_total : 42661 time to create 1 rle with old method : 0.05415010452270508 length of segment : 288 time for calcul the mask position with numpy : 0.0018038749694824219 nb_pixel_total : 88364 time to create 1 rle with old method : 0.10466551780700684 length of segment : 438 time for calcul the mask position with numpy : 0.0006892681121826172 nb_pixel_total : 44310 time to create 1 rle with old method : 0.0521092414855957 length of segment : 255 time for calcul the mask position with numpy : 0.0013546943664550781 nb_pixel_total : 62644 time to create 1 rle with old method : 0.07333612442016602 length of segment : 464 time for calcul the mask position with numpy : 8.392333984375e-05 nb_pixel_total : 2948 time to create 1 rle with old method : 0.0035486221313476562 length of segment : 75 time for calcul the mask position with numpy : 0.0011680126190185547 nb_pixel_total : 66376 time to create 1 rle with old method : 0.07703876495361328 length of segment : 496 time for calcul the mask position with numpy : 0.0001628398895263672 nb_pixel_total : 8121 time to create 1 rle with old method : 0.009960412979125977 length of segment : 92 time for calcul the mask position with numpy : 0.0011873245239257812 nb_pixel_total : 70208 time to create 1 rle with old method : 0.08243465423583984 length of segment : 325 time for calcul the mask position with numpy : 0.0005974769592285156 nb_pixel_total : 38583 time to create 1 rle with old method : 0.046747446060180664 length of segment : 262 time for calcul the mask position with numpy : 0.0042574405670166016 nb_pixel_total : 316505 time to create 1 rle with new method : 0.013311386108398438 length of segment : 846 time for calcul the mask position with numpy : 0.00010466575622558594 nb_pixel_total : 3119 time to create 1 rle with old method : 0.0038900375366210938 length of segment : 79 time for calcul the mask position with numpy : 0.00021505355834960938 nb_pixel_total : 12282 time to create 1 rle with old method : 0.016142845153808594 length of segment : 89 time for calcul the mask position with numpy : 0.000591278076171875 nb_pixel_total : 43852 time to create 1 rle with old method : 0.05664944648742676 length of segment : 252 time for calcul the mask position with numpy : 0.0001049041748046875 nb_pixel_total : 2114 time to create 1 rle with old method : 0.0033142566680908203 length of segment : 74 time for calcul the mask position with numpy : 0.0005300045013427734 nb_pixel_total : 26055 time to create 1 rle with old method : 0.036989450454711914 length of segment : 245 time for calcul the mask position with numpy : 0.003123044967651367 nb_pixel_total : 85511 time to create 1 rle with old method : 0.10646963119506836 length of segment : 483 time for calcul the mask position with numpy : 0.0031888484954833984 nb_pixel_total : 65712 time to create 1 rle with old method : 0.08252239227294922 length of segment : 638 time for calcul the mask position with numpy : 0.0054471492767333984 nb_pixel_total : 39057 time to create 1 rle with old method : 0.049729347229003906 length of segment : 273 time for calcul the mask position with numpy : 0.007517814636230469 nb_pixel_total : 317800 time to create 1 rle with new method : 0.1957719326019287 length of segment : 1068 time for calcul the mask position with numpy : 0.003181934356689453 nb_pixel_total : 180302 time to create 1 rle with new method : 0.008060932159423828 length of segment : 697 time for calcul the mask position with numpy : 0.0007650852203369141 nb_pixel_total : 19596 time to create 1 rle with old method : 0.02430105209350586 length of segment : 193 time for calcul the mask position with numpy : 0.001676321029663086 nb_pixel_total : 83704 time to create 1 rle with old method : 0.09956741333007812 length of segment : 348 time for calcul the mask position with numpy : 0.0008387565612792969 nb_pixel_total : 43351 time to create 1 rle with old method : 0.0517575740814209 length of segment : 355 time for calcul the mask position with numpy : 0.0068285465240478516 nb_pixel_total : 324423 time to create 1 rle with new method : 0.013947248458862305 length of segment : 608 time for calcul the mask position with numpy : 0.00034046173095703125 nb_pixel_total : 8966 time to create 1 rle with old method : 0.010357379913330078 length of segment : 123 time for calcul the mask position with numpy : 0.0005297660827636719 nb_pixel_total : 20284 time to create 1 rle with old method : 0.024975299835205078 length of segment : 164 time for calcul the mask position with numpy : 0.0006461143493652344 nb_pixel_total : 17087 time to create 1 rle with old method : 0.02151942253112793 length of segment : 155 time for calcul the mask position with numpy : 0.0006456375122070312 nb_pixel_total : 18717 time to create 1 rle with old method : 0.02287602424621582 length of segment : 181 time for calcul the mask position with numpy : 0.0003178119659423828 nb_pixel_total : 3961 time to create 1 rle with old method : 0.004996776580810547 length of segment : 83 time for calcul the mask position with numpy : 0.0047757625579833984 nb_pixel_total : 302776 time to create 1 rle with new method : 0.014328479766845703 length of segment : 601 time for calcul the mask position with numpy : 0.003011941909790039 nb_pixel_total : 190730 time to create 1 rle with new method : 0.0066797733306884766 length of segment : 473 time for calcul the mask position with numpy : 0.0008890628814697266 nb_pixel_total : 23810 time to create 1 rle with old method : 0.03192424774169922 length of segment : 244 time for calcul the mask position with numpy : 0.0005910396575927734 nb_pixel_total : 21430 time to create 1 rle with old method : 0.025883913040161133 length of segment : 250 time for calcul the mask position with numpy : 0.0008602142333984375 nb_pixel_total : 30093 time to create 1 rle with old method : 0.03519105911254883 length of segment : 187 time for calcul the mask position with numpy : 0.0003409385681152344 nb_pixel_total : 8563 time to create 1 rle with old method : 0.010627985000610352 length of segment : 107 time for calcul the mask position with numpy : 0.001718759536743164 nb_pixel_total : 71018 time to create 1 rle with old method : 0.08562994003295898 length of segment : 317 time for calcul the mask position with numpy : 0.0005931854248046875 nb_pixel_total : 17696 time to create 1 rle with old method : 0.021370410919189453 length of segment : 201 time for calcul the mask position with numpy : 0.004775524139404297 nb_pixel_total : 242859 time to create 1 rle with new method : 0.00695037841796875 length of segment : 558 time for calcul the mask position with numpy : 0.00045752525329589844 nb_pixel_total : 7578 time to create 1 rle with old method : 0.010016441345214844 length of segment : 126 time for calcul the mask position with numpy : 0.0023736953735351562 nb_pixel_total : 127320 time to create 1 rle with old method : 0.16271400451660156 length of segment : 443 time for calcul the mask position with numpy : 0.0044209957122802734 nb_pixel_total : 225404 time to create 1 rle with new method : 0.00904393196105957 length of segment : 897 time for calcul the mask position with numpy : 0.0019025802612304688 nb_pixel_total : 64106 time to create 1 rle with old method : 0.07462000846862793 length of segment : 306 time for calcul the mask position with numpy : 0.0005431175231933594 nb_pixel_total : 18974 time to create 1 rle with old method : 0.022190093994140625 length of segment : 197 time for calcul the mask position with numpy : 0.0003180503845214844 nb_pixel_total : 19119 time to create 1 rle with old method : 0.024986743927001953 length of segment : 201 time for calcul the mask position with numpy : 0.00035881996154785156 nb_pixel_total : 15062 time to create 1 rle with old method : 0.017647743225097656 length of segment : 180 time for calcul the mask position with numpy : 0.0009925365447998047 nb_pixel_total : 27351 time to create 1 rle with old method : 0.033049583435058594 length of segment : 222 time for calcul the mask position with numpy : 0.0009188652038574219 nb_pixel_total : 33274 time to create 1 rle with old method : 0.040560245513916016 length of segment : 212 time for calcul the mask position with numpy : 0.0023431777954101562 nb_pixel_total : 67548 time to create 1 rle with old method : 0.08488345146179199 length of segment : 464 time for calcul the mask position with numpy : 0.0006124973297119141 nb_pixel_total : 20197 time to create 1 rle with old method : 0.025192737579345703 length of segment : 123 time for calcul the mask position with numpy : 0.006364107131958008 nb_pixel_total : 234473 time to create 1 rle with new method : 0.008943796157836914 length of segment : 603 time for calcul the mask position with numpy : 0.004095792770385742 nb_pixel_total : 75542 time to create 1 rle with old method : 0.09009838104248047 length of segment : 575 time for calcul the mask position with numpy : 0.0009517669677734375 nb_pixel_total : 44680 time to create 1 rle with old method : 0.055088043212890625 length of segment : 319 time for calcul the mask position with numpy : 0.0009579658508300781 nb_pixel_total : 24776 time to create 1 rle with old method : 0.02982807159423828 length of segment : 291 time for calcul the mask position with numpy : 0.0011091232299804688 nb_pixel_total : 31583 time to create 1 rle with old method : 0.038503170013427734 length of segment : 262 time for calcul the mask position with numpy : 0.0011534690856933594 nb_pixel_total : 29175 time to create 1 rle with old method : 0.04803037643432617 length of segment : 163 time for calcul the mask position with numpy : 0.0002522468566894531 nb_pixel_total : 2268 time to create 1 rle with old method : 0.004266023635864258 length of segment : 81 time for calcul the mask position with numpy : 0.0014395713806152344 nb_pixel_total : 35493 time to create 1 rle with old method : 0.04222273826599121 length of segment : 305 time for calcul the mask position with numpy : 0.00575709342956543 nb_pixel_total : 152363 time to create 1 rle with new method : 0.009416818618774414 length of segment : 595 time for calcul the mask position with numpy : 0.0017380714416503906 nb_pixel_total : 45299 time to create 1 rle with old method : 0.06677484512329102 length of segment : 435 time for calcul the mask position with numpy : 0.0006518363952636719 nb_pixel_total : 16287 time to create 1 rle with old method : 0.019869565963745117 length of segment : 110 time for calcul the mask position with numpy : 0.0009641647338867188 nb_pixel_total : 36702 time to create 1 rle with old method : 0.04761624336242676 length of segment : 203 time for calcul the mask position with numpy : 0.0008549690246582031 nb_pixel_total : 30095 time to create 1 rle with old method : 0.03620266914367676 length of segment : 161 time for calcul the mask position with numpy : 0.0017046928405761719 nb_pixel_total : 46406 time to create 1 rle with old method : 0.05502510070800781 length of segment : 377 time for calcul the mask position with numpy : 0.0006172657012939453 nb_pixel_total : 12030 time to create 1 rle with old method : 0.01558065414428711 length of segment : 145 time for calcul the mask position with numpy : 0.0015914440155029297 nb_pixel_total : 54370 time to create 1 rle with old method : 0.06475090980529785 length of segment : 443 time for calcul the mask position with numpy : 0.00012040138244628906 nb_pixel_total : 613 time to create 1 rle with old method : 0.0007691383361816406 length of segment : 33 time for calcul the mask position with numpy : 0.0003180503845214844 nb_pixel_total : 6005 time to create 1 rle with old method : 0.007893562316894531 length of segment : 66 time for calcul the mask position with numpy : 0.00028896331787109375 nb_pixel_total : 3580 time to create 1 rle with old method : 0.004548072814941406 length of segment : 115 time for calcul the mask position with numpy : 0.0031588077545166016 nb_pixel_total : 124516 time to create 1 rle with old method : 0.16443252563476562 length of segment : 548 time for calcul the mask position with numpy : 0.003743410110473633 nb_pixel_total : 162458 time to create 1 rle with new method : 0.005252361297607422 length of segment : 671 time for calcul the mask position with numpy : 0.002522706985473633 nb_pixel_total : 58414 time to create 1 rle with old method : 0.069061279296875 length of segment : 423 time for calcul the mask position with numpy : 0.0012679100036621094 nb_pixel_total : 56455 time to create 1 rle with old method : 0.06304526329040527 length of segment : 176 time for calcul the mask position with numpy : 0.0002918243408203125 nb_pixel_total : 5027 time to create 1 rle with old method : 0.006746530532836914 length of segment : 91 time for calcul the mask position with numpy : 0.0053904056549072266 nb_pixel_total : 196555 time to create 1 rle with new method : 0.00899362564086914 length of segment : 508 time for calcul the mask position with numpy : 0.0007941722869873047 nb_pixel_total : 22158 time to create 1 rle with old method : 0.026735782623291016 length of segment : 208 time for calcul the mask position with numpy : 0.00011324882507324219 nb_pixel_total : 1214 time to create 1 rle with old method : 0.0015723705291748047 length of segment : 45 time for calcul the mask position with numpy : 0.0004994869232177734 nb_pixel_total : 18849 time to create 1 rle with old method : 0.022924184799194336 length of segment : 191 time for calcul the mask position with numpy : 0.00024080276489257812 nb_pixel_total : 3419 time to create 1 rle with old method : 0.00435948371887207 length of segment : 56 time for calcul the mask position with numpy : 0.0013883113861083984 nb_pixel_total : 49124 time to create 1 rle with old method : 0.05670452117919922 length of segment : 505 time for calcul the mask position with numpy : 0.0011105537414550781 nb_pixel_total : 11392 time to create 1 rle with old method : 0.013858795166015625 length of segment : 228 time for calcul the mask position with numpy : 0.002198934555053711 nb_pixel_total : 68248 time to create 1 rle with old method : 0.08021807670593262 length of segment : 438 time for calcul the mask position with numpy : 0.005756378173828125 nb_pixel_total : 60032 time to create 1 rle with old method : 0.07137322425842285 length of segment : 492 time for calcul the mask position with numpy : 0.004706144332885742 nb_pixel_total : 256301 time to create 1 rle with new method : 0.010110616683959961 length of segment : 576 time for calcul the mask position with numpy : 0.828524112701416 nb_pixel_total : 4519990 time to create 1 rle with new method : 0.674325704574585 length of segment : 2685 time for calcul the mask position with numpy : 0.4533548355102539 nb_pixel_total : 4779501 time to create 1 rle with new method : 0.6889841556549072 length of segment : 2698 time for calcul the mask position with numpy : 0.0014581680297851562 nb_pixel_total : 99877 time to create 1 rle with old method : 0.11568641662597656 length of segment : 302 time for calcul the mask position with numpy : 1.2728266716003418 nb_pixel_total : 4954021 time to create 1 rle with new method : 1.135925054550171 length of segment : 2537 time for calcul the mask position with numpy : 0.0015573501586914062 nb_pixel_total : 106252 time to create 1 rle with old method : 0.11806488037109375 length of segment : 306 time spent for convertir_results : 18.064101219177246 Inside saveOutput : final : False verbose : 0 eke 12-6-18 : saveMask need to be cleaned for new output ! Number saved : None batch 1 Loaded 125 chid ids of type : 3663 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++Number RLEs to save : 41572 save missing photos in datou_result : time spend for datou_step_exec : 75.43625211715698 time spend to save output : 2.8021228313446045 total time spend for step 1 : 78.23837494850159 step2:crop_condition Wed Mar 5 06:19:47 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 125 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 ! map_result returned by crop_photo_return_map_crop : length : 9 About to insert : list_path_to_insert length 9 new photo from crops ! we have finished the crop for the class : 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 ! 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 : 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 ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! map_result returned by crop_photo_return_map_crop : length : 9 About to insert : list_path_to_insert length 9 new photo from crops ! we have finished the crop for the class : 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 ! 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 : 38 About to insert : list_path_to_insert length 38 new photo from crops ! we have finished the crop for the class : cartonnette begin to crop the class : carton_brun param for this class : {'min_score': 0.7} filtre for class : carton_brun hashtag_id of this class : 2107753024 we have both polygon and rles Next one ! we have both polygon and rles Next one ! map_result returned by crop_photo_return_map_crop : length : 2 About to insert : list_path_to_insert length 2 new photo from crops ! we have finished the crop for the class : carton_brun begin to crop the class : plastique param for this class : {'min_score': 0.5} filtre for class : plastique hashtag_id of this class : 492725882 we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! 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 : 6 About to insert : list_path_to_insert length 6 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 [1340880409, 1340880286, 1340880223, 1340880140, 1340880134, 1340880125, 1340880120, 1340879495, 1340879465, 1340879461] Looping around the photos to save general results len do output : 75 /-3694098370Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3694047320Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3694047333Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3694047345Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3694047346Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3694047338Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3694047358Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3694047356Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3694047354Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3694047278Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3694047280Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3694047283Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3694047284Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3694047304Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3694047293Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3694047312Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3694047326Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3694047339Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3694098379Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3694047366Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3694047275Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3694047268Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3694047286Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3694047300Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3694098372Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3694047308Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3694047322Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3694047328Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3694047364Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3694047266Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3694047267Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3694047265Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3694047277Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3694047272Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3694047270Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3694047288Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3694047287Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3694047296Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3694047299Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3694047297Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3694047290Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3694047314Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3694047307Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3694047306Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3694047315Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3694047318Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3694047330Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3694098374Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3694098376Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3694098375Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3694098377Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3694047347Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3694047349Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3694047342Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3694047336Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3694047335Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3694098378Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3694047353Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3694047332Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3694047340Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3694047337Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3694047362Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3694098380Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3694098381Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3694047355Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3694098382Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3694047365Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3694047269Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3694047319Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3694047271Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3694047282Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3694047294Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3694047292Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3694047302Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3694047334Didn'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, '2635775') ('3459', None, '1340880409', None, None, None, None, None, '2635775') ('3459', None, None, None, None, None, None, None, '2635775') ('3459', None, '1340880286', None, None, None, None, None, '2635775') ('3459', None, None, None, None, None, None, None, '2635775') ('3459', None, '1340880223', None, None, None, None, None, '2635775') ('3459', None, None, None, None, None, None, None, '2635775') ('3459', None, '1340880140', None, None, None, None, None, '2635775') ('3459', None, None, None, None, None, None, None, '2635775') ('3459', None, '1340880134', None, None, None, None, None, '2635775') ('3459', None, None, None, None, None, None, None, '2635775') ('3459', None, '1340880125', None, None, None, None, None, '2635775') ('3459', None, None, None, None, None, None, None, '2635775') ('3459', None, '1340880120', None, None, None, None, None, '2635775') ('3459', None, None, None, None, None, None, None, '2635775') ('3459', None, '1340879495', None, None, None, None, None, '2635775') ('3459', None, None, None, None, None, None, None, '2635775') ('3459', None, '1340879465', None, None, None, None, None, '2635775') ('3459', None, None, None, None, None, None, None, '2635775') ('3459', None, '1340879461', None, None, None, None, None, '2635775') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 235 time used for this insertion : 0.03506875038146973 save_final save missing photos in datou_result : time spend for datou_step_exec : 38.611833333969116 time spend to save output : 0.03756284713745117 total time spend for step 2 : 38.64939618110657 step3:thcl Wed Mar 5 06:20:26 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 VR 22-3-18 : For now we do not clean correctly the datou structure 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.015456199645996094 time to convert the images to numpy array : 1.337552547454834 time to import caffe and check if the image exist : 0.015461444854736328 time to convert the images to numpy array : 1.3415307998657227 time to import caffe and check if the image exist : 0.01566028594970703 time to convert the images to numpy array : 1.4525783061981201 time to import caffe and check if the image exist : 0.014385223388671875 time to convert the images to numpy array : 1.456972360610962 time to import caffe and check if the image exist : 0.026925086975097656 time to convert the images to numpy array : 1.4637186527252197 time to import caffe and check if the image exist : 0.014399290084838867 time to convert the images to numpy array : 1.5588152408599854 time to import caffe and check if the image exist : 0.010665178298950195 time to convert the images to numpy array : 1.563119649887085 time to import caffe and check if the image exist : 0.021393299102783203 time to convert the images to numpy array : 1.569481611251831 time to import caffe and check if the image exist : 0.013615131378173828 time to convert the images to numpy array : 1.5789194107055664 time to import caffe and check if the image exist : 0.011512041091918945 time to convert the images to numpy array : 1.5889005661010742 total time to convert the images to numpy array : 2.138615608215332 list photo_ids error: [] list photo_ids correct : [-3694098370, -3694047320, -3694047333, -3694047345, -3694047346, -3694047338, -3694047358, -3694047356, -3694098378, -3694047353, -3694047332, -3694047340, -3694047337, -3694047362, -3694098380, -3694098381, -3694047292, -3694047302, -3694047334, -3694047277, -3694047272, -3694047270, -3694047288, -3694047287, -3694047296, -3694047299, -3694047297, -3694047326, -3694047339, -3694098379, -3694047366, -3694047275, -3694047268, -3694047286, -3694047300, -3694047354, -3694047278, -3694047280, -3694047283, -3694047284, -3694047304, -3694047293, -3694047312, -3694047290, -3694047314, -3694047307, -3694047306, -3694047315, -3694047318, -3694047330, -3694098374, -3694047355, -3694098382, -3694047365, -3694047269, -3694047319, -3694047271, -3694047282, -3694047294, -3694098376, -3694098375, -3694098377, -3694047347, -3694047349, -3694047342, -3694047336, -3694047335, -3694098372, -3694047308, -3694047322, -3694047328, -3694047364, -3694047266, -3694047267, -3694047265] number of photos to traite : 75 try to delete the photos incorrect in DB tagging for thcl : 2456 To do loadFromThcl(), then load ParamDescType : thcl2456 thcls : [{'id': 2456, 'mtr_user_id': 31, 'name': 'learn_qualipapia_papier_refus_from_vlg_data_aug', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'papier,refus', 'svm_portfolios_learning': '3028087,3028251', 'photo_hashtag_type': 3049, 'photo_desc_type': 4999, 'type_classification': 'caffe', 'hashtag_id_list': '492668766,538914404'}] thcl {'id': 2456, 'mtr_user_id': 31, 'name': 'learn_qualipapia_papier_refus_from_vlg_data_aug', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'papier,refus', 'svm_portfolios_learning': '3028087,3028251', 'photo_hashtag_type': 3049, 'photo_desc_type': 4999, 'type_classification': 'caffe', 'hashtag_id_list': '492668766,538914404'} Update svm_hashtag_type_desc : 4999 FOUND : 1 Here is data_from_sql_as_vec to set the ParamDescriptorType : (4999, 'learn_qualipapia_papier_refus_from_vlg_data_aug', 16384, 25088, 'learn_qualipapia_papier_refus_from_vlg_data_aug', 'res5b', 10.0, None, None, 256, None, 0, None, 8, None, None, -1000.0, 1, datetime.datetime(2020, 10, 23, 14, 27, 22), datetime.datetime(2020, 10, 23, 14, 27, 22)) To loadFromThcl() : net_4999 begin to check gpu status inside check gpu memory l 3637 free memory gpu now : 3185 max_wait_temp : 1 max_wait : 0 FOUND : 1 Here is data_from_sql_as_vec to set the ParamDescriptorType : (4999, 'learn_qualipapia_papier_refus_from_vlg_data_aug', 16384, 25088, 'learn_qualipapia_papier_refus_from_vlg_data_aug', 'res5b', 10.0, None, None, 256, None, 0, None, 8, None, None, -1000.0, 1, datetime.datetime(2020, 10, 23, 14, 27, 22), datetime.datetime(2020, 10, 23, 14, 27, 22)) None mean_file_type : mean_file_path : prototxt_file_path : model : learn_qualipapia_papier_refus_from_vlg_data_aug Inside get_net Inside get_net before cache_data_model model_param file didn't exist Inside get_net before CDM.load_model_par_type model_name : learn_qualipapia_papier_refus_from_vlg_data_aug model_type : caffe list file need : ['caffemodel', 'deploy_conv_normal.prototxt', 'deploy_fc.prototxt', 'deploy.prototxt', 'mean.npy', 'synset_words.txt'] file exist in s3 : ['caffemodel', 'deploy.prototxt', 'mean.npy', 'synset_words.txt'] file manque in s3 : ['deploy_conv_normal.prototxt', 'deploy_fc.prototxt'] local folder : /data/models_weight/learn_qualipapia_papier_refus_from_vlg_data_aug /data/models_weight/learn_qualipapia_papier_refus_from_vlg_data_aug/caffemodel size_local : 44972172 size in s3 : 44972172 create time local : 2021-08-09 05:55:48 create time in s3 : 2021-08-06 19:28:49 caffemodel already exist and didn't need to update /data/models_weight/learn_qualipapia_papier_refus_from_vlg_data_aug/deploy.prototxt size_local : 17311 size in s3 : 17311 create time local : 2021-08-09 05:55:48 create time in s3 : 2021-08-06 19:28:49 deploy.prototxt already exist and didn't need to update /data/models_weight/learn_qualipapia_papier_refus_from_vlg_data_aug/mean.npy size_local : 1572992 size in s3 : 1572992 create time local : 2021-08-09 05:55:48 create time in s3 : 2021-08-06 19:28:51 mean.npy already exist and didn't need to update /data/models_weight/learn_qualipapia_papier_refus_from_vlg_data_aug/synset_words.txt size_local : 57 size in s3 : 57 create time local : 2021-08-09 05:55:48 create time in s3 : 2021-08-06 19:28:49 synset_words.txt already exist and didn't need to update Inside get_net after CDM.load_model_par_type After if not only_with_local_cache: /home/admin/workarea/install/caffe_cuda8_python3/python/:/home/admin/workarea/install/darknet/:/home/admin/workarea/git/Velours/python:/home/admin/workarea/install/caffe_frcnn_python3/py-faster-rcnn/caffe-fast-rcnn/python:/home/admin/mtr/.credentials:/home/admin/workarea/install/caffe/python:/home/admin/workarea/install/caffe_frcnn/py-faster-rcnn/tools/:/home/admin/workarea/git/fotonowerpip/:/home/admin/workarea/install/segment-anything:/home/admin//workarea/git/pyfvs/ Here before set mode gpu Doing nothing but we could set mode gpu after set mode gpu prototxt_filename : /data/models_weight/learn_qualipapia_papier_refus_from_vlg_data_aug/deploy.prototxt caffemodel_filename : /data/models_weight/learn_qualipapia_papier_refus_from_vlg_data_aug/caffemodel now we set caffe to gpu mode before predict begin to check gpu status inside check gpu memory l 3637 free memory gpu now : 2966 max_wait_temp : 1 max_wait : 0 dict_keys(['prob']) time used to do the prepocess of the images : 0.8009064197540283 time used to do the prediction : 0.20795750617980957 we don't save the descriptors for this thcl 2456 tagging for thcl : 2868 To do loadFromThcl(), then load ParamDescType : thcl2868 thcls : [{'id': 2868, 'mtr_user_id': 31, 'name': 'learn_papier_nantes_300421', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Carton_brun,Carton_gris,Teint_Dans_La_Masse,autre_refus,cartonnette,environnement,kraft,metal,papier,plastique', 'svm_portfolios_learning': '3752117,3752118,3752123,3752106,3752116,3752124,3752119,3581575,3486029,3752122', 'photo_hashtag_type': 3632, 'photo_desc_type': 5288, 'type_classification': 'caffe', 'hashtag_id_list': '2107753024,2107753020,2107752385,2107752406,702398920,493012381,493202403,492628673,492668766,492725882'}] thcl {'id': 2868, 'mtr_user_id': 31, 'name': 'learn_papier_nantes_300421', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Carton_brun,Carton_gris,Teint_Dans_La_Masse,autre_refus,cartonnette,environnement,kraft,metal,papier,plastique', 'svm_portfolios_learning': '3752117,3752118,3752123,3752106,3752116,3752124,3752119,3581575,3486029,3752122', 'photo_hashtag_type': 3632, 'photo_desc_type': 5288, 'type_classification': 'caffe', 'hashtag_id_list': '2107753024,2107753020,2107752385,2107752406,702398920,493012381,493202403,492628673,492668766,492725882'} Update svm_hashtag_type_desc : 5288 FOUND : 1 Here is data_from_sql_as_vec to set the ParamDescriptorType : (5288, 'learn_papier_nantes_300421', 512, 512, 'learn_papier_nantes_300421', 'pool5', 10.0, None, None, 256, None, 0, None, 8, None, None, -1000.0, 1, datetime.datetime(2021, 4, 30, 17, 9, 41), datetime.datetime(2021, 4, 30, 17, 9, 41)) To loadFromThcl() : net_5288 begin to check gpu status inside check gpu memory l 3637 free memory gpu now : 2747 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 : 2238 wait 20 seconds WARNING: Logging before InitGoogleLogging() is written to STDERR F0305 06:20:57.140102 3615540 syncedmem.cpp:71] Check failed: error == cudaSuccess (2 vs. 0) out of memory *** Check failure stack trace: *** Command terminated by signal 6 60.30user 70.67system 2:33.75elapsed 85%CPU (0avgtext+0avgdata 4004972maxresident)k 944976inputs+38256outputs (4299major+5347319minor)pagefaults 0swaps