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 : 1407813 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/1407813/ 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 ! BFBFBFBFBFBFBFwe have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB length of list_filenames : 7 ; length of list_pids : 7 ; length of list_args : 7 time to download the photos : 1.4058990478515625 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:28: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 : 10593 max_wait_temp : 1 max_wait : 0 gpu_flag : 0 2025-02-18 22:28:31.825497: 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:28:31.855215: I tensorflow/core/platform/profile_utils/cpu_utils.cc:102] CPU Frequency: 3493065000 Hz 2025-02-18 22:28:31.857841: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x7f0320000b60 initialized for platform Host (this does not guarantee that XLA will be used). Devices: 2025-02-18 22:28:31.857899: I tensorflow/compiler/xla/service/service.cc:176] StreamExecutor device (0): Host, Default Version 2025-02-18 22:28:31.863744: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcuda.so.1 2025-02-18 22:28:32.108212: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x23a69f10 initialized for platform CUDA (this does not guarantee that XLA will be used). Devices: 2025-02-18 22:28:32.108272: I tensorflow/compiler/xla/service/service.cc:176] StreamExecutor device (0): NVIDIA GeForce RTX 2080 Ti, Compute Capability 7.5 2025-02-18 22:28:32.110055: 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:28:32.110507: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1 2025-02-18 22:28:32.113796: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcublas.so.10 2025-02-18 22:28:32.122394: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcufft.so.10 2025-02-18 22:28:32.123289: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcurand.so.10 2025-02-18 22:28:32.146042: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusolver.so.10 2025-02-18 22:28:32.149098: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusparse.so.10 2025-02-18 22:28:32.176722: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudnn.so.7 2025-02-18 22:28:32.178549: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1703] Adding visible gpu devices: 0 2025-02-18 22:28:32.178648: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1 2025-02-18 22:28:32.179583: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1102] Device interconnect StreamExecutor with strength 1 edge matrix: 2025-02-18 22:28:32.179605: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1108] 0 2025-02-18 22:28:32.179617: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1121] 0: N 2025-02-18 22:28:32.181622: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1247] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 9815 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:28:32.555300: 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:28:32.555405: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1 2025-02-18 22:28:32.555423: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcublas.so.10 2025-02-18 22:28:32.555438: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcufft.so.10 2025-02-18 22:28:32.555452: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcurand.so.10 2025-02-18 22:28:32.555466: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusolver.so.10 2025-02-18 22:28:32.555480: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusparse.so.10 2025-02-18 22:28:32.555495: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudnn.so.7 2025-02-18 22:28:32.556797: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1703] Adding visible gpu devices: 0 2025-02-18 22:28:32.558148: 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:28:32.558191: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1 2025-02-18 22:28:32.558206: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcublas.so.10 2025-02-18 22:28:32.558220: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcufft.so.10 2025-02-18 22:28:32.558235: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcurand.so.10 2025-02-18 22:28:32.558248: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusolver.so.10 2025-02-18 22:28:32.558263: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusparse.so.10 2025-02-18 22:28:32.558277: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudnn.so.7 2025-02-18 22:28:32.559570: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1703] Adding visible gpu devices: 0 2025-02-18 22:28:32.559609: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1102] Device interconnect StreamExecutor with strength 1 edge matrix: 2025-02-18 22:28:32.559618: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1108] 0 2025-02-18 22:28:32.559626: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1121] 0: N 2025-02-18 22:28:32.560959: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1247] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 9815 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:28:45.011824: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcublas.so.10 2025-02-18 22:28:45.202102: 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 : 7 NEW PHOTO Processing 1 images image shape: (2160, 3264, 3) min: 0.00000 max: 255.00000 molded_images shape: (1, 640, 640, 3) min: -123.70000 max: 151.10000 image_metas shape: (1, 18) min: 0.00000 max: 3264.00000 nb d'objets trouves : 13 NEW PHOTO Processing 1 images image shape: (2160, 3264, 3) min: 0.00000 max: 255.00000 molded_images shape: (1, 640, 640, 3) min: -123.70000 max: 151.10000 image_metas shape: (1, 18) min: 0.00000 max: 3264.00000 nb d'objets trouves : 23 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 : 12 NEW PHOTO Processing 1 images image shape: (2160, 3264, 3) min: 0.00000 max: 255.00000 molded_images shape: (1, 640, 640, 3) min: -123.70000 max: 151.10000 image_metas shape: (1, 18) min: 0.00000 max: 3264.00000 nb d'objets trouves : 18 NEW PHOTO Processing 1 images image shape: (2160, 3264, 3) min: 0.00000 max: 255.00000 molded_images shape: (1, 640, 640, 3) min: -123.70000 max: 151.10000 image_metas shape: (1, 18) min: 0.00000 max: 3264.00000 nb d'objets trouves : 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 : 15 Detection mask done ! Trying to reset tf kernel 1408266 begin to check gpu status inside check gpu memory l 3610 free memory gpu now : 5083 tf kernel not reseted sub process len(results) : 7 len(list_Values) 0 None max_time_sub_proc : 3600 parent process len(results) : 7 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 : 10372 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.0020580291748046875 nb_pixel_total : 70135 time to create 1 rle with old method : 0.07468414306640625 length of segment : 427 time for calcul the mask position with numpy : 0.003528118133544922 nb_pixel_total : 116218 time to create 1 rle with old method : 0.12344813346862793 length of segment : 477 time for calcul the mask position with numpy : 0.00017213821411132812 nb_pixel_total : 5277 time to create 1 rle with old method : 0.006045341491699219 length of segment : 72 time for calcul the mask position with numpy : 0.001760244369506836 nb_pixel_total : 99510 time to create 1 rle with old method : 0.10563468933105469 length of segment : 362 time for calcul the mask position with numpy : 0.000118255615234375 nb_pixel_total : 2358 time to create 1 rle with old method : 0.0027043819427490234 length of segment : 82 time for calcul the mask position with numpy : 0.00109100341796875 nb_pixel_total : 58726 time to create 1 rle with old method : 0.06200885772705078 length of segment : 479 time for calcul the mask position with numpy : 0.0011267662048339844 nb_pixel_total : 66161 time to create 1 rle with old method : 0.06986856460571289 length of segment : 330 time for calcul the mask position with numpy : 0.006330728530883789 nb_pixel_total : 181538 time to create 1 rle with new method : 0.20377230644226074 length of segment : 984 time for calcul the mask position with numpy : 0.09125733375549316 nb_pixel_total : 1237221 time to create 1 rle with new method : 0.3317873477935791 length of segment : 2811 time for calcul the mask position with numpy : 0.004436016082763672 nb_pixel_total : 237016 time to create 1 rle with new method : 0.012257575988769531 length of segment : 534 time for calcul the mask position with numpy : 0.0037288665771484375 nb_pixel_total : 142171 time to create 1 rle with old method : 0.160552978515625 length of segment : 878 time for calcul the mask position with numpy : 0.0001380443572998047 nb_pixel_total : 2035 time to create 1 rle with old method : 0.0024695396423339844 length of segment : 55 time for calcul the mask position with numpy : 0.0036780834197998047 nb_pixel_total : 97018 time to create 1 rle with old method : 0.10824418067932129 length of segment : 349 time for calcul the mask position with numpy : 0.0002105236053466797 nb_pixel_total : 1654 time to create 1 rle with old method : 0.0019452571868896484 length of segment : 62 time for calcul the mask position with numpy : 0.00044846534729003906 nb_pixel_total : 5046 time to create 1 rle with old method : 0.006082773208618164 length of segment : 120 time for calcul the mask position with numpy : 0.0009257793426513672 nb_pixel_total : 21415 time to create 1 rle with old method : 0.023327350616455078 length of segment : 214 time for calcul the mask position with numpy : 0.0004303455352783203 nb_pixel_total : 4291 time to create 1 rle with old method : 0.0050945281982421875 length of segment : 96 time for calcul the mask position with numpy : 0.0005056858062744141 nb_pixel_total : 8238 time to create 1 rle with old method : 0.009676218032836914 length of segment : 135 time for calcul the mask position with numpy : 0.00032711029052734375 nb_pixel_total : 5751 time to create 1 rle with old method : 0.009948492050170898 length of segment : 76 time for calcul the mask position with numpy : 0.0014209747314453125 nb_pixel_total : 14892 time to create 1 rle with old method : 0.023849010467529297 length of segment : 133 time for calcul the mask position with numpy : 0.0049359798431396484 nb_pixel_total : 166490 time to create 1 rle with new method : 0.008400201797485352 length of segment : 534 time for calcul the mask position with numpy : 0.0031442642211914062 nb_pixel_total : 94353 time to create 1 rle with old method : 0.10972976684570312 length of segment : 516 time for calcul the mask position with numpy : 0.000896453857421875 nb_pixel_total : 37570 time to create 1 rle with old method : 0.04807090759277344 length of segment : 251 time for calcul the mask position with numpy : 0.0017769336700439453 nb_pixel_total : 90926 time to create 1 rle with old method : 0.10097289085388184 length of segment : 518 time for calcul the mask position with numpy : 0.003401517868041992 nb_pixel_total : 173672 time to create 1 rle with new method : 0.0074176788330078125 length of segment : 536 time for calcul the mask position with numpy : 0.00022935867309570312 nb_pixel_total : 1893 time to create 1 rle with old method : 0.0023016929626464844 length of segment : 70 time for calcul the mask position with numpy : 0.002150297164916992 nb_pixel_total : 18523 time to create 1 rle with old method : 0.022319555282592773 length of segment : 532 time for calcul the mask position with numpy : 0.0013785362243652344 nb_pixel_total : 36958 time to create 1 rle with old method : 0.043755292892456055 length of segment : 340 time for calcul the mask position with numpy : 0.0006132125854492188 nb_pixel_total : 11864 time to create 1 rle with old method : 0.014266014099121094 length of segment : 205 time for calcul the mask position with numpy : 0.0008330345153808594 nb_pixel_total : 20069 time to create 1 rle with old method : 0.028553247451782227 length of segment : 208 time for calcul the mask position with numpy : 0.0005068778991699219 nb_pixel_total : 20348 time to create 1 rle with old method : 0.02434086799621582 length of segment : 195 time for calcul the mask position with numpy : 0.033128976821899414 nb_pixel_total : 1212611 time to create 1 rle with new method : 0.08624911308288574 length of segment : 1691 time for calcul the mask position with numpy : 0.0004730224609375 nb_pixel_total : 9040 time to create 1 rle with old method : 0.010947704315185547 length of segment : 152 time for calcul the mask position with numpy : 0.0009548664093017578 nb_pixel_total : 21978 time to create 1 rle with old method : 0.02583456039428711 length of segment : 230 time for calcul the mask position with numpy : 0.003164529800415039 nb_pixel_total : 129337 time to create 1 rle with old method : 0.15727972984313965 length of segment : 475 time for calcul the mask position with numpy : 0.0006167888641357422 nb_pixel_total : 27001 time to create 1 rle with old method : 0.03188753128051758 length of segment : 218 time for calcul the mask position with numpy : 0.00036215782165527344 nb_pixel_total : 20759 time to create 1 rle with old method : 0.024790048599243164 length of segment : 114 time for calcul the mask position with numpy : 0.006281375885009766 nb_pixel_total : 164580 time to create 1 rle with new method : 0.010076284408569336 length of segment : 630 time for calcul the mask position with numpy : 0.000186920166015625 nb_pixel_total : 2169 time to create 1 rle with old method : 0.0028505325317382812 length of segment : 58 time for calcul the mask position with numpy : 0.0003707408905029297 nb_pixel_total : 9330 time to create 1 rle with old method : 0.01141977310180664 length of segment : 110 time for calcul the mask position with numpy : 0.0019450187683105469 nb_pixel_total : 61630 time to create 1 rle with old method : 0.07068657875061035 length of segment : 499 time for calcul the mask position with numpy : 0.004828214645385742 nb_pixel_total : 128519 time to create 1 rle with old method : 0.14585113525390625 length of segment : 484 time for calcul the mask position with numpy : 0.0011458396911621094 nb_pixel_total : 32659 time to create 1 rle with old method : 0.03869271278381348 length of segment : 201 time for calcul the mask position with numpy : 0.002637624740600586 nb_pixel_total : 146222 time to create 1 rle with old method : 0.16885042190551758 length of segment : 604 time for calcul the mask position with numpy : 0.0012135505676269531 nb_pixel_total : 40550 time to create 1 rle with old method : 0.04664325714111328 length of segment : 294 time for calcul the mask position with numpy : 0.0008072853088378906 nb_pixel_total : 24679 time to create 1 rle with old method : 0.02938079833984375 length of segment : 240 time for calcul the mask position with numpy : 0.0030438899993896484 nb_pixel_total : 124015 time to create 1 rle with old method : 0.1450815200805664 length of segment : 431 time for calcul the mask position with numpy : 0.000247955322265625 nb_pixel_total : 5139 time to create 1 rle with old method : 0.006868124008178711 length of segment : 90 time for calcul the mask position with numpy : 0.002172231674194336 nb_pixel_total : 84831 time to create 1 rle with old method : 0.0986471176147461 length of segment : 317 time for calcul the mask position with numpy : 0.001836538314819336 nb_pixel_total : 38676 time to create 1 rle with old method : 0.044275522232055664 length of segment : 476 time for calcul the mask position with numpy : 0.00028252601623535156 nb_pixel_total : 2507 time to create 1 rle with old method : 0.0031588077545166016 length of segment : 116 time for calcul the mask position with numpy : 0.0027010440826416016 nb_pixel_total : 93226 time to create 1 rle with old method : 0.10546231269836426 length of segment : 568 time for calcul the mask position with numpy : 0.0005497932434082031 nb_pixel_total : 11436 time to create 1 rle with old method : 0.013495445251464844 length of segment : 160 time for calcul the mask position with numpy : 0.00016069412231445312 nb_pixel_total : 2346 time to create 1 rle with old method : 0.0027348995208740234 length of segment : 66 time for calcul the mask position with numpy : 0.0012364387512207031 nb_pixel_total : 53495 time to create 1 rle with old method : 0.061398983001708984 length of segment : 313 time for calcul the mask position with numpy : 0.00024962425231933594 nb_pixel_total : 5270 time to create 1 rle with old method : 0.006205081939697266 length of segment : 98 time for calcul the mask position with numpy : 0.00020599365234375 nb_pixel_total : 3293 time to create 1 rle with old method : 0.00424647331237793 length of segment : 56 time for calcul the mask position with numpy : 0.23257780075073242 nb_pixel_total : 1930247 time to create 1 rle with new method : 1.548943281173706 length of segment : 2404 time for calcul the mask position with numpy : 0.0012025833129882812 nb_pixel_total : 26799 time to create 1 rle with old method : 0.05684804916381836 length of segment : 283 time for calcul the mask position with numpy : 0.0010514259338378906 nb_pixel_total : 16820 time to create 1 rle with old method : 0.020723819732666016 length of segment : 319 time for calcul the mask position with numpy : 0.004235267639160156 nb_pixel_total : 182792 time to create 1 rle with new method : 0.013059854507446289 length of segment : 573 time for calcul the mask position with numpy : 0.000308990478515625 nb_pixel_total : 6193 time to create 1 rle with old method : 0.007655620574951172 length of segment : 69 time for calcul the mask position with numpy : 0.00012874603271484375 nb_pixel_total : 3413 time to create 1 rle with old method : 0.004462718963623047 length of segment : 50 time for calcul the mask position with numpy : 0.0004794597625732422 nb_pixel_total : 2691 time to create 1 rle with old method : 0.0035178661346435547 length of segment : 106 time for calcul the mask position with numpy : 0.00012755393981933594 nb_pixel_total : 4117 time to create 1 rle with old method : 0.005818843841552734 length of segment : 81 time for calcul the mask position with numpy : 0.0007593631744384766 nb_pixel_total : 24719 time to create 1 rle with old method : 0.04045605659484863 length of segment : 378 time for calcul the mask position with numpy : 0.008702754974365234 nb_pixel_total : 427270 time to create 1 rle with new method : 0.1036527156829834 length of segment : 1070 time for calcul the mask position with numpy : 0.0012979507446289062 nb_pixel_total : 522 time to create 1 rle with old method : 0.0007154941558837891 length of segment : 36 time for calcul the mask position with numpy : 0.0005846023559570312 nb_pixel_total : 6281 time to create 1 rle with old method : 0.017043352127075195 length of segment : 94 time for calcul the mask position with numpy : 0.00046515464782714844 nb_pixel_total : 4615 time to create 1 rle with old method : 0.005990505218505859 length of segment : 96 time for calcul the mask position with numpy : 0.0004355907440185547 nb_pixel_total : 8421 time to create 1 rle with old method : 0.009949684143066406 length of segment : 180 time for calcul the mask position with numpy : 0.0004634857177734375 nb_pixel_total : 5201 time to create 1 rle with old method : 0.0065708160400390625 length of segment : 144 time for calcul the mask position with numpy : 0.0549015998840332 nb_pixel_total : 2076796 time to create 1 rle with new method : 0.6105802059173584 length of segment : 3407 time for calcul the mask position with numpy : 0.003406047821044922 nb_pixel_total : 167232 time to create 1 rle with new method : 0.010939359664916992 length of segment : 704 time for calcul the mask position with numpy : 0.0011739730834960938 nb_pixel_total : 75818 time to create 1 rle with old method : 0.08688497543334961 length of segment : 426 time for calcul the mask position with numpy : 0.0008153915405273438 nb_pixel_total : 40575 time to create 1 rle with old method : 0.04598689079284668 length of segment : 440 time for calcul the mask position with numpy : 0.0018439292907714844 nb_pixel_total : 77365 time to create 1 rle with old method : 0.0892486572265625 length of segment : 395 time for calcul the mask position with numpy : 0.0008211135864257812 nb_pixel_total : 33947 time to create 1 rle with old method : 0.04469561576843262 length of segment : 481 time for calcul the mask position with numpy : 0.0016088485717773438 nb_pixel_total : 40638 time to create 1 rle with old method : 0.062180280685424805 length of segment : 388 time for calcul the mask position with numpy : 0.00496673583984375 nb_pixel_total : 170400 time to create 1 rle with new method : 0.007988452911376953 length of segment : 484 time for calcul the mask position with numpy : 0.0008597373962402344 nb_pixel_total : 28290 time to create 1 rle with old method : 0.03355860710144043 length of segment : 227 time for calcul the mask position with numpy : 0.00038814544677734375 nb_pixel_total : 8471 time to create 1 rle with old method : 0.010331392288208008 length of segment : 126 time for calcul the mask position with numpy : 0.0019538402557373047 nb_pixel_total : 67619 time to create 1 rle with old method : 0.09069299697875977 length of segment : 382 time for calcul the mask position with numpy : 0.0015099048614501953 nb_pixel_total : 68072 time to create 1 rle with old method : 0.08070230484008789 length of segment : 343 time for calcul the mask position with numpy : 0.0006349086761474609 nb_pixel_total : 19174 time to create 1 rle with old method : 0.02298760414123535 length of segment : 183 time for calcul the mask position with numpy : 0.0004544258117675781 nb_pixel_total : 8783 time to create 1 rle with old method : 0.010535478591918945 length of segment : 126 time for calcul the mask position with numpy : 0.0015916824340820312 nb_pixel_total : 30810 time to create 1 rle with old method : 0.04134726524353027 length of segment : 561 time for calcul the mask position with numpy : 0.0009617805480957031 nb_pixel_total : 44380 time to create 1 rle with old method : 0.051775455474853516 length of segment : 394 time for calcul the mask position with numpy : 0.001088857650756836 nb_pixel_total : 32297 time to create 1 rle with old method : 0.03810930252075195 length of segment : 311 time for calcul the mask position with numpy : 0.0002751350402832031 nb_pixel_total : 8475 time to create 1 rle with old method : 0.01033163070678711 length of segment : 159 time for calcul the mask position with numpy : 0.0068247318267822266 nb_pixel_total : 214813 time to create 1 rle with new method : 0.011294841766357422 length of segment : 1058 time spent for convertir_results : 14.25002384185791 Inside saveOutput : final : False verbose : 0 eke 12-6-18 : saveMask need to be cleaned for new output ! Number saved : None batch 1 Loaded 91 chid ids of type : 3663 Number RLEs to save : 37750 save missing photos in datou_result : time spend for datou_step_exec : 60.69118666648865 time spend to save output : 2.1867880821228027 total time spend for step 1 : 62.87797474861145 step2:crop_condition Tue Feb 18 22:29:31 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed 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 : 7 ! batch 1 Loaded 91 chid ids of type : 3663 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ begin to crop the class : teint_dans_la_masse param for this class : {'min_score': 0.7} filtre for class : teint_dans_la_masse hashtag_id of this class : 2107752385 we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! map_result returned by crop_photo_return_map_crop : length : 8 About to insert : list_path_to_insert length 8 new photo from crops ! we have finished the crop for the class : teint_dans_la_masse begin to crop the class : autre_refus param for this class : {'min_score': 0.5} filtre for class : autre_refus hashtag_id of this class : 2107752406 we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! map_result returned by crop_photo_return_map_crop : length : 7 About to insert : list_path_to_insert length 7 new photo from crops ! we have finished the crop for the class : 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 ! map_result returned by crop_photo_return_map_crop : length : 3 About to insert : list_path_to_insert length 3 new photo from crops ! we have finished the crop for the class : 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 ! map_result returned by crop_photo_return_map_crop : length : 29 About to insert : list_path_to_insert length 29 new photo from crops ! we have finished the crop for the class : cartonnette begin to crop the class : carton_brun param for this class : {'min_score': 0.7} filtre for class : carton_brun hashtag_id of this class : 2107753024 we have both polygon and rles Next one ! we have both polygon and rles Next one ! map_result returned by crop_photo_return_map_crop : length : 2 About to insert : list_path_to_insert length 2 new photo from crops ! we have finished the crop for the class : carton_brun begin to crop the class : plastique param for this class : {'min_score': 0.5} filtre for class : plastique hashtag_id of this class : 492725882 we have both polygon and rles Next one ! we have both polygon and rles Next one ! map_result returned by crop_photo_return_map_crop : length : 2 About to insert : list_path_to_insert length 2 new photo from crops ! we have finished the crop for the class : 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 ! we have both polygon and rles Next one ! map_result returned by crop_photo_return_map_crop : length : 2 About to insert : list_path_to_insert length 2 new photo from crops ! we have finished the crop for the class : 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 [1338298780, 1338298765, 1338298762, 1338298760, 1338298756, 1338298751, 1338298749] Looping around the photos to save general results len do output : 53 /-3679359948Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679359968Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679359961Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679359978Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679359991Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679360003Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679360023Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679360026Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679359967Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679359986Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679360010Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679360005Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679360014Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679360019Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679360027Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679359969Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679359962Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679359982Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679359952Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679359955Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679359946Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679359945Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679359954Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679359950Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679359951Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679359957Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679359971Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679359965Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679359974Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679359966Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679359964Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679359985Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679359980Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679359988Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679359979Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679359989Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679359981Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679359993Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679359994Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679360022Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679360018Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679360021Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679360025Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679360029Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679360032Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679360024Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679360030Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679359959Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679359960Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679359972Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679360020Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679359975Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679359987Didn'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', None, '1338298780', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', None, '1338298765', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', None, '1338298762', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', None, '1338298760', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', None, '1338298756', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', None, '1338298751', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', None, '1338298749', None, None, None, None, None, '2597814') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 166 time used for this insertion : 0.06203508377075195 save_final save missing photos in datou_result : time spend for datou_step_exec : 23.798495769500732 time spend to save output : 0.06453418731689453 total time spend for step 2 : 23.863029956817627 step3:thcl Tue Feb 18 22:29:55 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.007136821746826172 time to convert the images to numpy array : 4.291534423828125e-06 time to import caffe and check if the image exist : 0.011211156845092773 time to convert the images to numpy array : 0.053812503814697266 time to import caffe and check if the image exist : 0.010051250457763672 time to convert the images to numpy array : 0.1972033977508545 time to import caffe and check if the image exist : 0.012079954147338867 time to convert the images to numpy array : 0.21279597282409668 time to import caffe and check if the image exist : 0.013077974319458008 time to convert the images to numpy array : 0.4174811840057373 time to import caffe and check if the image exist : 0.012508392333984375 time to convert the images to numpy array : 0.4197099208831787 time to import caffe and check if the image exist : 0.009686470031738281 time to convert the images to numpy array : 0.4264521598815918 time to import caffe and check if the image exist : 0.01859569549560547 time to convert the images to numpy array : 0.42240476608276367 time to import caffe and check if the image exist : 0.014596700668334961 time to convert the images to numpy array : 0.4324166774749756 time to import caffe and check if the image exist : 0.011701822280883789 time to convert the images to numpy array : 0.45525550842285156 total time to convert the images to numpy array : 0.6693363189697266 list photo_ids error: [] list photo_ids correct : [-3679359960, -3679359972, -3679360020, -3679359975, -3679359987, -3679360025, -3679360029, -3679360032, -3679360024, -3679360030, -3679359959, -3679359948, -3679359968, -3679359961, -3679359978, -3679359991, -3679360003, -3679360023, -3679360026, -3679359967, -3679359986, -3679360010, -3679360005, -3679359981, -3679359993, -3679359994, -3679360022, -3679360018, -3679360021, -3679359964, -3679359985, -3679359980, -3679359988, -3679359979, -3679359989, -3679359951, -3679359957, -3679359971, -3679359965, -3679359974, -3679359966, -3679360014, -3679360019, -3679360027, -3679359969, -3679359962, -3679359982, -3679359952, -3679359955, -3679359946, -3679359945, -3679359954, -3679359950] number of photos to traite : 53 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 : 10372 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 : 10153 max_wait_temp : 1 max_wait : 0 dict_keys(['prob']) time used to do the prepocess of the images : 0.6166603565216064 time used to do the prediction : 0.1464707851409912 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 : 10151 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 : 10151 max_wait_temp : 1 max_wait : 0 dict_keys(['prob']) time used to do the prepocess of the images : 0.6304683685302734 time used to do the prediction : 0.38588833808898926 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.33514404296875e-05 save missing photos in datou_result : time spend for datou_step_exec : 9.243088245391846 time spend to save output : 0.0004131793975830078 total time spend for step 3 : 9.243501424789429 step4:merge_mask_thcl_custom Tue Feb 18 22:30:04 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 91 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 [1338298780, 1338298765, 1338298762, 1338298760, 1338298756, 1338298751, 1338298749] Looping around the photos to save general results len do output : 7 /1338298780Didn't retrieve data .Didn't retrieve data . /1338298765Didn't retrieve data .Didn't retrieve data . /1338298762Didn't retrieve data .Didn't retrieve data . /1338298760Didn't retrieve data .Didn't retrieve data . /1338298756Didn't retrieve data .Didn't retrieve data . /1338298751Didn't retrieve data .Didn't retrieve data . /1338298749Didn'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', None, '1338298780', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', None, '1338298765', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', None, '1338298762', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', None, '1338298760', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', None, '1338298756', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', None, '1338298751', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', None, '1338298749', None, None, None, None, None, '2597814') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 21 time used for this insertion : 0.012096166610717773 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.060416221618652344 time spend to save output : 0.01301884651184082 total time spend for step 4 : 0.07343506813049316 step5:rle_unique_nms_with_priority Tue Feb 18 22:30:04 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 : 12 nb_hashtags : 4 time to prepare the origin masks : 9.7496178150177 time for calcul the mask position with numpy : 0.5398666858673096 nb_pixel_total : 4912511 time to create 1 rle with new method : 1.270491123199463 time for calcul the mask position with numpy : 0.02147841453552246 nb_pixel_total : 59098 time to create 1 rle with old method : 0.06451821327209473 time for calcul the mask position with numpy : 0.021432876586914062 nb_pixel_total : 2002 time to create 1 rle with old method : 0.002254486083984375 time for calcul the mask position with numpy : 0.02238297462463379 nb_pixel_total : 37716 time to create 1 rle with old method : 0.0418696403503418 time for calcul the mask position with numpy : 0.03540611267089844 nb_pixel_total : 1237136 time to create 1 rle with new method : 0.7933263778686523 time for calcul the mask position with numpy : 0.024106264114379883 nb_pixel_total : 99081 time to create 1 rle with old method : 0.12982559204101562 time for calcul the mask position with numpy : 0.02417469024658203 nb_pixel_total : 141934 time to create 1 rle with old method : 0.15912294387817383 time for calcul the mask position with numpy : 0.024479150772094727 nb_pixel_total : 236701 time to create 1 rle with new method : 0.6899807453155518 time for calcul the mask position with numpy : 0.02147507667541504 nb_pixel_total : 2356 time to create 1 rle with old method : 0.0028257369995117188 time for calcul the mask position with numpy : 0.02204275131225586 nb_pixel_total : 66006 time to create 1 rle with old method : 0.07210874557495117 time for calcul the mask position with numpy : 0.02186417579650879 nb_pixel_total : 5250 time to create 1 rle with old method : 0.0058803558349609375 time for calcul the mask position with numpy : 0.022229909896850586 nb_pixel_total : 180692 time to create 1 rle with new method : 1.070373296737671 time for calcul the mask position with numpy : 0.022443532943725586 nb_pixel_total : 69757 time to create 1 rle with old method : 0.07964968681335449 create new chi : 5.315295219421387 time to delete rle : 0.010336637496948242 batch 1 Loaded 13 chid ids of type : 3726 Number RLEs to save : 16540 TO DO : save crop sub photo not yet done ! save time : 0.9048631191253662 nb_obj : 20 nb_hashtags : 6 time to prepare the origin masks : 14.682675123214722 time for calcul the mask position with numpy : 0.6033847332000732 nb_pixel_total : 5336946 time to create 1 rle with new method : 2.570976972579956 time for calcul the mask position with numpy : 0.04873394966125488 nb_pixel_total : 4802 time to create 1 rle with old method : 0.005464315414428711 time for calcul the mask position with numpy : 0.03939032554626465 nb_pixel_total : 36722 time to create 1 rle with old method : 0.04097151756286621 time for calcul the mask position with numpy : 0.05636167526245117 nb_pixel_total : 1211807 time to create 1 rle with new method : 1.2879955768585205 time for calcul the mask position with numpy : 0.03786754608154297 nb_pixel_total : 11755 time to create 1 rle with old method : 0.013146400451660156 time for calcul the mask position with numpy : 0.03693890571594238 nb_pixel_total : 1884 time to create 1 rle with old method : 0.0022492408752441406 time for calcul the mask position with numpy : 0.03603982925415039 nb_pixel_total : 4288 time to create 1 rle with old method : 0.005155324935913086 time for calcul the mask position with numpy : 0.04727983474731445 nb_pixel_total : 14807 time to create 1 rle with old method : 0.020336389541625977 time for calcul the mask position with numpy : 0.0385744571685791 nb_pixel_total : 5711 time to create 1 rle with old method : 0.0068531036376953125 time for calcul the mask position with numpy : 0.03952836990356445 nb_pixel_total : 154 time to create 1 rle with old method : 0.00033593177795410156 time for calcul the mask position with numpy : 0.042989253997802734 nb_pixel_total : 5024 time to create 1 rle with old method : 0.006030559539794922 time for calcul the mask position with numpy : 0.04523277282714844 nb_pixel_total : 96843 time to create 1 rle with old method : 0.13292860984802246 time for calcul the mask position with numpy : 0.03726983070373535 nb_pixel_total : 8337 time to create 1 rle with old method : 0.010163068771362305 time for calcul the mask position with numpy : 0.036736249923706055 nb_pixel_total : 583 time to create 1 rle with old method : 0.0008819103240966797 time for calcul the mask position with numpy : 0.037278175354003906 nb_pixel_total : 21313 time to create 1 rle with old method : 0.027243375778198242 time for calcul the mask position with numpy : 0.043715476989746094 nb_pixel_total : 166078 time to create 1 rle with new method : 1.2954246997833252 time for calcul the mask position with numpy : 0.03714275360107422 nb_pixel_total : 677 time to create 1 rle with old method : 0.0010051727294921875 time for calcul the mask position with numpy : 0.04344463348388672 nb_pixel_total : 94264 time to create 1 rle with old method : 0.10753655433654785 time for calcul the mask position with numpy : 0.03672337532043457 nb_pixel_total : 1648 time to create 1 rle with old method : 0.002035856246948242 time for calcul the mask position with numpy : 0.03688979148864746 nb_pixel_total : 18409 time to create 1 rle with old method : 0.022946596145629883 time for calcul the mask position with numpy : 0.04855012893676758 nb_pixel_total : 8188 time to create 1 rle with old method : 0.011267900466918945 create new chi : 7.128758907318115 time to delete rle : 0.002137422561645508 batch 1 Loaded 21 chid ids of type : 3726 Number RLEs to save : 13774 TO DO : save crop sub photo not yet done ! save time : 0.8204543590545654 nb_obj : 13 nb_hashtags : 6 time to prepare the origin masks : 14.611058235168457 time for calcul the mask position with numpy : 0.8688509464263916 nb_pixel_total : 6396164 time to create 1 rle with new method : 1.0993094444274902 time for calcul the mask position with numpy : 0.0579378604888916 nb_pixel_total : 128311 time to create 1 rle with old method : 0.13956499099731445 time for calcul the mask position with numpy : 0.054245710372924805 nb_pixel_total : 32509 time to create 1 rle with old method : 0.03614950180053711 time for calcul the mask position with numpy : 0.050901174545288086 nb_pixel_total : 9283 time to create 1 rle with old method : 0.01016855239868164 time for calcul the mask position with numpy : 0.049422502517700195 nb_pixel_total : 20754 time to create 1 rle with old method : 0.022247314453125 time for calcul the mask position with numpy : 0.05336880683898926 nb_pixel_total : 2156 time to create 1 rle with old method : 0.0024929046630859375 time for calcul the mask position with numpy : 0.05591893196105957 nb_pixel_total : 147979 time to create 1 rle with old method : 0.15606141090393066 time for calcul the mask position with numpy : 0.055739402770996094 nb_pixel_total : 61804 time to create 1 rle with old method : 0.06970953941345215 time for calcul the mask position with numpy : 0.054366350173950195 nb_pixel_total : 132493 time to create 1 rle with old method : 0.14865446090698242 time for calcul the mask position with numpy : 0.05385756492614746 nb_pixel_total : 21912 time to create 1 rle with old method : 0.025305747985839844 time for calcul the mask position with numpy : 0.051302194595336914 nb_pixel_total : 20719 time to create 1 rle with old method : 0.023770809173583984 time for calcul the mask position with numpy : 0.050567626953125 nb_pixel_total : 40353 time to create 1 rle with old method : 0.0491175651550293 time for calcul the mask position with numpy : 0.06440448760986328 nb_pixel_total : 26829 time to create 1 rle with old method : 0.03024888038635254 time for calcul the mask position with numpy : 0.05620932579040527 nb_pixel_total : 8974 time to create 1 rle with old method : 0.010342121124267578 create new chi : 3.461642026901245 time to delete rle : 0.0014553070068359375 batch 1 Loaded 14 chid ids of type : 3726 Number RLEs to save : 9655 TO DO : save crop sub photo not yet done ! save time : 0.5644705295562744 nb_obj : 6 nb_hashtags : 3 time to prepare the origin masks : 7.763335704803467 time for calcul the mask position with numpy : 0.807788610458374 nb_pixel_total : 6793478 time to create 1 rle with new method : 0.7554535865783691 time for calcul the mask position with numpy : 0.06707954406738281 nb_pixel_total : 123849 time to create 1 rle with old method : 0.13754987716674805 time for calcul the mask position with numpy : 0.0586700439453125 nb_pixel_total : 2335 time to create 1 rle with old method : 0.0028307437896728516 time for calcul the mask position with numpy : 0.057778120040893555 nb_pixel_total : 84413 time to create 1 rle with old method : 0.09264969825744629 time for calcul the mask position with numpy : 0.07031774520874023 nb_pixel_total : 2496 time to create 1 rle with old method : 0.002874135971069336 time for calcul the mask position with numpy : 0.05967903137207031 nb_pixel_total : 5110 time to create 1 rle with old method : 0.005875825881958008 time for calcul the mask position with numpy : 0.06105375289916992 nb_pixel_total : 38559 time to create 1 rle with old method : 0.0456082820892334 create new chi : 2.2866244316101074 time to delete rle : 0.001032114028930664 batch 1 Loaded 7 chid ids of type : 3726 Number RLEs to save : 5166 TO DO : save crop sub photo not yet done ! save time : 0.30362606048583984 nb_obj : 15 nb_hashtags : 2 time to prepare the origin masks : 10.587331295013428 time for calcul the mask position with numpy : 0.4040400981903076 nb_pixel_total : 4731309 time to create 1 rle with new method : 0.4725799560546875 time for calcul the mask position with numpy : 0.02956390380859375 nb_pixel_total : 5147 time to create 1 rle with old method : 0.005591869354248047 time for calcul the mask position with numpy : 0.033468008041381836 nb_pixel_total : 8404 time to create 1 rle with old method : 0.00924825668334961 time for calcul the mask position with numpy : 0.03200531005859375 nb_pixel_total : 26751 time to create 1 rle with old method : 0.03166818618774414 time for calcul the mask position with numpy : 0.03426957130432129 nb_pixel_total : 6232 time to create 1 rle with old method : 0.008961200714111328 time for calcul the mask position with numpy : 0.035929203033447266 nb_pixel_total : 93768 time to create 1 rle with old method : 0.10861539840698242 time for calcul the mask position with numpy : 0.03625297546386719 nb_pixel_total : 4112 time to create 1 rle with old method : 0.005706310272216797 time for calcul the mask position with numpy : 0.03733992576599121 nb_pixel_total : 4667 time to create 1 rle with old method : 0.0063037872314453125 time for calcul the mask position with numpy : 0.031752824783325195 nb_pixel_total : 2651 time to create 1 rle with old method : 0.0029010772705078125 time for calcul the mask position with numpy : 0.03062748908996582 nb_pixel_total : 3368 time to create 1 rle with old method : 0.003757953643798828 time for calcul the mask position with numpy : 0.030320405960083008 nb_pixel_total : 6157 time to create 1 rle with old method : 0.007064342498779297 time for calcul the mask position with numpy : 0.029857873916625977 nb_pixel_total : 24532 time to create 1 rle with old method : 0.027628421783447266 time for calcul the mask position with numpy : 0.031864166259765625 nb_pixel_total : 16738 time to create 1 rle with old method : 0.018206357955932617 time for calcul the mask position with numpy : 0.07347798347473145 nb_pixel_total : 1930507 time to create 1 rle with new method : 0.7700784206390381 time for calcul the mask position with numpy : 0.056940555572509766 nb_pixel_total : 3229 time to create 1 rle with old method : 0.003975868225097656 time for calcul the mask position with numpy : 0.06198716163635254 nb_pixel_total : 182668 time to create 1 rle with new method : 0.7806577682495117 create new chi : 3.3679006099700928 time to delete rle : 0.0030143260955810547 batch 1 Loaded 16 chid ids of type : 3726 Number RLEs to save : 12400 TO DO : save crop sub photo not yet done ! save time : 0.7302877902984619 nb_obj : 6 nb_hashtags : 4 time to prepare the origin masks : 7.29770565032959 time for calcul the mask position with numpy : 0.7052912712097168 nb_pixel_total : 4645373 time to create 1 rle with new method : 0.7559719085693359 time for calcul the mask position with numpy : 0.031879425048828125 nb_pixel_total : 153878 time to create 1 rle with new method : 1.2178165912628174 time for calcul the mask position with numpy : 0.037764787673950195 nb_pixel_total : 4566 time to create 1 rle with old method : 0.005585193634033203 time for calcul the mask position with numpy : 0.0693058967590332 nb_pixel_total : 2093519 time to create 1 rle with new method : 0.4115290641784668 time for calcul the mask position with numpy : 0.0375065803527832 nb_pixel_total : 76302 time to create 1 rle with old method : 0.08596158027648926 time for calcul the mask position with numpy : 0.03794980049133301 nb_pixel_total : 36012 time to create 1 rle with old method : 0.04877495765686035 time for calcul the mask position with numpy : 0.035935163497924805 nb_pixel_total : 40590 time to create 1 rle with old method : 0.046159982681274414 create new chi : 3.6243784427642822 time to delete rle : 0.0016014575958251953 batch 1 Loaded 7 chid ids of type : 3726 Number RLEs to save : 12471 TO DO : save crop sub photo not yet done ! save time : 0.8291351795196533 nb_obj : 10 nb_hashtags : 5 time to prepare the origin masks : 5.458081245422363 time for calcul the mask position with numpy : 0.41141605377197266 nb_pixel_total : 6477672 time to create 1 rle with new method : 0.3841745853424072 time for calcul the mask position with numpy : 0.02665424346923828 nb_pixel_total : 12063 time to create 1 rle with old method : 0.015250444412231445 time for calcul the mask position with numpy : 0.025102853775024414 nb_pixel_total : 8770 time to create 1 rle with old method : 0.009901762008666992 time for calcul the mask position with numpy : 0.022731781005859375 nb_pixel_total : 3799 time to create 1 rle with old method : 0.004610538482666016 time for calcul the mask position with numpy : 0.03641676902770996 nb_pixel_total : 214196 time to create 1 rle with new method : 0.8871417045593262 time for calcul the mask position with numpy : 0.03887057304382324 nb_pixel_total : 28254 time to create 1 rle with old method : 0.0322420597076416 time for calcul the mask position with numpy : 0.03595542907714844 nb_pixel_total : 67888 time to create 1 rle with old method : 0.07488846778869629 time for calcul the mask position with numpy : 0.022754907608032227 nb_pixel_total : 40567 time to create 1 rle with old method : 0.047884464263916016 time for calcul the mask position with numpy : 0.023862600326538086 nb_pixel_total : 19096 time to create 1 rle with old method : 0.021558761596679688 time for calcul the mask position with numpy : 0.02427077293395996 nb_pixel_total : 169541 time to create 1 rle with new method : 0.623342752456665 time for calcul the mask position with numpy : 0.027512788772583008 nb_pixel_total : 8394 time to create 1 rle with old method : 0.010074138641357422 create new chi : 3.0738072395324707 time to delete rle : 0.001184225082397461 batch 1 Loaded 11 chid ids of type : 3726 Number RLEs to save : 9255 TO DO : save crop sub photo not yet done ! save time : 0.7622721195220947 map_output_result : {1338298780: (0.0, 'Should be the crop_list due to order', 0.0), 1338298765: (0.0, 'Should be the crop_list due to order', 0.0), 1338298762: (0.0, 'Should be the crop_list due to order', 0.0), 1338298760: (0.0, 'Should be the crop_list due to order', 0.0), 1338298756: (0.0, 'Should be the crop_list due to order', 0.0), 1338298751: (0.0, 'Should be the crop_list due to order', 0.0), 1338298749: (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 [1338298780, 1338298765, 1338298762, 1338298760, 1338298756, 1338298751, 1338298749] Looping around the photos to save general results len do output : 7 /1338298780.Didn't retrieve data . /1338298765.Didn't retrieve data . /1338298762.Didn't retrieve data . /1338298760.Didn't retrieve data . /1338298756.Didn't retrieve data . /1338298751.Didn't retrieve data . /1338298749.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', None, '1338298780', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', None, '1338298765', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', None, '1338298762', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', None, '1338298760', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', None, '1338298756', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', None, '1338298751', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', None, '1338298749', None, None, None, None, None, '2597814') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 21 time used for this insertion : 0.08886599540710449 save_final save missing photos in datou_result : time spend for datou_step_exec : 104.27883291244507 time spend to save output : 0.08956336975097656 total time spend for step 5 : 104.36839628219604 step6:crop_condition Tue Feb 18 22:31:49 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 : 7 ! batch 1 Loaded 89 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 ! 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/1739914311_1407813 we have uploaded 3 photos in the portfolio 4869462 time of upload the photos Elapsed time : 1.2969553470611572 we have finished the crop for the class : teint_dans_la_masse begin to crop the class : autre_refus param for this class : {'min_score': 0.5} filtre for class : autre_refus hashtag_id of this class : 2107752406 Next one ! map_result returned by crop_photo_return_map_crop : length : 1 About to insert : list_path_to_insert length 1 new photo from crops ! About to upload 1 photos upload in portfolio : 4869462 init cache_photo without model_param we have 1 photo to upload uploaded to storage server : ovh folder_temporaire : temp/1739914313_1407813 we have uploaded 1 photos in the portfolio 4869462 time of upload the photos Elapsed time : 0.6885027885437012 we have finished the crop for the class : autre_refus begin to crop the class : carton_gris param for this class : {'min_score': 0.5} filtre for class : carton_gris hashtag_id of this class : 2107753020 Next one ! Next one ! map_result returned by crop_photo_return_map_crop : length : 2 About to insert : list_path_to_insert length 2 new photo from crops ! About to upload 2 photos upload in portfolio : 4869462 init cache_photo without model_param we have 2 photo to upload uploaded to storage server : ovh folder_temporaire : temp/1739914315_1407813 we have uploaded 2 photos in the portfolio 4869462 time of upload the photos Elapsed time : 1.2138187885284424 we have finished the crop for the class : carton_gris begin to crop the class : cartonnette param for this class : {'min_score': 0.5} filtre for class : cartonnette hashtag_id of this class : 702398920 Next one ! Next one ! Next one ! 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/1739914318_1407813 we have uploaded 3 photos in the portfolio 4869462 time of upload the photos Elapsed time : 1.115328311920166 we have finished the crop for the class : cartonnette begin to crop the class : carton_brun param for this class : {'min_score': 0.7} filtre for class : carton_brun hashtag_id of this class : 2107753024 Next one ! 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/1739914321_1407813 we have uploaded 4 photos in the portfolio 4869462 time of upload the photos Elapsed time : 1.289133071899414 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 begin to crop the class : kraft param for this class : {'min_score': 0.5} filtre for class : kraft hashtag_id of this class : 493202403 begin to crop the class : metal param for this class : {'min_score': 0.5} filtre for class : metal hashtag_id of this class : 492628673 delete rles for these photos Inside saveOutput : final : False verbose : 0 saveOutput not yet implemented for datou_step.type : crop_condition we use saveGeneral [1338298780, 1338298765, 1338298762, 1338298760, 1338298756, 1338298751, 1338298749] Looping around the photos to save general results len do output : 13 /1338395961Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1338395962Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1338395963Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1338395964Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1338395975Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1338395976Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1338395978Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1338395979Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1338395980Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1338395982Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1338395983Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1338395984Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1338395985Didn'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', None, '1338298780', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', None, '1338298765', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', None, '1338298762', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', None, '1338298760', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', None, '1338298756', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', None, '1338298751', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', None, '1338298749', None, None, None, None, None, '2597814') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 46 time used for this insertion : 0.023865461349487305 save_final save missing photos in datou_result : time spend for datou_step_exec : 13.947289228439331 time spend to save output : 0.02452373504638672 total time spend for step 6 : 13.971812963485718 step7:ventilate_hashtags_in_portfolio Tue Feb 18 22:32:03 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! 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 ('Carton_brun','metal','environnement','flou','cartonnette','Carton_gris','plastique','kraft','papier','mal_croppe','Teint_Dans_La_Masse','autre_refus')) 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 ('Carton_brun','metal','environnement','flou','cartonnette','Carton_gris','plastique','kraft','papier','mal_croppe','Teint_Dans_La_Masse','autre_refus')) 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 [1338298780, 1338298765, 1338298762, 1338298760, 1338298756, 1338298751, 1338298749] 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', None, '1338298780', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', None, '1338298765', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', None, '1338298762', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', None, '1338298760', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', None, '1338298756', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', None, '1338298751', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', None, '1338298749', None, None, None, None, None, '2597814') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 8 time used for this insertion : 0.013471364974975586 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.0898075103759766 time spend to save output : 0.013914823532104492 total time spend for step 7 : 2.103722333908081 step8:final Tue Feb 18 22:32:05 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 : {1338298780: ('0.04771362772294767',), 1338298765: ('0.04771362772294767',), 1338298762: ('0.04771362772294767',), 1338298760: ('0.04771362772294767',), 1338298756: ('0.04771362772294767',), 1338298751: ('0.04771362772294767',), 1338298749: ('0.04771362772294767',)} new output for save of step final : {1338298780: ('0.04771362772294767',), 1338298765: ('0.04771362772294767',), 1338298762: ('0.04771362772294767',), 1338298760: ('0.04771362772294767',), 1338298756: ('0.04771362772294767',), 1338298751: ('0.04771362772294767',), 1338298749: ('0.04771362772294767',)} [1338298780, 1338298765, 1338298762, 1338298760, 1338298756, 1338298751, 1338298749] Looping around the photos to save general results len do output : 7 /1338298780.Didn't retrieve data . /1338298765.Didn't retrieve data . /1338298762.Didn't retrieve data . /1338298760.Didn't retrieve data . /1338298756.Didn't retrieve data . /1338298751.Didn't retrieve data . /1338298749.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', None, '1338298780', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', None, '1338298765', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', None, '1338298762', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', None, '1338298760', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', None, '1338298756', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', None, '1338298751', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', None, '1338298749', None, None, None, None, None, '2597814') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 21 time used for this insertion : 0.012481689453125 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.10309696197509766 time spend to save output : 0.012960433959960938 total time spend for step 8 : 0.1160573959350586 step9:velours_tree Tue Feb 18 22:32:05 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.17096328735351562 time spend to save output : 4.863739013671875e-05 total time spend for step 9 : 0.17101192474365234 step10:send_mail_cod Tue Feb 18 22:32:05 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_32_05.pdf 20656704 imagette206567041739914325 20656705 change filename to text .change filename to text .change filename to text .imagette206567051739914325 20656706 change filename to text .change filename to text .change filename to text .imagette206567061739914325 20656707 imagette206567071739914326 20656709 change filename to text .imagette206567091739914326 20656712 change filename to text .change filename to text .change filename to text .imagette206567121739914326 20656713 imagette206567131739914326 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 .change filename to text .change filename to text .change filename to text .imagette206567031739914326 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 .change filename to text .change filename to text .imagette206567081739914327 20656710 change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .imagette206567101739914327 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[1338298780] : ('0.04771362772294767',) no score found for photo 1338298780 We are sending mail with results at report@fotonower.com args[1338298765] : ('0.04771362772294767',) no score found for photo 1338298765 We are sending mail with results at report@fotonower.com args[1338298762] : ('0.04771362772294767',) no score found for photo 1338298762 We are sending mail with results at report@fotonower.com args[1338298760] : ('0.04771362772294767',) no score found for photo 1338298760 We are sending mail with results at report@fotonower.com args[1338298756] : ('0.04771362772294767',) no score found for photo 1338298756 We are sending mail with results at report@fotonower.com args[1338298751] : ('0.04771362772294767',) no score found for photo 1338298751 We are sending mail with results at report@fotonower.com args[1338298749] : ('0.04771362772294767',) no score found for photo 1338298749 We are sending mail with results at report@fotonower.com refus_total : 0.04771362772294767 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 [1338298780, 1338298765, 1338298762, 1338298760, 1338298756, 1338298751, 1338298749] 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', None, '1338298780', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', None, '1338298765', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', None, '1338298762', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', None, '1338298760', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', None, '1338298756', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', None, '1338298751', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', None, '1338298749', None, None, None, None, None, '2597814') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 7 time used for this insertion : 0.012325525283813477 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.0271337032318115 time spend to save output : 0.01251220703125 total time spend for step 10 : 3.0396459102630615 step11:split_time_score Tue Feb 18 22:32: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 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 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 3.0994415283203125e-06 elapsed_time : order_list_meta_photo_and_scores 1.049041748046875e-05 ????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0009963512420654297 elapsed_time : insert_dashboard_record_day_entry 0.02285170555114746 We will return after consolidate but for now we need the day, how to get it, for now depending on the previous heavy steps find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656268 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656269 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656270 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656271 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656272 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656273 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656274 order by id desc limit 1 Qualite : 0.05161465064052396 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656275 order by id desc limit 1 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 11449 mask_detect is not consistent : 3 used against 2 in the step definition ! Step 11452 crop_condition have less inputs used (1) than in the step definition (2) : maybe we manage optionnal inputs ! Step 11452 crop_condition have less outputs used (2) than in the step definition (3) : some outputs may be not used ! Step 11453 merge_mask_thcl_custom have less inputs used (2) than in the step definition (3) : maybe we manage optionnal inputs ! WARNING : number of outputs for step 11453 merge_mask_thcl_custom is not consistent : 4 used against 2 in the step definition ! WARNING : number of inputs for step 11454 rle_unique_nms_with_priority is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 11454 rle_unique_nms_with_priority is not consistent : 2 used against 1 in the step definition ! Step 11478 crop_condition have less inputs used (1) than in the step definition (2) : maybe we manage optionnal inputs ! WARNING : number of outputs for step 11478 crop_condition is not consistent : 4 used against 3 in the step definition ! WARNING : number of inputs for step 11456 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 11456 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11455 final have less inputs used (2) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11455 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! Step 11458 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! WARNING : type of output 2 of step 11449 doesn't seem to be define in the database( WARNING : type of input 2 of step 11452 doesn't seem to be define in the database( WARNING : output 1 of step 11449 have datatype=2 whereas input 1 of step 11453 have datatype=7 WARNING : type of output 2 of step 11453 doesn't seem to be define in the database( WARNING : type of input 1 of step 11454 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : type of output 3 of step 11453 doesn't seem to be define in the database( WARNING : type of input 1 of step 11456 doesn't seem to be define in the database( WARNING : type of output 1 of step 11456 doesn't seem to be define in the database( WARNING : type of input 3 of step 11455 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 11456 have datatype=10 whereas input 3 of step 11458 have datatype=6 WARNING : type of input 5 of step 11458 doesn't seem to be define in the database( WARNING : output 0 of step 11477 have datatype=11 whereas input 5 of step 11458 have datatype=None WARNING : output 0 of step 11456 have datatype=10 whereas input 0 of step 11477 have datatype=18 WARNING : type of input 2 of step 11478 doesn't seem to be define in the database( WARNING : output 1 of step 11454 have datatype=7 whereas input 2 of step 11478 have datatype=None WARNING : type of output 3 of step 11478 doesn't seem to be define in the database( WARNING : type of input 2 of step 11456 doesn't seem to be define in the database( WARNING : output 0 of step 11453 have datatype=1 whereas input 0 of step 11454 have datatype=2 DataTypes for each output/input checked ! TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20656275 AND mptpi.`type`=3726 To do find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656276 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656277 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656278 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656279 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656280 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656281 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656282 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656283 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656284 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656285 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656286 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656287 order by id desc limit 1 Qualite : 0.056029600838106944 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656288 order by id desc limit 1 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 11449 mask_detect is not consistent : 3 used against 2 in the step definition ! Step 11452 crop_condition have less inputs used (1) than in the step definition (2) : maybe we manage optionnal inputs ! Step 11452 crop_condition have less outputs used (2) than in the step definition (3) : some outputs may be not used ! Step 11453 merge_mask_thcl_custom have less inputs used (2) than in the step definition (3) : maybe we manage optionnal inputs ! WARNING : number of outputs for step 11453 merge_mask_thcl_custom is not consistent : 4 used against 2 in the step definition ! WARNING : number of inputs for step 11454 rle_unique_nms_with_priority is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 11454 rle_unique_nms_with_priority is not consistent : 2 used against 1 in the step definition ! Step 11478 crop_condition have less inputs used (1) than in the step definition (2) : maybe we manage optionnal inputs ! WARNING : number of outputs for step 11478 crop_condition is not consistent : 4 used against 3 in the step definition ! WARNING : number of inputs for step 11456 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 11456 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11455 final have less inputs used (2) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11455 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! Step 11458 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! WARNING : type of output 2 of step 11449 doesn't seem to be define in the database( WARNING : type of input 2 of step 11452 doesn't seem to be define in the database( WARNING : output 1 of step 11449 have datatype=2 whereas input 1 of step 11453 have datatype=7 WARNING : type of output 2 of step 11453 doesn't seem to be define in the database( WARNING : type of input 1 of step 11454 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : type of output 3 of step 11453 doesn't seem to be define in the database( WARNING : type of input 1 of step 11456 doesn't seem to be define in the database( WARNING : type of output 1 of step 11456 doesn't seem to be define in the database( WARNING : type of input 3 of step 11455 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 11456 have datatype=10 whereas input 3 of step 11458 have datatype=6 WARNING : type of input 5 of step 11458 doesn't seem to be define in the database( WARNING : output 0 of step 11477 have datatype=11 whereas input 5 of step 11458 have datatype=None WARNING : output 0 of step 11456 have datatype=10 whereas input 0 of step 11477 have datatype=18 WARNING : type of input 2 of step 11478 doesn't seem to be define in the database( WARNING : output 1 of step 11454 have datatype=7 whereas input 2 of step 11478 have datatype=None WARNING : type of output 3 of step 11478 doesn't seem to be define in the database( WARNING : type of input 2 of step 11456 doesn't seem to be define in the database( WARNING : output 0 of step 11453 have datatype=1 whereas input 0 of step 11454 have datatype=2 DataTypes for each output/input checked ! TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20656288 AND mptpi.`type`=3726 To do find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656289 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656290 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656291 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656292 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656293 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656294 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656295 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656296 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656297 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656298 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656299 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656300 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656301 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656302 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656303 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656304 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656305 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656306 order by id desc limit 1 Qualite : 0.05733613433293486 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656307 order by id desc limit 1 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 11449 mask_detect is not consistent : 3 used against 2 in the step definition ! Step 11452 crop_condition have less inputs used (1) than in the step definition (2) : maybe we manage optionnal inputs ! Step 11452 crop_condition have less outputs used (2) than in the step definition (3) : some outputs may be not used ! Step 11453 merge_mask_thcl_custom have less inputs used (2) than in the step definition (3) : maybe we manage optionnal inputs ! WARNING : number of outputs for step 11453 merge_mask_thcl_custom is not consistent : 4 used against 2 in the step definition ! WARNING : number of inputs for step 11454 rle_unique_nms_with_priority is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 11454 rle_unique_nms_with_priority is not consistent : 2 used against 1 in the step definition ! Step 11478 crop_condition have less inputs used (1) than in the step definition (2) : maybe we manage optionnal inputs ! WARNING : number of outputs for step 11478 crop_condition is not consistent : 4 used against 3 in the step definition ! WARNING : number of inputs for step 11456 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 11456 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11455 final have less inputs used (2) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11455 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! Step 11458 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! WARNING : type of output 2 of step 11449 doesn't seem to be define in the database( WARNING : type of input 2 of step 11452 doesn't seem to be define in the database( WARNING : output 1 of step 11449 have datatype=2 whereas input 1 of step 11453 have datatype=7 WARNING : type of output 2 of step 11453 doesn't seem to be define in the database( WARNING : type of input 1 of step 11454 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : type of output 3 of step 11453 doesn't seem to be define in the database( WARNING : type of input 1 of step 11456 doesn't seem to be define in the database( WARNING : type of output 1 of step 11456 doesn't seem to be define in the database( WARNING : type of input 3 of step 11455 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 11456 have datatype=10 whereas input 3 of step 11458 have datatype=6 WARNING : type of input 5 of step 11458 doesn't seem to be define in the database( WARNING : output 0 of step 11477 have datatype=11 whereas input 5 of step 11458 have datatype=None WARNING : output 0 of step 11456 have datatype=10 whereas input 0 of step 11477 have datatype=18 WARNING : type of input 2 of step 11478 doesn't seem to be define in the database( WARNING : output 1 of step 11454 have datatype=7 whereas input 2 of step 11478 have datatype=None WARNING : type of output 3 of step 11478 doesn't seem to be define in the database( WARNING : type of input 2 of step 11456 doesn't seem to be define in the database( WARNING : output 0 of step 11453 have datatype=1 whereas input 0 of step 11454 have datatype=2 DataTypes for each output/input checked ! TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20656307 AND mptpi.`type`=3726 To do find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656308 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656309 order by id desc limit 1 Qualite : 0.14370025178687454 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656310 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 ! 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 7928 mask_detect is not consistent : 3 used against 2 in the step definition ! Step 8092 crop_condition have less inputs used (1) than in the step definition (2) : maybe we manage optionnal inputs ! WARNING : number of outputs for step 8092 crop_condition is not consistent : 4 used against 3 in the step definition ! WARNING : number of inputs for step 7933 rle_unique_nms_with_priority is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 7933 rle_unique_nms_with_priority is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 7935 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 7934 final have less inputs used (2) than in the step definition (3) : maybe we manage optionnal inputs ! Step 7934 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13649 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 9283 split_time_score have less inputs used (1) than in the step definition (2) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : type of output 1 of step 7935 doesn't seem to be define in the database( WARNING : type of input 3 of step 7934 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : type of input 1 of step 7935 doesn't seem to be define in the database( WARNING : output 1 of step 7933 have datatype=7 whereas input 1 of step 7935 have datatype=None WARNING : type of output 2 of step 7928 doesn't seem to be define in the database( WARNING : type of input 2 of step 8092 doesn't seem to be define in the database( WARNING : type of output 3 of step 8092 doesn't seem to be define in the database( WARNING : type of input 1 of step 7933 doesn't seem to be define in the database( WARNING : type of output 2 of step 7928 doesn't seem to be define in the database( WARNING : type of input 1 of step 10917 doesn't seem to be define in the database( WARNING : type of output 2 of step 7928 doesn't seem to be define in the database( WARNING : type of input 1 of step 10918 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 7935 have datatype=10 whereas input 3 of step 10916 have datatype=6 WARNING : output 0 of step 7935 have datatype=10 whereas input 0 of step 13649 have datatype=18 WARNING : type of output 1 of step 13649 doesn't seem to be define in the database( WARNING : type of input 5 of step 10916 doesn't seem to be define in the database( 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`=20656310 AND mptpi.`type`=3594 To do find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656311 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656312 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656313 order by id desc limit 1 Qualite : 0.056224834482821714 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656314 order by id desc limit 1 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 11500 mask_detect is not consistent : 3 used against 2 in the step definition ! WARNING : number of outputs for step 11508 brightness is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 11509 blur_detection is not consistent : 2 used against 1 in the step definition ! WARNING : number of inputs for step 11504 crop_condition is not consistent : 3 used against 2 in the step definition ! Step 11504 crop_condition have less outputs used (2) than in the step definition (3) : some outputs may be not used ! Step 11507 merge_mask_thcl_custom have less inputs used (2) than in the step definition (3) : maybe we manage optionnal inputs ! WARNING : number of outputs for step 11507 merge_mask_thcl_custom is not consistent : 3 used against 2 in the step definition ! WARNING : number of inputs for step 11501 rle_unique_nms_with_priority is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 11501 rle_unique_nms_with_priority is not consistent : 2 used against 1 in the step definition ! Step 11576 crop_condition have less inputs used (1) than in the step definition (2) : maybe we manage optionnal inputs ! WARNING : number of outputs for step 11576 crop_condition is not consistent : 4 used against 3 in the step definition ! WARNING : number of outputs for step 11503 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11502 final have less inputs used (2) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11502 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! Step 11511 split_time_score have less inputs used (1) than in the step definition (2) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : type of output 1 of step 11503 doesn't seem to be define in the database( WARNING : type of input 3 of step 11502 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : type of output 2 of step 11500 doesn't seem to be define in the database( WARNING : type of input 2 of step 11504 doesn't seem to be define in the database( WARNING : output 1 of step 11500 have datatype=2 whereas input 1 of step 11507 have datatype=7 WARNING : type of output 2 of step 11507 doesn't seem to be define in the database( WARNING : type of input 1 of step 11501 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 11503 have datatype=10 whereas input 3 of step 11510 have datatype=6 WARNING : type of input 2 of step 11576 doesn't seem to be define in the database( WARNING : output 1 of step 11501 have datatype=7 whereas input 2 of step 11576 have datatype=None WARNING : type of output 3 of step 11576 doesn't seem to be define in the database( WARNING : type of input 1 of step 11503 doesn't seem to be define in the database( WARNING : output 0 of step 11503 have datatype=10 whereas input 0 of step 11582 have datatype=18 WARNING : type of input 5 of step 11510 doesn't seem to be define in the database( WARNING : output 0 of step 11582 have datatype=11 whereas input 5 of step 11510 have datatype=None WARNING : type of output 1 of step 11508 doesn't seem to be define in the database( WARNING : type of input 3 of step 11504 doesn't seem to be define in the database( WARNING : type of output 1 of step 11509 doesn't seem to be define in the database( WARNING : type of input 3 of step 11504 doesn't seem to be define in the database( WARNING : output 0 of step 11507 have datatype=1 whereas input 0 of step 11501 have datatype=2 DataTypes for each output/input checked ! TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20656314 AND mptpi.`type`=4207 To do NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'18022025': {'nb_upload': 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 [1338298780, 1338298765, 1338298762, 1338298760, 1338298756, 1338298751, 1338298749] 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', None, '1338298780', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', None, '1338298765', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', None, '1338298762', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', None, '1338298760', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', None, '1338298756', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', None, '1338298751', None, None, None, None, None, '2597814') ('3459', None, None, None, None, None, None, None, '2597814') ('3459', None, '1338298749', None, None, None, None, None, '2597814') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 8 time used for this insertion : 0.013608932495117188 save_final save missing photos in datou_result : time spend for datou_step_exec : 35.13580060005188 time spend to save output : 0.013786792755126953 total time spend for step 11 : 35.14958739280701 caffe_path_current : About to save ! 2 After save, about to update current ! ret : 2 len(input) + len(total_photo_id_missing) : 7 set_done_treatment 101.49user 114.19system 4:20.16elapsed 82%CPU (0avgtext+0avgdata 3757312maxresident)k 1477272inputs+58944outputs (12549major+8898946minor)pagefaults 0swaps