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 : 3927735 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 : 18>10 please execute split_portfolio.py -i 21269001 -l 10 size over we load limit photo not treated list_input_json: [] Current got : datou_id : 3459, datou_cur_ids : ['2657379'] with mtr_portfolio_ids : ['21269001'] and first list_photo_ids : [] new path : /proc/3927735/ Inside batchDatouExec : verbose : 0 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 11449 mask_detect is not consistent : 3 used against 2 in the step definition ! Step 11452 crop_condition have less inputs used (1) than in the step definition (2) : maybe we manage optionnal inputs ! Step 11452 crop_condition have less outputs used (2) than in the step definition (3) : some outputs may be not used ! Step 11453 merge_mask_thcl_custom have less inputs used (2) than in the step definition (3) : maybe we manage optionnal inputs ! WARNING : number of outputs for step 11453 merge_mask_thcl_custom is not consistent : 4 used against 2 in the step definition ! WARNING : number of inputs for step 11454 rle_unique_nms_with_priority is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 11454 rle_unique_nms_with_priority is not consistent : 2 used against 1 in the step definition ! Step 11478 crop_condition have less inputs used (1) than in the step definition (2) : maybe we manage optionnal inputs ! WARNING : number of outputs for step 11478 crop_condition is not consistent : 4 used against 3 in the step definition ! WARNING : number of inputs for step 11456 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 11456 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11455 final have less inputs used (2) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11455 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! Step 11458 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! WARNING : type of output 2 of step 11449 doesn't seem to be define in the database( WARNING : type of input 2 of step 11452 doesn't seem to be define in the database( WARNING : output 1 of step 11449 have datatype=2 whereas input 1 of step 11453 have datatype=7 WARNING : type of output 2 of step 11453 doesn't seem to be define in the database( WARNING : type of input 1 of step 11454 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : type of output 3 of step 11453 doesn't seem to be define in the database( WARNING : type of input 1 of step 11456 doesn't seem to be define in the database( WARNING : type of output 1 of step 11456 doesn't seem to be define in the database( WARNING : type of input 3 of step 11455 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 11456 have datatype=10 whereas input 3 of step 11458 have datatype=6 WARNING : type of input 5 of step 11458 doesn't seem to be define in the database( WARNING : output 0 of step 11477 have datatype=11 whereas input 5 of step 11458 have datatype=None WARNING : output 0 of step 11456 have datatype=10 whereas input 0 of step 11477 have datatype=18 WARNING : type of input 2 of step 11478 doesn't seem to be define in the database( WARNING : output 1 of step 11454 have datatype=7 whereas input 2 of step 11478 have datatype=None WARNING : type of output 3 of step 11478 doesn't seem to be define in the database( WARNING : type of input 2 of step 11456 doesn't seem to be define in the database( WARNING : output 0 of step 11453 have datatype=1 whereas input 0 of step 11454 have datatype=2 DataTypes for each output/input checked ! List Step Type Loaded in datou : mask_detect, crop_condition, thcl, merge_mask_thcl_custom, rle_unique_nms_with_priority, crop_condition, ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score list_input_json : [] origin We have 1 , WARNING: data may be incomplete, need to offset and complete ! BFBFBFBFBFBFBFBFBFBFwe have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB length of list_filenames : 10 ; length of list_pids : 10 ; length of list_args : 10 time to download the photos : 1.417057752609253 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 Mar 11 09:02:28 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Beginning of datou step mask_detect ! save_polygon : True begin detect begin to check gpu status inside check gpu memory l 3637 free memory gpu now : 10372 max_wait_temp : 1 max_wait : 0 gpu_flag : 0 2025-03-11 09:02:32.199468: I tensorflow/core/platform/cpu_feature_guard.cc:143] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA 2025-03-11 09:02:32.235204: I tensorflow/core/platform/profile_utils/cpu_utils.cc:102] CPU Frequency: 3493065000 Hz 2025-03-11 09:02:32.240008: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x7f0cbc000b60 initialized for platform Host (this does not guarantee that XLA will be used). Devices: 2025-03-11 09:02:32.240063: I tensorflow/compiler/xla/service/service.cc:176] StreamExecutor device (0): Host, Default Version 2025-03-11 09:02:32.243780: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcuda.so.1 2025-03-11 09:02:32.536444: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x42ccdd80 initialized for platform CUDA (this does not guarantee that XLA will be used). Devices: 2025-03-11 09:02:32.536502: I tensorflow/compiler/xla/service/service.cc:176] StreamExecutor device (0): NVIDIA GeForce RTX 2080 Ti, Compute Capability 7.5 2025-03-11 09:02:32.538006: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1561] Found device 0 with properties: pciBusID: 0000:41:00.0 name: NVIDIA GeForce RTX 2080 Ti computeCapability: 7.5 coreClock: 1.545GHz coreCount: 68 deviceMemorySize: 10.76GiB deviceMemoryBandwidth: 573.69GiB/s 2025-03-11 09:02:32.539456: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1 2025-03-11 09:02:32.547212: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcublas.so.10 2025-03-11 09:02:32.556636: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcufft.so.10 2025-03-11 09:02:32.558355: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcurand.so.10 2025-03-11 09:02:32.569885: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusolver.so.10 2025-03-11 09:02:32.572981: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusparse.so.10 2025-03-11 09:02:32.597363: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudnn.so.7 2025-03-11 09:02:32.599193: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1703] Adding visible gpu devices: 0 2025-03-11 09:02:32.599649: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1 2025-03-11 09:02:32.600622: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1102] Device interconnect StreamExecutor with strength 1 edge matrix: 2025-03-11 09:02:32.600645: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1108] 0 2025-03-11 09:02:32.600657: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1121] 0: N 2025-03-11 09:02:32.602458: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1247] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 9607 MB memory) -> physical GPU (device: 0, name: NVIDIA GeForce RTX 2080 Ti, pci bus id: 0000:41:00.0, compute capability: 7.5) WARNING:tensorflow:From /home/admin/workarea/git/Velours/python/mtr/mask_rcnn/mask_detection.py:69: The name tf.keras.backend.set_session is deprecated. Please use tf.compat.v1.keras.backend.set_session instead. 2025-03-11 09:02:32.992135: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1561] Found device 0 with properties: pciBusID: 0000:41:00.0 name: NVIDIA GeForce RTX 2080 Ti computeCapability: 7.5 coreClock: 1.545GHz coreCount: 68 deviceMemorySize: 10.76GiB deviceMemoryBandwidth: 573.69GiB/s 2025-03-11 09:02:32.992273: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1 2025-03-11 09:02:32.992299: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcublas.so.10 2025-03-11 09:02:32.992321: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcufft.so.10 2025-03-11 09:02:32.992342: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcurand.so.10 2025-03-11 09:02:32.992363: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusolver.so.10 2025-03-11 09:02:32.992386: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusparse.so.10 2025-03-11 09:02:32.992408: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudnn.so.7 2025-03-11 09:02:32.994076: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1703] Adding visible gpu devices: 0 2025-03-11 09:02:32.995638: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1561] Found device 0 with properties: pciBusID: 0000:41:00.0 name: NVIDIA GeForce RTX 2080 Ti computeCapability: 7.5 coreClock: 1.545GHz coreCount: 68 deviceMemorySize: 10.76GiB deviceMemoryBandwidth: 573.69GiB/s 2025-03-11 09:02:32.995716: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1 2025-03-11 09:02:32.995745: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcublas.so.10 2025-03-11 09:02:32.995766: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcufft.so.10 2025-03-11 09:02:32.995789: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcurand.so.10 2025-03-11 09:02:32.995810: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusolver.so.10 2025-03-11 09:02:32.995829: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusparse.so.10 2025-03-11 09:02:32.995853: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudnn.so.7 2025-03-11 09:02:32.997477: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1703] Adding visible gpu devices: 0 2025-03-11 09:02:32.997517: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1102] Device interconnect StreamExecutor with strength 1 edge matrix: 2025-03-11 09:02:32.997530: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1108] 0 2025-03-11 09:02:32.997541: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1121] 0: N 2025-03-11 09:02:32.999266: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1247] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 9607 MB memory) -> physical GPU (device: 0, name: NVIDIA GeForce RTX 2080 Ti, pci bus id: 0000:41:00.0, compute capability: 7.5) Using TensorFlow backend. WARNING:tensorflow:From /home/admin/workarea/install/Mask_RCNN/model.py:396: calling crop_and_resize_v1 (from tensorflow.python.ops.image_ops_impl) with box_ind is deprecated and will be removed in a future version. Instructions for updating: box_ind is deprecated, use box_indices instead WARNING:tensorflow:From /home/admin/workarea/install/Mask_RCNN/model.py:703: to_int32 (from tensorflow.python.ops.math_ops) is deprecated and will be removed in a future version. Instructions for updating: Use `tf.cast` instead. WARNING:tensorflow:From /home/admin/workarea/install/Mask_RCNN/model.py:729: to_float (from tensorflow.python.ops.math_ops) is deprecated and will be removed in a future version. Instructions for updating: Use `tf.cast` instead. Inside mask_sub_process Inside mask_detect About to load cache.load_thcl_param To do loadFromThcl(), then load ParamDescType : thcl2896 thcls : [{'id': 2896, 'mtr_user_id': 31, 'name': 'learn_convoyeur_qualipapia_nantes_poly_100521_1', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'background,carton_brun,carton_gris,cartonnette,kraft,autre_refus,metal,plastique,teint_dans_la_masse,environnement', 'svm_portfolios_learning': '0,0,0,0,0,0,0,0,0,0', 'photo_hashtag_type': 3663, 'photo_desc_type': 5309, 'type_classification': 'mask_rcnn', 'hashtag_id_list': '0,0,0,0,0,0,0,0,0,0'}] thcl {'id': 2896, 'mtr_user_id': 31, 'name': 'learn_convoyeur_qualipapia_nantes_poly_100521_1', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'background,carton_brun,carton_gris,cartonnette,kraft,autre_refus,metal,plastique,teint_dans_la_masse,environnement', 'svm_portfolios_learning': '0,0,0,0,0,0,0,0,0,0', 'photo_hashtag_type': 3663, 'photo_desc_type': 5309, 'type_classification': 'mask_rcnn', 'hashtag_id_list': '0,0,0,0,0,0,0,0,0,0'} Update svm_hashtag_type_desc : 5309 FOUND : 1 Here is data_from_sql_as_vec to set the ParamDescriptorType : (5309, 'learn_convoyeur_qualipapia_nantes_poly_100521_1', 16384, 25088, 'learn_convoyeur_qualipapia_nantes_poly_100521_1', 'pool5', 10.0, None, None, 256, None, 0, None, 8, None, None, -1000.0, 1, datetime.datetime(2021, 5, 10, 19, 20, 46), datetime.datetime(2021, 5, 10, 19, 20, 46)) {'thcl': {'id': 2896, 'mtr_user_id': 31, 'name': 'learn_convoyeur_qualipapia_nantes_poly_100521_1', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'background,carton_brun,carton_gris,cartonnette,kraft,autre_refus,metal,plastique,teint_dans_la_masse,environnement', 'svm_portfolios_learning': '0,0,0,0,0,0,0,0,0,0', 'photo_hashtag_type': 3663, 'photo_desc_type': 5309, 'type_classification': 'mask_rcnn', 'hashtag_id_list': '0,0,0,0,0,0,0,0,0,0'}, 'list_hashtags': ['background', 'carton_brun', 'carton_gris', 'cartonnette', 'kraft', 'autre_refus', 'metal', 'plastique', 'teint_dans_la_masse', 'environnement'], 'list_hashtags_csv': 'background,carton_brun,carton_gris,cartonnette,kraft,autre_refus,metal,plastique,teint_dans_la_masse,environnement', 'svm_portfolios_learning': '0,0,0,0,0,0,0,0,0,0', 'photo_hashtag_type': 3663, 'svm_hashtag_type_desc': 5309, 'photo_desc_type': 5309, 'pb_hashtag_id_or_classifier': 0} list_class_names : ['background', 'carton_brun', 'carton_gris', 'cartonnette', 'kraft', 'autre_refus', 'metal', 'plastique', 'teint_dans_la_masse', 'environnement'] Configurations: BACKBONE resnet101 BACKBONE_SHAPES [[160 160] [ 80 80] [ 40 40] [ 20 20] [ 10 10]] BACKBONE_STRIDES [4, 8, 16, 32, 64] BATCH_SIZE 1 BBOX_STD_DEV [0.1 0.1 0.2 0.2] DETECTION_MAX_INSTANCES 100 DETECTION_MIN_CONFIDENCE 0.3 DETECTION_NMS_THRESHOLD 0.3 GPU_COUNT 1 IMAGES_PER_GPU 1 IMAGE_MAX_DIM 640 IMAGE_MIN_DIM 640 IMAGE_PADDING True IMAGE_SHAPE [640 640 3] LEARNING_MOMENTUM 0.9 LEARNING_RATE 0.001 LOSS_WEIGHTS {'rpn_class_loss': 1.0, 'rpn_bbox_loss': 1.0, 'mrcnn_class_loss': 1.0, 'mrcnn_bbox_loss': 1.0, 'mrcnn_mask_loss': 1.0} MASK_POOL_SIZE 14 MASK_SHAPE [28, 28] MAX_GT_INSTANCES 100 MEAN_PIXEL [123.7 116.8 103.9] MINI_MASK_SHAPE (56, 56) NAME learn_convoyeur_qualipapia_nantes_poly_100521_1 NUM_CLASSES 10 POOL_SIZE 7 POST_NMS_ROIS_INFERENCE 1000 POST_NMS_ROIS_TRAINING 2000 ROI_POSITIVE_RATIO 0.33 RPN_ANCHOR_RATIOS [0.5, 1, 2] RPN_ANCHOR_SCALES (16, 32, 64, 128, 256) RPN_ANCHOR_STRIDE 1 RPN_BBOX_STD_DEV [0.1 0.1 0.2 0.2] RPN_NMS_THRESHOLD 0.7 RPN_TRAIN_ANCHORS_PER_IMAGE 256 STEPS_PER_EPOCH 1000 TRAIN_ROIS_PER_IMAGE 200 USE_MINI_MASK True USE_RPN_ROIS True VALIDATION_STEPS 50 WEIGHT_DECAY 0.0001 model_param file didn't exist model_name : learn_convoyeur_qualipapia_nantes_poly_100521_1 model_type : mask_rcnn list file need : ['mask_model.h5'] file exist in s3 : ['mask_model.h5'] file manque in s3 : [] 2025-03-11 09:02:44.270053: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcublas.so.10 2025-03-11 09:02:44.489789: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudnn.so.7 local folder : /data/models_weight/learn_convoyeur_qualipapia_nantes_poly_100521_1 /data/models_weight/learn_convoyeur_qualipapia_nantes_poly_100521_1/mask_model.h5 size_local : 256031040 size in s3 : 256031040 create time local : 2021-08-09 05:45:48 create time in s3 : 2021-08-06 18:59:51 mask_model.h5 already exist and didn't need to update list_images length : 10 NEW PHOTO Processing 1 images image shape: (2160, 3264, 3) min: 0.00000 max: 255.00000 molded_images shape: (1, 640, 640, 3) min: -123.70000 max: 151.10000 image_metas shape: (1, 18) min: 0.00000 max: 3264.00000 nb d'objets trouves : 17 NEW PHOTO Processing 1 images image shape: (2160, 3264, 3) min: 0.00000 max: 255.00000 molded_images shape: (1, 640, 640, 3) min: -123.70000 max: 151.01273 image_metas shape: (1, 18) min: 0.00000 max: 3264.00000 nb d'objets trouves : 24 NEW PHOTO Processing 1 images image shape: (2160, 3264, 3) min: 0.00000 max: 255.00000 molded_images shape: (1, 640, 640, 3) min: -123.70000 max: 151.10000 image_metas shape: (1, 18) min: 0.00000 max: 3264.00000 nb d'objets trouves : 4 NEW PHOTO Processing 1 images image shape: (2160, 3264, 3) min: 0.00000 max: 255.00000 molded_images shape: (1, 640, 640, 3) min: -123.70000 max: 151.10000 image_metas shape: (1, 18) min: 0.00000 max: 3264.00000 nb d'objets trouves : 2 NEW PHOTO Processing 1 images image shape: (2160, 3264, 3) min: 0.00000 max: 255.00000 molded_images shape: (1, 640, 640, 3) min: -123.70000 max: 151.10000 image_metas shape: (1, 18) min: 0.00000 max: 3264.00000 nb d'objets trouves : 15 NEW PHOTO Processing 1 images image shape: (2160, 3264, 3) min: 0.00000 max: 255.00000 molded_images shape: (1, 640, 640, 3) min: -123.70000 max: 151.10000 image_metas shape: (1, 18) min: 0.00000 max: 3264.00000 nb d'objets trouves : 19 NEW PHOTO Processing 1 images image shape: (2160, 3264, 3) min: 0.00000 max: 255.00000 molded_images shape: (1, 640, 640, 3) min: -123.70000 max: 151.10000 image_metas shape: (1, 18) min: 0.00000 max: 3264.00000 nb d'objets trouves : 11 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 : 8 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 : 8 NEW PHOTO Processing 1 images image shape: (2160, 3264, 3) min: 0.00000 max: 255.00000 molded_images shape: (1, 640, 640, 3) min: -123.70000 max: 151.10000 image_metas shape: (1, 18) min: 0.00000 max: 3264.00000 nb d'objets trouves : 17 Detection mask done ! Trying to reset tf kernel 3928207 begin to check gpu status inside check gpu memory l 3610 free memory gpu now : 5083 tf kernel not reseted sub process len(results) : 10 len(list_Values) 0 None max_time_sub_proc : 3600 parent process len(results) : 10 len(list_Values) 0 process is alive finish correctly or not : True after detect begin to check gpu status inside check gpu memory l 3610 free memory gpu now : 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.00440216064453125 nb_pixel_total : 203356 time to create 1 rle with new method : 0.013869762420654297 length of segment : 508 time for calcul the mask position with numpy : 0.003733396530151367 nb_pixel_total : 158230 time to create 1 rle with new method : 0.010019779205322266 length of segment : 562 time for calcul the mask position with numpy : 0.0011012554168701172 nb_pixel_total : 52172 time to create 1 rle with old method : 0.06574892997741699 length of segment : 267 time for calcul the mask position with numpy : 0.0007672309875488281 nb_pixel_total : 41684 time to create 1 rle with old method : 0.05008101463317871 length of segment : 340 time for calcul the mask position with numpy : 0.020900249481201172 nb_pixel_total : 846776 time to create 1 rle with new method : 0.6536879539489746 length of segment : 1878 time for calcul the mask position with numpy : 0.00033974647521972656 nb_pixel_total : 4238 time to create 1 rle with old method : 0.0056955814361572266 length of segment : 89 time for calcul the mask position with numpy : 0.0005567073822021484 nb_pixel_total : 27725 time to create 1 rle with old method : 0.03453850746154785 length of segment : 296 time for calcul the mask position with numpy : 0.0026078224182128906 nb_pixel_total : 136458 time to create 1 rle with old method : 0.20261931419372559 length of segment : 384 time for calcul the mask position with numpy : 0.00011849403381347656 nb_pixel_total : 3616 time to create 1 rle with old method : 0.004671573638916016 length of segment : 61 time for calcul the mask position with numpy : 0.0005576610565185547 nb_pixel_total : 17954 time to create 1 rle with old method : 0.022159099578857422 length of segment : 358 time for calcul the mask position with numpy : 0.0060558319091796875 nb_pixel_total : 219742 time to create 1 rle with new method : 0.01675558090209961 length of segment : 821 time for calcul the mask position with numpy : 0.0007569789886474609 nb_pixel_total : 30863 time to create 1 rle with old method : 0.054349422454833984 length of segment : 254 time for calcul the mask position with numpy : 0.0004544258117675781 nb_pixel_total : 12048 time to create 1 rle with old method : 0.016750097274780273 length of segment : 124 time for calcul the mask position with numpy : 0.0007894039154052734 nb_pixel_total : 48114 time to create 1 rle with old method : 0.05669116973876953 length of segment : 338 time for calcul the mask position with numpy : 0.002134561538696289 nb_pixel_total : 121225 time to create 1 rle with old method : 0.1485748291015625 length of segment : 686 time for calcul the mask position with numpy : 0.0016989707946777344 nb_pixel_total : 110575 time to create 1 rle with old method : 0.12959623336791992 length of segment : 352 time for calcul the mask position with numpy : 0.0003783702850341797 nb_pixel_total : 18333 time to create 1 rle with old method : 0.021062374114990234 length of segment : 249 time for calcul the mask position with numpy : 0.001791238784790039 nb_pixel_total : 124691 time to create 1 rle with old method : 0.14721298217773438 length of segment : 417 time for calcul the mask position with numpy : 0.03459739685058594 nb_pixel_total : 744193 time to create 1 rle with new method : 0.35701942443847656 length of segment : 1993 time for calcul the mask position with numpy : 0.00168609619140625 nb_pixel_total : 24994 time to create 1 rle with old method : 0.028586864471435547 length of segment : 319 time for calcul the mask position with numpy : 9.179115295410156e-05 nb_pixel_total : 1906 time to create 1 rle with old method : 0.002372264862060547 length of segment : 41 time for calcul the mask position with numpy : 0.0008676052093505859 nb_pixel_total : 14791 time to create 1 rle with old method : 0.018288612365722656 length of segment : 116 time for calcul the mask position with numpy : 0.00034499168395996094 nb_pixel_total : 3732 time to create 1 rle with old method : 0.004741668701171875 length of segment : 82 time for calcul the mask position with numpy : 0.002210855484008789 nb_pixel_total : 50893 time to create 1 rle with old method : 0.05986666679382324 length of segment : 473 time for calcul the mask position with numpy : 0.005822181701660156 nb_pixel_total : 176249 time to create 1 rle with new method : 0.00848078727722168 length of segment : 567 time for calcul the mask position with numpy : 0.0003161430358886719 nb_pixel_total : 6284 time to create 1 rle with old method : 0.008383750915527344 length of segment : 132 time for calcul the mask position with numpy : 8.058547973632812e-05 nb_pixel_total : 1878 time to create 1 rle with old method : 0.002671480178833008 length of segment : 35 time for calcul the mask position with numpy : 0.0007345676422119141 nb_pixel_total : 13743 time to create 1 rle with old method : 0.020666122436523438 length of segment : 196 time for calcul the mask position with numpy : 0.003782987594604492 nb_pixel_total : 138880 time to create 1 rle with old method : 0.16658759117126465 length of segment : 427 time for calcul the mask position with numpy : 0.010649681091308594 nb_pixel_total : 252016 time to create 1 rle with new method : 0.02433633804321289 length of segment : 882 time for calcul the mask position with numpy : 0.0023589134216308594 nb_pixel_total : 141689 time to create 1 rle with old method : 0.1751706600189209 length of segment : 437 time for calcul the mask position with numpy : 0.002470731735229492 nb_pixel_total : 50510 time to create 1 rle with old method : 0.06037306785583496 length of segment : 452 time for calcul the mask position with numpy : 0.0012226104736328125 nb_pixel_total : 49553 time to create 1 rle with old method : 0.0600895881652832 length of segment : 401 time for calcul the mask position with numpy : 0.001356363296508789 nb_pixel_total : 44611 time to create 1 rle with old method : 0.05359339714050293 length of segment : 286 time for calcul the mask position with numpy : 0.002646207809448242 nb_pixel_total : 94611 time to create 1 rle with old method : 0.11227798461914062 length of segment : 402 time for calcul the mask position with numpy : 0.00031113624572753906 nb_pixel_total : 6674 time to create 1 rle with old method : 0.008712053298950195 length of segment : 83 time for calcul the mask position with numpy : 0.0009734630584716797 nb_pixel_total : 48261 time to create 1 rle with old method : 0.061798095703125 length of segment : 264 time for calcul the mask position with numpy : 0.5145618915557861 nb_pixel_total : 3578391 time to create 1 rle with new method : 0.7846701145172119 length of segment : 5009 time for calcul the mask position with numpy : 0.009470939636230469 nb_pixel_total : 468640 time to create 1 rle with new method : 0.025237321853637695 length of segment : 1250 time for calcul the mask position with numpy : 0.0021772384643554688 nb_pixel_total : 143664 time to create 1 rle with old method : 0.16999077796936035 length of segment : 361 time for calcul the mask position with numpy : 0.02327585220336914 nb_pixel_total : 1338333 time to create 1 rle with new method : 0.09938955307006836 length of segment : 2871 time for calcul the mask position with numpy : 0.37654542922973633 nb_pixel_total : 4953764 time to create 1 rle with new method : 0.6831200122833252 length of segment : 3660 time for calcul the mask position with numpy : 0.0010690689086914062 nb_pixel_total : 51176 time to create 1 rle with old method : 0.061577558517456055 length of segment : 502 time for calcul the mask position with numpy : 0.005008220672607422 nb_pixel_total : 200157 time to create 1 rle with new method : 0.009354352951049805 length of segment : 576 time for calcul the mask position with numpy : 0.006083965301513672 nb_pixel_total : 278933 time to create 1 rle with new method : 0.010212182998657227 length of segment : 766 time for calcul the mask position with numpy : 0.0003399848937988281 nb_pixel_total : 8635 time to create 1 rle with old method : 0.01104736328125 length of segment : 108 time for calcul the mask position with numpy : 0.0007352828979492188 nb_pixel_total : 25976 time to create 1 rle with old method : 0.03173422813415527 length of segment : 193 time for calcul the mask position with numpy : 0.006846427917480469 nb_pixel_total : 359718 time to create 1 rle with new method : 0.012190580368041992 length of segment : 733 time for calcul the mask position with numpy : 0.0028727054595947266 nb_pixel_total : 139328 time to create 1 rle with old method : 0.15515375137329102 length of segment : 905 time for calcul the mask position with numpy : 0.0006768703460693359 nb_pixel_total : 26839 time to create 1 rle with old method : 0.031237125396728516 length of segment : 198 time for calcul the mask position with numpy : 0.0031287670135498047 nb_pixel_total : 143539 time to create 1 rle with old method : 0.16644501686096191 length of segment : 410 time for calcul the mask position with numpy : 0.0016200542449951172 nb_pixel_total : 60070 time to create 1 rle with old method : 0.07438158988952637 length of segment : 278 time for calcul the mask position with numpy : 0.00015878677368164062 nb_pixel_total : 1943 time to create 1 rle with old method : 0.002420663833618164 length of segment : 68 time for calcul the mask position with numpy : 8.606910705566406e-05 nb_pixel_total : 970 time to create 1 rle with old method : 0.0013675689697265625 length of segment : 47 time for calcul the mask position with numpy : 0.00020551681518554688 nb_pixel_total : 3260 time to create 1 rle with old method : 0.004700422286987305 length of segment : 59 time for calcul the mask position with numpy : 0.0015516281127929688 nb_pixel_total : 27058 time to create 1 rle with old method : 0.03834819793701172 length of segment : 311 time for calcul the mask position with numpy : 0.00470423698425293 nb_pixel_total : 170410 time to create 1 rle with new method : 0.00616145133972168 length of segment : 552 time for calcul the mask position with numpy : 0.0001628398895263672 nb_pixel_total : 2349 time to create 1 rle with old method : 0.0029523372650146484 length of segment : 60 time for calcul the mask position with numpy : 0.002047300338745117 nb_pixel_total : 79619 time to create 1 rle with old method : 0.09320497512817383 length of segment : 405 time for calcul the mask position with numpy : 0.0008022785186767578 nb_pixel_total : 22543 time to create 1 rle with old method : 0.02794337272644043 length of segment : 248 time for calcul the mask position with numpy : 0.0023338794708251953 nb_pixel_total : 97667 time to create 1 rle with old method : 0.11469221115112305 length of segment : 501 time for calcul the mask position with numpy : 0.0009372234344482422 nb_pixel_total : 38751 time to create 1 rle with old method : 0.04897594451904297 length of segment : 260 time for calcul the mask position with numpy : 0.0003757476806640625 nb_pixel_total : 5518 time to create 1 rle with old method : 0.007124423980712891 length of segment : 151 time for calcul the mask position with numpy : 0.0010573863983154297 nb_pixel_total : 27472 time to create 1 rle with old method : 0.03283500671386719 length of segment : 285 time for calcul the mask position with numpy : 0.0016489028930664062 nb_pixel_total : 91782 time to create 1 rle with old method : 0.1061713695526123 length of segment : 427 time for calcul the mask position with numpy : 0.0009007453918457031 nb_pixel_total : 32538 time to create 1 rle with old method : 0.03974723815917969 length of segment : 182 time for calcul the mask position with numpy : 0.00019860267639160156 nb_pixel_total : 4515 time to create 1 rle with old method : 0.0057146549224853516 length of segment : 89 time for calcul the mask position with numpy : 0.00016880035400390625 nb_pixel_total : 2590 time to create 1 rle with old method : 0.0033490657806396484 length of segment : 52 time for calcul the mask position with numpy : 0.0007703304290771484 nb_pixel_total : 29027 time to create 1 rle with old method : 0.033738136291503906 length of segment : 451 time for calcul the mask position with numpy : 0.0006158351898193359 nb_pixel_total : 14525 time to create 1 rle with old method : 0.016733646392822266 length of segment : 188 time for calcul the mask position with numpy : 0.0005216598510742188 nb_pixel_total : 13186 time to create 1 rle with old method : 0.015871763229370117 length of segment : 316 time for calcul the mask position with numpy : 0.00013709068298339844 nb_pixel_total : 2027 time to create 1 rle with old method : 0.0025796890258789062 length of segment : 60 time for calcul the mask position with numpy : 0.0014023780822753906 nb_pixel_total : 38605 time to create 1 rle with old method : 0.04809856414794922 length of segment : 383 time for calcul the mask position with numpy : 0.0001881122589111328 nb_pixel_total : 1771 time to create 1 rle with old method : 0.0022270679473876953 length of segment : 86 time for calcul the mask position with numpy : 0.0019795894622802734 nb_pixel_total : 63990 time to create 1 rle with old method : 0.08062124252319336 length of segment : 355 time for calcul the mask position with numpy : 0.0020241737365722656 nb_pixel_total : 88261 time to create 1 rle with old method : 0.10651373863220215 length of segment : 602 time for calcul the mask position with numpy : 0.0013539791107177734 nb_pixel_total : 97965 time to create 1 rle with old method : 0.11721086502075195 length of segment : 530 time for calcul the mask position with numpy : 0.0022950172424316406 nb_pixel_total : 103307 time to create 1 rle with old method : 0.12261676788330078 length of segment : 278 time for calcul the mask position with numpy : 9.489059448242188e-05 nb_pixel_total : 908 time to create 1 rle with old method : 0.0012009143829345703 length of segment : 43 time for calcul the mask position with numpy : 0.0031447410583496094 nb_pixel_total : 162480 time to create 1 rle with new method : 0.004344463348388672 length of segment : 461 time for calcul the mask position with numpy : 0.0013816356658935547 nb_pixel_total : 48003 time to create 1 rle with old method : 0.05499911308288574 length of segment : 467 time for calcul the mask position with numpy : 0.001493215560913086 nb_pixel_total : 59651 time to create 1 rle with old method : 0.06890654563903809 length of segment : 362 time for calcul the mask position with numpy : 0.0011882781982421875 nb_pixel_total : 58509 time to create 1 rle with old method : 0.06892800331115723 length of segment : 338 time for calcul the mask position with numpy : 0.0006036758422851562 nb_pixel_total : 18745 time to create 1 rle with old method : 0.022617816925048828 length of segment : 224 time for calcul the mask position with numpy : 0.0017538070678710938 nb_pixel_total : 72102 time to create 1 rle with old method : 0.08469796180725098 length of segment : 401 time for calcul the mask position with numpy : 0.002062082290649414 nb_pixel_total : 82696 time to create 1 rle with old method : 0.09992170333862305 length of segment : 357 time for calcul the mask position with numpy : 0.0005509853363037109 nb_pixel_total : 17532 time to create 1 rle with old method : 0.0208132266998291 length of segment : 107 time for calcul the mask position with numpy : 0.0014979839324951172 nb_pixel_total : 62240 time to create 1 rle with old method : 0.07060718536376953 length of segment : 267 time for calcul the mask position with numpy : 0.0005929470062255859 nb_pixel_total : 18298 time to create 1 rle with old method : 0.021576642990112305 length of segment : 209 time for calcul the mask position with numpy : 0.0014178752899169922 nb_pixel_total : 54399 time to create 1 rle with old method : 0.06522297859191895 length of segment : 425 time for calcul the mask position with numpy : 0.0015909671783447266 nb_pixel_total : 92370 time to create 1 rle with old method : 0.11437559127807617 length of segment : 402 time for calcul the mask position with numpy : 0.0009505748748779297 nb_pixel_total : 31140 time to create 1 rle with old method : 0.03994584083557129 length of segment : 249 time for calcul the mask position with numpy : 0.005896091461181641 nb_pixel_total : 280252 time to create 1 rle with new method : 0.010642290115356445 length of segment : 895 time for calcul the mask position with numpy : 0.0007352828979492188 nb_pixel_total : 30619 time to create 1 rle with old method : 0.03748202323913574 length of segment : 145 time for calcul the mask position with numpy : 0.003698587417602539 nb_pixel_total : 270813 time to create 1 rle with new method : 0.00669097900390625 length of segment : 455 time for calcul the mask position with numpy : 0.007138252258300781 nb_pixel_total : 369478 time to create 1 rle with new method : 0.013463020324707031 length of segment : 632 time for calcul the mask position with numpy : 0.0002853870391845703 nb_pixel_total : 4713 time to create 1 rle with old method : 0.005854368209838867 length of segment : 112 time for calcul the mask position with numpy : 0.001192331314086914 nb_pixel_total : 45785 time to create 1 rle with old method : 0.054212093353271484 length of segment : 312 time for calcul the mask position with numpy : 0.0007038116455078125 nb_pixel_total : 18000 time to create 1 rle with old method : 0.0216677188873291 length of segment : 224 time for calcul the mask position with numpy : 0.0002353191375732422 nb_pixel_total : 4347 time to create 1 rle with old method : 0.00561070442199707 length of segment : 69 time for calcul the mask position with numpy : 0.00032067298889160156 nb_pixel_total : 6493 time to create 1 rle with old method : 0.008256196975708008 length of segment : 88 time for calcul the mask position with numpy : 0.005832195281982422 nb_pixel_total : 217561 time to create 1 rle with new method : 0.008609771728515625 length of segment : 703 time for calcul the mask position with numpy : 0.004050493240356445 nb_pixel_total : 121940 time to create 1 rle with old method : 0.13858938217163086 length of segment : 477 time for calcul the mask position with numpy : 0.0001804828643798828 nb_pixel_total : 2884 time to create 1 rle with old method : 0.003643512725830078 length of segment : 56 time for calcul the mask position with numpy : 0.0025615692138671875 nb_pixel_total : 96147 time to create 1 rle with old method : 0.11095786094665527 length of segment : 431 time for calcul the mask position with numpy : 0.00167083740234375 nb_pixel_total : 44210 time to create 1 rle with old method : 0.0539548397064209 length of segment : 339 time for calcul the mask position with numpy : 0.0005898475646972656 nb_pixel_total : 21818 time to create 1 rle with old method : 0.026447296142578125 length of segment : 180 time for calcul the mask position with numpy : 0.000896453857421875 nb_pixel_total : 24477 time to create 1 rle with old method : 0.04196453094482422 length of segment : 197 time for calcul the mask position with numpy : 0.0015904903411865234 nb_pixel_total : 54203 time to create 1 rle with old method : 0.06407570838928223 length of segment : 371 time for calcul the mask position with numpy : 0.0029573440551757812 nb_pixel_total : 192392 time to create 1 rle with new method : 0.007035732269287109 length of segment : 840 time for calcul the mask position with numpy : 0.0037360191345214844 nb_pixel_total : 147046 time to create 1 rle with old method : 0.1936020851135254 length of segment : 638 time for calcul the mask position with numpy : 0.0001277923583984375 nb_pixel_total : 1147 time to create 1 rle with old method : 0.0015187263488769531 length of segment : 32 time for calcul the mask position with numpy : 0.0010273456573486328 nb_pixel_total : 34474 time to create 1 rle with old method : 0.040384769439697266 length of segment : 238 time spent for convertir_results : 19.653252601623535 Inside saveOutput : final : False verbose : 0 eke 12-6-18 : saveMask need to be cleaned for new output ! Number saved : None batch 1 Loaded 113 chid ids of type : 3663 Number RLEs to save : 52084 save missing photos in datou_result : time spend for datou_step_exec : 75.70582628250122 time spend to save output : 29.89344024658203 total time spend for step 1 : 105.59926652908325 step2:crop_condition Tue Mar 11 09:04:14 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure Loading chi in step crop with photo_hashtag_type : 3663 Loading chi in step crop for list_pids : 10 ! batch 1 Loaded 113 chid ids of type : 3663 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ begin to crop the class : teint_dans_la_masse param for this class : {'min_score': 0.7} filtre for class : teint_dans_la_masse hashtag_id of this class : 2107752385 we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! map_result returned by crop_photo_return_map_crop : length : 12 About to insert : list_path_to_insert length 12 new photo from crops ! we have finished the crop for the class : 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 ! map_result returned by crop_photo_return_map_crop : length : 4 About to insert : list_path_to_insert length 4 new photo from crops ! we have finished the crop for the class : autre_refus begin to crop the class : carton_gris param for this class : {'min_score': 0.5} filtre for class : carton_gris hashtag_id of this class : 2107753020 we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! map_result returned by crop_photo_return_map_crop : length : 5 About to insert : list_path_to_insert length 5 new photo from crops ! we have finished the crop for the class : carton_gris begin to crop the class : cartonnette param for this class : {'min_score': 0.5} filtre for class : cartonnette hashtag_id of this class : 702398920 we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! 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 : 41 About to insert : list_path_to_insert length 41 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 ! map_result returned by crop_photo_return_map_crop : length : 1 About to insert : list_path_to_insert length 1 new photo from crops ! we have finished the crop for the class : 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 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 [1342876094, 1342876086, 1342876078, 1342876067, 1342876062, 1342876059, 1342876032, 1342876027, 1342876012, 1342876005] Looping around the photos to save general results len do output : 65 /-3704612883Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3704612882Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3704612884Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3704612926Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3704612925Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3704612946Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3704612941Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3704612938Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3704612974Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3704612986Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3704612982Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3704612979Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3704612899Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3704612943Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3704612975Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3704612976Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3704612893Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3704612962Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3704612959Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3704612958Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3704612961Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3704612888Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3704612889Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3704612895Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3704612891Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3704612885Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3704612896Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3704612912Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3704612901Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3704612909Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3704612906Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3704612916Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3704612913Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3704612905Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3704612918Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3704612920Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3704612921Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3704612931Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3704612929Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3704612932Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3704612945Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3704612940Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3704612954Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3704612957Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3704612965Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3704612963Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3704612967Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3704612969Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3704612966Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3704612968Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3704612964Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3704612971Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3704612989Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3704612991Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3704612983Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3704612987Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3704612988Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3704612990Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3704612994Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3704612992Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3704612984Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3704612980Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3704612956Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3704612933Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3704612972Didn'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, '2657379') ('3459', '21269001', '1342876094', None, None, None, None, None, '2657379') ('3459', None, None, None, None, None, None, None, '2657379') ('3459', '21269001', '1342876086', None, None, None, None, None, '2657379') ('3459', None, None, None, None, None, None, None, '2657379') ('3459', '21269001', '1342876078', None, None, None, None, None, '2657379') ('3459', None, None, None, None, None, None, None, '2657379') ('3459', '21269001', '1342876067', None, None, None, None, None, '2657379') ('3459', None, None, None, None, None, None, None, '2657379') ('3459', '21269001', '1342876062', None, None, None, None, None, '2657379') ('3459', None, None, None, None, None, None, None, '2657379') ('3459', '21269001', '1342876059', None, None, None, None, None, '2657379') ('3459', None, None, None, None, None, None, None, '2657379') ('3459', '21269001', '1342876032', None, None, None, None, None, '2657379') ('3459', None, None, None, None, None, None, None, '2657379') ('3459', '21269001', '1342876027', None, None, None, None, None, '2657379') ('3459', None, None, None, None, None, None, None, '2657379') ('3459', '21269001', '1342876012', None, None, None, None, None, '2657379') ('3459', None, None, None, None, None, None, None, '2657379') ('3459', '21269001', '1342876005', None, None, None, None, None, '2657379') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 205 time used for this insertion : 0.03194427490234375 save_final save missing photos in datou_result : time spend for datou_step_exec : 44.64120268821716 time spend to save output : 0.06437158584594727 total time spend for step 2 : 44.70557427406311 step3:thcl Tue Mar 11 09:04:58 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.0069196224212646484 time to convert the images to numpy array : 0.2781839370727539 time to import caffe and check if the image exist : 0.012502670288085938 time to convert the images to numpy array : 0.33869266510009766 time to import caffe and check if the image exist : 0.012968063354492188 time to convert the images to numpy array : 0.36005187034606934 time to import caffe and check if the image exist : 0.011138677597045898 time to convert the images to numpy array : 0.42764735221862793 time to import caffe and check if the image exist : 0.013132572174072266 time to convert the images to numpy array : 0.42540574073791504 time to import caffe and check if the image exist : 0.009343624114990234 time to convert the images to numpy array : 0.44649624824523926 time to import caffe and check if the image exist : 0.007191181182861328 time to convert the images to numpy array : 0.44916224479675293 time to import caffe and check if the image exist : 0.011214494705200195 time to convert the images to numpy array : 0.4449307918548584 time to import caffe and check if the image exist : 0.014764785766601562 time to convert the images to numpy array : 0.4518551826477051 time to import caffe and check if the image exist : 0.011601686477661133 time to convert the images to numpy array : 0.4713020324707031 total time to convert the images to numpy array : 0.8594307899475098 list photo_ids error: [] list photo_ids correct : [-3704612933, -3704612972, -3704612901, -3704612909, -3704612906, -3704612916, -3704612913, -3704612905, -3704612918, -3704612954, -3704612957, -3704612965, -3704612963, -3704612967, -3704612969, -3704612966, -3704612888, -3704612889, -3704612895, -3704612891, -3704612885, -3704612896, -3704612912, -3704612988, -3704612990, -3704612994, -3704612992, -3704612984, -3704612980, -3704612956, -3704612975, -3704612976, -3704612893, -3704612962, -3704612959, -3704612958, -3704612961, -3704612938, -3704612974, -3704612986, -3704612982, -3704612979, -3704612899, -3704612943, -3704612968, -3704612964, -3704612971, -3704612989, -3704612991, -3704612983, -3704612987, -3704612883, -3704612882, -3704612884, -3704612926, -3704612925, -3704612946, -3704612941, -3704612920, -3704612921, -3704612931, -3704612929, -3704612932, -3704612945, -3704612940] number of photos to traite : 65 try to delete the photos incorrect in DB tagging for thcl : 2456 To do loadFromThcl(), then load ParamDescType : thcl2456 thcls : [{'id': 2456, 'mtr_user_id': 31, 'name': 'learn_qualipapia_papier_refus_from_vlg_data_aug', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'papier,refus', 'svm_portfolios_learning': '3028087,3028251', 'photo_hashtag_type': 3049, 'photo_desc_type': 4999, 'type_classification': 'caffe', 'hashtag_id_list': '492668766,538914404'}] thcl {'id': 2456, 'mtr_user_id': 31, 'name': 'learn_qualipapia_papier_refus_from_vlg_data_aug', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'papier,refus', 'svm_portfolios_learning': '3028087,3028251', 'photo_hashtag_type': 3049, 'photo_desc_type': 4999, 'type_classification': 'caffe', 'hashtag_id_list': '492668766,538914404'} Update svm_hashtag_type_desc : 4999 FOUND : 1 Here is data_from_sql_as_vec to set the ParamDescriptorType : (4999, 'learn_qualipapia_papier_refus_from_vlg_data_aug', 16384, 25088, 'learn_qualipapia_papier_refus_from_vlg_data_aug', 'res5b', 10.0, None, None, 256, None, 0, None, 8, None, None, -1000.0, 1, datetime.datetime(2020, 10, 23, 14, 27, 22), datetime.datetime(2020, 10, 23, 14, 27, 22)) To loadFromThcl() : net_4999 begin to check gpu status inside check gpu memory l 3637 free memory gpu now : 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.8379924297332764 time used to do the prediction : 0.18978381156921387 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.8145277500152588 time used to do the prediction : 0.12736749649047852 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.2874603271484375e-05 save missing photos in datou_result : time spend for datou_step_exec : 9.895609855651855 time spend to save output : 0.0004734992980957031 total time spend for step 3 : 9.896083354949951 step4:merge_mask_thcl_custom Tue Mar 11 09:05:08 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! 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 113 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 [1342876094, 1342876086, 1342876078, 1342876067, 1342876062, 1342876059, 1342876032, 1342876027, 1342876012, 1342876005] Looping around the photos to save general results len do output : 10 /1342876094Didn't retrieve data .Didn't retrieve data . /1342876086Didn't retrieve data .Didn't retrieve data . /1342876078Didn't retrieve data .Didn't retrieve data . /1342876067Didn't retrieve data .Didn't retrieve data . /1342876062Didn't retrieve data .Didn't retrieve data . /1342876059Didn't retrieve data .Didn't retrieve data . /1342876032Didn't retrieve data .Didn't retrieve data . /1342876027Didn't retrieve data .Didn't retrieve data . /1342876012Didn't retrieve data .Didn't retrieve data . /1342876005Didn'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, '2657379') ('3459', '21269001', '1342876094', None, None, None, None, None, '2657379') ('3459', None, None, None, None, None, None, None, '2657379') ('3459', '21269001', '1342876086', None, None, None, None, None, '2657379') ('3459', None, None, None, None, None, None, None, '2657379') ('3459', '21269001', '1342876078', None, None, None, None, None, '2657379') ('3459', None, None, None, None, None, None, None, '2657379') ('3459', '21269001', '1342876067', None, None, None, None, None, '2657379') ('3459', None, None, None, None, None, None, None, '2657379') ('3459', '21269001', '1342876062', None, None, None, None, None, '2657379') ('3459', None, None, None, None, None, None, None, '2657379') ('3459', '21269001', '1342876059', None, None, None, None, None, '2657379') ('3459', None, None, None, None, None, None, None, '2657379') ('3459', '21269001', '1342876032', None, None, None, None, None, '2657379') ('3459', None, None, None, None, None, None, None, '2657379') ('3459', '21269001', '1342876027', None, None, None, None, None, '2657379') ('3459', None, None, None, None, None, None, None, '2657379') ('3459', '21269001', '1342876012', None, None, None, None, None, '2657379') ('3459', None, None, None, None, None, None, None, '2657379') ('3459', '21269001', '1342876005', None, None, None, None, None, '2657379') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 time used for this insertion : 1.685182809829712 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.501112222671509 time spend to save output : 1.6857233047485352 total time spend for step 4 : 4.186835527420044 step5:rle_unique_nms_with_priority Tue Mar 11 09:05:12 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 : 15 nb_hashtags : 6 time to prepare the origin masks : 15.67830777168274 time for calcul the mask position with numpy : 0.33269619941711426 nb_pixel_total : 5150819 time to create 1 rle with new method : 1.516329050064087 time for calcul the mask position with numpy : 0.03651714324951172 nb_pixel_total : 48059 time to create 1 rle with old method : 0.0746316909790039 time for calcul the mask position with numpy : 0.03828263282775879 nb_pixel_total : 4209 time to create 1 rle with old method : 0.005142688751220703 time for calcul the mask position with numpy : 0.03524661064147949 nb_pixel_total : 12021 time to create 1 rle with old method : 0.01578974723815918 time for calcul the mask position with numpy : 0.03485846519470215 nb_pixel_total : 31592 time to create 1 rle with old method : 0.0349574089050293 time for calcul the mask position with numpy : 0.03505659103393555 nb_pixel_total : 136153 time to create 1 rle with old method : 0.1529388427734375 time for calcul the mask position with numpy : 0.03510856628417969 nb_pixel_total : 41121 time to create 1 rle with old method : 0.05200910568237305 time for calcul the mask position with numpy : 0.03899073600769043 nb_pixel_total : 52080 time to create 1 rle with old method : 0.059172630310058594 time for calcul the mask position with numpy : 0.036963462829589844 nb_pixel_total : 219255 time to create 1 rle with new method : 0.9077870845794678 time for calcul the mask position with numpy : 0.03305792808532715 nb_pixel_total : 3580 time to create 1 rle with old method : 0.004020214080810547 time for calcul the mask position with numpy : 0.03275299072265625 nb_pixel_total : 4213 time to create 1 rle with old method : 0.004991769790649414 time for calcul the mask position with numpy : 0.03664135932922363 nb_pixel_total : 17819 time to create 1 rle with old method : 0.020305395126342773 time for calcul the mask position with numpy : 0.04784250259399414 nb_pixel_total : 847109 time to create 1 rle with new method : 0.7450470924377441 time for calcul the mask position with numpy : 0.029394149780273438 nb_pixel_total : 158201 time to create 1 rle with new method : 0.8039126396179199 time for calcul the mask position with numpy : 0.0388941764831543 nb_pixel_total : 203029 time to create 1 rle with new method : 1.180180311203003 time for calcul the mask position with numpy : 0.031105756759643555 nb_pixel_total : 120980 time to create 1 rle with old method : 0.1404416561126709 create new chi : 6.722805023193359 time to delete rle : 0.02005457878112793 batch 1 Loaded 16 chid ids of type : 3726 Number RLEs to save : 15546 TO DO : save crop sub photo not yet done ! save time : 3.3781373500823975 nb_obj : 20 nb_hashtags : 6 time to prepare the origin masks : 13.739762544631958 time for calcul the mask position with numpy : 0.46213746070861816 nb_pixel_total : 5168431 time to create 1 rle with new method : 1.794637680053711 time for calcul the mask position with numpy : 0.035888671875 nb_pixel_total : 13747 time to create 1 rle with old method : 0.015439748764038086 time for calcul the mask position with numpy : 0.03841519355773926 nb_pixel_total : 24970 time to create 1 rle with old method : 0.041364192962646484 time for calcul the mask position with numpy : 0.037723541259765625 nb_pixel_total : 4976 time to create 1 rle with old method : 0.006212949752807617 time for calcul the mask position with numpy : 0.040143728256225586 nb_pixel_total : 6636 time to create 1 rle with old method : 0.007681369781494141 time for calcul the mask position with numpy : 0.036478519439697266 nb_pixel_total : 44641 time to create 1 rle with old method : 0.05782198905944824 time for calcul the mask position with numpy : 0.03806161880493164 nb_pixel_total : 50711 time to create 1 rle with old method : 0.05999040603637695 time for calcul the mask position with numpy : 0.03914451599121094 nb_pixel_total : 50330 time to create 1 rle with old method : 0.0674285888671875 time for calcul the mask position with numpy : 0.04439735412597656 nb_pixel_total : 251248 time to create 1 rle with new method : 1.172471284866333 time for calcul the mask position with numpy : 0.036815643310546875 nb_pixel_total : 141256 time to create 1 rle with old method : 0.16834592819213867 time for calcul the mask position with numpy : 0.03635549545288086 nb_pixel_total : 1864 time to create 1 rle with old method : 0.0022313594818115234 time for calcul the mask position with numpy : 0.036334991455078125 nb_pixel_total : 4116 time to create 1 rle with old method : 0.0047795772552490234 time for calcul the mask position with numpy : 0.041126251220703125 nb_pixel_total : 3721 time to create 1 rle with old method : 0.004518985748291016 time for calcul the mask position with numpy : 0.03688979148864746 nb_pixel_total : 14570 time to create 1 rle with old method : 0.019413232803344727 time for calcul the mask position with numpy : 0.03654932975769043 nb_pixel_total : 1897 time to create 1 rle with old method : 0.002291440963745117 time for calcul the mask position with numpy : 0.04516959190368652 nb_pixel_total : 743694 time to create 1 rle with new method : 1.4734292030334473 time for calcul the mask position with numpy : 0.039006948471069336 nb_pixel_total : 94422 time to create 1 rle with old method : 0.10827374458312988 time for calcul the mask position with numpy : 0.03994393348693848 nb_pixel_total : 18304 time to create 1 rle with old method : 0.022418975830078125 time for calcul the mask position with numpy : 0.038895606994628906 nb_pixel_total : 110229 time to create 1 rle with old method : 0.15903639793395996 time for calcul the mask position with numpy : 0.04453158378601074 nb_pixel_total : 175836 time to create 1 rle with new method : 1.4162325859069824 time for calcul the mask position with numpy : 0.0489351749420166 nb_pixel_total : 124641 time to create 1 rle with old method : 0.19761085510253906 create new chi : 8.172338247299194 time to delete rle : 0.004273891448974609 batch 1 Loaded 21 chid ids of type : 3726 Number RLEs to save : 17325 TO DO : save crop sub photo not yet done ! save time : 4.609153747558594 nb_obj : 4 nb_hashtags : 3 time to prepare the origin masks : 5.483153820037842 time for calcul the mask position with numpy : 0.06505417823791504 nb_pixel_total : 2394953 time to create 1 rle with new method : 1.3203105926513672 time for calcul the mask position with numpy : 0.04456472396850586 nb_pixel_total : 600714 time to create 1 rle with new method : 1.0497794151306152 time for calcul the mask position with numpy : 0.03937411308288574 nb_pixel_total : 143226 time to create 1 rle with old method : 0.16492867469787598 time for calcul the mask position with numpy : 0.04503512382507324 nb_pixel_total : 223905 time to create 1 rle with new method : 0.790635347366333 time for calcul the mask position with numpy : 0.34200620651245117 nb_pixel_total : 3687442 time to create 1 rle with new method : 1.119243860244751 create new chi : 5.101216793060303 time to delete rle : 0.0019674301147460938 batch 1 Loaded 5 chid ids of type : 3726 Number RLEs to save : 16103 TO DO : save crop sub photo not yet done ! save time : 1.1965553760528564 nb_obj : 2 nb_hashtags : 1 time to prepare the origin masks : 4.0436906814575195 time for calcul the mask position with numpy : 0.03721809387207031 nb_pixel_total : 1367792 time to create 1 rle with new method : 0.7685873508453369 time for calcul the mask position with numpy : 0.04625964164733887 nb_pixel_total : 34026 time to create 1 rle with old method : 0.048566341400146484 time for calcul the mask position with numpy : 0.9246904850006104 nb_pixel_total : 5648422 time to create 1 rle with new method : 0.6809999942779541 create new chi : 2.588552951812744 time to delete rle : 0.00151824951171875 batch 1 Loaded 3 chid ids of type : 3726 Number RLEs to save : 7187 TO DO : save crop sub photo not yet done ! save time : 1.3955168724060059 nb_obj : 12 nb_hashtags : 6 time to prepare the origin masks : 9.533589839935303 time for calcul the mask position with numpy : 0.5540215969085693 nb_pixel_total : 5802758 time to create 1 rle with new method : 0.3963334560394287 time for calcul the mask position with numpy : 0.04000735282897949 nb_pixel_total : 26711 time to create 1 rle with old method : 0.030351877212524414 time for calcul the mask position with numpy : 0.03972220420837402 nb_pixel_total : 143324 time to create 1 rle with old method : 0.17612838745117188 time for calcul the mask position with numpy : 0.05764293670654297 nb_pixel_total : 59876 time to create 1 rle with old method : 0.0694282054901123 time for calcul the mask position with numpy : 0.03911471366882324 nb_pixel_total : 199858 time to create 1 rle with new method : 0.43157124519348145 time for calcul the mask position with numpy : 0.03738570213317871 nb_pixel_total : 3242 time to create 1 rle with old method : 0.0036497116088867188 time for calcul the mask position with numpy : 0.04132246971130371 nb_pixel_total : 359307 time to create 1 rle with new method : 0.38292646408081055 time for calcul the mask position with numpy : 0.03599953651428223 nb_pixel_total : 964 time to create 1 rle with old method : 0.0011343955993652344 time for calcul the mask position with numpy : 0.037806034088134766 nb_pixel_total : 1940 time to create 1 rle with old method : 0.0024886131286621094 time for calcul the mask position with numpy : 0.05040121078491211 nb_pixel_total : 139157 time to create 1 rle with old method : 0.1783595085144043 time for calcul the mask position with numpy : 0.03821873664855957 nb_pixel_total : 25885 time to create 1 rle with old method : 0.02996230125427246 time for calcul the mask position with numpy : 0.03671097755432129 nb_pixel_total : 8584 time to create 1 rle with old method : 0.009655237197875977 time for calcul the mask position with numpy : 0.04158496856689453 nb_pixel_total : 278634 time to create 1 rle with new method : 0.37415599822998047 create new chi : 3.24841046333313 time to delete rle : 0.001855611801147461 batch 1 Loaded 13 chid ids of type : 3726 Number RLEs to save : 10928 TO DO : save crop sub photo not yet done ! save time : 8.581373691558838 nb_obj : 13 nb_hashtags : 5 time to prepare the origin masks : 11.265115976333618 time for calcul the mask position with numpy : 0.6689000129699707 nb_pixel_total : 6580287 time to create 1 rle with new method : 0.7728517055511475 time for calcul the mask position with numpy : 0.04218125343322754 nb_pixel_total : 79480 time to create 1 rle with old method : 0.09130382537841797 time for calcul the mask position with numpy : 0.04554128646850586 nb_pixel_total : 12618 time to create 1 rle with old method : 0.015899181365966797 time for calcul the mask position with numpy : 0.04232525825500488 nb_pixel_total : 27395 time to create 1 rle with old method : 0.0307772159576416 time for calcul the mask position with numpy : 0.04302048683166504 nb_pixel_total : 2447 time to create 1 rle with old method : 0.003190279006958008 time for calcul the mask position with numpy : 0.03686356544494629 nb_pixel_total : 4335 time to create 1 rle with old method : 0.006540060043334961 time for calcul the mask position with numpy : 0.032416582107543945 nb_pixel_total : 38708 time to create 1 rle with old method : 0.05252265930175781 time for calcul the mask position with numpy : 0.02935338020324707 nb_pixel_total : 2576 time to create 1 rle with old method : 0.00292205810546875 time for calcul the mask position with numpy : 0.03375601768493652 nb_pixel_total : 4490 time to create 1 rle with old method : 0.005131721496582031 time for calcul the mask position with numpy : 0.02917337417602539 nb_pixel_total : 22502 time to create 1 rle with old method : 0.025214672088623047 time for calcul the mask position with numpy : 0.026215791702270508 nb_pixel_total : 5492 time to create 1 rle with old method : 0.0061817169189453125 time for calcul the mask position with numpy : 0.02612161636352539 nb_pixel_total : 97280 time to create 1 rle with old method : 0.11451458930969238 time for calcul the mask position with numpy : 0.027678966522216797 nb_pixel_total : 170289 time to create 1 rle with new method : 0.5956635475158691 time for calcul the mask position with numpy : 0.025504112243652344 nb_pixel_total : 2341 time to create 1 rle with old method : 0.0027582645416259766 create new chi : 2.9093546867370605 time to delete rle : 0.0011413097381591797 batch 1 Loaded 14 chid ids of type : 3726 Number RLEs to save : 8658 TO DO : save crop sub photo not yet done ! save time : 2.007638454437256 nb_obj : 10 nb_hashtags : 6 time to prepare the origin masks : 11.380212306976318 time for calcul the mask position with numpy : 0.3078896999359131 nb_pixel_total : 6550510 time to create 1 rle with new method : 0.6277062892913818 time for calcul the mask position with numpy : 0.05015301704406738 nb_pixel_total : 102920 time to create 1 rle with old method : 0.14070820808410645 time for calcul the mask position with numpy : 0.06191229820251465 nb_pixel_total : 11346 time to create 1 rle with old method : 0.012845993041992188 time for calcul the mask position with numpy : 0.04038667678833008 nb_pixel_total : 38533 time to create 1 rle with old method : 0.04249858856201172 time for calcul the mask position with numpy : 0.04056191444396973 nb_pixel_total : 162083 time to create 1 rle with new method : 0.6223657131195068 time for calcul the mask position with numpy : 0.028235435485839844 nb_pixel_total : 63683 time to create 1 rle with old method : 0.07054924964904785 time for calcul the mask position with numpy : 0.025478839874267578 nb_pixel_total : 902 time to create 1 rle with old method : 0.001047372817993164 time for calcul the mask position with numpy : 0.026702880859375 nb_pixel_total : 1759 time to create 1 rle with old method : 0.002007007598876953 time for calcul the mask position with numpy : 0.0264434814453125 nb_pixel_total : 2018 time to create 1 rle with old method : 0.002301454544067383 time for calcul the mask position with numpy : 0.024413347244262695 nb_pixel_total : 28723 time to create 1 rle with old method : 0.03238081932067871 time for calcul the mask position with numpy : 0.024918317794799805 nb_pixel_total : 87763 time to create 1 rle with old method : 0.0961446762084961 create new chi : 2.3957862854003906 time to delete rle : 0.0008962154388427734 batch 1 Loaded 11 chid ids of type : 3726 Number RLEs to save : 7726 TO DO : save crop sub photo not yet done ! save time : 1.832014799118042 nb_obj : 7 nb_hashtags : 4 time to prepare the origin masks : 7.4533185958862305 time for calcul the mask position with numpy : 0.5880558490753174 nb_pixel_total : 6679342 time to create 1 rle with new method : 0.7896194458007812 time for calcul the mask position with numpy : 0.0269162654876709 nb_pixel_total : 59365 time to create 1 rle with old method : 0.07828402519226074 time for calcul the mask position with numpy : 0.025288105010986328 nb_pixel_total : 82324 time to create 1 rle with old method : 0.12688159942626953 time for calcul the mask position with numpy : 0.023827552795410156 nb_pixel_total : 17447 time to create 1 rle with old method : 0.019853830337524414 time for calcul the mask position with numpy : 0.02939891815185547 nb_pixel_total : 18713 time to create 1 rle with old method : 0.030900001525878906 time for calcul the mask position with numpy : 0.02594733238220215 nb_pixel_total : 71973 time to create 1 rle with old method : 0.09879446029663086 time for calcul the mask position with numpy : 0.02796339988708496 nb_pixel_total : 58397 time to create 1 rle with old method : 0.06921839714050293 time for calcul the mask position with numpy : 0.030437231063842773 nb_pixel_total : 62679 time to create 1 rle with old method : 0.09424543380737305 create new chi : 2.160996913909912 time to delete rle : 0.0007970333099365234 batch 1 Loaded 8 chid ids of type : 3726 Number RLEs to save : 6220 TO DO : save crop sub photo not yet done ! save time : 3.9332358837127686 nb_obj : 6 nb_hashtags : 4 time to prepare the origin masks : 6.24589729309082 time for calcul the mask position with numpy : 1.2178049087524414 nb_pixel_total : 6293813 time to create 1 rle with new method : 1.6351792812347412 time for calcul the mask position with numpy : 0.052034854888916016 nb_pixel_total : 92238 time to create 1 rle with old method : 0.11266636848449707 time for calcul the mask position with numpy : 0.044306278228759766 nb_pixel_total : 30481 time to create 1 rle with old method : 0.034507036209106445 time for calcul the mask position with numpy : 0.048824310302734375 nb_pixel_total : 279004 time to create 1 rle with new method : 0.9005885124206543 time for calcul the mask position with numpy : 0.05466771125793457 nb_pixel_total : 269773 time to create 1 rle with new method : 0.6725795269012451 time for calcul the mask position with numpy : 0.03645491600036621 nb_pixel_total : 30668 time to create 1 rle with old method : 0.034459829330444336 time for calcul the mask position with numpy : 0.03650331497192383 nb_pixel_total : 54263 time to create 1 rle with old method : 0.06122899055480957 create new chi : 5.058034896850586 time to delete rle : 0.0010361671447753906 batch 1 Loaded 7 chid ids of type : 3726 Number RLEs to save : 7294 TO DO : save crop sub photo not yet done ! save time : 1.936056137084961 nb_obj : 17 nb_hashtags : 5 time to prepare the origin masks : 14.032172679901123 time for calcul the mask position with numpy : 1.0622007846832275 nb_pixel_total : 6101727 time to create 1 rle with new method : 0.4999046325683594 time for calcul the mask position with numpy : 0.04206085205078125 nb_pixel_total : 17972 time to create 1 rle with old method : 0.021074771881103516 time for calcul the mask position with numpy : 0.045409440994262695 nb_pixel_total : 121863 time to create 1 rle with old method : 0.14015913009643555 time for calcul the mask position with numpy : 0.040789127349853516 nb_pixel_total : 44200 time to create 1 rle with old method : 0.05034351348876953 time for calcul the mask position with numpy : 0.038506269454956055 nb_pixel_total : 54163 time to create 1 rle with old method : 0.06414127349853516 time for calcul the mask position with numpy : 0.028270721435546875 nb_pixel_total : 8771 time to create 1 rle with old method : 0.010050773620605469 time for calcul the mask position with numpy : 0.02951645851135254 nb_pixel_total : 6434 time to create 1 rle with old method : 0.007284641265869141 time for calcul the mask position with numpy : 0.026614665985107422 nb_pixel_total : 24446 time to create 1 rle with old method : 0.027742624282836914 time for calcul the mask position with numpy : 0.026088953018188477 nb_pixel_total : 1143 time to create 1 rle with old method : 0.0013842582702636719 time for calcul the mask position with numpy : 0.03016042709350586 nb_pixel_total : 191835 time to create 1 rle with new method : 0.46271324157714844 time for calcul the mask position with numpy : 0.025218963623046875 nb_pixel_total : 21866 time to create 1 rle with old method : 0.027468204498291016 time for calcul the mask position with numpy : 0.024736404418945312 nb_pixel_total : 34699 time to create 1 rle with old method : 0.04011392593383789 time for calcul the mask position with numpy : 0.023772239685058594 nb_pixel_total : 2859 time to create 1 rle with old method : 0.003279447555541992 time for calcul the mask position with numpy : 0.02637171745300293 nb_pixel_total : 146579 time to create 1 rle with old method : 0.16498994827270508 time for calcul the mask position with numpy : 0.02398228645324707 nb_pixel_total : 4307 time to create 1 rle with old method : 0.0047380924224853516 time for calcul the mask position with numpy : 0.02451467514038086 nb_pixel_total : 45707 time to create 1 rle with old method : 0.04996800422668457 time for calcul the mask position with numpy : 0.025288105010986328 nb_pixel_total : 4682 time to create 1 rle with old method : 0.0055959224700927734 time for calcul the mask position with numpy : 0.027777910232543945 nb_pixel_total : 216987 time to create 1 rle with new method : 0.5017313957214355 create new chi : 3.7531116008758545 time to delete rle : 0.0013782978057861328 batch 1 Loaded 18 chid ids of type : 3726 Number RLEs to save : 12186 TO DO : save crop sub photo not yet done ! save time : 2.8442625999450684 map_output_result : {1342876094: (0.0, 'Should be the crop_list due to order', 0), 1342876086: (0.0, 'Should be the crop_list due to order', 0), 1342876078: (0.0, 'Should be the crop_list due to order', 0), 1342876067: (0.0, 'Should be the crop_list due to order', 0), 1342876062: (0.0, 'Should be the crop_list due to order', 0), 1342876059: (0.0, 'Should be the crop_list due to order', 0), 1342876032: (0.0, 'Should be the crop_list due to order', 0), 1342876027: (0.0, 'Should be the crop_list due to order', 0), 1342876012: (0.0, 'Should be the crop_list due to order', 0), 1342876005: (0.0, 'Should be the crop_list due to order', 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 [1342876094, 1342876086, 1342876078, 1342876067, 1342876062, 1342876059, 1342876032, 1342876027, 1342876012, 1342876005] Looping around the photos to save general results len do output : 10 /1342876094.Didn't retrieve data . /1342876086.Didn't retrieve data . /1342876078.Didn't retrieve data . /1342876067.Didn't retrieve data . /1342876062.Didn't retrieve data . /1342876059.Didn't retrieve data . /1342876032.Didn't retrieve data . /1342876027.Didn't retrieve data . /1342876012.Didn't retrieve data . /1342876005.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, '2657379') ('3459', '21269001', '1342876094', None, None, None, None, None, '2657379') ('3459', None, None, None, None, None, None, None, '2657379') ('3459', '21269001', '1342876086', None, None, None, None, None, '2657379') ('3459', None, None, None, None, None, None, None, '2657379') ('3459', '21269001', '1342876078', None, None, None, None, None, '2657379') ('3459', None, None, None, None, None, None, None, '2657379') ('3459', '21269001', '1342876067', None, None, None, None, None, '2657379') ('3459', None, None, None, None, None, None, None, '2657379') ('3459', '21269001', '1342876062', None, None, None, None, None, '2657379') ('3459', None, None, None, None, None, None, None, '2657379') ('3459', '21269001', '1342876059', None, None, None, None, None, '2657379') ('3459', None, None, None, None, None, None, None, '2657379') ('3459', '21269001', '1342876032', None, None, None, None, None, '2657379') ('3459', None, None, None, None, None, None, None, '2657379') ('3459', '21269001', '1342876027', None, None, None, None, None, '2657379') ('3459', None, None, None, None, None, None, None, '2657379') ('3459', '21269001', '1342876012', None, None, None, None, None, '2657379') ('3459', None, None, None, None, None, None, None, '2657379') ('3459', '21269001', '1342876005', None, None, None, None, None, '2657379') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 time used for this insertion : 0.20592164993286133 save_final save missing photos in datou_result : time spend for datou_step_exec : 173.8671588897705 time spend to save output : 0.20740580558776855 total time spend for step 5 : 174.07456469535828 step6:crop_condition Tue Mar 11 09:08:06 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure some photos are not treated, begin crop_condition Loading chi in step crop with photo_hashtag_type : 3726 Loading chi in step crop for list_pids : 10 ! batch 1 Loaded 116 chid ids of type : 3726 begin to crop the class : teint_dans_la_masse param for this class : {'min_score': 0.7} filtre for class : teint_dans_la_masse hashtag_id of this class : 2107752385 Next one ! Next one ! Next one ! Next one ! 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/1741680493_3927735 we have uploaded 4 photos in the portfolio 4869462 time of upload the photos Elapsed time : 1.4269545078277588 we have finished the crop for the class : teint_dans_la_masse begin to crop the class : autre_refus param for this class : {'min_score': 0.5} filtre for class : autre_refus hashtag_id of this class : 2107752406 Next one ! Next one ! Next one ! Next one ! Next one ! Next one ! Next one ! Next one ! Next one ! Next one ! Next one ! map_result returned by crop_photo_return_map_crop : length : 11 About to insert : list_path_to_insert length 11 new photo from crops ! About to upload 11 photos upload in portfolio : 4869462 init cache_photo without model_param we have 11 photo to upload uploaded to storage server : ovh folder_temporaire : temp/1741680500_3927735 we have uploaded 11 photos in the portfolio 4869462 time of upload the photos Elapsed time : 2.890712022781372 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 ! 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/1741680506_3927735 we have uploaded 1 photos in the portfolio 4869462 time of upload the photos Elapsed time : 0.6760971546173096 we have finished the crop for the class : carton_gris begin to crop the class : cartonnette param for this class : {'min_score': 0.5} filtre for class : cartonnette hashtag_id of this class : 702398920 Next one ! Next one ! Next one ! Next one ! map_result returned by crop_photo_return_map_crop : length : 4 About to insert : list_path_to_insert length 4 new photo from crops ! About to upload 4 photos upload in portfolio : 4869462 init cache_photo without model_param we have 4 photo to upload uploaded to storage server : ovh folder_temporaire : temp/1741680508_3927735 we have uploaded 4 photos in the portfolio 4869462 time of upload the photos Elapsed time : 1.7257308959960938 we have finished the crop for the class : cartonnette begin to crop the class : carton_brun param for this class : {'min_score': 0.7} filtre for class : carton_brun hashtag_id of this class : 2107753024 Next one ! map_result returned by crop_photo_return_map_crop : length : 1 About to insert : list_path_to_insert length 1 new photo from crops ! About to upload 1 photos upload in portfolio : 4869462 init cache_photo without model_param we have 1 photo to upload uploaded to storage server : ovh folder_temporaire : temp/1741680512_3927735 we have uploaded 1 photos in the portfolio 4869462 time of upload the photos Elapsed time : 0.6991770267486572 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 [1342876094, 1342876086, 1342876078, 1342876067, 1342876062, 1342876059, 1342876032, 1342876027, 1342876012, 1342876005] Looping around the photos to save general results len do output : 21 /1342885819Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1342885820Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1342885822Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1342885824Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1342885866Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1342885867Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1342885868Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1342885869Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1342885870Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1342885871Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1342885872Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1342885874Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1342885875Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1342885876Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1342885877Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1342885884Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1342885896Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1342885897Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1342885898Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1342885899Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1342885904Didn'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, '2657379') ('3459', '21269001', '1342876094', None, None, None, None, None, '2657379') ('3459', None, None, None, None, None, None, None, '2657379') ('3459', '21269001', '1342876086', None, None, None, None, None, '2657379') ('3459', None, None, None, None, None, None, None, '2657379') ('3459', '21269001', '1342876078', None, None, None, None, None, '2657379') ('3459', None, None, None, None, None, None, None, '2657379') ('3459', '21269001', '1342876067', None, None, None, None, None, '2657379') ('3459', None, None, None, None, None, None, None, '2657379') ('3459', '21269001', '1342876062', None, None, None, None, None, '2657379') ('3459', None, None, None, None, None, None, None, '2657379') ('3459', '21269001', '1342876059', None, None, None, None, None, '2657379') ('3459', None, None, None, None, None, None, None, '2657379') ('3459', '21269001', '1342876032', None, None, None, None, None, '2657379') ('3459', None, None, None, None, None, None, None, '2657379') ('3459', '21269001', '1342876027', None, None, None, None, None, '2657379') ('3459', None, None, None, None, None, None, None, '2657379') ('3459', '21269001', '1342876012', None, None, None, None, None, '2657379') ('3459', None, None, None, None, None, None, None, '2657379') ('3459', '21269001', '1342876005', None, None, None, None, None, '2657379') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 73 time used for this insertion : 0.029919862747192383 save_final save missing photos in datou_result : time spend for datou_step_exec : 31.416430473327637 time spend to save output : 0.031130552291870117 total time spend for step 6 : 31.447561025619507 step7:ventilate_hashtags_in_portfolio Tue Mar 11 09:08:38 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 : 21269001 get user id for portfolio 21269001 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`=21269001 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','metal','cartonnette','environnement','plastique','Carton_gris','papier','flou','Teint_Dans_La_Masse','mal_croppe','kraft','Carton_brun')) AND mptpi.`min_score`=0.5 To do To do SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21269001 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','metal','cartonnette','environnement','plastique','Carton_gris','papier','flou','Teint_Dans_La_Masse','mal_croppe','kraft','Carton_brun')) 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`=21269001 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','metal','cartonnette','environnement','plastique','Carton_gris','papier','flou','Teint_Dans_La_Masse','mal_croppe','kraft','Carton_brun')) AND mptpi.`min_score`=0.5 To do lien utilise dans velours : https://www.fotonower.com/velours/21269431,21269432,21269433,21269434,21269435,21269436,21269437,21269438,21269439,21269440,21269441,21269442?tags=autre_refus,metal,cartonnette,environnement,plastique,Carton_gris,papier,flou,Teint_Dans_La_Masse,mal_croppe,kraft,Carton_brun Inside saveOutput : final : False verbose : 0 saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1342876094, 1342876086, 1342876078, 1342876067, 1342876062, 1342876059, 1342876032, 1342876027, 1342876012, 1342876005] Looping around the photos to save general results len do output : 1 /21269001. 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, '2657379') ('3459', '21269001', '1342876094', None, None, None, None, None, '2657379') ('3459', None, None, None, None, None, None, None, '2657379') ('3459', '21269001', '1342876086', None, None, None, None, None, '2657379') ('3459', None, None, None, None, None, None, None, '2657379') ('3459', '21269001', '1342876078', None, None, None, None, None, '2657379') ('3459', None, None, None, None, None, None, None, '2657379') ('3459', '21269001', '1342876067', None, None, None, None, None, '2657379') ('3459', None, None, None, None, None, None, None, '2657379') ('3459', '21269001', '1342876062', None, None, None, None, None, '2657379') ('3459', None, None, None, None, None, None, None, '2657379') ('3459', '21269001', '1342876059', None, None, None, None, None, '2657379') ('3459', None, None, None, None, None, None, None, '2657379') ('3459', '21269001', '1342876032', None, None, None, None, None, '2657379') ('3459', None, None, None, None, None, None, None, '2657379') ('3459', '21269001', '1342876027', None, None, None, None, None, '2657379') ('3459', None, None, None, None, None, None, None, '2657379') ('3459', '21269001', '1342876012', None, None, None, None, None, '2657379') ('3459', None, None, None, None, None, None, None, '2657379') ('3459', '21269001', '1342876005', None, None, None, None, None, '2657379') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 time used for this insertion : 0.01389169692993164 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.1599295139312744 time spend to save output : 0.014172792434692383 total time spend for step 7 : 2.174102306365967 step8:final Tue Mar 11 09:08:40 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! 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 : {1342876094: ('0.06318461697088341',), 1342876086: ('0.06318461697088341',), 1342876078: ('0.06318461697088341',), 1342876067: ('0.06318461697088341',), 1342876062: ('0.06318461697088341',), 1342876059: ('0.06318461697088341',), 1342876032: ('0.06318461697088341',), 1342876027: ('0.06318461697088341',), 1342876012: ('0.06318461697088341',), 1342876005: ('0.06318461697088341',)} new output for save of step final : {1342876094: ('0.06318461697088341',), 1342876086: ('0.06318461697088341',), 1342876078: ('0.06318461697088341',), 1342876067: ('0.06318461697088341',), 1342876062: ('0.06318461697088341',), 1342876059: ('0.06318461697088341',), 1342876032: ('0.06318461697088341',), 1342876027: ('0.06318461697088341',), 1342876012: ('0.06318461697088341',), 1342876005: ('0.06318461697088341',)} [1342876094, 1342876086, 1342876078, 1342876067, 1342876062, 1342876059, 1342876032, 1342876027, 1342876012, 1342876005] Looping around the photos to save general results len do output : 10 /1342876094.Didn't retrieve data . /1342876086.Didn't retrieve data . /1342876078.Didn't retrieve data . /1342876067.Didn't retrieve data . /1342876062.Didn't retrieve data . /1342876059.Didn't retrieve data . /1342876032.Didn't retrieve data . /1342876027.Didn't retrieve data . /1342876012.Didn't retrieve data . /1342876005.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, '2657379') ('3459', '21269001', '1342876094', None, None, None, None, None, '2657379') ('3459', None, None, None, None, None, None, None, '2657379') ('3459', '21269001', '1342876086', None, None, None, None, None, '2657379') ('3459', None, None, None, None, None, None, None, '2657379') ('3459', '21269001', '1342876078', None, None, None, None, None, '2657379') ('3459', None, None, None, None, None, None, None, '2657379') ('3459', '21269001', '1342876067', None, None, None, None, None, '2657379') ('3459', None, None, None, None, None, None, None, '2657379') ('3459', '21269001', '1342876062', None, None, None, None, None, '2657379') ('3459', None, None, None, None, None, None, None, '2657379') ('3459', '21269001', '1342876059', None, None, None, None, None, '2657379') ('3459', None, None, None, None, None, None, None, '2657379') ('3459', '21269001', '1342876032', None, None, None, None, None, '2657379') ('3459', None, None, None, None, None, None, None, '2657379') ('3459', '21269001', '1342876027', None, None, None, None, None, '2657379') ('3459', None, None, None, None, None, None, None, '2657379') ('3459', '21269001', '1342876012', None, None, None, None, None, '2657379') ('3459', None, None, None, None, None, None, None, '2657379') ('3459', '21269001', '1342876005', None, None, None, None, None, '2657379') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 time used for this insertion : 0.013437747955322266 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.10184288024902344 time spend to save output : 0.014087200164794922 total time spend for step 8 : 0.11593008041381836 step9:velours_tree Tue Mar 11 09:08:40 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed 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.10355758666992188 time spend to save output : 6.556510925292969e-05 total time spend for step 9 : 0.1036231517791748 step10:send_mail_cod Tue Mar 11 09:08:40 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! 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_P21269001_11-03-2025_09_08_40.pdf 21269431 change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .imagette212694311741680520 21269432 imagette212694321741680521 21269433 change filename to text .change filename to text .change filename to text .change filename to text .imagette212694331741680521 21269435 imagette212694351741680521 21269438 imagette212694381741680521 21269440 imagette212694401741680521 21269441 imagette212694411741680521 21269436 change filename to text .imagette212694361741680521 21269439 change filename to text .change filename to text .change filename to text .change filename to text .imagette212694391741680521 21269442 change filename to text .imagette212694421741680522 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21269001 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21269431,21269432,21269433,21269434,21269435,21269436,21269437,21269438,21269439,21269440,21269441,21269442?tags=autre_refus,metal,cartonnette,environnement,plastique,Carton_gris,papier,flou,Teint_Dans_La_Masse,mal_croppe,kraft,Carton_brun your option no_mail is active, we will not send the real mail to your client args[1342876094] : ('0.06318461697088341',) no score found for photo 1342876094 We are sending mail with results at report@fotonower.com args[1342876086] : ('0.06318461697088341',) no score found for photo 1342876086 We are sending mail with results at report@fotonower.com args[1342876078] : ('0.06318461697088341',) no score found for photo 1342876078 We are sending mail with results at report@fotonower.com args[1342876067] : ('0.06318461697088341',) no score found for photo 1342876067 We are sending mail with results at report@fotonower.com args[1342876062] : ('0.06318461697088341',) no score found for photo 1342876062 We are sending mail with results at report@fotonower.com args[1342876059] : ('0.06318461697088341',) no score found for photo 1342876059 We are sending mail with results at report@fotonower.com args[1342876032] : ('0.06318461697088341',) no score found for photo 1342876032 We are sending mail with results at report@fotonower.com args[1342876027] : ('0.06318461697088341',) no score found for photo 1342876027 We are sending mail with results at report@fotonower.com args[1342876012] : ('0.06318461697088341',) no score found for photo 1342876012 We are sending mail with results at report@fotonower.com args[1342876005] : ('0.06318461697088341',) no score found for photo 1342876005 We are sending mail with results at report@fotonower.com refus_total : 0.06318461697088341 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=21269001 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 1000 SELECT photo_id, url FROM MTRBack.photos ph WHERE photo_id IN (1342873370,1342876094,1342876086,1342876062,1342876059,1342876027,1342876005,1342873390,1342873385,1342873380,1342873374,1342873366,1342875991,1342875985,1342876012,1342876032,1342876067,1342876078) Found this number of photos: 18 begin to download photo : 1342873370 begin to download photo : 1342876059 begin to download photo : 1342873385 begin to download photo : 1342875991 begin to download photo : 1342876067 download finish for photo 1342876067 begin to download photo : 1342876078 download finish for photo 1342873370 begin to download photo : 1342876094 download finish for photo 1342873385 begin to download photo : 1342873380 download finish for photo 1342876059 begin to download photo : 1342876027 download finish for photo 1342875991 begin to download photo : 1342875985 download finish for photo 1342876078 download finish for photo 1342876094 begin to download photo : 1342876086 download finish for photo 1342873380 begin to download photo : 1342873374 download finish for photo 1342875985 begin to download photo : 1342876012 download finish for photo 1342876027 begin to download photo : 1342876005 download finish for photo 1342876086 begin to download photo : 1342876062 download finish for photo 1342873374 begin to download photo : 1342873366 download finish for photo 1342876005 begin to download photo : 1342873390 download finish for photo 1342876012 begin to download photo : 1342876032 download finish for photo 1342876062 download finish for photo 1342873366 download finish for photo 1342873390 download finish for photo 1342876032 start upload file to ovh https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21269001_11-03-2025_09_08_40.pdf results_Auto_P21269001_11-03-2025_09_08_40.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21269001_11-03-2025_09_08_40.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('3459','21269001','results_Auto_P21269001_11-03-2025_09_08_40.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21269001_11-03-2025_09_08_40.pdf','pdf','','0.63','0.06318461697088341') Inside saveOutput : final : False verbose : 0 saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1342876094, 1342876086, 1342876078, 1342876067, 1342876062, 1342876059, 1342876032, 1342876027, 1342876012, 1342876005] 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, '2657379') ('3459', '21269001', '1342876094', None, None, None, None, None, '2657379') ('3459', None, None, None, None, None, None, None, '2657379') ('3459', '21269001', '1342876086', None, None, None, None, None, '2657379') ('3459', None, None, None, None, None, None, None, '2657379') ('3459', '21269001', '1342876078', None, None, None, None, None, '2657379') ('3459', None, None, None, None, None, None, None, '2657379') ('3459', '21269001', '1342876067', None, None, None, None, None, '2657379') ('3459', None, None, None, None, None, None, None, '2657379') ('3459', '21269001', '1342876062', None, None, None, None, None, '2657379') ('3459', None, None, None, None, None, None, None, '2657379') ('3459', '21269001', '1342876059', None, None, None, None, None, '2657379') ('3459', None, None, None, None, None, None, None, '2657379') ('3459', '21269001', '1342876032', None, None, None, None, None, '2657379') ('3459', None, None, None, None, None, None, None, '2657379') ('3459', '21269001', '1342876027', None, None, None, None, None, '2657379') ('3459', None, None, None, None, None, None, None, '2657379') ('3459', '21269001', '1342876012', None, None, None, None, None, '2657379') ('3459', None, None, None, None, None, None, None, '2657379') ('3459', '21269001', '1342876005', None, None, None, None, None, '2657379') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 time used for this insertion : 0.013717889785766602 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.892477989196777 time spend to save output : 0.014124870300292969 total time spend for step 10 : 4.90660285949707 step11:split_time_score Tue Mar 11 09:08:45 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 We expect there is only one output and this part is used while all output are not tuple or array We expect there is only one output and this part is used while all output are not tuple or array We expect there is only one output and this part is used while all output are not tuple or array We expect there is only one output and this part is used while all output are not tuple or array We expect there is only one output and this part is used while all output are not tuple or array We expect there is only one output and this part is used while all output are not tuple or array We expect there is only one output and this part is used while all output are not tuple or array We expect there is only one output and this part is used while all output are not tuple or array We expect there is only one output and this part is used while all output are not tuple or array We expect there is only one output and this part is used while all output are not tuple or array Inconsistent number of input and output, step which parrallelize and manage error in input by avoiding sending an output for this data can't be used in tree dependencies of input and output complete output_args for input 1 VR 22-3-18 : For now we do not clean correctly the datou structure begin split time score Catched exception ! Connect or reconnect ! TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] (('08', 18),) ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 11032025 21269001 Nombre de photos uploadées : 18 / 23040 (0%) 11032025 21269001 Nombre de photos taguées (types de déchets): 0 / 18 (0%) 11032025 21269001 Nombre de photos taguées (volume) : 0 / 18 (0%) elapsed_time : load_data_split_time_score 4.5299530029296875e-06 elapsed_time : order_list_meta_photo_and_scores 1.049041748046875e-05 ?????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0012805461883544922 elapsed_time : insert_dashboard_record_day_entry 0.023159027099609375 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 = 21268995 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21268996 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21268997 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21268998 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21269000 order by id desc limit 1 Qualite : 0.06318461697088341 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21269001_11-03-2025_09_08_40.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21269001 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`=21269001 AND mptpi.`type`=3726 To do NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'11032025': {'nb_upload': 18, '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 [1342876094, 1342876086, 1342876078, 1342876067, 1342876062, 1342876059, 1342876032, 1342876027, 1342876012, 1342876005] Looping around the photos to save general results len do output : 1 /21269001Didn'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, '2657379') ('3459', '21269001', '1342876094', None, None, None, None, None, '2657379') ('3459', None, None, None, None, None, None, None, '2657379') ('3459', '21269001', '1342876086', None, None, None, None, None, '2657379') ('3459', None, None, None, None, None, None, None, '2657379') ('3459', '21269001', '1342876078', None, None, None, None, None, '2657379') ('3459', None, None, None, None, None, None, None, '2657379') ('3459', '21269001', '1342876067', None, None, None, None, None, '2657379') ('3459', None, None, None, None, None, None, None, '2657379') ('3459', '21269001', '1342876062', None, None, None, None, None, '2657379') ('3459', None, None, None, None, None, None, None, '2657379') ('3459', '21269001', '1342876059', None, None, None, None, None, '2657379') ('3459', None, None, None, None, None, None, None, '2657379') ('3459', '21269001', '1342876032', None, None, None, None, None, '2657379') ('3459', None, None, None, None, None, None, None, '2657379') ('3459', '21269001', '1342876027', None, None, None, None, None, '2657379') ('3459', None, None, None, None, None, None, None, '2657379') ('3459', '21269001', '1342876012', None, None, None, None, None, '2657379') ('3459', None, None, None, None, None, None, None, '2657379') ('3459', '21269001', '1342876005', None, None, None, None, None, '2657379') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 time used for this insertion : 0.013382196426391602 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.622857093811035 time spend to save output : 0.013645410537719727 total time spend for step 11 : 4.636502504348755 caffe_path_current : About to save ! 2 After save, about to update current ! update_current_state 133.92user 165.19system 6:27.17elapsed 77%CPU (0avgtext+0avgdata 4010236maxresident)k 1504560inputs+94040outputs (15788major+12166382minor)pagefaults 0swaps