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 : 1359438 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 : 17>10 please execute split_portfolio.py -i 20656275 -l 10 size over we load limit photo not treated list_input_json: [] Current got : datou_id : 3459, datou_cur_ids : ['2597814'] with mtr_portfolio_ids : ['20656275'] and first list_photo_ids : [] new path : /proc/1359438/ 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.8634514808654785 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:18: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 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 : 10372 max_wait_temp : 1 max_wait : 0 gpu_flag : 0 2025-02-18 22:18:31.749802: 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:18:31.775059: I tensorflow/core/platform/profile_utils/cpu_utils.cc:102] CPU Frequency: 3493065000 Hz 2025-02-18 22:18:31.777111: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x7f97e0000b60 initialized for platform Host (this does not guarantee that XLA will be used). Devices: 2025-02-18 22:18:31.777172: I tensorflow/compiler/xla/service/service.cc:176] StreamExecutor device (0): Host, Default Version 2025-02-18 22:18:31.781085: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcuda.so.1 2025-02-18 22:18:31.915022: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x3e0afb60 initialized for platform CUDA (this does not guarantee that XLA will be used). Devices: 2025-02-18 22:18:31.915075: I tensorflow/compiler/xla/service/service.cc:176] StreamExecutor device (0): NVIDIA GeForce RTX 2080 Ti, Compute Capability 7.5 2025-02-18 22:18:31.916457: 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:18:31.916879: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1 2025-02-18 22:18:31.919898: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcublas.so.10 2025-02-18 22:18:31.923457: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcufft.so.10 2025-02-18 22:18:31.923874: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcurand.so.10 2025-02-18 22:18:31.927812: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusolver.so.10 2025-02-18 22:18:31.929581: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusparse.so.10 2025-02-18 22:18:31.936122: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudnn.so.7 2025-02-18 22:18:31.937554: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1703] Adding visible gpu devices: 0 2025-02-18 22:18:31.937633: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1 2025-02-18 22:18:31.938372: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1102] Device interconnect StreamExecutor with strength 1 edge matrix: 2025-02-18 22:18:31.938386: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1108] 0 2025-02-18 22:18:31.938395: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1121] 0: N 2025-02-18 22:18:31.939690: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1247] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 9607 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:18:32.216212: 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:18:32.216381: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1 2025-02-18 22:18:32.216428: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcublas.so.10 2025-02-18 22:18:32.216468: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcufft.so.10 2025-02-18 22:18:32.216509: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcurand.so.10 2025-02-18 22:18:32.216549: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusolver.so.10 2025-02-18 22:18:32.216585: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusparse.so.10 2025-02-18 22:18:32.216749: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudnn.so.7 2025-02-18 22:18:32.218667: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1703] Adding visible gpu devices: 0 2025-02-18 22:18:32.220457: 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:18:32.220571: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1 2025-02-18 22:18:32.220614: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcublas.so.10 2025-02-18 22:18:32.220651: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcufft.so.10 2025-02-18 22:18:32.220708: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcurand.so.10 2025-02-18 22:18:32.220752: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusolver.so.10 2025-02-18 22:18:32.220788: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusparse.so.10 2025-02-18 22:18:32.220819: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudnn.so.7 2025-02-18 22:18:32.222566: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1703] Adding visible gpu devices: 0 2025-02-18 22:18:32.222606: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1102] Device interconnect StreamExecutor with strength 1 edge matrix: 2025-02-18 22:18:32.222619: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1108] 0 2025-02-18 22:18:32.222631: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1121] 0: N 2025-02-18 22:18:32.224611: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1247] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 9607 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:18:43.574880: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcublas.so.10 2025-02-18 22:18:43.762544: 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 : 6 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 : 9 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 : 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 : 18 NEW PHOTO Processing 1 images image shape: (2160, 3264, 3) min: 0.00000 max: 255.00000 molded_images shape: (1, 640, 640, 3) min: -123.70000 max: 151.10000 image_metas shape: (1, 18) min: 0.00000 max: 3264.00000 nb d'objets trouves : 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 : 18 NEW PHOTO Processing 1 images image shape: (2160, 3264, 3) min: 0.00000 max: 255.00000 molded_images shape: (1, 640, 640, 3) min: -123.70000 max: 151.10000 image_metas shape: (1, 18) min: 0.00000 max: 3264.00000 nb d'objets trouves : 5 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 Detection mask done ! Trying to reset tf kernel 1359872 begin to check gpu status inside check gpu memory l 3610 free memory gpu now : 5304 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 : 10593 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.233154296875 nb_pixel_total : 3416258 time to create 1 rle with new method : 0.45078516006469727 length of segment : 3627 time for calcul the mask position with numpy : 0.00041174888610839844 nb_pixel_total : 5144 time to create 1 rle with old method : 0.0065801143646240234 length of segment : 87 time for calcul the mask position with numpy : 0.006810665130615234 nb_pixel_total : 364813 time to create 1 rle with new method : 0.012854337692260742 length of segment : 1157 time for calcul the mask position with numpy : 0.0028676986694335938 nb_pixel_total : 116806 time to create 1 rle with old method : 0.12806439399719238 length of segment : 433 time for calcul the mask position with numpy : 0.0035996437072753906 nb_pixel_total : 240276 time to create 1 rle with new method : 0.010241508483886719 length of segment : 596 time for calcul the mask position with numpy : 0.0008213520050048828 nb_pixel_total : 35335 time to create 1 rle with old method : 0.04013371467590332 length of segment : 272 time for calcul the mask position with numpy : 0.1442403793334961 nb_pixel_total : 2120102 time to create 1 rle with new method : 0.36233043670654297 length of segment : 3707 time for calcul the mask position with numpy : 0.0009620189666748047 nb_pixel_total : 58574 time to create 1 rle with old method : 0.06714439392089844 length of segment : 380 time for calcul the mask position with numpy : 0.0007877349853515625 nb_pixel_total : 40796 time to create 1 rle with old method : 0.0485994815826416 length of segment : 372 time for calcul the mask position with numpy : 0.002025604248046875 nb_pixel_total : 75230 time to create 1 rle with old method : 0.08811593055725098 length of segment : 377 time for calcul the mask position with numpy : 0.00015664100646972656 nb_pixel_total : 4142 time to create 1 rle with old method : 0.005131244659423828 length of segment : 74 time for calcul the mask position with numpy : 0.01619887351989746 nb_pixel_total : 683392 time to create 1 rle with new method : 0.04358077049255371 length of segment : 1493 time for calcul the mask position with numpy : 0.0009036064147949219 nb_pixel_total : 52048 time to create 1 rle with old method : 0.0567011833190918 length of segment : 393 time for calcul the mask position with numpy : 0.0006387233734130859 nb_pixel_total : 14384 time to create 1 rle with old method : 0.016519784927368164 length of segment : 200 time for calcul the mask position with numpy : 0.0016052722930908203 nb_pixel_total : 79304 time to create 1 rle with old method : 0.0901954174041748 length of segment : 361 time for calcul the mask position with numpy : 0.0002741813659667969 nb_pixel_total : 4343 time to create 1 rle with old method : 0.0051577091217041016 length of segment : 120 time for calcul the mask position with numpy : 0.001699686050415039 nb_pixel_total : 53612 time to create 1 rle with old method : 0.0585482120513916 length of segment : 372 time for calcul the mask position with numpy : 0.0004811286926269531 nb_pixel_total : 10975 time to create 1 rle with old method : 0.01243734359741211 length of segment : 134 time for calcul the mask position with numpy : 0.002211332321166992 nb_pixel_total : 101643 time to create 1 rle with old method : 0.10837388038635254 length of segment : 385 time for calcul the mask position with numpy : 0.0008401870727539062 nb_pixel_total : 21554 time to create 1 rle with old method : 0.023433685302734375 length of segment : 201 time for calcul the mask position with numpy : 0.0006735324859619141 nb_pixel_total : 20097 time to create 1 rle with old method : 0.02297520637512207 length of segment : 188 time for calcul the mask position with numpy : 0.0002448558807373047 nb_pixel_total : 4431 time to create 1 rle with old method : 0.0069463253021240234 length of segment : 79 time for calcul the mask position with numpy : 0.005359172821044922 nb_pixel_total : 188966 time to create 1 rle with new method : 0.010018587112426758 length of segment : 686 time for calcul the mask position with numpy : 0.026265621185302734 nb_pixel_total : 1306436 time to create 1 rle with new method : 0.06839704513549805 length of segment : 1688 time for calcul the mask position with numpy : 0.0002751350402832031 nb_pixel_total : 8865 time to create 1 rle with old method : 0.010976791381835938 length of segment : 68 time for calcul the mask position with numpy : 0.005711555480957031 nb_pixel_total : 269623 time to create 1 rle with new method : 0.009674072265625 length of segment : 458 time for calcul the mask position with numpy : 0.0019855499267578125 nb_pixel_total : 75491 time to create 1 rle with old method : 0.08302474021911621 length of segment : 494 time for calcul the mask position with numpy : 0.0005009174346923828 nb_pixel_total : 23913 time to create 1 rle with old method : 0.026937484741210938 length of segment : 218 time for calcul the mask position with numpy : 0.08170008659362793 nb_pixel_total : 2144386 time to create 1 rle with new method : 0.40825843811035156 length of segment : 4157 time for calcul the mask position with numpy : 0.005095243453979492 nb_pixel_total : 444117 time to create 1 rle with new method : 0.011285781860351562 length of segment : 641 time for calcul the mask position with numpy : 0.00014543533325195312 nb_pixel_total : 4444 time to create 1 rle with old method : 0.005234718322753906 length of segment : 147 time for calcul the mask position with numpy : 0.00042319297790527344 nb_pixel_total : 20142 time to create 1 rle with old method : 0.023066043853759766 length of segment : 307 time for calcul the mask position with numpy : 0.00026345252990722656 nb_pixel_total : 6411 time to create 1 rle with old method : 0.008096456527709961 length of segment : 85 time for calcul the mask position with numpy : 0.0036687850952148438 nb_pixel_total : 122005 time to create 1 rle with old method : 0.13674402236938477 length of segment : 542 time for calcul the mask position with numpy : 0.02491474151611328 nb_pixel_total : 426383 time to create 1 rle with new method : 0.17754006385803223 length of segment : 756 time for calcul the mask position with numpy : 0.00016498565673828125 nb_pixel_total : 4665 time to create 1 rle with old method : 0.006470203399658203 length of segment : 67 time for calcul the mask position with numpy : 0.0013570785522460938 nb_pixel_total : 86028 time to create 1 rle with old method : 0.10416150093078613 length of segment : 291 time for calcul the mask position with numpy : 0.0007617473602294922 nb_pixel_total : 42900 time to create 1 rle with old method : 0.05167984962463379 length of segment : 388 time for calcul the mask position with numpy : 0.02469325065612793 nb_pixel_total : 1298525 time to create 1 rle with new method : 0.16594147682189941 length of segment : 1713 time for calcul the mask position with numpy : 0.002499818801879883 nb_pixel_total : 148633 time to create 1 rle with old method : 0.1699199676513672 length of segment : 488 time for calcul the mask position with numpy : 0.002212047576904297 nb_pixel_total : 69157 time to create 1 rle with old method : 0.07765579223632812 length of segment : 387 time for calcul the mask position with numpy : 0.00045228004455566406 nb_pixel_total : 23036 time to create 1 rle with old method : 0.026478290557861328 length of segment : 201 time for calcul the mask position with numpy : 0.0006079673767089844 nb_pixel_total : 32890 time to create 1 rle with old method : 0.04048800468444824 length of segment : 242 time for calcul the mask position with numpy : 0.0005009174346923828 nb_pixel_total : 15505 time to create 1 rle with old method : 0.017726659774780273 length of segment : 133 time for calcul the mask position with numpy : 0.004972934722900391 nb_pixel_total : 182985 time to create 1 rle with new method : 0.007757425308227539 length of segment : 578 time for calcul the mask position with numpy : 0.0019083023071289062 nb_pixel_total : 36468 time to create 1 rle with old method : 0.04103803634643555 length of segment : 375 time for calcul the mask position with numpy : 0.0005803108215332031 nb_pixel_total : 25954 time to create 1 rle with old method : 0.02899646759033203 length of segment : 240 time for calcul the mask position with numpy : 0.002451181411743164 nb_pixel_total : 151342 time to create 1 rle with new method : 0.003927946090698242 length of segment : 493 time for calcul the mask position with numpy : 0.008321046829223633 nb_pixel_total : 437695 time to create 1 rle with new method : 0.012361526489257812 length of segment : 761 time for calcul the mask position with numpy : 0.001965045928955078 nb_pixel_total : 84201 time to create 1 rle with old method : 0.09810900688171387 length of segment : 410 time for calcul the mask position with numpy : 0.0005853176116943359 nb_pixel_total : 14653 time to create 1 rle with old method : 0.017326831817626953 length of segment : 201 time for calcul the mask position with numpy : 0.0007257461547851562 nb_pixel_total : 21438 time to create 1 rle with old method : 0.025305986404418945 length of segment : 140 time for calcul the mask position with numpy : 0.0036017894744873047 nb_pixel_total : 124391 time to create 1 rle with old method : 0.13366460800170898 length of segment : 517 time for calcul the mask position with numpy : 0.00354766845703125 nb_pixel_total : 87500 time to create 1 rle with old method : 0.10280680656433105 length of segment : 374 time for calcul the mask position with numpy : 0.00024509429931640625 nb_pixel_total : 6682 time to create 1 rle with old method : 0.007760047912597656 length of segment : 146 time for calcul the mask position with numpy : 0.004315376281738281 nb_pixel_total : 202675 time to create 1 rle with new method : 0.008093833923339844 length of segment : 569 time for calcul the mask position with numpy : 0.0006465911865234375 nb_pixel_total : 16742 time to create 1 rle with old method : 0.01895427703857422 length of segment : 239 time for calcul the mask position with numpy : 0.0003025531768798828 nb_pixel_total : 6346 time to create 1 rle with old method : 0.008030891418457031 length of segment : 109 time for calcul the mask position with numpy : 0.0007026195526123047 nb_pixel_total : 17477 time to create 1 rle with old method : 0.01987600326538086 length of segment : 144 time for calcul the mask position with numpy : 0.00017786026000976562 nb_pixel_total : 6513 time to create 1 rle with old method : 0.007409334182739258 length of segment : 157 time for calcul the mask position with numpy : 0.0021255016326904297 nb_pixel_total : 30842 time to create 1 rle with old method : 0.03574681282043457 length of segment : 491 time for calcul the mask position with numpy : 0.0008156299591064453 nb_pixel_total : 26419 time to create 1 rle with old method : 0.030038118362426758 length of segment : 183 time for calcul the mask position with numpy : 0.0006763935089111328 nb_pixel_total : 23372 time to create 1 rle with old method : 0.027795076370239258 length of segment : 211 time for calcul the mask position with numpy : 0.0005967617034912109 nb_pixel_total : 20349 time to create 1 rle with old method : 0.02349543571472168 length of segment : 163 time for calcul the mask position with numpy : 0.0001819133758544922 nb_pixel_total : 6575 time to create 1 rle with old method : 0.008117437362670898 length of segment : 120 time for calcul the mask position with numpy : 0.0025594234466552734 nb_pixel_total : 78408 time to create 1 rle with old method : 0.09171628952026367 length of segment : 482 time for calcul the mask position with numpy : 0.0012612342834472656 nb_pixel_total : 45993 time to create 1 rle with old method : 0.05386805534362793 length of segment : 234 time for calcul the mask position with numpy : 0.0030603408813476562 nb_pixel_total : 75028 time to create 1 rle with old method : 0.08162188529968262 length of segment : 424 time for calcul the mask position with numpy : 0.0004189014434814453 nb_pixel_total : 10093 time to create 1 rle with old method : 0.011820554733276367 length of segment : 139 time for calcul the mask position with numpy : 0.0003726482391357422 nb_pixel_total : 9182 time to create 1 rle with old method : 0.010826587677001953 length of segment : 110 time for calcul the mask position with numpy : 0.0011303424835205078 nb_pixel_total : 45988 time to create 1 rle with old method : 0.05228447914123535 length of segment : 268 time for calcul the mask position with numpy : 0.001390695571899414 nb_pixel_total : 54214 time to create 1 rle with old method : 0.06150627136230469 length of segment : 330 time for calcul the mask position with numpy : 0.0003247261047363281 nb_pixel_total : 2874 time to create 1 rle with old method : 0.0034389495849609375 length of segment : 97 time for calcul the mask position with numpy : 0.0009856224060058594 nb_pixel_total : 47420 time to create 1 rle with old method : 0.054160356521606445 length of segment : 265 time for calcul the mask position with numpy : 0.004058361053466797 nb_pixel_total : 169796 time to create 1 rle with new method : 0.006266117095947266 length of segment : 499 time for calcul the mask position with numpy : 0.004598379135131836 nb_pixel_total : 192317 time to create 1 rle with new method : 0.008582830429077148 length of segment : 704 time for calcul the mask position with numpy : 0.0041658878326416016 nb_pixel_total : 136455 time to create 1 rle with old method : 0.17528820037841797 length of segment : 619 time for calcul the mask position with numpy : 0.00013947486877441406 nb_pixel_total : 4984 time to create 1 rle with old method : 0.006197452545166016 length of segment : 60 time for calcul the mask position with numpy : 0.03270554542541504 nb_pixel_total : 1355228 time to create 1 rle with new method : 0.08005928993225098 length of segment : 1840 time for calcul the mask position with numpy : 0.0019032955169677734 nb_pixel_total : 37033 time to create 1 rle with old method : 0.04291391372680664 length of segment : 415 time for calcul the mask position with numpy : 0.00139617919921875 nb_pixel_total : 33241 time to create 1 rle with old method : 0.04178261756896973 length of segment : 648 time for calcul the mask position with numpy : 0.0008027553558349609 nb_pixel_total : 33411 time to create 1 rle with old method : 0.03836679458618164 length of segment : 222 time for calcul the mask position with numpy : 0.0008127689361572266 nb_pixel_total : 31432 time to create 1 rle with old method : 0.03650236129760742 length of segment : 286 time for calcul the mask position with numpy : 0.0003650188446044922 nb_pixel_total : 8842 time to create 1 rle with old method : 0.010777711868286133 length of segment : 160 time for calcul the mask position with numpy : 0.00020456314086914062 nb_pixel_total : 3720 time to create 1 rle with old method : 0.004567861557006836 length of segment : 57 time for calcul the mask position with numpy : 0.0001876354217529297 nb_pixel_total : 4642 time to create 1 rle with old method : 0.0058345794677734375 length of segment : 65 time for calcul the mask position with numpy : 0.00022912025451660156 nb_pixel_total : 5230 time to create 1 rle with old method : 0.0062923431396484375 length of segment : 105 time for calcul the mask position with numpy : 0.0019712448120117188 nb_pixel_total : 30959 time to create 1 rle with old method : 0.03550148010253906 length of segment : 303 time for calcul the mask position with numpy : 0.00017952919006347656 nb_pixel_total : 4808 time to create 1 rle with old method : 0.0057561397552490234 length of segment : 79 time for calcul the mask position with numpy : 0.001928091049194336 nb_pixel_total : 68792 time to create 1 rle with old method : 0.07551836967468262 length of segment : 359 time for calcul the mask position with numpy : 0.0014698505401611328 nb_pixel_total : 43626 time to create 1 rle with old method : 0.047110557556152344 length of segment : 303 time for calcul the mask position with numpy : 0.00040435791015625 nb_pixel_total : 10624 time to create 1 rle with old method : 0.012019157409667969 length of segment : 128 time for calcul the mask position with numpy : 0.0008094310760498047 nb_pixel_total : 17186 time to create 1 rle with old method : 0.019979238510131836 length of segment : 228 time for calcul the mask position with numpy : 0.0005457401275634766 nb_pixel_total : 20928 time to create 1 rle with old method : 0.02366805076599121 length of segment : 179 time for calcul the mask position with numpy : 0.004854917526245117 nb_pixel_total : 215551 time to create 1 rle with new method : 0.010109901428222656 length of segment : 751 time for calcul the mask position with numpy : 0.0009753704071044922 nb_pixel_total : 47099 time to create 1 rle with old method : 0.05211949348449707 length of segment : 370 time for calcul the mask position with numpy : 0.0005214214324951172 nb_pixel_total : 24844 time to create 1 rle with old method : 0.028505563735961914 length of segment : 171 time for calcul the mask position with numpy : 0.0002727508544921875 nb_pixel_total : 5373 time to create 1 rle with old method : 0.006440639495849609 length of segment : 79 time for calcul the mask position with numpy : 0.0018644332885742188 nb_pixel_total : 67981 time to create 1 rle with old method : 0.07391643524169922 length of segment : 315 time for calcul the mask position with numpy : 0.0011644363403320312 nb_pixel_total : 40824 time to create 1 rle with old method : 0.047658681869506836 length of segment : 246 time for calcul the mask position with numpy : 0.0001354217529296875 nb_pixel_total : 2175 time to create 1 rle with old method : 0.0028951168060302734 length of segment : 52 time for calcul the mask position with numpy : 0.00015044212341308594 nb_pixel_total : 1196 time to create 1 rle with old method : 0.0015294551849365234 length of segment : 73 time for calcul the mask position with numpy : 0.03269672393798828 nb_pixel_total : 1346257 time to create 1 rle with new method : 0.18993091583251953 length of segment : 1845 time for calcul the mask position with numpy : 0.00021719932556152344 nb_pixel_total : 4582 time to create 1 rle with old method : 0.0060882568359375 length of segment : 79 time for calcul the mask position with numpy : 0.002198457717895508 nb_pixel_total : 98468 time to create 1 rle with old method : 0.10510110855102539 length of segment : 406 time for calcul the mask position with numpy : 0.0003104209899902344 nb_pixel_total : 9629 time to create 1 rle with old method : 0.011589288711547852 length of segment : 83 time for calcul the mask position with numpy : 0.0027294158935546875 nb_pixel_total : 130216 time to create 1 rle with old method : 0.14545631408691406 length of segment : 324 time for calcul the mask position with numpy : 0.0006401538848876953 nb_pixel_total : 11079 time to create 1 rle with old method : 0.013550043106079102 length of segment : 163 time spent for convertir_results : 16.10719585418701 Inside saveOutput : final : False verbose : 0 eke 12-6-18 : saveMask need to be cleaned for new output ! Number saved : None batch 1 Loaded 108 chid ids of type : 3663 Number RLEs to save : 50351 save missing photos in datou_result : time spend for datou_step_exec : 67.80300879478455 time spend to save output : 3.6571993827819824 total time spend for step 1 : 71.46020817756653 step2:crop_condition Tue Feb 18 22:19:40 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 108 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 ! map_result returned by crop_photo_return_map_crop : length : 6 About to insert : list_path_to_insert length 6 new photo from crops ! we have finished the crop for the class : 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 ! map_result returned by crop_photo_return_map_crop : length : 6 About to insert : list_path_to_insert length 6 new photo from crops ! we have finished the crop for the class : 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 ! map_result returned by crop_photo_return_map_crop : length : 6 About to insert : list_path_to_insert length 6 new photo from crops ! we have finished the crop for the class : carton_gris begin to crop the class : cartonnette param for this class : {'min_score': 0.5} filtre for class : cartonnette hashtag_id of this class : 702398920 we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! map_result returned by crop_photo_return_map_crop : length : 36 About to insert : list_path_to_insert length 36 new photo from crops ! we have finished the crop for the class : cartonnette begin to crop the class : carton_brun param for this class : {'min_score': 0.7} filtre for class : carton_brun hashtag_id of this class : 2107753024 we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! map_result returned by crop_photo_return_map_crop : length : 6 About to insert : list_path_to_insert length 6 new photo from crops ! we have finished the crop for the class : carton_brun begin to crop the class : plastique param for this class : {'min_score': 0.5} filtre for class : plastique hashtag_id of this class : 492725882 we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! map_result returned by crop_photo_return_map_crop : length : 4 About to insert : list_path_to_insert length 4 new photo from crops ! we have finished the crop for the class : plastique begin to crop the class : kraft param for this class : {'min_score': 0.5} filtre for class : kraft hashtag_id of this class : 493202403 we have both polygon and rles Next one ! map_result returned by crop_photo_return_map_crop : length : 1 About to insert : list_path_to_insert length 1 new photo from crops ! we have finished the crop for the class : kraft begin to crop the class : metal param for this class : {'min_score': 0.5} filtre for class : metal hashtag_id of this class : 492628673 delete rles for these photos Inside saveOutput : final : False verbose : 0 saveOutput not yet implemented for datou_step.type : crop_condition we use saveGeneral [1338298917, 1338298915, 1338298913, 1338298894, 1338298824, 1338298793, 1338298791, 1338298789, 1338298787, 1338298784] Looping around the photos to save general results len do output : 65 /-3679347877Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679347935Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679347936Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679347934Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679347951Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679347960Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679347873Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679347917Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679347906Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679347915Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679347939Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679347962Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679347894Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679347913Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679347933Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679347942Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679347949Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679347975Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679347872Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679347871Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679347874Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679347878Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679347881Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679347876Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679347883Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679347895Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679347887Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679347896Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679347891Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679347900Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679347899Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679347905Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679347902Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679347911Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679347916Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679347914Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679347921Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679347924Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679347930Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679347922Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679347931Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679347929Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679347945Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679347948Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679347943Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679347940Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679347950Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679347961Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679347956Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679347958Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679347964Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679347965Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679347968Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679347976Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679347886Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679347889Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679347928Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679347918Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679347937Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679347959Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679347882Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679347898Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679347910Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679347901Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679347967Didn'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, '2597814') ('3459', '20656275', '1338298917', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', '20656275', '1338298915', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', '20656275', '1338298913', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', '20656275', '1338298894', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', '20656275', '1338298824', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', '20656275', '1338298793', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', '20656275', '1338298791', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', '20656275', '1338298789', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', '20656275', '1338298787', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', '20656275', '1338298784', None, None, None, None, None, '2597814') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 205 time used for this insertion : 0.031702280044555664 save_final save missing photos in datou_result : time spend for datou_step_exec : 29.200955390930176 time spend to save output : 0.033917903900146484 total time spend for step 2 : 29.234873294830322 step3:thcl Tue Feb 18 22:20:09 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.011433124542236328 time to convert the images to numpy array : 0.03580427169799805 time to import caffe and check if the image exist : 0.022823810577392578 time to convert the images to numpy array : 0.09591150283813477 time to import caffe and check if the image exist : 0.0171205997467041 time to convert the images to numpy array : 0.13470816612243652 time to import caffe and check if the image exist : 0.01620316505432129 time to convert the images to numpy array : 0.35515880584716797 time to import caffe and check if the image exist : 0.020605087280273438 time to convert the images to numpy array : 0.3685734272003174 time to import caffe and check if the image exist : 0.009670734405517578 time to convert the images to numpy array : 0.3858306407928467 time to import caffe and check if the image exist : 0.011950254440307617 time to convert the images to numpy array : 0.38534975051879883 time to import caffe and check if the image exist : 0.017737150192260742 time to convert the images to numpy array : 0.38238000869750977 time to import caffe and check if the image exist : 0.015766382217407227 time to convert the images to numpy array : 0.41246509552001953 time to import caffe and check if the image exist : 0.016999006271362305 time to convert the images to numpy array : 0.41247010231018066 total time to convert the images to numpy array : 0.7107260227203369 list photo_ids error: [] list photo_ids correct : [-3679347901, -3679347967, -3679347958, -3679347964, -3679347965, -3679347968, -3679347976, -3679347886, -3679347889, -3679347945, -3679347948, -3679347943, -3679347940, -3679347950, -3679347961, -3679347956, -3679347878, -3679347881, -3679347876, -3679347883, -3679347895, -3679347887, -3679347896, -3679347891, -3679347900, -3679347899, -3679347905, -3679347902, -3679347911, -3679347916, -3679347914, -3679347921, -3679347924, -3679347930, -3679347922, -3679347931, -3679347929, -3679347877, -3679347935, -3679347936, -3679347934, -3679347951, -3679347960, -3679347873, -3679347928, -3679347918, -3679347937, -3679347959, -3679347882, -3679347898, -3679347910, -3679347917, -3679347906, -3679347915, -3679347939, -3679347962, -3679347894, -3679347913, -3679347933, -3679347942, -3679347949, -3679347975, -3679347872, -3679347871, -3679347874] number of photos to traite : 65 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 : 10593 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 : 10374 max_wait_temp : 1 max_wait : 0 dict_keys(['prob']) time used to do the prepocess of the images : 0.7598757743835449 time used to do the prediction : 0.1676633358001709 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 : 10372 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 : 10372 max_wait_temp : 1 max_wait : 0 dict_keys(['prob']) time used to do the prepocess of the images : 0.8211591243743896 time used to do the prediction : 0.13000106811523438 we don't save the descriptors for this thcl 2868 Inside saveOutput : final : False verbose : 0 time used to find the portfolios of the photos test new format of the output of the step_thcl begin to insert list_values into class_photo_scores : length of list_valuse in save_photo_hashtag_id_thcl_score : 0 time used for this insertion : 1.9788742065429688e-05 save missing photos in datou_result : time spend for datou_step_exec : 9.48161768913269 time spend to save output : 0.0006365776062011719 total time spend for step 3 : 9.482254266738892 step4:merge_mask_thcl_custom Tue Feb 18 22:20:19 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! 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 108 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 [1338298917, 1338298915, 1338298913, 1338298894, 1338298824, 1338298793, 1338298791, 1338298789, 1338298787, 1338298784] Looping around the photos to save general results len do output : 10 /1338298917Didn't retrieve data .Didn't retrieve data . /1338298915Didn't retrieve data .Didn't retrieve data . /1338298913Didn't retrieve data .Didn't retrieve data . /1338298894Didn't retrieve data .Didn't retrieve data . /1338298824Didn't retrieve data .Didn't retrieve data . /1338298793Didn't retrieve data .Didn't retrieve data . /1338298791Didn't retrieve data .Didn't retrieve data . /1338298789Didn't retrieve data .Didn't retrieve data . /1338298787Didn't retrieve data .Didn't retrieve data . /1338298784Didn'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, '2597814') ('3459', '20656275', '1338298917', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', '20656275', '1338298915', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', '20656275', '1338298913', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', '20656275', '1338298894', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', '20656275', '1338298824', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', '20656275', '1338298793', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', '20656275', '1338298791', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', '20656275', '1338298789', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', '20656275', '1338298787', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', '20656275', '1338298784', None, None, None, None, None, '2597814') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 time used for this insertion : 0.014034032821655273 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06341552734375 time spend to save output : 0.014607667922973633 total time spend for step 4 : 0.07802319526672363 step5:rle_unique_nms_with_priority Tue Feb 18 22:20:19 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed 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 : 6 nb_hashtags : 3 time to prepare the origin masks : 5.430285215377808 time for calcul the mask position with numpy : 0.07754015922546387 nb_pixel_total : 3029004 time to create 1 rle with new method : 0.5073559284210205 time for calcul the mask position with numpy : 0.035703182220458984 nb_pixel_total : 137018 time to create 1 rle with old method : 0.17173099517822266 time for calcul the mask position with numpy : 0.036910295486450195 nb_pixel_total : 239761 time to create 1 rle with new method : 0.5747549533843994 time for calcul the mask position with numpy : 0.03431987762451172 nb_pixel_total : 35071 time to create 1 rle with old method : 0.040331125259399414 time for calcul the mask position with numpy : 0.028503894805908203 nb_pixel_total : 110753 time to create 1 rle with old method : 0.3857688903808594 time for calcul the mask position with numpy : 0.05151081085205078 nb_pixel_total : 5016 time to create 1 rle with old method : 0.00838470458984375 time for calcul the mask position with numpy : 0.6614694595336914 nb_pixel_total : 3493617 time to create 1 rle with new method : 0.8075742721557617 create new chi : 3.505490779876709 time to delete rle : 0.01098775863647461 batch 1 Loaded 7 chid ids of type : 3726 Number RLEs to save : 12957 TO DO : save crop sub photo not yet done ! save time : 0.7338082790374756 nb_obj : 9 nb_hashtags : 4 time to prepare the origin masks : 13.279214143753052 time for calcul the mask position with numpy : 0.7166492938995361 nb_pixel_total : 3968701 time to create 1 rle with new method : 0.830003023147583 time for calcul the mask position with numpy : 0.03980398178100586 nb_pixel_total : 58280 time to create 1 rle with old method : 0.06494307518005371 time for calcul the mask position with numpy : 0.0412297248840332 nb_pixel_total : 54781 time to create 1 rle with old method : 0.05964803695678711 time for calcul the mask position with numpy : 0.03921937942504883 nb_pixel_total : 95 time to create 1 rle with old method : 0.00025844573974609375 time for calcul the mask position with numpy : 0.0397646427154541 nb_pixel_total : 33916 time to create 1 rle with old method : 0.03773021697998047 time for calcul the mask position with numpy : 0.03911018371582031 nb_pixel_total : 14318 time to create 1 rle with old method : 0.01600480079650879 time for calcul the mask position with numpy : 0.043653011322021484 nb_pixel_total : 383438 time to create 1 rle with new method : 0.711467981338501 time for calcul the mask position with numpy : 0.039727210998535156 nb_pixel_total : 4132 time to create 1 rle with old method : 0.004810810089111328 time for calcul the mask position with numpy : 0.039261817932128906 nb_pixel_total : 74998 time to create 1 rle with old method : 0.0874471664428711 time for calcul the mask position with numpy : 0.07586145401000977 nb_pixel_total : 2457581 time to create 1 rle with new method : 0.3460729122161865 create new chi : 3.360745906829834 time to delete rle : 0.0019347667694091797 batch 1 Loaded 10 chid ids of type : 3726 Number RLEs to save : 12102 TO DO : save crop sub photo not yet done ! save time : 0.6842343807220459 nb_obj : 13 nb_hashtags : 5 time to prepare the origin masks : 6.248224973678589 time for calcul the mask position with numpy : 0.4119105339050293 nb_pixel_total : 4985951 time to create 1 rle with new method : 1.266963005065918 time for calcul the mask position with numpy : 0.025441408157348633 nb_pixel_total : 75449 time to create 1 rle with old method : 0.08571124076843262 time for calcul the mask position with numpy : 0.03453254699707031 nb_pixel_total : 188542 time to create 1 rle with new method : 0.8497002124786377 time for calcul the mask position with numpy : 0.03346514701843262 nb_pixel_total : 5987 time to create 1 rle with old method : 0.007094144821166992 time for calcul the mask position with numpy : 0.03597140312194824 nb_pixel_total : 268874 time to create 1 rle with new method : 0.6395876407623291 time for calcul the mask position with numpy : 0.03305959701538086 nb_pixel_total : 10905 time to create 1 rle with old method : 0.01284337043762207 time for calcul the mask position with numpy : 0.03120136260986328 nb_pixel_total : 5054 time to create 1 rle with old method : 0.006203651428222656 time for calcul the mask position with numpy : 0.06076550483703613 nb_pixel_total : 1304273 time to create 1 rle with new method : 0.6946027278900146 time for calcul the mask position with numpy : 0.033612728118896484 nb_pixel_total : 19998 time to create 1 rle with old method : 0.022872447967529297 time for calcul the mask position with numpy : 0.03222250938415527 nb_pixel_total : 4396 time to create 1 rle with old method : 0.0049860477447509766 time for calcul the mask position with numpy : 0.03181266784667969 nb_pixel_total : 21483 time to create 1 rle with old method : 0.02485966682434082 time for calcul the mask position with numpy : 0.033914804458618164 nb_pixel_total : 53489 time to create 1 rle with old method : 0.058114051818847656 time for calcul the mask position with numpy : 0.025801897048950195 nb_pixel_total : 4300 time to create 1 rle with old method : 0.004961729049682617 time for calcul the mask position with numpy : 0.026837587356567383 nb_pixel_total : 101539 time to create 1 rle with old method : 0.11694693565368652 create new chi : 4.805171728134155 time to delete rle : 0.0016896724700927734 batch 1 Loaded 14 chid ids of type : 3726 Number RLEs to save : 12143 TO DO : save crop sub photo not yet done ! save time : 0.6628389358520508 nb_obj : 4 nb_hashtags : 3 time to prepare the origin masks : 4.468333005905151 time for calcul the mask position with numpy : 0.377396821975708 nb_pixel_total : 4493364 time to create 1 rle with new method : 0.3862764835357666 time for calcul the mask position with numpy : 0.05871415138244629 nb_pixel_total : 389859 time to create 1 rle with new method : 0.40885329246520996 time for calcul the mask position with numpy : 0.0337529182434082 nb_pixel_total : 4437 time to create 1 rle with old method : 0.004719734191894531 time for calcul the mask position with numpy : 0.02399158477783203 nb_pixel_total : 20093 time to create 1 rle with old method : 0.020351886749267578 time for calcul the mask position with numpy : 0.17142510414123535 nb_pixel_total : 2142487 time to create 1 rle with new method : 0.3214547634124756 create new chi : 1.8997759819030762 time to delete rle : 0.0019478797912597656 batch 1 Loaded 5 chid ids of type : 3726 Number RLEs to save : 12424 TO DO : save crop sub photo not yet done ! save time : 0.7006139755249023 nb_obj : 15 nb_hashtags : 5 time to prepare the origin masks : 11.112262725830078 time for calcul the mask position with numpy : 0.1988992691040039 nb_pixel_total : 4606422 time to create 1 rle with new method : 0.7322204113006592 time for calcul the mask position with numpy : 0.024275541305541992 nb_pixel_total : 728 time to create 1 rle with old method : 0.001285552978515625 time for calcul the mask position with numpy : 0.023530006408691406 nb_pixel_total : 1722 time to create 1 rle with old method : 0.007393360137939453 time for calcul the mask position with numpy : 0.0294952392578125 nb_pixel_total : 38858 time to create 1 rle with old method : 0.03979015350341797 time for calcul the mask position with numpy : 0.04121088981628418 nb_pixel_total : 68680 time to create 1 rle with old method : 0.07030844688415527 time for calcul the mask position with numpy : 0.04866194725036621 nb_pixel_total : 121620 time to create 1 rle with old method : 0.131974458694458 time for calcul the mask position with numpy : 0.06129622459411621 nb_pixel_total : 1297296 time to create 1 rle with new method : 0.7135851383209229 time for calcul the mask position with numpy : 0.041405439376831055 nb_pixel_total : 6383 time to create 1 rle with old method : 0.0072214603424072266 time for calcul the mask position with numpy : 0.04178786277770996 nb_pixel_total : 4645 time to create 1 rle with old method : 0.005232572555541992 time for calcul the mask position with numpy : 0.04503512382507324 nb_pixel_total : 421900 time to create 1 rle with new method : 1.6158766746520996 time for calcul the mask position with numpy : 0.028397321701049805 nb_pixel_total : 2850 time to create 1 rle with old method : 0.0031952857971191406 time for calcul the mask position with numpy : 0.03591132164001465 nb_pixel_total : 36381 time to create 1 rle with old method : 0.051111459732055664 time for calcul the mask position with numpy : 0.02724432945251465 nb_pixel_total : 151145 time to create 1 rle with new method : 0.44240617752075195 time for calcul the mask position with numpy : 0.03802967071533203 nb_pixel_total : 22926 time to create 1 rle with old method : 0.026909351348876953 time for calcul the mask position with numpy : 0.035684823989868164 nb_pixel_total : 85879 time to create 1 rle with old method : 0.0954585075378418 time for calcul the mask position with numpy : 0.03977346420288086 nb_pixel_total : 182805 time to create 1 rle with new method : 0.7298281192779541 create new chi : 5.594818115234375 time to delete rle : 0.003276824951171875 batch 1 Loaded 16 chid ids of type : 3726 Number RLEs to save : 14098 TO DO : save crop sub photo not yet done ! save time : 2.800602674484253 nb_obj : 15 nb_hashtags : 7 time to prepare the origin masks : 12.092189073562622 time for calcul the mask position with numpy : 1.9954657554626465 nb_pixel_total : 6385188 time to create 1 rle with new method : 2.292407274246216 time for calcul the mask position with numpy : 0.04037761688232422 nb_pixel_total : 124215 time to create 1 rle with old method : 0.13731884956359863 time for calcul the mask position with numpy : 0.037996768951416016 nb_pixel_total : 23330 time to create 1 rle with old method : 0.02902984619140625 time for calcul the mask position with numpy : 0.03593921661376953 nb_pixel_total : 774 time to create 1 rle with old method : 0.0010833740234375 time for calcul the mask position with numpy : 0.037145376205444336 nb_pixel_total : 87306 time to create 1 rle with old method : 0.09948396682739258 time for calcul the mask position with numpy : 0.04230856895446777 nb_pixel_total : 83277 time to create 1 rle with old method : 0.0960237979888916 time for calcul the mask position with numpy : 0.03595924377441406 nb_pixel_total : 17249 time to create 1 rle with old method : 0.018726348876953125 time for calcul the mask position with numpy : 0.03612351417541504 nb_pixel_total : 6317 time to create 1 rle with old method : 0.007379293441772461 time for calcul the mask position with numpy : 0.03403639793395996 nb_pixel_total : 16677 time to create 1 rle with old method : 0.018033504486083984 time for calcul the mask position with numpy : 0.022006511688232422 nb_pixel_total : 4306 time to create 1 rle with old method : 0.005913257598876953 time for calcul the mask position with numpy : 0.022860050201416016 nb_pixel_total : 26390 time to create 1 rle with old method : 0.029175281524658203 time for calcul the mask position with numpy : 0.023369550704956055 nb_pixel_total : 202333 time to create 1 rle with new method : 5.653449058532715 time for calcul the mask position with numpy : 0.06754803657531738 nb_pixel_total : 6477 time to create 1 rle with old method : 0.0074253082275390625 time for calcul the mask position with numpy : 0.07026171684265137 nb_pixel_total : 21262 time to create 1 rle with old method : 0.025503158569335938 time for calcul the mask position with numpy : 0.035624027252197266 nb_pixel_total : 14586 time to create 1 rle with old method : 0.017243623733520508 time for calcul the mask position with numpy : 0.03724527359008789 nb_pixel_total : 30553 time to create 1 rle with old method : 0.048449039459228516 create new chi : 11.13799238204956 time to delete rle : 0.026223182678222656 batch 1 Loaded 16 chid ids of type : 3726 Number RLEs to save : 10040 TO DO : save crop sub photo not yet done ! save time : 0.8147828578948975 nb_obj : 16 nb_hashtags : 4 time to prepare the origin masks : 13.365637063980103 time for calcul the mask position with numpy : 0.3242483139038086 nb_pixel_total : 4956141 time to create 1 rle with new method : 0.6919770240783691 time for calcul the mask position with numpy : 0.022059202194213867 nb_pixel_total : 74803 time to create 1 rle with old method : 0.08113646507263184 time for calcul the mask position with numpy : 0.03680920600891113 nb_pixel_total : 10062 time to create 1 rle with old method : 0.011516809463500977 time for calcul the mask position with numpy : 0.03545999526977539 nb_pixel_total : 696 time to create 1 rle with old method : 0.0010492801666259766 time for calcul the mask position with numpy : 0.0498507022857666 nb_pixel_total : 1203957 time to create 1 rle with new method : 0.4380331039428711 time for calcul the mask position with numpy : 0.0376429557800293 nb_pixel_total : 2071 time to create 1 rle with old method : 0.0025031566619873047 time for calcul the mask position with numpy : 0.04183530807495117 nb_pixel_total : 192228 time to create 1 rle with new method : 0.49040913581848145 time for calcul the mask position with numpy : 0.032586097717285156 nb_pixel_total : 47213 time to create 1 rle with old method : 0.05258965492248535 time for calcul the mask position with numpy : 0.03711414337158203 nb_pixel_total : 136314 time to create 1 rle with old method : 0.14829421043395996 time for calcul the mask position with numpy : 0.024487972259521484 nb_pixel_total : 57039 time to create 1 rle with old method : 0.06434202194213867 time for calcul the mask position with numpy : 0.022490739822387695 nb_pixel_total : 2862 time to create 1 rle with old method : 0.0034148693084716797 time for calcul the mask position with numpy : 0.027668237686157227 nb_pixel_total : 9159 time to create 1 rle with old method : 0.010088443756103516 time for calcul the mask position with numpy : 0.02881646156311035 nb_pixel_total : 169717 time to create 1 rle with new method : 0.6044652462005615 time for calcul the mask position with numpy : 0.02180647850036621 nb_pixel_total : 26942 time to create 1 rle with old method : 0.03015875816345215 time for calcul the mask position with numpy : 0.022283315658569336 nb_pixel_total : 78197 time to create 1 rle with old method : 0.09673047065734863 time for calcul the mask position with numpy : 0.022425174713134766 nb_pixel_total : 45891 time to create 1 rle with old method : 0.04946255683898926 time for calcul the mask position with numpy : 0.022959232330322266 nb_pixel_total : 36948 time to create 1 rle with old method : 0.04174327850341797 create new chi : 3.7404768466949463 time to delete rle : 0.0020024776458740234 batch 1 Loaded 17 chid ids of type : 3726 Number RLEs to save : 15468 TO DO : save crop sub photo not yet done ! save time : 7.600782871246338 nb_obj : 5 nb_hashtags : 3 time to prepare the origin masks : 3.2712037563323975 time for calcul the mask position with numpy : 0.8438682556152344 nb_pixel_total : 6968381 time to create 1 rle with new method : 0.7782483100891113 time for calcul the mask position with numpy : 0.024658918380737305 nb_pixel_total : 4621 time to create 1 rle with old method : 0.005773782730102539 time for calcul the mask position with numpy : 0.025458574295043945 nb_pixel_total : 3699 time to create 1 rle with old method : 0.004310131072998047 time for calcul the mask position with numpy : 0.022012710571289062 nb_pixel_total : 33347 time to create 1 rle with old method : 0.037868499755859375 time for calcul the mask position with numpy : 0.024545907974243164 nb_pixel_total : 8807 time to create 1 rle with old method : 0.010767221450805664 time for calcul the mask position with numpy : 0.023328065872192383 nb_pixel_total : 31385 time to create 1 rle with old method : 0.0360867977142334 create new chi : 2.174995183944702 time to delete rle : 0.0005204677581787109 batch 1 Loaded 6 chid ids of type : 3726 Number RLEs to save : 3756 TO DO : save crop sub photo not yet done ! save time : 0.25110673904418945 nb_obj : 11 nb_hashtags : 5 time to prepare the origin masks : 8.263858795166016 time for calcul the mask position with numpy : 0.7342410087585449 nb_pixel_total : 6619379 time to create 1 rle with new method : 0.8763213157653809 time for calcul the mask position with numpy : 0.05003666877746582 nb_pixel_total : 2562 time to create 1 rle with old method : 0.0033473968505859375 time for calcul the mask position with numpy : 0.04480433464050293 nb_pixel_total : 7947 time to create 1 rle with old method : 0.009251594543457031 time for calcul the mask position with numpy : 0.04471087455749512 nb_pixel_total : 24748 time to create 1 rle with old method : 0.026699542999267578 time for calcul the mask position with numpy : 0.03960752487182617 nb_pixel_total : 43569 time to create 1 rle with old method : 0.04979991912841797 time for calcul the mask position with numpy : 0.040033578872680664 nb_pixel_total : 214977 time to create 1 rle with new method : 0.40854573249816895 time for calcul the mask position with numpy : 0.02376389503479004 nb_pixel_total : 31400 time to create 1 rle with old method : 0.031311750411987305 time for calcul the mask position with numpy : 0.02318882942199707 nb_pixel_total : 68024 time to create 1 rle with old method : 0.07053303718566895 time for calcul the mask position with numpy : 0.028407812118530273 nb_pixel_total : 10592 time to create 1 rle with old method : 0.01238250732421875 time for calcul the mask position with numpy : 0.023522138595581055 nb_pixel_total : 4781 time to create 1 rle with old method : 0.005036354064941406 time for calcul the mask position with numpy : 0.029214143753051758 nb_pixel_total : 5212 time to create 1 rle with old method : 0.006850242614746094 time for calcul the mask position with numpy : 0.02628946304321289 nb_pixel_total : 17049 time to create 1 rle with old method : 0.017941713333129883 create new chi : 2.7067320346832275 time to delete rle : 0.0013415813446044922 batch 1 Loaded 12 chid ids of type : 3726 Number RLEs to save : 7624 TO DO : save crop sub photo not yet done ! save time : 0.4398789405822754 nb_obj : 9 nb_hashtags : 3 time to prepare the origin masks : 4.513257026672363 time for calcul the mask position with numpy : 0.3159503936767578 nb_pixel_total : 5442732 time to create 1 rle with new method : 0.5483295917510986 time for calcul the mask position with numpy : 0.03391623497009277 nb_pixel_total : 67876 time to create 1 rle with old method : 0.07826995849609375 time for calcul the mask position with numpy : 0.034537315368652344 nb_pixel_total : 40756 time to create 1 rle with old method : 0.04566144943237305 time for calcul the mask position with numpy : 0.03552126884460449 nb_pixel_total : 4546 time to create 1 rle with old method : 0.005911350250244141 time for calcul the mask position with numpy : 0.05118989944458008 nb_pixel_total : 1344576 time to create 1 rle with new method : 0.49419116973876953 time for calcul the mask position with numpy : 0.035739898681640625 nb_pixel_total : 1188 time to create 1 rle with old method : 0.0014338493347167969 time for calcul the mask position with numpy : 0.03455090522766113 nb_pixel_total : 2158 time to create 1 rle with old method : 0.0025451183319091797 time for calcul the mask position with numpy : 0.020722389221191406 nb_pixel_total : 11058 time to create 1 rle with old method : 0.012165307998657227 time for calcul the mask position with numpy : 0.021711111068725586 nb_pixel_total : 130025 time to create 1 rle with old method : 0.13805818557739258 time for calcul the mask position with numpy : 0.020116567611694336 nb_pixel_total : 5325 time to create 1 rle with old method : 0.005599021911621094 create new chi : 2.002699851989746 time to delete rle : 0.0008721351623535156 batch 1 Loaded 10 chid ids of type : 3726 Number RLEs to save : 8528 TO DO : save crop sub photo not yet done ! save time : 1.6512668132781982 map_output_result : {1338298917: (0.0, 'Should be the crop_list due to order', 0.0), 1338298915: (0.0, 'Should be the crop_list due to order', 0.0), 1338298913: (0.0, 'Should be the crop_list due to order', 0.0), 1338298894: (0.0, 'Should be the crop_list due to order', 0.0), 1338298824: (0.0, 'Should be the crop_list due to order', 0.0), 1338298793: (0.0, 'Should be the crop_list due to order', 0.0), 1338298791: (0.0, 'Should be the crop_list due to order', 0.0), 1338298789: (0.0, 'Should be the crop_list due to order', 0.0), 1338298787: (0.0, 'Should be the crop_list due to order', 0.0), 1338298784: (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 [1338298917, 1338298915, 1338298913, 1338298894, 1338298824, 1338298793, 1338298791, 1338298789, 1338298787, 1338298784] Looping around the photos to save general results len do output : 10 /1338298917.Didn't retrieve data . /1338298915.Didn't retrieve data . /1338298913.Didn't retrieve data . /1338298894.Didn't retrieve data . /1338298824.Didn't retrieve data . /1338298793.Didn't retrieve data . /1338298791.Didn't retrieve data . /1338298789.Didn't retrieve data . /1338298787.Didn't retrieve data . /1338298784.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, '2597814') ('3459', '20656275', '1338298917', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', '20656275', '1338298915', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', '20656275', '1338298913', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', '20656275', '1338298894', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', '20656275', '1338298824', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', '20656275', '1338298793', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', '20656275', '1338298791', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', '20656275', '1338298789', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', '20656275', '1338298787', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', '20656275', '1338298784', None, None, None, None, None, '2597814') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 time used for this insertion : 0.014285087585449219 save_final save missing photos in datou_result : time spend for datou_step_exec : 141.83647561073303 time spend to save output : 0.06427431106567383 total time spend for step 5 : 141.9007499217987 step6:crop_condition Tue Feb 18 22:22:41 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! 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 113 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 ! 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 ! About to upload 7 photos upload in portfolio : 4869462 init cache_photo without model_param we have 7 photo to upload uploaded to storage server : ovh folder_temporaire : temp/1739913764_1359438 we have uploaded 7 photos in the portfolio 4869462 time of upload the photos Elapsed time : 3.063683271408081 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 ! 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/1739913769_1359438 we have uploaded 2 photos in the portfolio 4869462 time of upload the photos Elapsed time : 0.9313876628875732 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 ! 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/1739913775_1359438 we have uploaded 6 photos in the portfolio 4869462 time of upload the photos Elapsed time : 1.8427245616912842 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 begin to crop the class : carton_brun param for this class : {'min_score': 0.7} filtre for class : carton_brun hashtag_id of this class : 2107753024 Next one ! Next one ! 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/1739913778_1359438 we have uploaded 4 photos in the portfolio 4869462 time of upload the photos Elapsed time : 1.1642820835113525 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/1739913782_1359438 we have uploaded 3 photos in the portfolio 4869462 time of upload the photos Elapsed time : 3.5995748043060303 we have finished the crop for the class : plastique begin to crop the class : kraft param for this class : {'min_score': 0.5} filtre for class : kraft hashtag_id of this class : 493202403 Next one ! map_result returned by crop_photo_return_map_crop : length : 1 About to insert : list_path_to_insert length 1 new photo from crops ! About to upload 1 photos upload in portfolio : 4869462 init cache_photo without model_param we have 1 photo to upload uploaded to storage server : ovh folder_temporaire : temp/1739913787_1359438 we have uploaded 1 photos in the portfolio 4869462 time of upload the photos Elapsed time : 0.695075511932373 we have finished the crop for the class : kraft begin to crop the class : metal param for this class : {'min_score': 0.5} filtre for class : metal hashtag_id of this class : 492628673 delete rles for these photos Inside saveOutput : final : False verbose : 0 saveOutput not yet implemented for datou_step.type : crop_condition we use saveGeneral [1338298917, 1338298915, 1338298913, 1338298894, 1338298824, 1338298793, 1338298791, 1338298789, 1338298787, 1338298784] Looping around the photos to save general results len do output : 23 /1338394269Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1338394270Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1338394271Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1338394272Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1338394273Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1338394274Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1338394275Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1338394276Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1338394277Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1338394280Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1338394281Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1338394282Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1338394283Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1338394284Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1338394285Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1338394286Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1338394287Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1338394288Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1338394289Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1338394290Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1338394291Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1338394292Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1338394293Didn'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, '2597814') ('3459', '20656275', '1338298917', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', '20656275', '1338298915', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', '20656275', '1338298913', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', '20656275', '1338298894', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', '20656275', '1338298824', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', '20656275', '1338298793', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', '20656275', '1338298791', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', '20656275', '1338298789', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', '20656275', '1338298787', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', '20656275', '1338298784', None, None, None, None, None, '2597814') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 79 time used for this insertion : 0.02957296371459961 save_final save missing photos in datou_result : time spend for datou_step_exec : 27.508130073547363 time spend to save output : 0.249434232711792 total time spend for step 6 : 27.757564306259155 step7:ventilate_hashtags_in_portfolio Tue Feb 18 22:23:08 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 : 20656275 get user id for portfolio 20656275 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 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','Teint_Dans_La_Masse','metal','autre_refus','plastique','mal_croppe','Carton_gris','kraft','Carton_brun','environnement','cartonnette','flou')) AND mptpi.`min_score`=0.5 To do To do SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20656275 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','Teint_Dans_La_Masse','metal','autre_refus','plastique','mal_croppe','Carton_gris','kraft','Carton_brun','environnement','cartonnette','flou')) 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`=20656275 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','Teint_Dans_La_Masse','metal','autre_refus','plastique','mal_croppe','Carton_gris','kraft','Carton_brun','environnement','cartonnette','flou')) AND mptpi.`min_score`=0.5 To do lien utilise dans velours : https://www.fotonower.com/velours/20656702,20656703,20656704,20656705,20656706,20656707,20656708,20656709,20656710,20656711,20656712,20656713?tags=papier,Teint_Dans_La_Masse,metal,autre_refus,plastique,mal_croppe,Carton_gris,kraft,Carton_brun,environnement,cartonnette,flou Inside saveOutput : final : False verbose : 0 saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1338298917, 1338298915, 1338298913, 1338298894, 1338298824, 1338298793, 1338298791, 1338298789, 1338298787, 1338298784] Looping around the photos to save general results len do output : 1 /20656275. 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, '2597814') ('3459', '20656275', '1338298917', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', '20656275', '1338298915', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', '20656275', '1338298913', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', '20656275', '1338298894', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', '20656275', '1338298824', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', '20656275', '1338298793', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', '20656275', '1338298791', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', '20656275', '1338298789', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', '20656275', '1338298787', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', '20656275', '1338298784', None, None, None, None, None, '2597814') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 time used for this insertion : 0.014530658721923828 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.6973419189453125 time spend to save output : 0.014802932739257812 total time spend for step 7 : 1.7121448516845703 step8:final Tue Feb 18 22:23:10 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 : {1338298917: ('0.05161465064052396',), 1338298915: ('0.05161465064052396',), 1338298913: ('0.05161465064052396',), 1338298894: ('0.05161465064052396',), 1338298824: ('0.05161465064052396',), 1338298793: ('0.05161465064052396',), 1338298791: ('0.05161465064052396',), 1338298789: ('0.05161465064052396',), 1338298787: ('0.05161465064052396',), 1338298784: ('0.05161465064052396',)} new output for save of step final : {1338298917: ('0.05161465064052396',), 1338298915: ('0.05161465064052396',), 1338298913: ('0.05161465064052396',), 1338298894: ('0.05161465064052396',), 1338298824: ('0.05161465064052396',), 1338298793: ('0.05161465064052396',), 1338298791: ('0.05161465064052396',), 1338298789: ('0.05161465064052396',), 1338298787: ('0.05161465064052396',), 1338298784: ('0.05161465064052396',)} [1338298917, 1338298915, 1338298913, 1338298894, 1338298824, 1338298793, 1338298791, 1338298789, 1338298787, 1338298784] Looping around the photos to save general results len do output : 10 /1338298917.Didn't retrieve data . /1338298915.Didn't retrieve data . /1338298913.Didn't retrieve data . /1338298894.Didn't retrieve data . /1338298824.Didn't retrieve data . /1338298793.Didn't retrieve data . /1338298791.Didn't retrieve data . /1338298789.Didn't retrieve data . /1338298787.Didn't retrieve data . /1338298784.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, '2597814') ('3459', '20656275', '1338298917', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', '20656275', '1338298915', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', '20656275', '1338298913', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', '20656275', '1338298894', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', '20656275', '1338298824', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', '20656275', '1338298793', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', '20656275', '1338298791', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', '20656275', '1338298789', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', '20656275', '1338298787', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', '20656275', '1338298784', None, None, None, None, None, '2597814') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 time used for this insertion : 0.013593196868896484 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.11312747001647949 time spend to save output : 0.014356136322021484 total time spend for step 8 : 0.12748360633850098 step9:velours_tree Tue Feb 18 22:23:10 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.4360079765319824 time spend to save output : 6.151199340820312e-05 total time spend for step 9 : 0.4360694885253906 step10:send_mail_cod Tue Feb 18 22:23:11 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_P20656275_18-02-2025_22_23_11.pdf 20656704 imagette206567041739913791 20656705 change filename to text .change filename to text .imagette206567051739913791 20656706 change filename to text .change filename to text .change filename to text .imagette206567061739913791 20656707 imagette206567071739913791 20656709 change filename to text .imagette206567091739913791 20656712 imagette206567121739913791 20656713 imagette206567131739913791 20656703 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 .imagette206567031739913791 20656708 change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .imagette206567081739913793 20656710 change filename to text .change filename to text .change filename to text .change filename to text .imagette206567101739913793 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20656275 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20656702,20656703,20656704,20656705,20656706,20656707,20656708,20656709,20656710,20656711,20656712,20656713?tags=papier,Teint_Dans_La_Masse,metal,autre_refus,plastique,mal_croppe,Carton_gris,kraft,Carton_brun,environnement,cartonnette,flou your option no_mail is active, we will not send the real mail to your client args[1338298917] : ('0.05161465064052396',) no score found for photo 1338298917 We are sending mail with results at report@fotonower.com args[1338298915] : ('0.05161465064052396',) no score found for photo 1338298915 We are sending mail with results at report@fotonower.com args[1338298913] : ('0.05161465064052396',) no score found for photo 1338298913 We are sending mail with results at report@fotonower.com args[1338298894] : ('0.05161465064052396',) no score found for photo 1338298894 We are sending mail with results at report@fotonower.com args[1338298824] : ('0.05161465064052396',) no score found for photo 1338298824 We are sending mail with results at report@fotonower.com args[1338298793] : ('0.05161465064052396',) no score found for photo 1338298793 We are sending mail with results at report@fotonower.com args[1338298791] : ('0.05161465064052396',) no score found for photo 1338298791 We are sending mail with results at report@fotonower.com args[1338298789] : ('0.05161465064052396',) no score found for photo 1338298789 We are sending mail with results at report@fotonower.com args[1338298787] : ('0.05161465064052396',) no score found for photo 1338298787 We are sending mail with results at report@fotonower.com args[1338298784] : ('0.05161465064052396',) no score found for photo 1338298784 We are sending mail with results at report@fotonower.com refus_total : 0.05161465064052396 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=20656275 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 [1338298917, 1338298915, 1338298913, 1338298894, 1338298824, 1338298793, 1338298791, 1338298789, 1338298787, 1338298784] 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, '2597814') ('3459', '20656275', '1338298917', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', '20656275', '1338298915', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', '20656275', '1338298913', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', '20656275', '1338298894', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', '20656275', '1338298824', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', '20656275', '1338298793', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', '20656275', '1338298791', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', '20656275', '1338298789', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', '20656275', '1338298787', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', '20656275', '1338298784', None, None, None, None, None, '2597814') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 time used for this insertion : 0.014307737350463867 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.0299935340881348 time spend to save output : 0.014551401138305664 total time spend for step 10 : 3.0445449352264404 step11:split_time_score Tue Feb 18 22:23:14 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 We expect there is only one output and this part is used while all output are not tuple or array We expect there is only one output and this part is used while all output are not tuple or array We expect there is only one output and this part is used while all output are not tuple or array We expect there is only one output and this part is used while all output are not tuple or array We expect there is only one output and this part is used while all output are not tuple or array We expect there is only one output and this part is used while all output are not tuple or array We expect there is only one output and this part is used while all output are not tuple or array We expect there is only one output and this part is used while all output are not tuple or array We expect there is only one output and this part is used while all output are not tuple or array We expect there is only one output and this part is used while all output are not tuple or array Inconsistent number of input and output, step which parrallelize and manage error in input by avoiding sending an output for this data can't be used in tree dependencies of input and output complete output_args for input 1 VR 22-3-18 : For now we do not clean correctly the datou structure begin split time score Catched exception ! Connect or reconnect ! TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] (('07', 17),) ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 18022025 20656275 Nombre de photos uploadées : 17 / 23040 (0%) 18022025 20656275 Nombre de photos taguées (types de déchets): 0 / 17 (0%) 18022025 20656275 Nombre de photos taguées (volume) : 0 / 17 (0%) elapsed_time : load_data_split_time_score 2.6226043701171875e-06 elapsed_time : order_list_meta_photo_and_scores 6.9141387939453125e-06 ????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0019669532775878906 elapsed_time : insert_dashboard_record_day_entry 0.024513721466064453 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.04561285178720804 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 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656314 order by id desc limit 1 NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'18022025': {'nb_upload': 17, '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 [1338298917, 1338298915, 1338298913, 1338298894, 1338298824, 1338298793, 1338298791, 1338298789, 1338298787, 1338298784] Looping around the photos to save general results len do output : 1 /20656275Didn'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, '2597814') ('3459', '20656275', '1338298917', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', '20656275', '1338298915', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', '20656275', '1338298913', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', '20656275', '1338298894', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', '20656275', '1338298824', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', '20656275', '1338298793', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', '20656275', '1338298791', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', '20656275', '1338298789', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', '20656275', '1338298787', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', '20656275', '1338298784', None, None, None, None, None, '2597814') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 time used for this insertion : 0.012892961502075195 save_final save missing photos in datou_result : time spend for datou_step_exec : 36.9234139919281 time spend to save output : 0.02170872688293457 total time spend for step 11 : 36.945122718811035 caffe_path_current : About to save ! 2 After save, about to update current ! update_current_state 121.29user 140.10system 5:29.78elapsed 79%CPU (0avgtext+0avgdata 3937024maxresident)k 820512inputs+68592outputs (22000major+11557970minor)pagefaults 0swaps