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 : 1402656 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 : 20>10 please execute split_portfolio.py -i 20656288 -l 10 size over we load limit photo not treated list_input_json: [] Current got : datou_id : 3459, datou_cur_ids : ['2597827'] with mtr_portfolio_ids : ['20656288'] and first list_photo_ids : [] new path : /proc/1402656/ 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.8480215072631836 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 Tue Feb 18 22:26: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 : 10814 max_wait_temp : 1 max_wait : 0 gpu_flag : 0 2025-02-18 22:26:32.387381: I tensorflow/core/platform/cpu_feature_guard.cc:143] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA 2025-02-18 22:26:32.411161: I tensorflow/core/platform/profile_utils/cpu_utils.cc:102] CPU Frequency: 3493065000 Hz 2025-02-18 22:26:32.412653: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x7fa3c8000b60 initialized for platform Host (this does not guarantee that XLA will be used). Devices: 2025-02-18 22:26:32.412686: I tensorflow/compiler/xla/service/service.cc:176] StreamExecutor device (0): Host, Default Version 2025-02-18 22:26:32.414877: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcuda.so.1 2025-02-18 22:26:32.645694: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x3d761bc0 initialized for platform CUDA (this does not guarantee that XLA will be used). Devices: 2025-02-18 22:26:32.645726: I tensorflow/compiler/xla/service/service.cc:176] StreamExecutor device (0): NVIDIA GeForce RTX 2080 Ti, Compute Capability 7.5 2025-02-18 22:26:32.646591: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1561] Found device 0 with properties: pciBusID: 0000:41:00.0 name: NVIDIA GeForce RTX 2080 Ti computeCapability: 7.5 coreClock: 1.545GHz coreCount: 68 deviceMemorySize: 10.76GiB deviceMemoryBandwidth: 573.69GiB/s 2025-02-18 22:26:32.646840: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1 2025-02-18 22:26:32.648686: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcublas.so.10 2025-02-18 22:26:32.650397: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcufft.so.10 2025-02-18 22:26:32.650688: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcurand.so.10 2025-02-18 22:26:32.652762: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusolver.so.10 2025-02-18 22:26:32.653816: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusparse.so.10 2025-02-18 22:26:32.657957: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudnn.so.7 2025-02-18 22:26:32.659450: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1703] Adding visible gpu devices: 0 2025-02-18 22:26:32.659516: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1 2025-02-18 22:26:32.660287: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1102] Device interconnect StreamExecutor with strength 1 edge matrix: 2025-02-18 22:26:32.660302: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1108] 0 2025-02-18 22:26:32.660311: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1121] 0: N 2025-02-18 22:26:32.666145: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1247] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 10023 MB memory) -> physical GPU (device: 0, name: NVIDIA GeForce RTX 2080 Ti, pci bus id: 0000:41:00.0, compute capability: 7.5) WARNING:tensorflow:From /home/admin/workarea/git/Velours/python/mtr/mask_rcnn/mask_detection.py:69: The name tf.keras.backend.set_session is deprecated. Please use tf.compat.v1.keras.backend.set_session instead. 2025-02-18 22:26:33.032668: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1561] Found device 0 with properties: pciBusID: 0000:41:00.0 name: NVIDIA GeForce RTX 2080 Ti computeCapability: 7.5 coreClock: 1.545GHz coreCount: 68 deviceMemorySize: 10.76GiB deviceMemoryBandwidth: 573.69GiB/s 2025-02-18 22:26:33.032775: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1 2025-02-18 22:26:33.032794: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcublas.so.10 2025-02-18 22:26:33.032809: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcufft.so.10 2025-02-18 22:26:33.032824: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcurand.so.10 2025-02-18 22:26:33.032839: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusolver.so.10 2025-02-18 22:26:33.032854: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusparse.so.10 2025-02-18 22:26:33.032868: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudnn.so.7 2025-02-18 22:26:33.034147: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1703] Adding visible gpu devices: 0 2025-02-18 22:26:33.035221: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1561] Found device 0 with properties: pciBusID: 0000:41:00.0 name: NVIDIA GeForce RTX 2080 Ti computeCapability: 7.5 coreClock: 1.545GHz coreCount: 68 deviceMemorySize: 10.76GiB deviceMemoryBandwidth: 573.69GiB/s 2025-02-18 22:26:33.035252: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1 2025-02-18 22:26:33.035267: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcublas.so.10 2025-02-18 22:26:33.035281: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcufft.so.10 2025-02-18 22:26:33.035294: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcurand.so.10 2025-02-18 22:26:33.035308: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusolver.so.10 2025-02-18 22:26:33.035321: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusparse.so.10 2025-02-18 22:26:33.035335: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudnn.so.7 2025-02-18 22:26:33.036569: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1703] Adding visible gpu devices: 0 2025-02-18 22:26:33.036594: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1102] Device interconnect StreamExecutor with strength 1 edge matrix: 2025-02-18 22:26:33.036602: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1108] 0 2025-02-18 22:26:33.036609: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1121] 0: N 2025-02-18 22:26:33.037851: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1247] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 10023 MB memory) -> physical GPU (device: 0, name: NVIDIA GeForce RTX 2080 Ti, pci bus id: 0000:41:00.0, compute capability: 7.5) Using TensorFlow backend. WARNING:tensorflow:From /home/admin/workarea/install/Mask_RCNN/model.py:396: calling crop_and_resize_v1 (from tensorflow.python.ops.image_ops_impl) with box_ind is deprecated and will be removed in a future version. Instructions for updating: box_ind is deprecated, use box_indices instead WARNING:tensorflow:From /home/admin/workarea/install/Mask_RCNN/model.py:703: to_int32 (from tensorflow.python.ops.math_ops) is deprecated and will be removed in a future version. Instructions for updating: Use `tf.cast` instead. WARNING:tensorflow:From /home/admin/workarea/install/Mask_RCNN/model.py:729: to_float (from tensorflow.python.ops.math_ops) is deprecated and will be removed in a future version. Instructions for updating: Use `tf.cast` instead. Inside mask_sub_process Inside mask_detect About to load cache.load_thcl_param To do loadFromThcl(), then load ParamDescType : thcl2896 thcls : [{'id': 2896, 'mtr_user_id': 31, 'name': 'learn_convoyeur_qualipapia_nantes_poly_100521_1', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'background,carton_brun,carton_gris,cartonnette,kraft,autre_refus,metal,plastique,teint_dans_la_masse,environnement', 'svm_portfolios_learning': '0,0,0,0,0,0,0,0,0,0', 'photo_hashtag_type': 3663, 'photo_desc_type': 5309, 'type_classification': 'mask_rcnn', 'hashtag_id_list': '0,0,0,0,0,0,0,0,0,0'}] thcl {'id': 2896, 'mtr_user_id': 31, 'name': 'learn_convoyeur_qualipapia_nantes_poly_100521_1', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'background,carton_brun,carton_gris,cartonnette,kraft,autre_refus,metal,plastique,teint_dans_la_masse,environnement', 'svm_portfolios_learning': '0,0,0,0,0,0,0,0,0,0', 'photo_hashtag_type': 3663, 'photo_desc_type': 5309, 'type_classification': 'mask_rcnn', 'hashtag_id_list': '0,0,0,0,0,0,0,0,0,0'} Update svm_hashtag_type_desc : 5309 FOUND : 1 Here is data_from_sql_as_vec to set the ParamDescriptorType : (5309, 'learn_convoyeur_qualipapia_nantes_poly_100521_1', 16384, 25088, 'learn_convoyeur_qualipapia_nantes_poly_100521_1', 'pool5', 10.0, None, None, 256, None, 0, None, 8, None, None, -1000.0, 1, datetime.datetime(2021, 5, 10, 19, 20, 46), datetime.datetime(2021, 5, 10, 19, 20, 46)) {'thcl': {'id': 2896, 'mtr_user_id': 31, 'name': 'learn_convoyeur_qualipapia_nantes_poly_100521_1', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'background,carton_brun,carton_gris,cartonnette,kraft,autre_refus,metal,plastique,teint_dans_la_masse,environnement', 'svm_portfolios_learning': '0,0,0,0,0,0,0,0,0,0', 'photo_hashtag_type': 3663, 'photo_desc_type': 5309, 'type_classification': 'mask_rcnn', 'hashtag_id_list': '0,0,0,0,0,0,0,0,0,0'}, 'list_hashtags': ['background', 'carton_brun', 'carton_gris', 'cartonnette', 'kraft', 'autre_refus', 'metal', 'plastique', 'teint_dans_la_masse', 'environnement'], 'list_hashtags_csv': 'background,carton_brun,carton_gris,cartonnette,kraft,autre_refus,metal,plastique,teint_dans_la_masse,environnement', 'svm_portfolios_learning': '0,0,0,0,0,0,0,0,0,0', 'photo_hashtag_type': 3663, 'svm_hashtag_type_desc': 5309, 'photo_desc_type': 5309, 'pb_hashtag_id_or_classifier': 0} list_class_names : ['background', 'carton_brun', 'carton_gris', 'cartonnette', 'kraft', 'autre_refus', 'metal', 'plastique', 'teint_dans_la_masse', 'environnement'] Configurations: BACKBONE resnet101 BACKBONE_SHAPES [[160 160] [ 80 80] [ 40 40] [ 20 20] [ 10 10]] BACKBONE_STRIDES [4, 8, 16, 32, 64] BATCH_SIZE 1 BBOX_STD_DEV [0.1 0.1 0.2 0.2] DETECTION_MAX_INSTANCES 100 DETECTION_MIN_CONFIDENCE 0.3 DETECTION_NMS_THRESHOLD 0.3 GPU_COUNT 1 IMAGES_PER_GPU 1 IMAGE_MAX_DIM 640 IMAGE_MIN_DIM 640 IMAGE_PADDING True IMAGE_SHAPE [640 640 3] LEARNING_MOMENTUM 0.9 LEARNING_RATE 0.001 LOSS_WEIGHTS {'rpn_class_loss': 1.0, 'rpn_bbox_loss': 1.0, 'mrcnn_class_loss': 1.0, 'mrcnn_bbox_loss': 1.0, 'mrcnn_mask_loss': 1.0} MASK_POOL_SIZE 14 MASK_SHAPE [28, 28] MAX_GT_INSTANCES 100 MEAN_PIXEL [123.7 116.8 103.9] MINI_MASK_SHAPE (56, 56) NAME learn_convoyeur_qualipapia_nantes_poly_100521_1 NUM_CLASSES 10 POOL_SIZE 7 POST_NMS_ROIS_INFERENCE 1000 POST_NMS_ROIS_TRAINING 2000 ROI_POSITIVE_RATIO 0.33 RPN_ANCHOR_RATIOS [0.5, 1, 2] RPN_ANCHOR_SCALES (16, 32, 64, 128, 256) RPN_ANCHOR_STRIDE 1 RPN_BBOX_STD_DEV [0.1 0.1 0.2 0.2] RPN_NMS_THRESHOLD 0.7 RPN_TRAIN_ANCHORS_PER_IMAGE 256 STEPS_PER_EPOCH 1000 TRAIN_ROIS_PER_IMAGE 200 USE_MINI_MASK True USE_RPN_ROIS True VALIDATION_STEPS 50 WEIGHT_DECAY 0.0001 model_param file didn't exist model_name : learn_convoyeur_qualipapia_nantes_poly_100521_1 model_type : mask_rcnn list file need : ['mask_model.h5'] file exist in s3 : ['mask_model.h5'] file manque in s3 : [] 2025-02-18 22:26:42.940963: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcublas.so.10 2025-02-18 22:26:43.131522: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudnn.so.7 local folder : /data/models_weight/learn_convoyeur_qualipapia_nantes_poly_100521_1 /data/models_weight/learn_convoyeur_qualipapia_nantes_poly_100521_1/mask_model.h5 size_local : 256031040 size in s3 : 256031040 create time local : 2021-08-09 05:45:48 create time in s3 : 2021-08-06 18:59:51 mask_model.h5 already exist and didn't need to update list_images length : 10 NEW PHOTO Processing 1 images image shape: (2160, 3264, 3) min: 0.00000 max: 255.00000 molded_images shape: (1, 640, 640, 3) min: -123.70000 max: 151.10000 image_metas shape: (1, 18) min: 0.00000 max: 3264.00000 nb d'objets trouves : 4 NEW PHOTO Processing 1 images image shape: (2160, 3264, 3) min: 0.00000 max: 255.00000 molded_images shape: (1, 640, 640, 3) min: -123.70000 max: 151.10000 image_metas shape: (1, 18) min: 0.00000 max: 3264.00000 nb d'objets trouves : 17 NEW PHOTO Processing 1 images image shape: (2160, 3264, 3) min: 0.00000 max: 255.00000 molded_images shape: (1, 640, 640, 3) min: -123.70000 max: 151.10000 image_metas shape: (1, 18) min: 0.00000 max: 3264.00000 nb d'objets trouves : 16 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 : 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 : 14 NEW PHOTO Processing 1 images image shape: (2160, 3264, 3) min: 0.00000 max: 255.00000 molded_images shape: (1, 640, 640, 3) min: -123.70000 max: 151.10000 image_metas shape: (1, 18) min: 0.00000 max: 3264.00000 nb d'objets trouves : 20 NEW PHOTO Processing 1 images image shape: (2160, 3264, 3) min: 0.00000 max: 255.00000 molded_images shape: (1, 640, 640, 3) min: -123.70000 max: 151.10000 image_metas shape: (1, 18) min: 0.00000 max: 3264.00000 nb d'objets trouves : 16 NEW PHOTO Processing 1 images image shape: (2160, 3264, 3) min: 0.00000 max: 255.00000 molded_images shape: (1, 640, 640, 3) min: -123.70000 max: 151.10000 image_metas shape: (1, 18) min: 0.00000 max: 3264.00000 nb d'objets trouves : 17 NEW PHOTO Processing 1 images image shape: (2160, 3264, 3) min: 0.00000 max: 255.00000 molded_images shape: (1, 640, 640, 3) min: -123.70000 max: 151.10000 image_metas shape: (1, 18) min: 0.00000 max: 3264.00000 nb d'objets trouves : 13 Detection mask done ! Trying to reset tf kernel 1403086 begin to check gpu status inside check gpu memory l 3610 free memory gpu now : 5525 tf kernel not reseted sub process len(results) : 10 len(list_Values) 0 None max_time_sub_proc : 3600 parent process len(results) : 10 len(list_Values) 0 process is alive finish correctly or not : True after detect begin to check gpu status inside check gpu memory l 3610 free memory gpu now : 10814 list_Values should be empty [] To do loadFromThcl(), then load ParamDescType : thcl2896 Catched exception ! Connect or reconnect ! thcls : [{'id': 2896, 'mtr_user_id': 31, 'name': 'learn_convoyeur_qualipapia_nantes_poly_100521_1', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'background,carton_brun,carton_gris,cartonnette,kraft,autre_refus,metal,plastique,teint_dans_la_masse,environnement', 'svm_portfolios_learning': '0,0,0,0,0,0,0,0,0,0', 'photo_hashtag_type': 3663, 'photo_desc_type': 5309, 'type_classification': 'mask_rcnn', 'hashtag_id_list': '0,0,0,0,0,0,0,0,0,0'}] thcl {'id': 2896, 'mtr_user_id': 31, 'name': 'learn_convoyeur_qualipapia_nantes_poly_100521_1', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'background,carton_brun,carton_gris,cartonnette,kraft,autre_refus,metal,plastique,teint_dans_la_masse,environnement', 'svm_portfolios_learning': '0,0,0,0,0,0,0,0,0,0', 'photo_hashtag_type': 3663, 'photo_desc_type': 5309, 'type_classification': 'mask_rcnn', 'hashtag_id_list': '0,0,0,0,0,0,0,0,0,0'} Update svm_hashtag_type_desc : 5309 ['background', 'carton_brun', 'carton_gris', 'cartonnette', 'kraft', 'autre_refus', 'metal', 'plastique', 'teint_dans_la_masse', 'environnement'] time for calcul the mask position with numpy : 0.040146827697753906 nb_pixel_total : 2392002 time to create 1 rle with new method : 0.0948190689086914 length of segment : 3848 time for calcul the mask position with numpy : 0.009659290313720703 nb_pixel_total : 515832 time to create 1 rle with new method : 0.021419525146484375 length of segment : 979 time for calcul the mask position with numpy : 0.004842996597290039 nb_pixel_total : 384977 time to create 1 rle with new method : 0.011707067489624023 length of segment : 496 time for calcul the mask position with numpy : 0.008660316467285156 nb_pixel_total : 517572 time to create 1 rle with new method : 0.02730584144592285 length of segment : 1173 time for calcul the mask position with numpy : 0.0022068023681640625 nb_pixel_total : 157516 time to create 1 rle with new method : 0.005988597869873047 length of segment : 380 time for calcul the mask position with numpy : 0.00010156631469726562 nb_pixel_total : 2152 time to create 1 rle with old method : 0.0026464462280273438 length of segment : 109 time for calcul the mask position with numpy : 0.00030875205993652344 nb_pixel_total : 17336 time to create 1 rle with old method : 0.019542455673217773 length of segment : 188 time for calcul the mask position with numpy : 0.0001251697540283203 nb_pixel_total : 4988 time to create 1 rle with old method : 0.0060384273529052734 length of segment : 70 time for calcul the mask position with numpy : 0.0006690025329589844 nb_pixel_total : 42306 time to create 1 rle with old method : 0.04579949378967285 length of segment : 475 time for calcul the mask position with numpy : 0.00011515617370605469 nb_pixel_total : 2981 time to create 1 rle with old method : 0.003715991973876953 length of segment : 57 time for calcul the mask position with numpy : 0.0011813640594482422 nb_pixel_total : 94698 time to create 1 rle with old method : 0.09905791282653809 length of segment : 380 time for calcul the mask position with numpy : 0.002321958541870117 nb_pixel_total : 214296 time to create 1 rle with new method : 0.0059397220611572266 length of segment : 919 time for calcul the mask position with numpy : 0.007273674011230469 nb_pixel_total : 608813 time to create 1 rle with new method : 0.015269279479980469 length of segment : 629 time for calcul the mask position with numpy : 0.00016164779663085938 nb_pixel_total : 5520 time to create 1 rle with old method : 0.006221771240234375 length of segment : 128 time for calcul the mask position with numpy : 0.0006325244903564453 nb_pixel_total : 17264 time to create 1 rle with old method : 0.018698453903198242 length of segment : 368 time for calcul the mask position with numpy : 9.942054748535156e-05 nb_pixel_total : 2491 time to create 1 rle with old method : 0.0030066967010498047 length of segment : 68 time for calcul the mask position with numpy : 0.0010480880737304688 nb_pixel_total : 69345 time to create 1 rle with old method : 0.07295680046081543 length of segment : 644 time for calcul the mask position with numpy : 0.0016660690307617188 nb_pixel_total : 65223 time to create 1 rle with old method : 0.07181215286254883 length of segment : 404 time for calcul the mask position with numpy : 0.0004296302795410156 nb_pixel_total : 27752 time to create 1 rle with old method : 0.030181884765625 length of segment : 256 time for calcul the mask position with numpy : 0.00014829635620117188 nb_pixel_total : 9320 time to create 1 rle with old method : 0.010378360748291016 length of segment : 121 time for calcul the mask position with numpy : 0.0016560554504394531 nb_pixel_total : 58478 time to create 1 rle with old method : 0.06413078308105469 length of segment : 518 time for calcul the mask position with numpy : 0.0016832351684570312 nb_pixel_total : 130733 time to create 1 rle with old method : 0.14040327072143555 length of segment : 378 time for calcul the mask position with numpy : 0.0001227855682373047 nb_pixel_total : 3455 time to create 1 rle with old method : 0.004223823547363281 length of segment : 93 time for calcul the mask position with numpy : 0.0017497539520263672 nb_pixel_total : 146680 time to create 1 rle with old method : 0.15732073783874512 length of segment : 277 time for calcul the mask position with numpy : 0.0019159317016601562 nb_pixel_total : 94750 time to create 1 rle with old method : 0.10273933410644531 length of segment : 340 time for calcul the mask position with numpy : 0.0013668537139892578 nb_pixel_total : 80427 time to create 1 rle with old method : 0.08609557151794434 length of segment : 319 time for calcul the mask position with numpy : 0.003551483154296875 nb_pixel_total : 333275 time to create 1 rle with new method : 0.008105039596557617 length of segment : 363 time for calcul the mask position with numpy : 0.0002815723419189453 nb_pixel_total : 11889 time to create 1 rle with old method : 0.013868570327758789 length of segment : 154 time for calcul the mask position with numpy : 0.03431367874145508 nb_pixel_total : 2578213 time to create 1 rle with new method : 0.09275960922241211 length of segment : 3617 time for calcul the mask position with numpy : 0.002208709716796875 nb_pixel_total : 178782 time to create 1 rle with new method : 0.005305051803588867 length of segment : 633 time for calcul the mask position with numpy : 0.0017437934875488281 nb_pixel_total : 60589 time to create 1 rle with old method : 0.0671091079711914 length of segment : 304 time for calcul the mask position with numpy : 0.00039649009704589844 nb_pixel_total : 22380 time to create 1 rle with old method : 0.025525808334350586 length of segment : 360 time for calcul the mask position with numpy : 0.0005180835723876953 nb_pixel_total : 14705 time to create 1 rle with old method : 0.015465497970581055 length of segment : 177 time for calcul the mask position with numpy : 0.0003108978271484375 nb_pixel_total : 9781 time to create 1 rle with old method : 0.010991573333740234 length of segment : 137 time for calcul the mask position with numpy : 0.0008971691131591797 nb_pixel_total : 41713 time to create 1 rle with old method : 0.04776453971862793 length of segment : 213 time for calcul the mask position with numpy : 0.0025997161865234375 nb_pixel_total : 168280 time to create 1 rle with new method : 0.003933906555175781 length of segment : 314 time for calcul the mask position with numpy : 0.0001633167266845703 nb_pixel_total : 2158 time to create 1 rle with old method : 0.002478361129760742 length of segment : 82 time for calcul the mask position with numpy : 0.00030922889709472656 nb_pixel_total : 5365 time to create 1 rle with old method : 0.0066680908203125 length of segment : 129 time for calcul the mask position with numpy : 0.00029730796813964844 nb_pixel_total : 6226 time to create 1 rle with old method : 0.007203340530395508 length of segment : 114 time for calcul the mask position with numpy : 0.0024504661560058594 nb_pixel_total : 187524 time to create 1 rle with new method : 0.005205869674682617 length of segment : 325 time for calcul the mask position with numpy : 0.0005068778991699219 nb_pixel_total : 16294 time to create 1 rle with old method : 0.018102407455444336 length of segment : 146 time for calcul the mask position with numpy : 0.0031998157501220703 nb_pixel_total : 130914 time to create 1 rle with old method : 0.1450810432434082 length of segment : 485 time for calcul the mask position with numpy : 0.0010306835174560547 nb_pixel_total : 30393 time to create 1 rle with old method : 0.034856319427490234 length of segment : 174 time for calcul the mask position with numpy : 0.00021123886108398438 nb_pixel_total : 4279 time to create 1 rle with old method : 0.00491642951965332 length of segment : 106 time for calcul the mask position with numpy : 0.0009949207305908203 nb_pixel_total : 40549 time to create 1 rle with old method : 0.04397273063659668 length of segment : 258 time for calcul the mask position with numpy : 0.0007848739624023438 nb_pixel_total : 38878 time to create 1 rle with old method : 0.04146862030029297 length of segment : 205 time for calcul the mask position with numpy : 0.00014734268188476562 nb_pixel_total : 4790 time to create 1 rle with old method : 0.005950450897216797 length of segment : 66 time for calcul the mask position with numpy : 0.0008528232574462891 nb_pixel_total : 32911 time to create 1 rle with old method : 0.037573814392089844 length of segment : 208 time for calcul the mask position with numpy : 0.001016855239868164 nb_pixel_total : 24884 time to create 1 rle with old method : 0.0264437198638916 length of segment : 455 time for calcul the mask position with numpy : 0.00032711029052734375 nb_pixel_total : 6866 time to create 1 rle with old method : 0.008104801177978516 length of segment : 119 time for calcul the mask position with numpy : 0.00028228759765625 nb_pixel_total : 8384 time to create 1 rle with old method : 0.009449958801269531 length of segment : 101 time for calcul the mask position with numpy : 0.0007250308990478516 nb_pixel_total : 33435 time to create 1 rle with old method : 0.035614967346191406 length of segment : 251 time for calcul the mask position with numpy : 0.0008680820465087891 nb_pixel_total : 35526 time to create 1 rle with old method : 0.03803539276123047 length of segment : 206 time for calcul the mask position with numpy : 0.0013294219970703125 nb_pixel_total : 90128 time to create 1 rle with old method : 0.09955382347106934 length of segment : 314 time for calcul the mask position with numpy : 0.004566669464111328 nb_pixel_total : 130496 time to create 1 rle with old method : 0.13515615463256836 length of segment : 669 time for calcul the mask position with numpy : 0.00017499923706054688 nb_pixel_total : 2621 time to create 1 rle with old method : 0.002985715866088867 length of segment : 73 time for calcul the mask position with numpy : 0.0001571178436279297 nb_pixel_total : 2917 time to create 1 rle with old method : 0.0035903453826904297 length of segment : 64 time for calcul the mask position with numpy : 0.00037980079650878906 nb_pixel_total : 10993 time to create 1 rle with old method : 0.013142108917236328 length of segment : 110 time for calcul the mask position with numpy : 0.0007100105285644531 nb_pixel_total : 18613 time to create 1 rle with old method : 0.02017664909362793 length of segment : 213 time for calcul the mask position with numpy : 0.0028183460235595703 nb_pixel_total : 113761 time to create 1 rle with old method : 0.12062525749206543 length of segment : 405 time for calcul the mask position with numpy : 0.0010056495666503906 nb_pixel_total : 29025 time to create 1 rle with old method : 0.030524253845214844 length of segment : 313 time for calcul the mask position with numpy : 0.006268978118896484 nb_pixel_total : 274399 time to create 1 rle with new method : 0.012592315673828125 length of segment : 834 time for calcul the mask position with numpy : 0.00017881393432617188 nb_pixel_total : 3461 time to create 1 rle with old method : 0.004324674606323242 length of segment : 82 time for calcul the mask position with numpy : 0.00028824806213378906 nb_pixel_total : 4560 time to create 1 rle with old method : 0.005274295806884766 length of segment : 107 time for calcul the mask position with numpy : 8.511543273925781e-05 nb_pixel_total : 2164 time to create 1 rle with old method : 0.0025408267974853516 length of segment : 48 time for calcul the mask position with numpy : 0.0019593238830566406 nb_pixel_total : 109306 time to create 1 rle with old method : 0.11227846145629883 length of segment : 361 time for calcul the mask position with numpy : 0.0026400089263916016 nb_pixel_total : 106219 time to create 1 rle with old method : 0.1103825569152832 length of segment : 508 time for calcul the mask position with numpy : 0.0006999969482421875 nb_pixel_total : 30711 time to create 1 rle with old method : 0.033672332763671875 length of segment : 190 time for calcul the mask position with numpy : 0.00021195411682128906 nb_pixel_total : 4074 time to create 1 rle with old method : 0.004815816879272461 length of segment : 70 time for calcul the mask position with numpy : 0.0006005764007568359 nb_pixel_total : 17641 time to create 1 rle with old method : 0.018984317779541016 length of segment : 228 time for calcul the mask position with numpy : 0.004926919937133789 nb_pixel_total : 116154 time to create 1 rle with old method : 0.12667202949523926 length of segment : 347 time for calcul the mask position with numpy : 0.00465846061706543 nb_pixel_total : 199914 time to create 1 rle with new method : 0.008095026016235352 length of segment : 559 time for calcul the mask position with numpy : 0.0004787445068359375 nb_pixel_total : 30328 time to create 1 rle with old method : 0.03398942947387695 length of segment : 187 time for calcul the mask position with numpy : 0.0013966560363769531 nb_pixel_total : 105591 time to create 1 rle with old method : 0.11402320861816406 length of segment : 389 time for calcul the mask position with numpy : 0.0013251304626464844 nb_pixel_total : 37913 time to create 1 rle with old method : 0.043378591537475586 length of segment : 214 time for calcul the mask position with numpy : 0.00024509429931640625 nb_pixel_total : 4857 time to create 1 rle with old method : 0.005510807037353516 length of segment : 88 time for calcul the mask position with numpy : 0.000171661376953125 nb_pixel_total : 4337 time to create 1 rle with old method : 0.0051615238189697266 length of segment : 54 time for calcul the mask position with numpy : 0.0013003349304199219 nb_pixel_total : 51019 time to create 1 rle with old method : 0.05376315116882324 length of segment : 417 time for calcul the mask position with numpy : 0.001271963119506836 nb_pixel_total : 71097 time to create 1 rle with old method : 0.07793307304382324 length of segment : 257 time for calcul the mask position with numpy : 0.00043845176696777344 nb_pixel_total : 15589 time to create 1 rle with old method : 0.016616344451904297 length of segment : 180 time for calcul the mask position with numpy : 0.0002892017364501953 nb_pixel_total : 5975 time to create 1 rle with old method : 0.01045536994934082 length of segment : 91 time for calcul the mask position with numpy : 0.0009524822235107422 nb_pixel_total : 27273 time to create 1 rle with old method : 0.04110908508300781 length of segment : 201 time for calcul the mask position with numpy : 0.0006489753723144531 nb_pixel_total : 18697 time to create 1 rle with old method : 0.019842863082885742 length of segment : 245 time for calcul the mask position with numpy : 0.0009472370147705078 nb_pixel_total : 76616 time to create 1 rle with old method : 0.07999610900878906 length of segment : 278 time for calcul the mask position with numpy : 0.0027112960815429688 nb_pixel_total : 141831 time to create 1 rle with old method : 0.1522541046142578 length of segment : 341 time for calcul the mask position with numpy : 0.0007548332214355469 nb_pixel_total : 45701 time to create 1 rle with old method : 0.04914665222167969 length of segment : 383 time for calcul the mask position with numpy : 0.0011255741119384766 nb_pixel_total : 30635 time to create 1 rle with old method : 0.03345322608947754 length of segment : 207 time for calcul the mask position with numpy : 0.0024046897888183594 nb_pixel_total : 81917 time to create 1 rle with old method : 0.09501886367797852 length of segment : 451 time for calcul the mask position with numpy : 0.0006022453308105469 nb_pixel_total : 20089 time to create 1 rle with old method : 0.024112701416015625 length of segment : 131 time for calcul the mask position with numpy : 0.001691579818725586 nb_pixel_total : 46230 time to create 1 rle with old method : 0.05196356773376465 length of segment : 330 time for calcul the mask position with numpy : 0.0021033287048339844 nb_pixel_total : 86018 time to create 1 rle with old method : 0.09739446640014648 length of segment : 285 time for calcul the mask position with numpy : 0.00013518333435058594 nb_pixel_total : 1693 time to create 1 rle with old method : 0.002104043960571289 length of segment : 35 time for calcul the mask position with numpy : 0.002233266830444336 nb_pixel_total : 67479 time to create 1 rle with old method : 0.07522392272949219 length of segment : 492 time for calcul the mask position with numpy : 0.0013301372528076172 nb_pixel_total : 40864 time to create 1 rle with old method : 0.04542231559753418 length of segment : 309 time for calcul the mask position with numpy : 0.002435922622680664 nb_pixel_total : 106346 time to create 1 rle with old method : 0.11762094497680664 length of segment : 411 time for calcul the mask position with numpy : 0.0004146099090576172 nb_pixel_total : 9713 time to create 1 rle with old method : 0.01132345199584961 length of segment : 147 time for calcul the mask position with numpy : 0.00012874603271484375 nb_pixel_total : 2279 time to create 1 rle with old method : 0.00293731689453125 length of segment : 32 time for calcul the mask position with numpy : 8.153915405273438e-05 nb_pixel_total : 1674 time to create 1 rle with old method : 0.0022187232971191406 length of segment : 62 time for calcul the mask position with numpy : 0.0009458065032958984 nb_pixel_total : 48760 time to create 1 rle with old method : 0.05431962013244629 length of segment : 331 time for calcul the mask position with numpy : 0.0012030601501464844 nb_pixel_total : 40825 time to create 1 rle with old method : 0.04654860496520996 length of segment : 271 time for calcul the mask position with numpy : 0.0012693405151367188 nb_pixel_total : 39434 time to create 1 rle with old method : 0.043288230895996094 length of segment : 476 time for calcul the mask position with numpy : 0.0003521442413330078 nb_pixel_total : 12248 time to create 1 rle with old method : 0.013602733612060547 length of segment : 122 time for calcul the mask position with numpy : 0.0002460479736328125 nb_pixel_total : 6182 time to create 1 rle with old method : 0.007476806640625 length of segment : 81 time for calcul the mask position with numpy : 0.00010919570922851562 nb_pixel_total : 1665 time to create 1 rle with old method : 0.0019865036010742188 length of segment : 49 time for calcul the mask position with numpy : 0.003107786178588867 nb_pixel_total : 120478 time to create 1 rle with old method : 0.13066554069519043 length of segment : 752 time for calcul the mask position with numpy : 0.0006051063537597656 nb_pixel_total : 24430 time to create 1 rle with old method : 0.030285120010375977 length of segment : 209 time for calcul the mask position with numpy : 0.0013060569763183594 nb_pixel_total : 47778 time to create 1 rle with old method : 0.053621768951416016 length of segment : 377 time for calcul the mask position with numpy : 0.00503849983215332 nb_pixel_total : 141514 time to create 1 rle with old method : 0.15625333786010742 length of segment : 512 time for calcul the mask position with numpy : 0.0005295276641845703 nb_pixel_total : 10095 time to create 1 rle with old method : 0.012574195861816406 length of segment : 203 time for calcul the mask position with numpy : 0.0028297901153564453 nb_pixel_total : 138585 time to create 1 rle with old method : 0.15536880493164062 length of segment : 477 time for calcul the mask position with numpy : 0.0008678436279296875 nb_pixel_total : 24758 time to create 1 rle with old method : 0.028336048126220703 length of segment : 197 time spent for convertir_results : 11.231009483337402 Inside saveOutput : final : False verbose : 0 eke 12-6-18 : saveMask need to be cleaned for new output ! Number saved : None batch 1 Loaded 111 chid ids of type : 3663 Number RLEs to save : 39088 save missing photos in datou_result : time spend for datou_step_exec : 51.861305236816406 time spend to save output : 2.2914867401123047 total time spend for step 1 : 54.15279197692871 step2:crop_condition Tue Feb 18 22:27:24 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 111 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 ! map_result returned by crop_photo_return_map_crop : length : 15 About to insert : list_path_to_insert length 15 new photo from crops ! we have finished the crop for the class : teint_dans_la_masse begin to crop the class : autre_refus param for this class : {'min_score': 0.5} filtre for class : autre_refus hashtag_id of this class : 2107752406 we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! map_result returned by crop_photo_return_map_crop : length : 13 About to insert : list_path_to_insert length 13 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 ! 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 : 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 ! map_result returned by crop_photo_return_map_crop : length : 23 About to insert : list_path_to_insert length 23 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 ! map_result returned by crop_photo_return_map_crop : length : 3 About to insert : list_path_to_insert length 3 new photo from crops ! we have finished the crop for the class : 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 [1338336591, 1338327970, 1338327964, 1338327958, 1338327927, 1338327925, 1338327912, 1338327902, 1338327897, 1338327894] Looping around the photos to save general results len do output : 63 /-3679358478Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679358491Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679358490Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679358493Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679358492Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679358505Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679358500Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679358501Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679358511Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679358536Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679358549Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679358544Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679358552Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679358557Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679358570Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679358481Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679358524Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679358518Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679358522Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679358512Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679358537Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679358543Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679358531Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679358541Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679358558Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679358569Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679358563Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679358576Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679358499Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679358510Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679358535Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679358551Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679358555Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679358548Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679358579Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679358471Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679358486Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679358487Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679358480Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679358484Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679358496Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679358494Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679358497Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679358509Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679358514Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679358521Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679358523Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679358540Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679358530Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679358542Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679358547Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679358553Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679358554Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679358562Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679358564Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679358568Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679358559Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679358577Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679358545Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679358560Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679358515Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679358517Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679358529Didn'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, '2597827') ('3459', None, '1338336591', None, None, None, None, None, '2597827') ('3459', None, None, None, None, None, None, None, '2597827') ('3459', None, '1338327970', None, None, None, None, None, '2597827') ('3459', None, None, None, None, None, None, None, '2597827') ('3459', None, '1338327964', None, None, None, None, None, '2597827') ('3459', None, None, None, None, None, None, None, '2597827') ('3459', None, '1338327958', None, None, None, None, None, '2597827') ('3459', None, None, None, None, None, None, None, '2597827') ('3459', None, '1338327927', None, None, None, None, None, '2597827') ('3459', None, None, None, None, None, None, None, '2597827') ('3459', None, '1338327925', None, None, None, None, None, '2597827') ('3459', None, None, None, None, None, None, None, '2597827') ('3459', None, '1338327912', None, None, None, None, None, '2597827') ('3459', None, None, None, None, None, None, None, '2597827') ('3459', None, '1338327902', None, None, None, None, None, '2597827') ('3459', None, None, None, None, None, None, None, '2597827') ('3459', None, '1338327897', None, None, None, None, None, '2597827') ('3459', None, None, None, None, None, None, None, '2597827') ('3459', None, '1338327894', None, None, None, None, None, '2597827') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 199 time used for this insertion : 0.027481794357299805 save_final save missing photos in datou_result : time spend for datou_step_exec : 29.01954698562622 time spend to save output : 0.029874563217163086 total time spend for step 2 : 29.049421548843384 step3:thcl Tue Feb 18 22:27:53 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.0038614273071289062 time to convert the images to numpy array : 4.0531158447265625e-06 time to import caffe and check if the image exist : 0.011893033981323242 time to convert the images to numpy array : 0.10177493095397949 time to import caffe and check if the image exist : 0.009490489959716797 time to convert the images to numpy array : 0.11693930625915527 time to import caffe and check if the image exist : 0.005143880844116211 time to convert the images to numpy array : 0.12272024154663086 time to import caffe and check if the image exist : 0.008818864822387695 time to convert the images to numpy array : 0.1238710880279541 time to import caffe and check if the image exist : 0.012736797332763672 time to convert the images to numpy array : 0.12806987762451172 time to import caffe and check if the image exist : 0.00664067268371582 time to convert the images to numpy array : 0.13833880424499512 time to import caffe and check if the image exist : 0.008230447769165039 time to convert the images to numpy array : 0.14095497131347656 time to import caffe and check if the image exist : 0.008320808410644531 time to convert the images to numpy array : 0.1527869701385498 time to import caffe and check if the image exist : 0.009902477264404297 time to convert the images to numpy array : 0.5605897903442383 total time to convert the images to numpy array : 0.8968725204467773 list photo_ids error: [] list photo_ids correct : [-3679358501, -3679358511, -3679358536, -3679358549, -3679358544, -3679358552, -3679358557, -3679358559, -3679358577, -3679358545, -3679358560, -3679358515, -3679358517, -3679358529, -3679358570, -3679358481, -3679358524, -3679358518, -3679358522, -3679358512, -3679358537, -3679358497, -3679358509, -3679358514, -3679358521, -3679358523, -3679358540, -3679358530, -3679358542, -3679358547, -3679358553, -3679358554, -3679358562, -3679358564, -3679358568, -3679358499, -3679358510, -3679358535, -3679358551, -3679358555, -3679358548, -3679358579, -3679358478, -3679358491, -3679358490, -3679358493, -3679358492, -3679358505, -3679358500, -3679358543, -3679358531, -3679358541, -3679358558, -3679358569, -3679358563, -3679358576, -3679358471, -3679358486, -3679358487, -3679358480, -3679358484, -3679358496, -3679358494] number of photos to traite : 63 try to delete the photos incorrect in DB tagging for thcl : 2456 To do loadFromThcl(), then load ParamDescType : thcl2456 thcls : [{'id': 2456, 'mtr_user_id': 31, 'name': 'learn_qualipapia_papier_refus_from_vlg_data_aug', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'papier,refus', 'svm_portfolios_learning': '3028087,3028251', 'photo_hashtag_type': 3049, 'photo_desc_type': 4999, 'type_classification': 'caffe', 'hashtag_id_list': '492668766,538914404'}] thcl {'id': 2456, 'mtr_user_id': 31, 'name': 'learn_qualipapia_papier_refus_from_vlg_data_aug', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'papier,refus', 'svm_portfolios_learning': '3028087,3028251', 'photo_hashtag_type': 3049, 'photo_desc_type': 4999, 'type_classification': 'caffe', 'hashtag_id_list': '492668766,538914404'} Update svm_hashtag_type_desc : 4999 FOUND : 1 Here is data_from_sql_as_vec to set the ParamDescriptorType : (4999, 'learn_qualipapia_papier_refus_from_vlg_data_aug', 16384, 25088, 'learn_qualipapia_papier_refus_from_vlg_data_aug', 'res5b', 10.0, None, None, 256, None, 0, None, 8, None, None, -1000.0, 1, datetime.datetime(2020, 10, 23, 14, 27, 22), datetime.datetime(2020, 10, 23, 14, 27, 22)) To loadFromThcl() : net_4999 begin to check gpu status inside check gpu memory l 3637 free memory gpu now : 10814 max_wait_temp : 1 max_wait : 0 FOUND : 1 Here is data_from_sql_as_vec to set the ParamDescriptorType : (4999, 'learn_qualipapia_papier_refus_from_vlg_data_aug', 16384, 25088, 'learn_qualipapia_papier_refus_from_vlg_data_aug', 'res5b', 10.0, None, None, 256, None, 0, None, 8, None, None, -1000.0, 1, datetime.datetime(2020, 10, 23, 14, 27, 22), datetime.datetime(2020, 10, 23, 14, 27, 22)) None mean_file_type : mean_file_path : prototxt_file_path : model : learn_qualipapia_papier_refus_from_vlg_data_aug Inside get_net Inside get_net before cache_data_model model_param file didn't exist Inside get_net before CDM.load_model_par_type model_name : learn_qualipapia_papier_refus_from_vlg_data_aug model_type : caffe list file need : ['caffemodel', 'deploy_conv_normal.prototxt', 'deploy_fc.prototxt', 'deploy.prototxt', 'mean.npy', 'synset_words.txt'] file exist in s3 : ['caffemodel', 'deploy.prototxt', 'mean.npy', 'synset_words.txt'] file manque in s3 : ['deploy_conv_normal.prototxt', 'deploy_fc.prototxt'] local folder : /data/models_weight/learn_qualipapia_papier_refus_from_vlg_data_aug /data/models_weight/learn_qualipapia_papier_refus_from_vlg_data_aug/caffemodel size_local : 44972172 size in s3 : 44972172 create time local : 2021-08-09 05:55:48 create time in s3 : 2021-08-06 19:28:49 caffemodel already exist and didn't need to update /data/models_weight/learn_qualipapia_papier_refus_from_vlg_data_aug/deploy.prototxt size_local : 17311 size in s3 : 17311 create time local : 2021-08-09 05:55:48 create time in s3 : 2021-08-06 19:28:49 deploy.prototxt already exist and didn't need to update /data/models_weight/learn_qualipapia_papier_refus_from_vlg_data_aug/mean.npy size_local : 1572992 size in s3 : 1572992 create time local : 2021-08-09 05:55:48 create time in s3 : 2021-08-06 19:28:51 mean.npy already exist and didn't need to update /data/models_weight/learn_qualipapia_papier_refus_from_vlg_data_aug/synset_words.txt size_local : 57 size in s3 : 57 create time local : 2021-08-09 05:55:48 create time in s3 : 2021-08-06 19:28:49 synset_words.txt already exist and didn't need to update Inside get_net after CDM.load_model_par_type After if not only_with_local_cache: /home/admin/workarea/install/caffe_cuda8_python3/python/:/home/admin/workarea/install/darknet/:/home/admin/workarea/git/Velours/python:/home/admin/workarea/install/caffe_frcnn_python3/py-faster-rcnn/caffe-fast-rcnn/python:/home/admin/mtr/.credentials:/home/admin/workarea/install/caffe/python:/home/admin/workarea/install/caffe_frcnn/py-faster-rcnn/tools/:/home/admin/workarea/git/fotonowerpip/:/home/admin/workarea/install/segment-anything:/home/admin//workarea/git/pyfvs/ Here before set mode gpu Doing nothing but we could set mode gpu after set mode gpu prototxt_filename : /data/models_weight/learn_qualipapia_papier_refus_from_vlg_data_aug/deploy.prototxt caffemodel_filename : /data/models_weight/learn_qualipapia_papier_refus_from_vlg_data_aug/caffemodel now we set caffe to gpu mode before predict begin to check gpu status inside check gpu memory l 3637 free memory gpu now : 10595 max_wait_temp : 1 max_wait : 0 dict_keys(['prob']) time used to do the prepocess of the images : 0.7372040748596191 time used to do the prediction : 0.20839643478393555 we don't save the descriptors for this thcl 2456 tagging for thcl : 2868 To do loadFromThcl(), then load ParamDescType : thcl2868 thcls : [{'id': 2868, 'mtr_user_id': 31, 'name': 'learn_papier_nantes_300421', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Carton_brun,Carton_gris,Teint_Dans_La_Masse,autre_refus,cartonnette,environnement,kraft,metal,papier,plastique', 'svm_portfolios_learning': '3752117,3752118,3752123,3752106,3752116,3752124,3752119,3581575,3486029,3752122', 'photo_hashtag_type': 3632, 'photo_desc_type': 5288, 'type_classification': 'caffe', 'hashtag_id_list': '2107753024,2107753020,2107752385,2107752406,702398920,493012381,493202403,492628673,492668766,492725882'}] thcl {'id': 2868, 'mtr_user_id': 31, 'name': 'learn_papier_nantes_300421', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Carton_brun,Carton_gris,Teint_Dans_La_Masse,autre_refus,cartonnette,environnement,kraft,metal,papier,plastique', 'svm_portfolios_learning': '3752117,3752118,3752123,3752106,3752116,3752124,3752119,3581575,3486029,3752122', 'photo_hashtag_type': 3632, 'photo_desc_type': 5288, 'type_classification': 'caffe', 'hashtag_id_list': '2107753024,2107753020,2107752385,2107752406,702398920,493012381,493202403,492628673,492668766,492725882'} Update svm_hashtag_type_desc : 5288 FOUND : 1 Here is data_from_sql_as_vec to set the ParamDescriptorType : (5288, 'learn_papier_nantes_300421', 512, 512, 'learn_papier_nantes_300421', 'pool5', 10.0, None, None, 256, None, 0, None, 8, None, None, -1000.0, 1, datetime.datetime(2021, 4, 30, 17, 9, 41), datetime.datetime(2021, 4, 30, 17, 9, 41)) To loadFromThcl() : net_5288 begin to check gpu status inside check gpu memory l 3637 free memory gpu now : 10593 max_wait_temp : 1 max_wait : 0 FOUND : 1 Here is data_from_sql_as_vec to set the ParamDescriptorType : (5288, 'learn_papier_nantes_300421', 512, 512, 'learn_papier_nantes_300421', 'pool5', 10.0, None, None, 256, None, 0, None, 8, None, None, -1000.0, 1, datetime.datetime(2021, 4, 30, 17, 9, 41), datetime.datetime(2021, 4, 30, 17, 9, 41)) None mean_file_type : mean_file_path : prototxt_file_path : model : learn_papier_nantes_300421 Inside get_net Inside get_net before cache_data_model model_param file didn't exist Inside get_net before CDM.load_model_par_type model_name : learn_papier_nantes_300421 model_type : caffe list file need : ['caffemodel', 'deploy_conv_normal.prototxt', 'deploy_fc.prototxt', 'deploy.prototxt', 'mean.npy', 'synset_words.txt'] file exist in s3 : ['caffemodel', 'deploy.prototxt', 'mean.npy', 'synset_words.txt'] file manque in s3 : ['deploy_conv_normal.prototxt', 'deploy_fc.prototxt'] local folder : /data/models_weight/learn_papier_nantes_300421 /data/models_weight/learn_papier_nantes_300421/caffemodel size_local : 44791983 size in s3 : 44791983 create time local : 2021-08-09 05:55:59 create time in s3 : 2021-08-06 19:22:13 caffemodel already exist and didn't need to update /data/models_weight/learn_papier_nantes_300421/deploy.prototxt size_local : 17255 size in s3 : 17255 create time local : 2021-08-09 05:55:59 create time in s3 : 2021-08-06 19:22:12 deploy.prototxt already exist and didn't need to update /data/models_weight/learn_papier_nantes_300421/mean.npy size_local : 1572992 size in s3 : 1572992 create time local : 2021-08-09 05:55:59 create time in s3 : 2021-08-06 19:22:14 mean.npy already exist and didn't need to update /data/models_weight/learn_papier_nantes_300421/synset_words.txt size_local : 331 size in s3 : 331 create time local : 2021-08-09 05:56:00 create time in s3 : 2021-08-06 19:22:12 synset_words.txt already exist and didn't need to update Inside get_net after CDM.load_model_par_type After if not only_with_local_cache: /home/admin/workarea/install/caffe_cuda8_python3/python/:/home/admin/workarea/install/darknet/:/home/admin/workarea/git/Velours/python:/home/admin/workarea/install/caffe_frcnn_python3/py-faster-rcnn/caffe-fast-rcnn/python:/home/admin/mtr/.credentials:/home/admin/workarea/install/caffe/python:/home/admin/workarea/install/caffe_frcnn/py-faster-rcnn/tools/:/home/admin/workarea/git/fotonowerpip/:/home/admin/workarea/install/segment-anything:/home/admin//workarea/git/pyfvs/ Here before set mode gpu Doing nothing but we could set mode gpu after set mode gpu prototxt_filename : /data/models_weight/learn_papier_nantes_300421/deploy.prototxt caffemodel_filename : /data/models_weight/learn_papier_nantes_300421/caffemodel now we set caffe to gpu mode before predict begin to check gpu status inside check gpu memory l 3637 free memory gpu now : 10593 max_wait_temp : 1 max_wait : 0 dict_keys(['prob']) time used to do the prepocess of the images : 0.9282376766204834 time used to do the prediction : 0.13077569007873535 we don't save the descriptors for this thcl 2868 Inside saveOutput : final : False verbose : 0 time used to find the portfolios of the photos test new format of the output of the step_thcl begin to insert list_values into class_photo_scores : length of list_valuse in save_photo_hashtag_id_thcl_score : 0 time used for this insertion : 9.298324584960938e-06 save missing photos in datou_result : time spend for datou_step_exec : 9.94325065612793 time spend to save output : 0.0004334449768066406 total time spend for step 3 : 9.943684101104736 step4:merge_mask_thcl_custom Tue Feb 18 22:28:03 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 1 Inconsistent number of input and output, step which parrallelize and manage error in input by avoiding sending an output for this data can't be used in tree dependencies of input and output complete output_args for input 2 VR 22-3-18 : For now we do not clean correctly the datou structure Begin step merge_mask_thcl_custom batch 1 Loaded 111 chid ids of type : 3663 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++As expected we have just one thcl present End of step merge_mask_thcl_custom Inside saveOutput : final : False verbose : 0 saveOutput not yet implemented for datou_step.type : merge_mask_thcl_custom we use saveGeneral [1338336591, 1338327970, 1338327964, 1338327958, 1338327927, 1338327925, 1338327912, 1338327902, 1338327897, 1338327894] Looping around the photos to save general results len do output : 10 /1338336591Didn't retrieve data .Didn't retrieve data . /1338327970Didn't retrieve data .Didn't retrieve data . /1338327964Didn't retrieve data .Didn't retrieve data . /1338327958Didn't retrieve data .Didn't retrieve data . /1338327927Didn't retrieve data .Didn't retrieve data . /1338327925Didn't retrieve data .Didn't retrieve data . /1338327912Didn't retrieve data .Didn't retrieve data . /1338327902Didn't retrieve data .Didn't retrieve data . /1338327897Didn't retrieve data .Didn't retrieve data . /1338327894Didn't retrieve data .Didn't retrieve data . before output type Here is an output not treated by saveGeneral : Here is an output not treated by saveGeneral : Managing all output in save final without adding information in the mtr_datou_result ('3459', None, None, None, None, None, None, None, '2597827') ('3459', None, '1338336591', None, None, None, None, None, '2597827') ('3459', None, None, None, None, None, None, None, '2597827') ('3459', None, '1338327970', None, None, None, None, None, '2597827') ('3459', None, None, None, None, None, None, None, '2597827') ('3459', None, '1338327964', None, None, None, None, None, '2597827') ('3459', None, None, None, None, None, None, None, '2597827') ('3459', None, '1338327958', None, None, None, None, None, '2597827') ('3459', None, None, None, None, None, None, None, '2597827') ('3459', None, '1338327927', None, None, None, None, None, '2597827') ('3459', None, None, None, None, None, None, None, '2597827') ('3459', None, '1338327925', None, None, None, None, None, '2597827') ('3459', None, None, None, None, None, None, None, '2597827') ('3459', None, '1338327912', None, None, None, None, None, '2597827') ('3459', None, None, None, None, None, None, None, '2597827') ('3459', None, '1338327902', None, None, None, None, None, '2597827') ('3459', None, None, None, None, None, None, None, '2597827') ('3459', None, '1338327897', None, None, None, None, None, '2597827') ('3459', None, None, None, None, None, None, None, '2597827') ('3459', None, '1338327894', None, None, None, None, None, '2597827') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 time used for this insertion : 0.014302253723144531 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06033587455749512 time spend to save output : 0.014783143997192383 total time spend for step 4 : 0.0751190185546875 step5:rle_unique_nms_with_priority Tue Feb 18 22:28:03 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 VR 22-3-18 : For now we do not clean correctly the datou structure Begin step rle-unique-nms nb_obj : 4 nb_hashtags : 1 time to prepare the origin masks : 3.079610824584961 time for calcul the mask position with numpy : 0.1831672191619873 nb_pixel_total : 3607908 time to create 1 rle with new method : 0.7591071128845215 time for calcul the mask position with numpy : 0.02216625213623047 nb_pixel_total : 43814 time to create 1 rle with old method : 0.05061793327331543 time for calcul the mask position with numpy : 0.037645578384399414 nb_pixel_total : 139455 time to create 1 rle with old method : 0.15616250038146973 time for calcul the mask position with numpy : 0.06128883361816406 nb_pixel_total : 2743032 time to create 1 rle with new method : 0.5881412029266357 time for calcul the mask position with numpy : 0.03169822692871094 nb_pixel_total : 516031 time to create 1 rle with new method : 0.6182708740234375 create new chi : 2.5807204246520996 time to delete rle : 0.02788853645324707 batch 1 Loaded 5 chid ids of type : 3726 Number RLEs to save : 10539 TO DO : save crop sub photo not yet done ! save time : 0.6001019477844238 nb_obj : 13 nb_hashtags : 5 time to prepare the origin masks : 11.147241830825806 time for calcul the mask position with numpy : 0.504225492477417 nb_pixel_total : 5761244 time to create 1 rle with new method : 0.5047540664672852 time for calcul the mask position with numpy : 0.03827500343322754 nb_pixel_total : 203226 time to create 1 rle with new method : 0.5024912357330322 time for calcul the mask position with numpy : 0.034563302993774414 nb_pixel_total : 94509 time to create 1 rle with old method : 0.10445857048034668 time for calcul the mask position with numpy : 0.033972740173339844 nb_pixel_total : 2482 time to create 1 rle with old method : 0.0029706954956054688 time for calcul the mask position with numpy : 0.03381466865539551 nb_pixel_total : 41675 time to create 1 rle with old method : 0.04742074012756348 time for calcul the mask position with numpy : 0.03862428665161133 nb_pixel_total : 607626 time to create 1 rle with new method : 0.42755603790283203 time for calcul the mask position with numpy : 0.03165411949157715 nb_pixel_total : 17294 time to create 1 rle with old method : 0.01889204978942871 time for calcul the mask position with numpy : 0.027152061462402344 nb_pixel_total : 2947 time to create 1 rle with old method : 0.0032672882080078125 time for calcul the mask position with numpy : 0.02193474769592285 nb_pixel_total : 4932 time to create 1 rle with old method : 0.005635976791381836 time for calcul the mask position with numpy : 0.021272897720336914 nb_pixel_total : 17284 time to create 1 rle with old method : 0.019302845001220703 time for calcul the mask position with numpy : 0.02158331871032715 nb_pixel_total : 64977 time to create 1 rle with old method : 0.06975436210632324 time for calcul the mask position with numpy : 0.022796154022216797 nb_pixel_total : 2122 time to create 1 rle with old method : 0.003172636032104492 time for calcul the mask position with numpy : 0.02335977554321289 nb_pixel_total : 157026 time to create 1 rle with new method : 0.43253636360168457 time for calcul the mask position with numpy : 0.024939537048339844 nb_pixel_total : 72896 time to create 1 rle with old method : 0.08394742012023926 create new chi : 3.2206058502197266 time to delete rle : 0.0012540817260742188 batch 1 Loaded 14 chid ids of type : 3726 Number RLEs to save : 10934 TO DO : save crop sub photo not yet done ! save time : 0.6024169921875 nb_obj : 9 nb_hashtags : 6 time to prepare the origin masks : 6.36013126373291 time for calcul the mask position with numpy : 0.9467289447784424 nb_pixel_total : 6380248 time to create 1 rle with new method : 0.678600549697876 time for calcul the mask position with numpy : 0.04030942916870117 nb_pixel_total : 94344 time to create 1 rle with old method : 0.10898995399475098 time for calcul the mask position with numpy : 0.03801274299621582 nb_pixel_total : 1864 time to create 1 rle with old method : 0.003678560256958008 time for calcul the mask position with numpy : 0.056282758712768555 nb_pixel_total : 3431 time to create 1 rle with old method : 0.005337238311767578 time for calcul the mask position with numpy : 0.042679786682128906 nb_pixel_total : 332361 time to create 1 rle with new method : 0.557736873626709 time for calcul the mask position with numpy : 0.0599210262298584 nb_pixel_total : 11846 time to create 1 rle with old method : 0.020615816116333008 time for calcul the mask position with numpy : 0.035080909729003906 nb_pixel_total : 58219 time to create 1 rle with old method : 0.06841635704040527 time for calcul the mask position with numpy : 0.036269187927246094 nb_pixel_total : 130261 time to create 1 rle with old method : 0.15624308586120605 time for calcul the mask position with numpy : 0.041007041931152344 nb_pixel_total : 9294 time to create 1 rle with old method : 0.01422739028930664 time for calcul the mask position with numpy : 0.03661823272705078 nb_pixel_total : 28372 time to create 1 rle with old method : 0.04490828514099121 create new chi : 3.0674002170562744 time to delete rle : 0.001062631607055664 batch 1 Loaded 10 chid ids of type : 3726 Number RLEs to save : 6708 TO DO : save crop sub photo not yet done ! save time : 0.8970363140106201 nb_obj : 2 nb_hashtags : 2 time to prepare the origin masks : 5.248312950134277 time for calcul the mask position with numpy : 0.17162632942199707 nb_pixel_total : 4295336 time to create 1 rle with new method : 1.1499691009521484 time for calcul the mask position with numpy : 0.04078102111816406 nb_pixel_total : 2576498 time to create 1 rle with new method : 0.711198091506958 time for calcul the mask position with numpy : 0.02233576774597168 nb_pixel_total : 178406 time to create 1 rle with new method : 0.6597099304199219 create new chi : 2.8596787452697754 time to delete rle : 0.0013880729675292969 batch 1 Loaded 3 chid ids of type : 3726 Number RLEs to save : 10704 TO DO : save crop sub photo not yet done ! save time : 0.6192684173583984 nb_obj : 10 nb_hashtags : 4 time to prepare the origin masks : 7.81342077255249 time for calcul the mask position with numpy : 0.6786506175994873 nb_pixel_total : 6691843 time to create 1 rle with new method : 0.6103763580322266 time for calcul the mask position with numpy : 0.02503228187561035 nb_pixel_total : 5352 time to create 1 rle with old method : 0.0062580108642578125 time for calcul the mask position with numpy : 0.023882389068603516 nb_pixel_total : 16239 time to create 1 rle with old method : 0.018338918685913086 time for calcul the mask position with numpy : 0.023853540420532227 nb_pixel_total : 1146 time to create 1 rle with old method : 0.002027750015258789 time for calcul the mask position with numpy : 0.027835607528686523 nb_pixel_total : 187016 time to create 1 rle with new method : 0.5789859294891357 time for calcul the mask position with numpy : 0.022641658782958984 nb_pixel_total : 2155 time to create 1 rle with old method : 0.002617359161376953 time for calcul the mask position with numpy : 0.023399829864501953 nb_pixel_total : 41307 time to create 1 rle with old method : 0.20916366577148438 time for calcul the mask position with numpy : 0.02462625503540039 nb_pixel_total : 20464 time to create 1 rle with old method : 0.02338242530822754 time for calcul the mask position with numpy : 0.026591777801513672 nb_pixel_total : 9761 time to create 1 rle with old method : 0.011114120483398438 time for calcul the mask position with numpy : 0.026046037673950195 nb_pixel_total : 14679 time to create 1 rle with old method : 0.016782045364379883 time for calcul the mask position with numpy : 0.026577234268188477 nb_pixel_total : 60278 time to create 1 rle with old method : 0.06996917724609375 create new chi : 2.5482277870178223 time to delete rle : 0.0007126331329345703 batch 1 Loaded 11 chid ids of type : 3726 Number RLEs to save : 5743 TO DO : save crop sub photo not yet done ! save time : 0.3537425994873047 nb_obj : 13 nb_hashtags : 4 time to prepare the origin masks : 9.870615243911743 time for calcul the mask position with numpy : 0.3658876419067383 nb_pixel_total : 6447383 time to create 1 rle with new method : 0.6063849925994873 time for calcul the mask position with numpy : 0.040114641189575195 nb_pixel_total : 24855 time to create 1 rle with old method : 0.029023170471191406 time for calcul the mask position with numpy : 0.03632521629333496 nb_pixel_total : 32750 time to create 1 rle with old method : 0.03669595718383789 time for calcul the mask position with numpy : 0.03979897499084473 nb_pixel_total : 130516 time to create 1 rle with old method : 0.1448671817779541 time for calcul the mask position with numpy : 0.03506779670715332 nb_pixel_total : 6849 time to create 1 rle with old method : 0.008301734924316406 time for calcul the mask position with numpy : 0.03786325454711914 nb_pixel_total : 30294 time to create 1 rle with old method : 0.033978939056396484 time for calcul the mask position with numpy : 0.03808474540710449 nb_pixel_total : 4771 time to create 1 rle with old method : 0.005469560623168945 time for calcul the mask position with numpy : 0.035504817962646484 nb_pixel_total : 33302 time to create 1 rle with old method : 0.037634849548339844 time for calcul the mask position with numpy : 0.03702378273010254 nb_pixel_total : 40428 time to create 1 rle with old method : 0.04743480682373047 time for calcul the mask position with numpy : 0.029096126556396484 nb_pixel_total : 35390 time to create 1 rle with old method : 0.039824724197387695 time for calcul the mask position with numpy : 0.02836012840270996 nb_pixel_total : 4260 time to create 1 rle with old method : 0.005046367645263672 time for calcul the mask position with numpy : 0.02481389045715332 nb_pixel_total : 130767 time to create 1 rle with old method : 0.14659738540649414 time for calcul the mask position with numpy : 0.024568557739257812 nb_pixel_total : 38747 time to create 1 rle with old method : 0.04495668411254883 time for calcul the mask position with numpy : 0.02208256721496582 nb_pixel_total : 89928 time to create 1 rle with old method : 0.10065293312072754 create new chi : 2.133300542831421 time to delete rle : 0.0012712478637695312 batch 1 Loaded 14 chid ids of type : 3726 Number RLEs to save : 9234 TO DO : save crop sub photo not yet done ! save time : 0.523792028427124 nb_obj : 18 nb_hashtags : 4 time to prepare the origin masks : 14.742862224578857 time for calcul the mask position with numpy : 0.6152358055114746 nb_pixel_total : 6236878 time to create 1 rle with new method : 0.399261474609375 time for calcul the mask position with numpy : 0.05833292007446289 nb_pixel_total : 833 time to create 1 rle with old method : 0.0018837451934814453 time for calcul the mask position with numpy : 0.05528974533081055 nb_pixel_total : 273 time to create 1 rle with old method : 0.0009837150573730469 time for calcul the mask position with numpy : 0.0504148006439209 nb_pixel_total : 30279 time to create 1 rle with old method : 0.056279659271240234 time for calcul the mask position with numpy : 0.06498980522155762 nb_pixel_total : 274055 time to create 1 rle with new method : 0.7803406715393066 time for calcul the mask position with numpy : 0.05076241493225098 nb_pixel_total : 7241 time to create 1 rle with old method : 0.010669946670532227 time for calcul the mask position with numpy : 0.035642385482788086 nb_pixel_total : 7989 time to create 1 rle with old method : 0.010026216506958008 time for calcul the mask position with numpy : 0.03578042984008789 nb_pixel_total : 108942 time to create 1 rle with old method : 0.1380784511566162 time for calcul the mask position with numpy : 0.02396416664123535 nb_pixel_total : 199570 time to create 1 rle with new method : 0.7947351932525635 time for calcul the mask position with numpy : 0.024656057357788086 nb_pixel_total : 4031 time to create 1 rle with old method : 0.004843235015869141 time for calcul the mask position with numpy : 0.023398637771606445 nb_pixel_total : 2153 time to create 1 rle with old method : 0.0025331974029541016 time for calcul the mask position with numpy : 0.02601337432861328 nb_pixel_total : 4533 time to create 1 rle with old method : 0.00548863410949707 time for calcul the mask position with numpy : 0.024506807327270508 nb_pixel_total : 3452 time to create 1 rle with old method : 0.004222869873046875 time for calcul the mask position with numpy : 0.023168087005615234 nb_pixel_total : 18478 time to create 1 rle with old method : 0.02247476577758789 time for calcul the mask position with numpy : 0.02823495864868164 nb_pixel_total : 10901 time to create 1 rle with old method : 0.013309001922607422 time for calcul the mask position with numpy : 0.03239631652832031 nb_pixel_total : 106163 time to create 1 rle with old method : 0.1484677791595459 time for calcul the mask position with numpy : 0.0289154052734375 nb_pixel_total : 2905 time to create 1 rle with old method : 0.0050008296966552734 time for calcul the mask position with numpy : 0.023459196090698242 nb_pixel_total : 2616 time to create 1 rle with old method : 0.0031130313873291016 time for calcul the mask position with numpy : 0.024654388427734375 nb_pixel_total : 28948 time to create 1 rle with old method : 0.03375554084777832 create new chi : 3.7948596477508545 time to delete rle : 0.001050710678100586 batch 1 Loaded 19 chid ids of type : 3726 Number RLEs to save : 10338 TO DO : save crop sub photo not yet done ! save time : 0.7003419399261475 nb_obj : 12 nb_hashtags : 3 time to prepare the origin masks : 9.57624077796936 time for calcul the mask position with numpy : 0.8281748294830322 nb_pixel_total : 6663810 time to create 1 rle with new method : 0.8934917449951172 time for calcul the mask position with numpy : 0.03637051582336426 nb_pixel_total : 27023 time to create 1 rle with old method : 0.031167268753051758 time for calcul the mask position with numpy : 0.041107892990112305 nb_pixel_total : 141340 time to create 1 rle with old method : 0.18714451789855957 time for calcul the mask position with numpy : 0.035703420639038086 nb_pixel_total : 4837 time to create 1 rle with old method : 0.005773305892944336 time for calcul the mask position with numpy : 0.03541302680969238 nb_pixel_total : 37796 time to create 1 rle with old method : 0.044161319732666016 time for calcul the mask position with numpy : 0.03522133827209473 nb_pixel_total : 8163 time to create 1 rle with old method : 0.009626626968383789 time for calcul the mask position with numpy : 0.033457279205322266 nb_pixel_total : 18863 time to create 1 rle with old method : 0.021453380584716797 time for calcul the mask position with numpy : 0.022900104522705078 nb_pixel_total : 70787 time to create 1 rle with old method : 0.08437228202819824 time for calcul the mask position with numpy : 0.025638818740844727 nb_pixel_total : 5878 time to create 1 rle with old method : 0.007995128631591797 time for calcul the mask position with numpy : 0.023596525192260742 nb_pixel_total : 4316 time to create 1 rle with old method : 0.005411386489868164 time for calcul the mask position with numpy : 0.02447366714477539 nb_pixel_total : 15540 time to create 1 rle with old method : 0.045522212982177734 time for calcul the mask position with numpy : 0.028756380081176758 nb_pixel_total : 6209 time to create 1 rle with old method : 0.007470846176147461 time for calcul the mask position with numpy : 0.0224759578704834 nb_pixel_total : 45678 time to create 1 rle with old method : 0.05165719985961914 create new chi : 2.6410937309265137 time to delete rle : 0.0008349418640136719 batch 1 Loaded 13 chid ids of type : 3726 Number RLEs to save : 7176 TO DO : save crop sub photo not yet done ! save time : 0.43019986152648926 nb_obj : 13 nb_hashtags : 5 time to prepare the origin masks : 8.622585535049438 time for calcul the mask position with numpy : 0.6077368259429932 nb_pixel_total : 6539056 time to create 1 rle with new method : 0.9941902160644531 time for calcul the mask position with numpy : 0.03582429885864258 nb_pixel_total : 85623 time to create 1 rle with old method : 0.09646153450012207 time for calcul the mask position with numpy : 0.03576970100402832 nb_pixel_total : 8156 time to create 1 rle with old method : 0.009944438934326172 time for calcul the mask position with numpy : 0.03525400161743164 nb_pixel_total : 45658 time to create 1 rle with old method : 0.05128836631774902 time for calcul the mask position with numpy : 0.027104616165161133 nb_pixel_total : 40698 time to create 1 rle with old method : 0.05033278465270996 time for calcul the mask position with numpy : 0.022513866424560547 nb_pixel_total : 1652 time to create 1 rle with old method : 0.001979351043701172 time for calcul the mask position with numpy : 0.026159286499023438 nb_pixel_total : 40761 time to create 1 rle with old method : 0.049318790435791016 time for calcul the mask position with numpy : 0.023932218551635742 nb_pixel_total : 2268 time to create 1 rle with old method : 0.0027930736541748047 time for calcul the mask position with numpy : 0.022116422653198242 nb_pixel_total : 9674 time to create 1 rle with old method : 0.01142120361328125 time for calcul the mask position with numpy : 0.023248910903930664 nb_pixel_total : 1677 time to create 1 rle with old method : 0.0020427703857421875 time for calcul the mask position with numpy : 0.02261042594909668 nb_pixel_total : 81743 time to create 1 rle with old method : 0.09674882888793945 time for calcul the mask position with numpy : 0.025055646896362305 nb_pixel_total : 20024 time to create 1 rle with old method : 0.02300739288330078 time for calcul the mask position with numpy : 0.031946420669555664 nb_pixel_total : 106128 time to create 1 rle with old method : 0.12238860130310059 time for calcul the mask position with numpy : 0.022055625915527344 nb_pixel_total : 67122 time to create 1 rle with old method : 0.07809185981750488 create new chi : 2.5970237255096436 time to delete rle : 0.0009098052978515625 batch 1 Loaded 14 chid ids of type : 3726 Number RLEs to save : 8481 TO DO : save crop sub photo not yet done ! save time : 0.6005568504333496 nb_obj : 10 nb_hashtags : 5 time to prepare the origin masks : 8.758237361907959 time for calcul the mask position with numpy : 0.43315768241882324 nb_pixel_total : 6507432 time to create 1 rle with new method : 0.8944954872131348 time for calcul the mask position with numpy : 0.02266526222229004 nb_pixel_total : 138436 time to create 1 rle with old method : 0.15221452713012695 time for calcul the mask position with numpy : 0.023448944091796875 nb_pixel_total : 49577 time to create 1 rle with old method : 0.05429267883300781 time for calcul the mask position with numpy : 0.022716045379638672 nb_pixel_total : 10067 time to create 1 rle with old method : 0.012001514434814453 time for calcul the mask position with numpy : 0.022381305694580078 nb_pixel_total : 39367 time to create 1 rle with old method : 0.04271364212036133 time for calcul the mask position with numpy : 0.023244857788085938 nb_pixel_total : 24283 time to create 1 rle with old method : 0.027177810668945312 time for calcul the mask position with numpy : 0.02592635154724121 nb_pixel_total : 119882 time to create 1 rle with old method : 0.13895153999328613 time for calcul the mask position with numpy : 0.021876811981201172 nb_pixel_total : 1658 time to create 1 rle with old method : 0.0019817352294921875 time for calcul the mask position with numpy : 0.022739171981811523 nb_pixel_total : 6115 time to create 1 rle with old method : 0.006934404373168945 time for calcul the mask position with numpy : 0.024075746536254883 nb_pixel_total : 141195 time to create 1 rle with old method : 0.2784264087677002 time for calcul the mask position with numpy : 0.038413047790527344 nb_pixel_total : 12228 time to create 1 rle with old method : 0.02105236053466797 create new chi : 2.3550260066986084 time to delete rle : 0.0011792182922363281 batch 1 Loaded 11 chid ids of type : 3726 Number RLEs to save : 8512 TO DO : save crop sub photo not yet done ! save time : 0.5014479160308838 map_output_result : {1338336591: (0.0, 'Should be the crop_list due to order', 0.0), 1338327970: (0.0, 'Should be the crop_list due to order', 0.0), 1338327964: (0.0, 'Should be the crop_list due to order', 0.0), 1338327958: (0.0, 'Should be the crop_list due to order', 0.0), 1338327927: (0.0, 'Should be the crop_list due to order', 0.0), 1338327925: (0.0, 'Should be the crop_list due to order', 0.0), 1338327912: (0.0, 'Should be the crop_list due to order', 0.0), 1338327902: (0.0, 'Should be the crop_list due to order', 0.0), 1338327897: (0.0, 'Should be the crop_list due to order', 0.0), 1338327894: (0.0, 'Should be the crop_list due to order', 0.0)} End step rle-unique-nms Inside saveOutput : final : False verbose : 0 saveOutput not yet implemented for datou_step.type : rle_unique_nms_with_priority we use saveGeneral [1338336591, 1338327970, 1338327964, 1338327958, 1338327927, 1338327925, 1338327912, 1338327902, 1338327897, 1338327894] Looping around the photos to save general results len do output : 10 /1338336591.Didn't retrieve data . /1338327970.Didn't retrieve data . /1338327964.Didn't retrieve data . /1338327958.Didn't retrieve data . /1338327927.Didn't retrieve data . /1338327925.Didn't retrieve data . /1338327912.Didn't retrieve data . /1338327902.Didn't retrieve data . /1338327897.Didn't retrieve data . /1338327894.Didn't retrieve data . before output type Used above Here is an output not treated by saveGeneral : Managing all output in save final without adding information in the mtr_datou_result ('3459', None, None, None, None, None, None, None, '2597827') ('3459', None, '1338336591', None, None, None, None, None, '2597827') ('3459', None, None, None, None, None, None, None, '2597827') ('3459', None, '1338327970', None, None, None, None, None, '2597827') ('3459', None, None, None, None, None, None, None, '2597827') ('3459', None, '1338327964', None, None, None, None, None, '2597827') ('3459', None, None, None, None, None, None, None, '2597827') ('3459', None, '1338327958', None, None, None, None, None, '2597827') ('3459', None, None, None, None, None, None, None, '2597827') ('3459', None, '1338327927', None, None, None, None, None, '2597827') ('3459', None, None, None, None, None, None, None, '2597827') ('3459', None, '1338327925', None, None, None, None, None, '2597827') ('3459', None, None, None, None, None, None, None, '2597827') ('3459', None, '1338327912', None, None, None, None, None, '2597827') ('3459', None, None, None, None, None, None, None, '2597827') ('3459', None, '1338327902', None, None, None, None, None, '2597827') ('3459', None, None, None, None, None, None, None, '2597827') ('3459', None, '1338327897', None, None, None, None, None, '2597827') ('3459', None, None, None, None, None, None, None, '2597827') ('3459', None, '1338327894', None, None, None, None, None, '2597827') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 time used for this insertion : 0.013527631759643555 save_final save missing photos in datou_result : time spend for datou_step_exec : 119.8386743068695 time spend to save output : 0.01405024528503418 total time spend for step 5 : 119.85272455215454 step6:crop_condition Tue Feb 18 22:30:02 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure some photos are not treated, begin crop_condition Loading chi in step crop with photo_hashtag_type : 3726 Loading chi in step crop for list_pids : 10 ! batch 1 Loaded 114 chid ids of type : 3726 begin to crop the class : teint_dans_la_masse param for this class : {'min_score': 0.7} filtre for class : teint_dans_la_masse hashtag_id of this class : 2107752385 Next one ! Next one ! Next one ! Next one ! Next one ! 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 ! About to upload 6 photos upload in portfolio : 4869462 init cache_photo without model_param we have 6 photo to upload uploaded to storage server : ovh folder_temporaire : temp/1739914207_1402656 we have uploaded 6 photos in the portfolio 4869462 time of upload the photos Elapsed time : 2.456211566925049 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 Next one ! map_result returned by crop_photo_return_map_crop : length : 1 About to insert : list_path_to_insert length 1 new photo from crops ! About to upload 1 photos upload in portfolio : 4869462 init cache_photo without model_param we have 1 photo to upload uploaded to storage server : ovh folder_temporaire : temp/1739914211_1402656 we have uploaded 1 photos in the portfolio 4869462 time of upload the photos Elapsed time : 0.4949071407318115 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 Next one ! Next one ! map_result returned by crop_photo_return_map_crop : length : 2 About to insert : list_path_to_insert length 2 new photo from crops ! About to upload 2 photos upload in portfolio : 4869462 init cache_photo without model_param we have 2 photo to upload uploaded to storage server : ovh folder_temporaire : temp/1739914214_1402656 we have uploaded 2 photos in the portfolio 4869462 time of upload the photos Elapsed time : 0.9525728225708008 we have finished the crop for the class : carton_gris begin to crop the class : cartonnette param for this class : {'min_score': 0.5} filtre for class : cartonnette hashtag_id of this class : 702398920 Next one ! Next one ! Next one ! Next one ! map_result returned by crop_photo_return_map_crop : length : 4 About to insert : list_path_to_insert length 4 new photo from crops ! About to upload 4 photos upload in portfolio : 4869462 init cache_photo without model_param we have 4 photo to upload uploaded to storage server : ovh folder_temporaire : temp/1739914217_1402656 we have uploaded 4 photos in the portfolio 4869462 time of upload the photos Elapsed time : 1.2657406330108643 we have finished the crop for the class : cartonnette begin to crop the class : carton_brun param for this class : {'min_score': 0.7} filtre for class : carton_brun hashtag_id of this class : 2107753024 Next one ! map_result returned by crop_photo_return_map_crop : length : 1 About to insert : list_path_to_insert length 1 new photo from crops ! About to upload 1 photos upload in portfolio : 4869462 init cache_photo without model_param we have 1 photo to upload uploaded to storage server : ovh folder_temporaire : temp/1739914221_1402656 we have uploaded 1 photos in the portfolio 4869462 time of upload the photos Elapsed time : 0.7324275970458984 we have finished the crop for the class : carton_brun begin to crop the class : plastique param for this class : {'min_score': 0.5} filtre for class : plastique hashtag_id of this class : 492725882 Next one ! Next one ! Next one ! map_result returned by crop_photo_return_map_crop : length : 3 About to insert : list_path_to_insert length 3 new photo from crops ! About to upload 3 photos upload in portfolio : 4869462 init cache_photo without model_param we have 3 photo to upload uploaded to storage server : ovh folder_temporaire : temp/1739914225_1402656 we have uploaded 3 photos in the portfolio 4869462 time of upload the photos Elapsed time : 0.9082462787628174 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 [1338336591, 1338327970, 1338327964, 1338327958, 1338327927, 1338327925, 1338327912, 1338327902, 1338327897, 1338327894] Looping around the photos to save general results len do output : 17 /1338395891Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1338395892Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1338395893Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1338395894Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1338395895Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1338395896Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1338395897Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1338395898Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1338395899Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1338395902Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1338395903Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1338395904Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1338395905Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1338395906Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1338395908Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1338395909Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1338395910Didn'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, '2597827') ('3459', None, '1338336591', None, None, None, None, None, '2597827') ('3459', None, None, None, None, None, None, None, '2597827') ('3459', None, '1338327970', None, None, None, None, None, '2597827') ('3459', None, None, None, None, None, None, None, '2597827') ('3459', None, '1338327964', None, None, None, None, None, '2597827') ('3459', None, None, None, None, None, None, None, '2597827') ('3459', None, '1338327958', None, None, None, None, None, '2597827') ('3459', None, None, None, None, None, None, None, '2597827') ('3459', None, '1338327927', None, None, None, None, None, '2597827') ('3459', None, None, None, None, None, None, None, '2597827') ('3459', None, '1338327925', None, None, None, None, None, '2597827') ('3459', None, None, None, None, None, None, None, '2597827') ('3459', None, '1338327912', None, None, None, None, None, '2597827') ('3459', None, None, None, None, None, None, None, '2597827') ('3459', None, '1338327902', None, None, None, None, None, '2597827') ('3459', None, None, None, None, None, None, None, '2597827') ('3459', None, '1338327897', None, None, None, None, None, '2597827') ('3459', None, None, None, None, None, None, None, '2597827') ('3459', None, '1338327894', None, None, None, None, None, '2597827') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 61 time used for this insertion : 0.026870250701904297 save_final save missing photos in datou_result : time spend for datou_step_exec : 23.710558891296387 time spend to save output : 0.027730464935302734 total time spend for step 6 : 23.73828935623169 step7:ventilate_hashtags_in_portfolio Tue Feb 18 22:30:26 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure beginning of datou step ventilate_hashtags_in_portfolio : To implement ! To do loadFromThcl(), then load ParamDescType : thcl2725 thcls : [{'id': 2725, 'mtr_user_id': 31, 'name': 'learn_qualipapia_rle_210302_2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Carton_brun,Carton_gris,Teint_Dans_La_Masse,autre_refus,cartonnette,environnement,kraft,metal,papier,plastique', 'svm_portfolios_learning': '3460440,3460441,3460446,3460434,3460439,3467416,3460442,3460443,3486028,3460445', 'photo_hashtag_type': 3410, 'photo_desc_type': 5186, 'type_classification': 'caffe', 'hashtag_id_list': '2107753024,2107753020,2107752385,2107752406,702398920,493012381,493202403,492628673,492668766,492725882'}] thcl {'id': 2725, 'mtr_user_id': 31, 'name': 'learn_qualipapia_rle_210302_2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Carton_brun,Carton_gris,Teint_Dans_La_Masse,autre_refus,cartonnette,environnement,kraft,metal,papier,plastique', 'svm_portfolios_learning': '3460440,3460441,3460446,3460434,3460439,3467416,3460442,3460443,3486028,3460445', 'photo_hashtag_type': 3410, 'photo_desc_type': 5186, 'type_classification': 'caffe', 'hashtag_id_list': '2107753024,2107753020,2107752385,2107752406,702398920,493012381,493202403,492628673,492668766,492725882'} Update svm_hashtag_type_desc : 5186 Iterating over portfolio : 20656288 get user id for portfolio 20656288 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20656288 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','mal_croppe','environnement','autre_refus','plastique','Carton_brun','cartonnette','flou','Teint_Dans_La_Masse','metal','papier','Carton_gris')) AND mptpi.`min_score`=0.5 To do Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20656288 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','mal_croppe','environnement','autre_refus','plastique','Carton_brun','cartonnette','flou','Teint_Dans_La_Masse','metal','papier','Carton_gris')) AND mptpi.`min_score`=0.5 To do lien utilise dans velours : https://www.fotonower.com/velours/20656580,20656581,20656582,20656583,20656584,20656585,20656586,20656587,20656588,20656589,20656590,20656591?tags=Carton_gris,Teint_Dans_La_Masse,papier,metal,cartonnette,mal_croppe,Carton_brun,environnement,autre_refus,kraft,plastique,flou Inside saveOutput : final : False verbose : 0 saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1338336591, 1338327970, 1338327964, 1338327958, 1338327927, 1338327925, 1338327912, 1338327902, 1338327897, 1338327894] Looping around the photos to save general results len do output : 1 /20656288. before output type Here is an output not treated by saveGeneral : Managing all output in save final without adding information in the mtr_datou_result ('3459', None, None, None, None, None, None, None, '2597827') ('3459', None, '1338336591', None, None, None, None, None, '2597827') ('3459', None, None, None, None, None, None, None, '2597827') ('3459', None, '1338327970', None, None, None, None, None, '2597827') ('3459', None, None, None, None, None, None, None, '2597827') ('3459', None, '1338327964', None, None, None, None, None, '2597827') ('3459', None, None, None, None, None, None, None, '2597827') ('3459', None, '1338327958', None, None, None, None, None, '2597827') ('3459', None, None, None, None, None, None, None, '2597827') ('3459', None, '1338327927', None, None, None, None, None, '2597827') ('3459', None, None, None, None, None, None, None, '2597827') ('3459', None, '1338327925', None, None, None, None, None, '2597827') ('3459', None, None, None, None, None, None, None, '2597827') ('3459', None, '1338327912', None, None, None, None, None, '2597827') ('3459', None, None, None, None, None, None, None, '2597827') ('3459', None, '1338327902', None, None, None, None, None, '2597827') ('3459', None, None, None, None, None, None, None, '2597827') ('3459', None, '1338327897', None, None, None, None, None, '2597827') ('3459', None, None, None, None, None, None, None, '2597827') ('3459', None, '1338327894', None, None, None, None, None, '2597827') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 time used for this insertion : 0.01389312744140625 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.42069673538208 time spend to save output : 0.014259576797485352 total time spend for step 7 : 1.4349563121795654 step8:final Tue Feb 18 22:30:28 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 VR 22-3-18 : For now we do not clean correctly the datou structure Beginning of datou step final ! Catched exception ! Connect or reconnect ! Inside saveOutput : final : False verbose : 0 original output for save of step final : {1338336591: ('0.052658728362203415',), 1338327970: ('0.052658728362203415',), 1338327964: ('0.052658728362203415',), 1338327958: ('0.052658728362203415',), 1338327927: ('0.052658728362203415',), 1338327925: ('0.052658728362203415',), 1338327912: ('0.052658728362203415',), 1338327902: ('0.052658728362203415',), 1338327897: ('0.052658728362203415',), 1338327894: ('0.052658728362203415',)} new output for save of step final : {1338336591: ('0.052658728362203415',), 1338327970: ('0.052658728362203415',), 1338327964: ('0.052658728362203415',), 1338327958: ('0.052658728362203415',), 1338327927: ('0.052658728362203415',), 1338327925: ('0.052658728362203415',), 1338327912: ('0.052658728362203415',), 1338327902: ('0.052658728362203415',), 1338327897: ('0.052658728362203415',), 1338327894: ('0.052658728362203415',)} [1338336591, 1338327970, 1338327964, 1338327958, 1338327927, 1338327925, 1338327912, 1338327902, 1338327897, 1338327894] Looping around the photos to save general results len do output : 10 /1338336591.Didn't retrieve data . /1338327970.Didn't retrieve data . /1338327964.Didn't retrieve data . /1338327958.Didn't retrieve data . /1338327927.Didn't retrieve data . /1338327925.Didn't retrieve data . /1338327912.Didn't retrieve data . /1338327902.Didn't retrieve data . /1338327897.Didn't retrieve data . /1338327894.Didn't retrieve data . before output type Used above Used above Managing all output in save final without adding information in the mtr_datou_result ('3459', None, None, None, None, None, None, None, '2597827') ('3459', None, '1338336591', None, None, None, None, None, '2597827') ('3459', None, None, None, None, None, None, None, '2597827') ('3459', None, '1338327970', None, None, None, None, None, '2597827') ('3459', None, None, None, None, None, None, None, '2597827') ('3459', None, '1338327964', None, None, None, None, None, '2597827') ('3459', None, None, None, None, None, None, None, '2597827') ('3459', None, '1338327958', None, None, None, None, None, '2597827') ('3459', None, None, None, None, None, None, None, '2597827') ('3459', None, '1338327927', None, None, None, None, None, '2597827') ('3459', None, None, None, None, None, None, None, '2597827') ('3459', None, '1338327925', None, None, None, None, None, '2597827') ('3459', None, None, None, None, None, None, None, '2597827') ('3459', None, '1338327912', None, None, None, None, None, '2597827') ('3459', None, None, None, None, None, None, None, '2597827') ('3459', None, '1338327902', None, None, None, None, None, '2597827') ('3459', None, None, None, None, None, None, None, '2597827') ('3459', None, '1338327897', None, None, None, None, None, '2597827') ('3459', None, None, None, None, None, None, None, '2597827') ('3459', None, '1338327894', None, None, None, None, None, '2597827') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 time used for this insertion : 0.01530599594116211 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.12022948265075684 time spend to save output : 0.01587533950805664 total time spend for step 8 : 0.13610482215881348 step9:velours_tree Tue Feb 18 22:30:28 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 VR 22-3-18 : For now we do not clean correctly the datou structure can't find the photo_desc_type Inside saveOutput : final : False verbose : 0 ouput is None No outpout to save, returning out of save general time spend for datou_step_exec : 0.09783816337585449 time spend to save output : 4.410743713378906e-05 total time spend for step 9 : 0.09788227081298828 step10:send_mail_cod Tue Feb 18 22:30:28 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 Inconsistent number of input and output, step which parrallelize and manage error in input by avoiding sending an output for this data can't be used in tree dependencies of input and output complete output_args for input 3 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector results_Auto_P20656288_18-02-2025_22_30_28.pdf 20656583 imagette206565831739914228 20656584 change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .imagette206565841739914228 20656585 imagette206565851739914229 20656588 change filename to text .change filename to text .change filename to text .change filename to text .imagette206565881739914229 20656589 change filename to text .imagette206565891739914229 20656590 change filename to text .change filename to text .change filename to text .change filename to text .imagette206565901739914229 20656591 imagette206565911739914229 20656580 change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .imagette206565801739914229 20656581 change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .imagette206565811739914230 20656586 change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .imagette206565861739914231 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20656288 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20656580,20656581,20656582,20656583,20656584,20656585,20656586,20656587,20656588,20656589,20656590,20656591?tags=Carton_gris,Teint_Dans_La_Masse,papier,metal,cartonnette,mal_croppe,Carton_brun,environnement,autre_refus,kraft,plastique,flou your option no_mail is active, we will not send the real mail to your client args[1338336591] : ('0.052658728362203415',) no score found for photo 1338336591 We are sending mail with results at report@fotonower.com args[1338327970] : ('0.052658728362203415',) no score found for photo 1338327970 We are sending mail with results at report@fotonower.com args[1338327964] : ('0.052658728362203415',) no score found for photo 1338327964 We are sending mail with results at report@fotonower.com args[1338327958] : ('0.052658728362203415',) no score found for photo 1338327958 We are sending mail with results at report@fotonower.com args[1338327927] : ('0.052658728362203415',) no score found for photo 1338327927 We are sending mail with results at report@fotonower.com args[1338327925] : ('0.052658728362203415',) no score found for photo 1338327925 We are sending mail with results at report@fotonower.com args[1338327912] : ('0.052658728362203415',) no score found for photo 1338327912 We are sending mail with results at report@fotonower.com args[1338327902] : ('0.052658728362203415',) no score found for photo 1338327902 We are sending mail with results at report@fotonower.com args[1338327897] : ('0.052658728362203415',) no score found for photo 1338327897 We are sending mail with results at report@fotonower.com args[1338327894] : ('0.052658728362203415',) no score found for photo 1338327894 We are sending mail with results at report@fotonower.com refus_total : 0.052658728362203415 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=20656288 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 1000 error for generate pdf : 'mal_croppe' Inside saveOutput : final : False verbose : 0 saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1338336591, 1338327970, 1338327964, 1338327958, 1338327927, 1338327925, 1338327912, 1338327902, 1338327897, 1338327894] Looping around the photos to save general results len do output : 0 before output type Used above Managing all output in save final without adding information in the mtr_datou_result ('3459', None, None, None, None, None, None, None, '2597827') ('3459', None, '1338336591', None, None, None, None, None, '2597827') ('3459', None, None, None, None, None, None, None, '2597827') ('3459', None, '1338327970', None, None, None, None, None, '2597827') ('3459', None, None, None, None, None, None, None, '2597827') ('3459', None, '1338327964', None, None, None, None, None, '2597827') ('3459', None, None, None, None, None, None, None, '2597827') ('3459', None, '1338327958', None, None, None, None, None, '2597827') ('3459', None, None, None, None, None, None, None, '2597827') ('3459', None, '1338327927', None, None, None, None, None, '2597827') ('3459', None, None, None, None, None, None, None, '2597827') ('3459', None, '1338327925', None, None, None, None, None, '2597827') ('3459', None, None, None, None, None, None, None, '2597827') ('3459', None, '1338327912', None, None, None, None, None, '2597827') ('3459', None, None, None, None, None, None, None, '2597827') ('3459', None, '1338327902', None, None, None, None, None, '2597827') ('3459', None, None, None, None, None, None, None, '2597827') ('3459', None, '1338327897', None, None, None, None, None, '2597827') ('3459', None, None, None, None, None, None, None, '2597827') ('3459', None, '1338327894', None, None, None, None, None, '2597827') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 time used for this insertion : 0.013762712478637695 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.2764973640441895 time spend to save output : 0.014062881469726562 total time spend for step 10 : 3.290560245513916 step11:split_time_score Tue Feb 18 22:30:31 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 We expect there is only one output and this part is used while all output are not tuple or array We expect there is only one output and this part is used while all output are not tuple or array We expect there is only one output and this part is used while all output are not tuple or array We expect there is only one output and this part is used while all output are not tuple or array We expect there is only one output and this part is used while all output are not tuple or array We expect there is only one output and this part is used while all output are not tuple or array We expect there is only one output and this part is used while all output are not tuple or array We expect there is only one output and this part is used while all output are not tuple or array We expect there is only one output and this part is used while all output are not tuple or array We expect there is only one output and this part is used while all output are not tuple or array Inconsistent number of input and output, step which parrallelize and manage error in input by avoiding sending an output for this data can't be used in tree dependencies of input and output complete output_args for input 1 VR 22-3-18 : For now we do not clean correctly the datou structure begin split time score Catched exception ! Connect or reconnect ! TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] (('13', 10), ('12', 10)) ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 18022025 20656288 Nombre de photos uploadées : 20 / 23040 (0%) 18022025 20656288 Nombre de photos taguées (types de déchets): 0 / 20 (0%) 18022025 20656288 Nombre de photos taguées (volume) : 0 / 20 (0%) elapsed_time : load_data_split_time_score 9.5367431640625e-06 elapsed_time : order_list_meta_photo_and_scores 1.9073486328125e-05 ???????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0014481544494628906 elapsed_time : insert_dashboard_record_day_entry 0.024834394454956055 We will return after consolidate but for now we need the day, how to get it, for now depending on the previous heavy steps find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656268 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656269 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656270 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656271 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656272 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656273 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656274 order by id desc limit 1 Qualite : 0.05161465064052396 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656275 order by id desc limit 1 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 11449 mask_detect is not consistent : 3 used against 2 in the step definition ! Step 11452 crop_condition have less inputs used (1) than in the step definition (2) : maybe we manage optionnal inputs ! Step 11452 crop_condition have less outputs used (2) than in the step definition (3) : some outputs may be not used ! Step 11453 merge_mask_thcl_custom have less inputs used (2) than in the step definition (3) : maybe we manage optionnal inputs ! WARNING : number of outputs for step 11453 merge_mask_thcl_custom is not consistent : 4 used against 2 in the step definition ! WARNING : number of inputs for step 11454 rle_unique_nms_with_priority is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 11454 rle_unique_nms_with_priority is not consistent : 2 used against 1 in the step definition ! Step 11478 crop_condition have less inputs used (1) than in the step definition (2) : maybe we manage optionnal inputs ! WARNING : number of outputs for step 11478 crop_condition is not consistent : 4 used against 3 in the step definition ! WARNING : number of inputs for step 11456 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 11456 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11455 final have less inputs used (2) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11455 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! Step 11458 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! WARNING : type of output 2 of step 11449 doesn't seem to be define in the database( WARNING : type of input 2 of step 11452 doesn't seem to be define in the database( WARNING : output 1 of step 11449 have datatype=2 whereas input 1 of step 11453 have datatype=7 WARNING : type of output 2 of step 11453 doesn't seem to be define in the database( WARNING : type of input 1 of step 11454 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : type of output 3 of step 11453 doesn't seem to be define in the database( WARNING : type of input 1 of step 11456 doesn't seem to be define in the database( WARNING : type of output 1 of step 11456 doesn't seem to be define in the database( WARNING : type of input 3 of step 11455 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 11456 have datatype=10 whereas input 3 of step 11458 have datatype=6 WARNING : type of input 5 of step 11458 doesn't seem to be define in the database( WARNING : output 0 of step 11477 have datatype=11 whereas input 5 of step 11458 have datatype=None WARNING : output 0 of step 11456 have datatype=10 whereas input 0 of step 11477 have datatype=18 WARNING : type of input 2 of step 11478 doesn't seem to be define in the database( WARNING : output 1 of step 11454 have datatype=7 whereas input 2 of step 11478 have datatype=None WARNING : type of output 3 of step 11478 doesn't seem to be define in the database( WARNING : type of input 2 of step 11456 doesn't seem to be define in the database( WARNING : output 0 of step 11453 have datatype=1 whereas input 0 of step 11454 have datatype=2 DataTypes for each output/input checked ! TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20656275 AND mptpi.`type`=3726 To do find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656276 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656277 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656278 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656279 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656280 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656281 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656282 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656283 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656284 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656285 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656286 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656287 order by id desc limit 1 Qualite : 0.056029600838106944 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656288 order by id desc limit 1 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 11449 mask_detect is not consistent : 3 used against 2 in the step definition ! Step 11452 crop_condition have less inputs used (1) than in the step definition (2) : maybe we manage optionnal inputs ! Step 11452 crop_condition have less outputs used (2) than in the step definition (3) : some outputs may be not used ! Step 11453 merge_mask_thcl_custom have less inputs used (2) than in the step definition (3) : maybe we manage optionnal inputs ! WARNING : number of outputs for step 11453 merge_mask_thcl_custom is not consistent : 4 used against 2 in the step definition ! WARNING : number of inputs for step 11454 rle_unique_nms_with_priority is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 11454 rle_unique_nms_with_priority is not consistent : 2 used against 1 in the step definition ! Step 11478 crop_condition have less inputs used (1) than in the step definition (2) : maybe we manage optionnal inputs ! WARNING : number of outputs for step 11478 crop_condition is not consistent : 4 used against 3 in the step definition ! WARNING : number of inputs for step 11456 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 11456 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11455 final have less inputs used (2) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11455 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! Step 11458 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! WARNING : type of output 2 of step 11449 doesn't seem to be define in the database( WARNING : type of input 2 of step 11452 doesn't seem to be define in the database( WARNING : output 1 of step 11449 have datatype=2 whereas input 1 of step 11453 have datatype=7 WARNING : type of output 2 of step 11453 doesn't seem to be define in the database( WARNING : type of input 1 of step 11454 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : type of output 3 of step 11453 doesn't seem to be define in the database( WARNING : type of input 1 of step 11456 doesn't seem to be define in the database( WARNING : type of output 1 of step 11456 doesn't seem to be define in the database( WARNING : type of input 3 of step 11455 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 11456 have datatype=10 whereas input 3 of step 11458 have datatype=6 WARNING : type of input 5 of step 11458 doesn't seem to be define in the database( WARNING : output 0 of step 11477 have datatype=11 whereas input 5 of step 11458 have datatype=None WARNING : output 0 of step 11456 have datatype=10 whereas input 0 of step 11477 have datatype=18 WARNING : type of input 2 of step 11478 doesn't seem to be define in the database( WARNING : output 1 of step 11454 have datatype=7 whereas input 2 of step 11478 have datatype=None WARNING : type of output 3 of step 11478 doesn't seem to be define in the database( WARNING : type of input 2 of step 11456 doesn't seem to be define in the database( WARNING : output 0 of step 11453 have datatype=1 whereas input 0 of step 11454 have datatype=2 DataTypes for each output/input checked ! TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20656288 AND mptpi.`type`=3726 To do find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656289 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656290 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656291 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656292 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656293 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656294 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656295 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656296 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656297 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656298 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656299 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656300 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656301 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656302 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656303 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656304 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656305 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656306 order by id desc limit 1 Qualite : 0.05733613433293486 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656307 order by id desc limit 1 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 11449 mask_detect is not consistent : 3 used against 2 in the step definition ! Step 11452 crop_condition have less inputs used (1) than in the step definition (2) : maybe we manage optionnal inputs ! Step 11452 crop_condition have less outputs used (2) than in the step definition (3) : some outputs may be not used ! Step 11453 merge_mask_thcl_custom have less inputs used (2) than in the step definition (3) : maybe we manage optionnal inputs ! WARNING : number of outputs for step 11453 merge_mask_thcl_custom is not consistent : 4 used against 2 in the step definition ! WARNING : number of inputs for step 11454 rle_unique_nms_with_priority is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 11454 rle_unique_nms_with_priority is not consistent : 2 used against 1 in the step definition ! Step 11478 crop_condition have less inputs used (1) than in the step definition (2) : maybe we manage optionnal inputs ! WARNING : number of outputs for step 11478 crop_condition is not consistent : 4 used against 3 in the step definition ! WARNING : number of inputs for step 11456 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 11456 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11455 final have less inputs used (2) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11455 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! Step 11458 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! WARNING : type of output 2 of step 11449 doesn't seem to be define in the database( WARNING : type of input 2 of step 11452 doesn't seem to be define in the database( WARNING : output 1 of step 11449 have datatype=2 whereas input 1 of step 11453 have datatype=7 WARNING : type of output 2 of step 11453 doesn't seem to be define in the database( WARNING : type of input 1 of step 11454 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : type of output 3 of step 11453 doesn't seem to be define in the database( WARNING : type of input 1 of step 11456 doesn't seem to be define in the database( WARNING : type of output 1 of step 11456 doesn't seem to be define in the database( WARNING : type of input 3 of step 11455 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 11456 have datatype=10 whereas input 3 of step 11458 have datatype=6 WARNING : type of input 5 of step 11458 doesn't seem to be define in the database( WARNING : output 0 of step 11477 have datatype=11 whereas input 5 of step 11458 have datatype=None WARNING : output 0 of step 11456 have datatype=10 whereas input 0 of step 11477 have datatype=18 WARNING : type of input 2 of step 11478 doesn't seem to be define in the database( WARNING : output 1 of step 11454 have datatype=7 whereas input 2 of step 11478 have datatype=None WARNING : type of output 3 of step 11478 doesn't seem to be define in the database( WARNING : type of input 2 of step 11456 doesn't seem to be define in the database( WARNING : output 0 of step 11453 have datatype=1 whereas input 0 of step 11454 have datatype=2 DataTypes for each output/input checked ! TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20656307 AND mptpi.`type`=3726 To do find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656308 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656309 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656310 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656311 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656312 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656313 order by id desc limit 1 Qualite : 0.056224834482821714 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656314 order by id desc limit 1 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 11500 mask_detect is not consistent : 3 used against 2 in the step definition ! WARNING : number of outputs for step 11508 brightness is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 11509 blur_detection is not consistent : 2 used against 1 in the step definition ! WARNING : number of inputs for step 11504 crop_condition is not consistent : 3 used against 2 in the step definition ! Step 11504 crop_condition have less outputs used (2) than in the step definition (3) : some outputs may be not used ! Step 11507 merge_mask_thcl_custom have less inputs used (2) than in the step definition (3) : maybe we manage optionnal inputs ! WARNING : number of outputs for step 11507 merge_mask_thcl_custom is not consistent : 3 used against 2 in the step definition ! WARNING : number of inputs for step 11501 rle_unique_nms_with_priority is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 11501 rle_unique_nms_with_priority is not consistent : 2 used against 1 in the step definition ! Step 11576 crop_condition have less inputs used (1) than in the step definition (2) : maybe we manage optionnal inputs ! WARNING : number of outputs for step 11576 crop_condition is not consistent : 4 used against 3 in the step definition ! WARNING : number of outputs for step 11503 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11502 final have less inputs used (2) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11502 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! Step 11511 split_time_score have less inputs used (1) than in the step definition (2) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : type of output 1 of step 11503 doesn't seem to be define in the database( WARNING : type of input 3 of step 11502 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : type of output 2 of step 11500 doesn't seem to be define in the database( WARNING : type of input 2 of step 11504 doesn't seem to be define in the database( WARNING : output 1 of step 11500 have datatype=2 whereas input 1 of step 11507 have datatype=7 WARNING : type of output 2 of step 11507 doesn't seem to be define in the database( WARNING : type of input 1 of step 11501 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 11503 have datatype=10 whereas input 3 of step 11510 have datatype=6 WARNING : type of input 2 of step 11576 doesn't seem to be define in the database( WARNING : output 1 of step 11501 have datatype=7 whereas input 2 of step 11576 have datatype=None WARNING : type of output 3 of step 11576 doesn't seem to be define in the database( WARNING : type of input 1 of step 11503 doesn't seem to be define in the database( WARNING : output 0 of step 11503 have datatype=10 whereas input 0 of step 11582 have datatype=18 WARNING : type of input 5 of step 11510 doesn't seem to be define in the database( WARNING : output 0 of step 11582 have datatype=11 whereas input 5 of step 11510 have datatype=None WARNING : type of output 1 of step 11508 doesn't seem to be define in the database( WARNING : type of input 3 of step 11504 doesn't seem to be define in the database( WARNING : type of output 1 of step 11509 doesn't seem to be define in the database( WARNING : type of input 3 of step 11504 doesn't seem to be define in the database( WARNING : output 0 of step 11507 have datatype=1 whereas input 0 of step 11501 have datatype=2 DataTypes for each output/input checked ! TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20656314 AND mptpi.`type`=4207 To do NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'18022025': {'nb_upload': 20, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} Inside saveOutput : final : True verbose : 0 saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1338336591, 1338327970, 1338327964, 1338327958, 1338327927, 1338327925, 1338327912, 1338327902, 1338327897, 1338327894] Looping around the photos to save general results len do output : 1 /20656288Didn't retrieve data . before output type Here is an output not treated by saveGeneral : Managing all output in save final without adding information in the mtr_datou_result ('3459', None, None, None, None, None, None, None, '2597827') ('3459', None, '1338336591', None, None, None, None, None, '2597827') ('3459', None, None, None, None, None, None, None, '2597827') ('3459', None, '1338327970', None, None, None, None, None, '2597827') ('3459', None, None, None, None, None, None, None, '2597827') ('3459', None, '1338327964', None, None, None, None, None, '2597827') ('3459', None, None, None, None, None, None, None, '2597827') ('3459', None, '1338327958', None, None, None, None, None, '2597827') ('3459', None, None, None, None, None, None, None, '2597827') ('3459', None, '1338327927', None, None, None, None, None, '2597827') ('3459', None, None, None, None, None, None, None, '2597827') ('3459', None, '1338327925', None, None, None, None, None, '2597827') ('3459', None, None, None, None, None, None, None, '2597827') ('3459', None, '1338327912', None, None, None, None, None, '2597827') ('3459', None, None, None, None, None, None, None, '2597827') ('3459', None, '1338327902', None, None, None, None, None, '2597827') ('3459', None, None, None, None, None, None, None, '2597827') ('3459', None, '1338327897', None, None, None, None, None, '2597827') ('3459', None, None, None, None, None, None, None, '2597827') ('3459', None, '1338327894', None, None, None, None, None, '2597827') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 time used for this insertion : 0.013931989669799805 save_final save missing photos in datou_result : time spend for datou_step_exec : 35.65845441818237 time spend to save output : 0.01437067985534668 total time spend for step 11 : 35.67282509803772 caffe_path_current : About to save ! 2 After save, about to update current ! update_current_state 116.56user 120.04system 4:43.02elapsed 83%CPU (0avgtext+0avgdata 4082916maxresident)k 980944inputs+82288outputs (2455major+9807001minor)pagefaults 0swaps