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 : 1349771 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 : 19>10 please execute split_portfolio.py -i 20656307 -l 10 size over we load limit photo not treated list_input_json: [] Current got : datou_id : 3459, datou_cur_ids : ['2597846'] with mtr_portfolio_ids : ['20656307'] and first list_photo_ids : [] new path : /proc/1349771/ 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.7488675117492676 About to test input to load we should then remove the video here, and this would fix the bug of datou_current ! Calling datou_exec Inside datou_exec : verbose : 0 number of steps : 11 step1:mask_detect Tue Feb 18 22:14:30 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Beginning of datou step mask_detect ! save_polygon : True begin detect begin to check gpu status inside check gpu memory l 3637 free memory gpu now : 10814 max_wait_temp : 1 max_wait : 0 gpu_flag : 0 2025-02-18 22:14:32.885663: I tensorflow/core/platform/cpu_feature_guard.cc:143] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA 2025-02-18 22:14:32.893729: I tensorflow/core/platform/profile_utils/cpu_utils.cc:102] CPU Frequency: 3493065000 Hz 2025-02-18 22:14:32.895383: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x7f1120000b60 initialized for platform Host (this does not guarantee that XLA will be used). Devices: 2025-02-18 22:14:32.895431: I tensorflow/compiler/xla/service/service.cc:176] StreamExecutor device (0): Host, Default Version 2025-02-18 22:14:32.897986: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcuda.so.1 2025-02-18 22:14:33.118894: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x3a24bd90 initialized for platform CUDA (this does not guarantee that XLA will be used). Devices: 2025-02-18 22:14:33.118954: I tensorflow/compiler/xla/service/service.cc:176] StreamExecutor device (0): NVIDIA GeForce RTX 2080 Ti, Compute Capability 7.5 2025-02-18 22:14:33.123851: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1561] Found device 0 with properties: pciBusID: 0000:41:00.0 name: NVIDIA GeForce RTX 2080 Ti computeCapability: 7.5 coreClock: 1.545GHz coreCount: 68 deviceMemorySize: 10.76GiB deviceMemoryBandwidth: 573.69GiB/s 2025-02-18 22:14:33.124609: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1 2025-02-18 22:14:33.128331: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcublas.so.10 2025-02-18 22:14:33.131932: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcufft.so.10 2025-02-18 22:14:33.132339: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcurand.so.10 2025-02-18 22:14:33.138050: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusolver.so.10 2025-02-18 22:14:33.139818: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusparse.so.10 2025-02-18 22:14:33.148626: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudnn.so.7 2025-02-18 22:14:33.150576: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1703] Adding visible gpu devices: 0 2025-02-18 22:14:33.150675: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1 2025-02-18 22:14:33.151729: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1102] Device interconnect StreamExecutor with strength 1 edge matrix: 2025-02-18 22:14:33.151746: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1108] 0 2025-02-18 22:14:33.151755: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1121] 0: N 2025-02-18 22:14:33.153029: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1247] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 10023 MB memory) -> physical GPU (device: 0, name: NVIDIA GeForce RTX 2080 Ti, pci bus id: 0000:41:00.0, compute capability: 7.5) WARNING:tensorflow:From /home/admin/workarea/git/Velours/python/mtr/mask_rcnn/mask_detection.py:69: The name tf.keras.backend.set_session is deprecated. Please use tf.compat.v1.keras.backend.set_session instead. 2025-02-18 22:14:33.424945: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1561] Found device 0 with properties: pciBusID: 0000:41:00.0 name: NVIDIA GeForce RTX 2080 Ti computeCapability: 7.5 coreClock: 1.545GHz coreCount: 68 deviceMemorySize: 10.76GiB deviceMemoryBandwidth: 573.69GiB/s 2025-02-18 22:14:33.425083: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1 2025-02-18 22:14:33.425103: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcublas.so.10 2025-02-18 22:14:33.425120: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcufft.so.10 2025-02-18 22:14:33.425136: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcurand.so.10 2025-02-18 22:14:33.425152: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusolver.so.10 2025-02-18 22:14:33.425167: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusparse.so.10 2025-02-18 22:14:33.425183: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudnn.so.7 2025-02-18 22:14:33.426361: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1703] Adding visible gpu devices: 0 2025-02-18 22:14:33.427536: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1561] Found device 0 with properties: pciBusID: 0000:41:00.0 name: NVIDIA GeForce RTX 2080 Ti computeCapability: 7.5 coreClock: 1.545GHz coreCount: 68 deviceMemorySize: 10.76GiB deviceMemoryBandwidth: 573.69GiB/s 2025-02-18 22:14:33.427570: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1 2025-02-18 22:14:33.427586: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcublas.so.10 2025-02-18 22:14:33.427600: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcufft.so.10 2025-02-18 22:14:33.427614: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcurand.so.10 2025-02-18 22:14:33.427629: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusolver.so.10 2025-02-18 22:14:33.427643: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusparse.so.10 2025-02-18 22:14:33.427657: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudnn.so.7 2025-02-18 22:14:33.428862: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1703] Adding visible gpu devices: 0 2025-02-18 22:14:33.428895: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1102] Device interconnect StreamExecutor with strength 1 edge matrix: 2025-02-18 22:14:33.428904: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1108] 0 2025-02-18 22:14:33.428911: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1121] 0: N 2025-02-18 22:14:33.430137: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1247] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 10023 MB memory) -> physical GPU (device: 0, name: NVIDIA GeForce RTX 2080 Ti, pci bus id: 0000:41:00.0, compute capability: 7.5) Using TensorFlow backend. WARNING:tensorflow:From /home/admin/workarea/install/Mask_RCNN/model.py:396: calling crop_and_resize_v1 (from tensorflow.python.ops.image_ops_impl) with box_ind is deprecated and will be removed in a future version. Instructions for updating: box_ind is deprecated, use box_indices instead WARNING:tensorflow:From /home/admin/workarea/install/Mask_RCNN/model.py:703: to_int32 (from tensorflow.python.ops.math_ops) is deprecated and will be removed in a future version. Instructions for updating: Use `tf.cast` instead. WARNING:tensorflow:From /home/admin/workarea/install/Mask_RCNN/model.py:729: to_float (from tensorflow.python.ops.math_ops) is deprecated and will be removed in a future version. Instructions for updating: Use `tf.cast` instead. Inside mask_sub_process Inside mask_detect About to load cache.load_thcl_param To do loadFromThcl(), then load ParamDescType : thcl2896 thcls : [{'id': 2896, 'mtr_user_id': 31, 'name': 'learn_convoyeur_qualipapia_nantes_poly_100521_1', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'background,carton_brun,carton_gris,cartonnette,kraft,autre_refus,metal,plastique,teint_dans_la_masse,environnement', 'svm_portfolios_learning': '0,0,0,0,0,0,0,0,0,0', 'photo_hashtag_type': 3663, 'photo_desc_type': 5309, 'type_classification': 'mask_rcnn', 'hashtag_id_list': '0,0,0,0,0,0,0,0,0,0'}] thcl {'id': 2896, 'mtr_user_id': 31, 'name': 'learn_convoyeur_qualipapia_nantes_poly_100521_1', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'background,carton_brun,carton_gris,cartonnette,kraft,autre_refus,metal,plastique,teint_dans_la_masse,environnement', 'svm_portfolios_learning': '0,0,0,0,0,0,0,0,0,0', 'photo_hashtag_type': 3663, 'photo_desc_type': 5309, 'type_classification': 'mask_rcnn', 'hashtag_id_list': '0,0,0,0,0,0,0,0,0,0'} Update svm_hashtag_type_desc : 5309 FOUND : 1 Here is data_from_sql_as_vec to set the ParamDescriptorType : (5309, 'learn_convoyeur_qualipapia_nantes_poly_100521_1', 16384, 25088, 'learn_convoyeur_qualipapia_nantes_poly_100521_1', 'pool5', 10.0, None, None, 256, None, 0, None, 8, None, None, -1000.0, 1, datetime.datetime(2021, 5, 10, 19, 20, 46), datetime.datetime(2021, 5, 10, 19, 20, 46)) {'thcl': {'id': 2896, 'mtr_user_id': 31, 'name': 'learn_convoyeur_qualipapia_nantes_poly_100521_1', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'background,carton_brun,carton_gris,cartonnette,kraft,autre_refus,metal,plastique,teint_dans_la_masse,environnement', 'svm_portfolios_learning': '0,0,0,0,0,0,0,0,0,0', 'photo_hashtag_type': 3663, 'photo_desc_type': 5309, 'type_classification': 'mask_rcnn', 'hashtag_id_list': '0,0,0,0,0,0,0,0,0,0'}, 'list_hashtags': ['background', 'carton_brun', 'carton_gris', 'cartonnette', 'kraft', 'autre_refus', 'metal', 'plastique', 'teint_dans_la_masse', 'environnement'], 'list_hashtags_csv': 'background,carton_brun,carton_gris,cartonnette,kraft,autre_refus,metal,plastique,teint_dans_la_masse,environnement', 'svm_portfolios_learning': '0,0,0,0,0,0,0,0,0,0', 'photo_hashtag_type': 3663, 'svm_hashtag_type_desc': 5309, 'photo_desc_type': 5309, 'pb_hashtag_id_or_classifier': 0} list_class_names : ['background', 'carton_brun', 'carton_gris', 'cartonnette', 'kraft', 'autre_refus', 'metal', 'plastique', 'teint_dans_la_masse', 'environnement'] Configurations: BACKBONE resnet101 BACKBONE_SHAPES [[160 160] [ 80 80] [ 40 40] [ 20 20] [ 10 10]] BACKBONE_STRIDES [4, 8, 16, 32, 64] BATCH_SIZE 1 BBOX_STD_DEV [0.1 0.1 0.2 0.2] DETECTION_MAX_INSTANCES 100 DETECTION_MIN_CONFIDENCE 0.3 DETECTION_NMS_THRESHOLD 0.3 GPU_COUNT 1 IMAGES_PER_GPU 1 IMAGE_MAX_DIM 640 IMAGE_MIN_DIM 640 IMAGE_PADDING True IMAGE_SHAPE [640 640 3] LEARNING_MOMENTUM 0.9 LEARNING_RATE 0.001 LOSS_WEIGHTS {'rpn_class_loss': 1.0, 'rpn_bbox_loss': 1.0, 'mrcnn_class_loss': 1.0, 'mrcnn_bbox_loss': 1.0, 'mrcnn_mask_loss': 1.0} MASK_POOL_SIZE 14 MASK_SHAPE [28, 28] MAX_GT_INSTANCES 100 MEAN_PIXEL [123.7 116.8 103.9] MINI_MASK_SHAPE (56, 56) NAME learn_convoyeur_qualipapia_nantes_poly_100521_1 NUM_CLASSES 10 POOL_SIZE 7 POST_NMS_ROIS_INFERENCE 1000 POST_NMS_ROIS_TRAINING 2000 ROI_POSITIVE_RATIO 0.33 RPN_ANCHOR_RATIOS [0.5, 1, 2] RPN_ANCHOR_SCALES (16, 32, 64, 128, 256) RPN_ANCHOR_STRIDE 1 RPN_BBOX_STD_DEV [0.1 0.1 0.2 0.2] RPN_NMS_THRESHOLD 0.7 RPN_TRAIN_ANCHORS_PER_IMAGE 256 STEPS_PER_EPOCH 1000 TRAIN_ROIS_PER_IMAGE 200 USE_MINI_MASK True USE_RPN_ROIS True VALIDATION_STEPS 50 WEIGHT_DECAY 0.0001 model_param file didn't exist model_name : learn_convoyeur_qualipapia_nantes_poly_100521_1 model_type : mask_rcnn list file need : ['mask_model.h5'] file exist in s3 : ['mask_model.h5'] file manque in s3 : [] 2025-02-18 22:14:43.715930: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcublas.so.10 2025-02-18 22:14:43.885341: 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 : 13 NEW PHOTO Processing 1 images image shape: (2160, 3264, 3) min: 0.00000 max: 255.00000 molded_images shape: (1, 640, 640, 3) min: -123.70000 max: 151.10000 image_metas shape: (1, 18) min: 0.00000 max: 3264.00000 nb d'objets trouves : 9 NEW PHOTO Processing 1 images image shape: (2160, 3264, 3) min: 0.00000 max: 255.00000 molded_images shape: (1, 640, 640, 3) min: -123.70000 max: 151.10000 image_metas shape: (1, 18) min: 0.00000 max: 3264.00000 nb d'objets trouves : 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 : 18 NEW PHOTO Processing 1 images image shape: (2160, 3264, 3) min: 0.00000 max: 255.00000 molded_images shape: (1, 640, 640, 3) min: -123.70000 max: 151.10000 image_metas shape: (1, 18) min: 0.00000 max: 3264.00000 nb d'objets trouves : 22 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 : 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 : 14 NEW PHOTO Processing 1 images image shape: (2160, 3264, 3) min: 0.00000 max: 255.00000 molded_images shape: (1, 640, 640, 3) min: -123.70000 max: 151.10000 image_metas shape: (1, 18) min: 0.00000 max: 3264.00000 nb d'objets trouves : 17 Detection mask done ! Trying to reset tf kernel 1350165 begin to check gpu status inside check gpu memory l 3610 free memory gpu now : 5525 tf kernel not reseted sub process len(results) : 10 len(list_Values) 0 None max_time_sub_proc : 3600 parent process len(results) : 10 len(list_Values) 0 process is alive finish correctly or not : True after detect begin to check gpu status inside check gpu memory l 3610 free memory gpu now : 10814 list_Values should be empty [] To do loadFromThcl(), then load ParamDescType : thcl2896 Catched exception ! Connect or reconnect ! thcls : [{'id': 2896, 'mtr_user_id': 31, 'name': 'learn_convoyeur_qualipapia_nantes_poly_100521_1', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'background,carton_brun,carton_gris,cartonnette,kraft,autre_refus,metal,plastique,teint_dans_la_masse,environnement', 'svm_portfolios_learning': '0,0,0,0,0,0,0,0,0,0', 'photo_hashtag_type': 3663, 'photo_desc_type': 5309, 'type_classification': 'mask_rcnn', 'hashtag_id_list': '0,0,0,0,0,0,0,0,0,0'}] thcl {'id': 2896, 'mtr_user_id': 31, 'name': 'learn_convoyeur_qualipapia_nantes_poly_100521_1', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'background,carton_brun,carton_gris,cartonnette,kraft,autre_refus,metal,plastique,teint_dans_la_masse,environnement', 'svm_portfolios_learning': '0,0,0,0,0,0,0,0,0,0', 'photo_hashtag_type': 3663, 'photo_desc_type': 5309, 'type_classification': 'mask_rcnn', 'hashtag_id_list': '0,0,0,0,0,0,0,0,0,0'} Update svm_hashtag_type_desc : 5309 ['background', 'carton_brun', 'carton_gris', 'cartonnette', 'kraft', 'autre_refus', 'metal', 'plastique', 'teint_dans_la_masse', 'environnement'] time for calcul the mask position with numpy : 0.00026702880859375 nb_pixel_total : 5568 time to create 1 rle with old method : 0.008434057235717773 length of segment : 49 time for calcul the mask position with numpy : 0.005068778991699219 nb_pixel_total : 235099 time to create 1 rle with new method : 0.012834548950195312 length of segment : 660 time for calcul the mask position with numpy : 0.0006868839263916016 nb_pixel_total : 45448 time to create 1 rle with old method : 0.05018472671508789 length of segment : 442 time for calcul the mask position with numpy : 0.0011243820190429688 nb_pixel_total : 63899 time to create 1 rle with old method : 0.06755518913269043 length of segment : 427 time for calcul the mask position with numpy : 0.0005626678466796875 nb_pixel_total : 44673 time to create 1 rle with old method : 0.04900050163269043 length of segment : 252 time for calcul the mask position with numpy : 0.046260833740234375 nb_pixel_total : 1347866 time to create 1 rle with new method : 0.9312021732330322 length of segment : 3098 time for calcul the mask position with numpy : 0.0004048347473144531 nb_pixel_total : 22287 time to create 1 rle with old method : 0.02466893196105957 length of segment : 243 time for calcul the mask position with numpy : 0.0004322528839111328 nb_pixel_total : 19183 time to create 1 rle with old method : 0.021360158920288086 length of segment : 456 time for calcul the mask position with numpy : 0.000804901123046875 nb_pixel_total : 17632 time to create 1 rle with old method : 0.020069360733032227 length of segment : 432 time for calcul the mask position with numpy : 0.003810405731201172 nb_pixel_total : 318563 time to create 1 rle with new method : 0.010165214538574219 length of segment : 728 time for calcul the mask position with numpy : 0.0010514259338378906 nb_pixel_total : 30665 time to create 1 rle with old method : 0.04418826103210449 length of segment : 276 time for calcul the mask position with numpy : 0.00023651123046875 nb_pixel_total : 8099 time to create 1 rle with old method : 0.011074066162109375 length of segment : 92 time for calcul the mask position with numpy : 0.0007927417755126953 nb_pixel_total : 40954 time to create 1 rle with old method : 0.0518031120300293 length of segment : 227 time for calcul the mask position with numpy : 0.0011582374572753906 nb_pixel_total : 63050 time to create 1 rle with old method : 0.08553838729858398 length of segment : 328 time for calcul the mask position with numpy : 0.0006518363952636719 nb_pixel_total : 31951 time to create 1 rle with old method : 0.04559159278869629 length of segment : 252 time for calcul the mask position with numpy : 0.0004093647003173828 nb_pixel_total : 18577 time to create 1 rle with old method : 0.02817535400390625 length of segment : 155 time for calcul the mask position with numpy : 0.0003247261047363281 nb_pixel_total : 11567 time to create 1 rle with old method : 0.01723623275756836 length of segment : 163 time for calcul the mask position with numpy : 0.0007452964782714844 nb_pixel_total : 27600 time to create 1 rle with old method : 0.0500490665435791 length of segment : 332 time for calcul the mask position with numpy : 0.0006864070892333984 nb_pixel_total : 34221 time to create 1 rle with old method : 0.04589533805847168 length of segment : 308 time for calcul the mask position with numpy : 0.0003986358642578125 nb_pixel_total : 20109 time to create 1 rle with old method : 0.028162240982055664 length of segment : 246 time for calcul the mask position with numpy : 0.0008618831634521484 nb_pixel_total : 39117 time to create 1 rle with old method : 0.04549217224121094 length of segment : 387 time for calcul the mask position with numpy : 0.0002377033233642578 nb_pixel_total : 10953 time to create 1 rle with old method : 0.013153553009033203 length of segment : 100 time for calcul the mask position with numpy : 0.0002269744873046875 nb_pixel_total : 10756 time to create 1 rle with old method : 0.012784242630004883 length of segment : 113 time for calcul the mask position with numpy : 0.0017151832580566406 nb_pixel_total : 123323 time to create 1 rle with old method : 0.13531279563903809 length of segment : 540 time for calcul the mask position with numpy : 0.00023746490478515625 nb_pixel_total : 9879 time to create 1 rle with old method : 0.0113525390625 length of segment : 99 time for calcul the mask position with numpy : 0.0006911754608154297 nb_pixel_total : 44048 time to create 1 rle with old method : 0.048320770263671875 length of segment : 276 time for calcul the mask position with numpy : 0.00017881393432617188 nb_pixel_total : 5635 time to create 1 rle with old method : 0.007078409194946289 length of segment : 87 time for calcul the mask position with numpy : 0.0016109943389892578 nb_pixel_total : 75719 time to create 1 rle with old method : 0.07829070091247559 length of segment : 343 time for calcul the mask position with numpy : 0.003380298614501953 nb_pixel_total : 138904 time to create 1 rle with old method : 0.14463019371032715 length of segment : 631 time for calcul the mask position with numpy : 0.0006554126739501953 nb_pixel_total : 17733 time to create 1 rle with old method : 0.01922011375427246 length of segment : 308 time for calcul the mask position with numpy : 0.0019445419311523438 nb_pixel_total : 45394 time to create 1 rle with old method : 0.04969596862792969 length of segment : 329 time for calcul the mask position with numpy : 0.0008223056793212891 nb_pixel_total : 27963 time to create 1 rle with old method : 0.031275272369384766 length of segment : 175 time for calcul the mask position with numpy : 0.00019812583923339844 nb_pixel_total : 3315 time to create 1 rle with old method : 0.003767728805541992 length of segment : 111 time for calcul the mask position with numpy : 0.0014834403991699219 nb_pixel_total : 36723 time to create 1 rle with old method : 0.04034090042114258 length of segment : 633 time for calcul the mask position with numpy : 0.0018939971923828125 nb_pixel_total : 65676 time to create 1 rle with old method : 0.07126212120056152 length of segment : 317 time for calcul the mask position with numpy : 0.02472376823425293 nb_pixel_total : 1261378 time to create 1 rle with new method : 0.06161069869995117 length of segment : 1796 time for calcul the mask position with numpy : 0.0003139972686767578 nb_pixel_total : 2401 time to create 1 rle with old method : 0.002752065658569336 length of segment : 77 time for calcul the mask position with numpy : 0.0008518695831298828 nb_pixel_total : 33642 time to create 1 rle with old method : 0.03568720817565918 length of segment : 202 time for calcul the mask position with numpy : 0.00023317337036132812 nb_pixel_total : 2420 time to create 1 rle with old method : 0.0027894973754882812 length of segment : 78 time for calcul the mask position with numpy : 0.0001316070556640625 nb_pixel_total : 2709 time to create 1 rle with old method : 0.003090381622314453 length of segment : 70 time for calcul the mask position with numpy : 0.005341768264770508 nb_pixel_total : 186365 time to create 1 rle with new method : 0.010628700256347656 length of segment : 799 time for calcul the mask position with numpy : 0.003198385238647461 nb_pixel_total : 86023 time to create 1 rle with old method : 0.10315895080566406 length of segment : 265 time for calcul the mask position with numpy : 0.004990100860595703 nb_pixel_total : 184820 time to create 1 rle with new method : 0.00753021240234375 length of segment : 502 time for calcul the mask position with numpy : 0.0006206035614013672 nb_pixel_total : 18032 time to create 1 rle with old method : 0.021839380264282227 length of segment : 122 time for calcul the mask position with numpy : 0.0019352436065673828 nb_pixel_total : 65423 time to create 1 rle with old method : 0.07422709465026855 length of segment : 279 time for calcul the mask position with numpy : 0.0036880970001220703 nb_pixel_total : 16203 time to create 1 rle with old method : 0.01897740364074707 length of segment : 250 time for calcul the mask position with numpy : 0.00014829635620117188 nb_pixel_total : 4040 time to create 1 rle with old method : 0.004760026931762695 length of segment : 99 time for calcul the mask position with numpy : 0.00014209747314453125 nb_pixel_total : 1450 time to create 1 rle with old method : 0.001779317855834961 length of segment : 51 time for calcul the mask position with numpy : 0.003458738327026367 nb_pixel_total : 81490 time to create 1 rle with old method : 0.09247565269470215 length of segment : 198 time for calcul the mask position with numpy : 0.0005395412445068359 nb_pixel_total : 10781 time to create 1 rle with old method : 0.01273798942565918 length of segment : 169 time for calcul the mask position with numpy : 8.344650268554688e-05 nb_pixel_total : 1458 time to create 1 rle with old method : 0.0019004344940185547 length of segment : 47 time for calcul the mask position with numpy : 0.001417398452758789 nb_pixel_total : 44436 time to create 1 rle with old method : 0.04850959777832031 length of segment : 269 time for calcul the mask position with numpy : 0.001146078109741211 nb_pixel_total : 25245 time to create 1 rle with old method : 0.028595447540283203 length of segment : 140 time for calcul the mask position with numpy : 0.07178521156311035 nb_pixel_total : 1453020 time to create 1 rle with new method : 0.12829041481018066 length of segment : 1861 time for calcul the mask position with numpy : 0.0007882118225097656 nb_pixel_total : 19358 time to create 1 rle with old method : 0.021658658981323242 length of segment : 190 time for calcul the mask position with numpy : 0.003589153289794922 nb_pixel_total : 69892 time to create 1 rle with old method : 0.07903146743774414 length of segment : 470 time for calcul the mask position with numpy : 0.0001461505889892578 nb_pixel_total : 1782 time to create 1 rle with old method : 0.0022020339965820312 length of segment : 34 time for calcul the mask position with numpy : 0.00029587745666503906 nb_pixel_total : 6727 time to create 1 rle with old method : 0.007953166961669922 length of segment : 83 time for calcul the mask position with numpy : 0.004350423812866211 nb_pixel_total : 163387 time to create 1 rle with new method : 0.006791591644287109 length of segment : 897 time for calcul the mask position with numpy : 0.004215240478515625 nb_pixel_total : 172820 time to create 1 rle with new method : 0.009950876235961914 length of segment : 666 time for calcul the mask position with numpy : 0.0010020732879638672 nb_pixel_total : 12358 time to create 1 rle with old method : 0.01729106903076172 length of segment : 265 time for calcul the mask position with numpy : 0.0028009414672851562 nb_pixel_total : 114578 time to create 1 rle with old method : 0.12790679931640625 length of segment : 377 time for calcul the mask position with numpy : 0.09588623046875 nb_pixel_total : 1710947 time to create 1 rle with new method : 0.26832079887390137 length of segment : 1907 time for calcul the mask position with numpy : 0.00226593017578125 nb_pixel_total : 80699 time to create 1 rle with old method : 0.08884048461914062 length of segment : 342 time for calcul the mask position with numpy : 0.003175973892211914 nb_pixel_total : 134244 time to create 1 rle with old method : 0.14696836471557617 length of segment : 615 time for calcul the mask position with numpy : 0.0009143352508544922 nb_pixel_total : 51366 time to create 1 rle with old method : 0.05591392517089844 length of segment : 279 time for calcul the mask position with numpy : 0.000152587890625 nb_pixel_total : 3716 time to create 1 rle with old method : 0.004628419876098633 length of segment : 88 time for calcul the mask position with numpy : 0.0001697540283203125 nb_pixel_total : 2259 time to create 1 rle with old method : 0.0028896331787109375 length of segment : 55 time for calcul the mask position with numpy : 0.0019333362579345703 nb_pixel_total : 23743 time to create 1 rle with old method : 0.0277101993560791 length of segment : 461 time for calcul the mask position with numpy : 0.0011413097381591797 nb_pixel_total : 42990 time to create 1 rle with old method : 0.04742145538330078 length of segment : 300 time for calcul the mask position with numpy : 0.0016696453094482422 nb_pixel_total : 75073 time to create 1 rle with old method : 0.0798499584197998 length of segment : 351 time for calcul the mask position with numpy : 0.0001800060272216797 nb_pixel_total : 4237 time to create 1 rle with old method : 0.004755496978759766 length of segment : 102 time for calcul the mask position with numpy : 0.0002052783966064453 nb_pixel_total : 3777 time to create 1 rle with old method : 0.004604816436767578 length of segment : 84 time for calcul the mask position with numpy : 0.004233598709106445 nb_pixel_total : 175812 time to create 1 rle with new method : 0.007195949554443359 length of segment : 518 time for calcul the mask position with numpy : 0.0006897449493408203 nb_pixel_total : 16130 time to create 1 rle with old method : 0.017656564712524414 length of segment : 120 time for calcul the mask position with numpy : 0.000995635986328125 nb_pixel_total : 28117 time to create 1 rle with old method : 0.0295257568359375 length of segment : 241 time for calcul the mask position with numpy : 0.0004649162292480469 nb_pixel_total : 7081 time to create 1 rle with old method : 0.008085489273071289 length of segment : 146 time for calcul the mask position with numpy : 0.0014805793762207031 nb_pixel_total : 53652 time to create 1 rle with old method : 0.056220054626464844 length of segment : 244 time for calcul the mask position with numpy : 0.001617431640625 nb_pixel_total : 7276 time to create 1 rle with old method : 0.008156776428222656 length of segment : 197 time for calcul the mask position with numpy : 0.0001800060272216797 nb_pixel_total : 3832 time to create 1 rle with old method : 0.004488468170166016 length of segment : 56 time for calcul the mask position with numpy : 0.001561880111694336 nb_pixel_total : 47727 time to create 1 rle with old method : 0.052754878997802734 length of segment : 301 time for calcul the mask position with numpy : 0.0008573532104492188 nb_pixel_total : 25893 time to create 1 rle with old method : 0.027806997299194336 length of segment : 209 time for calcul the mask position with numpy : 0.002053976058959961 nb_pixel_total : 58358 time to create 1 rle with old method : 0.06359982490539551 length of segment : 440 time for calcul the mask position with numpy : 0.0032279491424560547 nb_pixel_total : 118505 time to create 1 rle with old method : 0.12653398513793945 length of segment : 401 time for calcul the mask position with numpy : 0.0025794506072998047 nb_pixel_total : 76780 time to create 1 rle with old method : 0.09109735488891602 length of segment : 375 time for calcul the mask position with numpy : 0.00014162063598632812 nb_pixel_total : 2005 time to create 1 rle with old method : 0.0026247501373291016 length of segment : 28 time for calcul the mask position with numpy : 0.0014295578002929688 nb_pixel_total : 28137 time to create 1 rle with old method : 0.031210899353027344 length of segment : 277 time for calcul the mask position with numpy : 0.0008478164672851562 nb_pixel_total : 25797 time to create 1 rle with old method : 0.029628515243530273 length of segment : 215 time for calcul the mask position with numpy : 0.0023164749145507812 nb_pixel_total : 74555 time to create 1 rle with old method : 0.08623528480529785 length of segment : 410 time for calcul the mask position with numpy : 0.0018627643585205078 nb_pixel_total : 68215 time to create 1 rle with old method : 0.07496929168701172 length of segment : 376 time for calcul the mask position with numpy : 0.0007016658782958984 nb_pixel_total : 21767 time to create 1 rle with old method : 0.024110078811645508 length of segment : 198 time for calcul the mask position with numpy : 0.0002193450927734375 nb_pixel_total : 6474 time to create 1 rle with old method : 0.007505178451538086 length of segment : 106 time for calcul the mask position with numpy : 0.01030421257019043 nb_pixel_total : 327887 time to create 1 rle with new method : 0.01972365379333496 length of segment : 775 time for calcul the mask position with numpy : 0.00037384033203125 nb_pixel_total : 6854 time to create 1 rle with old method : 0.00795888900756836 length of segment : 240 time for calcul the mask position with numpy : 0.0003521442413330078 nb_pixel_total : 8580 time to create 1 rle with old method : 0.010077476501464844 length of segment : 116 time for calcul the mask position with numpy : 0.0022225379943847656 nb_pixel_total : 52501 time to create 1 rle with old method : 0.05636882781982422 length of segment : 377 time for calcul the mask position with numpy : 0.0009338855743408203 nb_pixel_total : 31572 time to create 1 rle with old method : 0.03423714637756348 length of segment : 160 time for calcul the mask position with numpy : 0.0014743804931640625 nb_pixel_total : 46569 time to create 1 rle with old method : 0.05025672912597656 length of segment : 357 time for calcul the mask position with numpy : 0.0015819072723388672 nb_pixel_total : 49115 time to create 1 rle with old method : 0.05466055870056152 length of segment : 220 time for calcul the mask position with numpy : 0.0004329681396484375 nb_pixel_total : 19484 time to create 1 rle with old method : 0.021201610565185547 length of segment : 132 time for calcul the mask position with numpy : 0.0009129047393798828 nb_pixel_total : 30476 time to create 1 rle with old method : 0.0334324836730957 length of segment : 168 time for calcul the mask position with numpy : 0.0006690025329589844 nb_pixel_total : 13935 time to create 1 rle with old method : 0.01547694206237793 length of segment : 180 time for calcul the mask position with numpy : 0.0002117156982421875 nb_pixel_total : 3077 time to create 1 rle with old method : 0.003795146942138672 length of segment : 43 time for calcul the mask position with numpy : 0.0027608871459960938 nb_pixel_total : 18255 time to create 1 rle with old method : 0.023270368576049805 length of segment : 331 time for calcul the mask position with numpy : 0.001299142837524414 nb_pixel_total : 51343 time to create 1 rle with old method : 0.053932905197143555 length of segment : 381 time for calcul the mask position with numpy : 0.0002148151397705078 nb_pixel_total : 3553 time to create 1 rle with old method : 0.004082202911376953 length of segment : 42 time for calcul the mask position with numpy : 0.005731105804443359 nb_pixel_total : 193613 time to create 1 rle with new method : 0.009175300598144531 length of segment : 725 time for calcul the mask position with numpy : 0.0005030632019042969 nb_pixel_total : 20283 time to create 1 rle with old method : 0.022351980209350586 length of segment : 141 time spent for convertir_results : 11.410106182098389 Inside saveOutput : final : False verbose : 0 eke 12-6-18 : saveMask need to be cleaned for new output ! Number saved : None batch 1 Loaded 108 chid ids of type : 3663 Number RLEs to save : 37701 save missing photos in datou_result : time spend for datou_step_exec : 53.51954412460327 time spend to save output : 3.5964365005493164 total time spend for step 1 : 57.11598062515259 step2:crop_condition Tue Feb 18 22:15:27 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure Loading chi in step crop with photo_hashtag_type : 3663 Loading chi in step crop for list_pids : 10 ! batch 1 Loaded 108 chid ids of type : 3663 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ begin to crop the class : teint_dans_la_masse param for this class : {'min_score': 0.7} filtre for class : teint_dans_la_masse hashtag_id of this class : 2107752385 we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! map_result returned by crop_photo_return_map_crop : length : 8 About to insert : list_path_to_insert length 8 new photo from crops ! we have finished the crop for the class : teint_dans_la_masse begin to crop the class : autre_refus param for this class : {'min_score': 0.5} filtre for class : autre_refus hashtag_id of this class : 2107752406 we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! map_result returned by crop_photo_return_map_crop : length : 8 About to insert : list_path_to_insert length 8 new photo from crops ! we have finished the crop for the class : 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 ! 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 : 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 ! map_result returned by crop_photo_return_map_crop : length : 40 About to insert : list_path_to_insert length 40 new photo from crops ! we have finished the crop for the class : cartonnette begin to crop the class : carton_brun param for this class : {'min_score': 0.7} filtre for class : carton_brun hashtag_id of this class : 2107753024 we have both polygon and rles Next one ! we have both polygon and rles Next one ! map_result returned by crop_photo_return_map_crop : length : 2 About to insert : list_path_to_insert length 2 new photo from crops ! we have finished the crop for the class : carton_brun begin to crop the class : plastique param for this class : {'min_score': 0.5} filtre for class : plastique hashtag_id of this class : 492725882 we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! 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 : 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 [1338371833, 1338371831, 1338371804, 1338371801, 1338371425, 1338371422, 1338371420, 1338371418, 1338371401, 1338371391] Looping around the photos to save general results len do output : 67 /-3679341569Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679341584Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679341595Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679341616Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679341624Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679341642Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679341652Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679341653Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679341563Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679341561Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679341590Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679341594Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679341630Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679341639Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679341645Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679341651Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679341565Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679341583Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679341596Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679341612Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679341560Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679341556Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679341557Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679341555Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679341554Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679341566Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679341567Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679341576Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679341571Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679341573Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679341570Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679341574Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679341582Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679341586Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679341580Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679341578Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679341593Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679341597Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679341604Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679341613Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679341601Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679341611Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679341598Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679341605Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679341607Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679341614Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679341617Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679341621Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679341623Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679341622Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679341628Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679341631Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679341633Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679341641Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679341637Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679341660Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679341654Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679341648Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679341657Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679341656Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679341572Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679341650Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679341587Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679341589Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679341581Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679341618Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3679341636Didn'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, '2597846') ('3459', '20656307', '1338371833', None, None, None, None, None, '2597846') ('3459', None, None, None, None, None, None, None, '2597846') ('3459', '20656307', '1338371831', None, None, None, None, None, '2597846') ('3459', None, None, None, None, None, None, None, '2597846') ('3459', '20656307', '1338371804', None, None, None, None, None, '2597846') ('3459', None, None, None, None, None, None, None, '2597846') ('3459', '20656307', '1338371801', None, None, None, None, None, '2597846') ('3459', None, None, None, None, None, None, None, '2597846') ('3459', '20656307', '1338371425', None, None, None, None, None, '2597846') ('3459', None, None, None, None, None, None, None, '2597846') ('3459', '20656307', '1338371422', None, None, None, None, None, '2597846') ('3459', None, None, None, None, None, None, None, '2597846') ('3459', '20656307', '1338371420', None, None, None, None, None, '2597846') ('3459', None, None, None, None, None, None, None, '2597846') ('3459', '20656307', '1338371418', None, None, None, None, None, '2597846') ('3459', None, None, None, None, None, None, None, '2597846') ('3459', '20656307', '1338371401', None, None, None, None, None, '2597846') ('3459', None, None, None, None, None, None, None, '2597846') ('3459', '20656307', '1338371391', None, None, None, None, None, '2597846') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 211 time used for this insertion : 0.028258323669433594 save_final save missing photos in datou_result : time spend for datou_step_exec : 23.39269471168518 time spend to save output : 0.03162789344787598 total time spend for step 2 : 23.424322605133057 step3:thcl Tue Feb 18 22:15:50 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.007680177688598633 time to convert the images to numpy array : 0.09540224075317383 time to import caffe and check if the image exist : 0.012023687362670898 time to convert the images to numpy array : 0.09741902351379395 time to import caffe and check if the image exist : 0.008905172348022461 time to convert the images to numpy array : 0.11350274085998535 time to import caffe and check if the image exist : 0.012103796005249023 time to convert the images to numpy array : 0.11355447769165039 time to import caffe and check if the image exist : 0.013343334197998047 time to convert the images to numpy array : 0.11487030982971191 time to import caffe and check if the image exist : 0.016936063766479492 time to convert the images to numpy array : 0.11509108543395996 time to import caffe and check if the image exist : 0.018755435943603516 time to convert the images to numpy array : 0.11951875686645508 time to import caffe and check if the image exist : 0.013098955154418945 time to convert the images to numpy array : 0.13690423965454102 time to import caffe and check if the image exist : 0.012593269348144531 time to convert the images to numpy array : 0.13952994346618652 time to import caffe and check if the image exist : 0.013206005096435547 time to convert the images to numpy array : 0.14982056617736816 total time to convert the images to numpy array : 0.42594456672668457 list photo_ids error: [] list photo_ids correct : [-3679341569, -3679341584, -3679341595, -3679341616, -3679341624, -3679341642, -3679341652, -3679341622, -3679341628, -3679341631, -3679341633, -3679341641, -3679341637, -3679341660, -3679341653, -3679341563, -3679341561, -3679341590, -3679341594, -3679341630, -3679341639, -3679341589, -3679341581, -3679341618, -3679341636, -3679341571, -3679341573, -3679341570, -3679341574, -3679341582, -3679341586, -3679341580, -3679341598, -3679341605, -3679341607, -3679341614, -3679341617, -3679341621, -3679341623, -3679341654, -3679341648, -3679341657, -3679341656, -3679341572, -3679341650, -3679341587, -3679341645, -3679341651, -3679341565, -3679341583, -3679341596, -3679341612, -3679341560, -3679341578, -3679341593, -3679341597, -3679341604, -3679341613, -3679341601, -3679341611, -3679341556, -3679341557, -3679341555, -3679341554, -3679341566, -3679341567, -3679341576] number of photos to traite : 67 try to delete the photos incorrect in DB tagging for thcl : 2456 To do loadFromThcl(), then load ParamDescType : thcl2456 thcls : [{'id': 2456, 'mtr_user_id': 31, 'name': 'learn_qualipapia_papier_refus_from_vlg_data_aug', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'papier,refus', 'svm_portfolios_learning': '3028087,3028251', 'photo_hashtag_type': 3049, 'photo_desc_type': 4999, 'type_classification': 'caffe', 'hashtag_id_list': '492668766,538914404'}] thcl {'id': 2456, 'mtr_user_id': 31, 'name': 'learn_qualipapia_papier_refus_from_vlg_data_aug', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'papier,refus', 'svm_portfolios_learning': '3028087,3028251', 'photo_hashtag_type': 3049, 'photo_desc_type': 4999, 'type_classification': 'caffe', 'hashtag_id_list': '492668766,538914404'} Update svm_hashtag_type_desc : 4999 FOUND : 1 Here is data_from_sql_as_vec to set the ParamDescriptorType : (4999, 'learn_qualipapia_papier_refus_from_vlg_data_aug', 16384, 25088, 'learn_qualipapia_papier_refus_from_vlg_data_aug', 'res5b', 10.0, None, None, 256, None, 0, None, 8, None, None, -1000.0, 1, datetime.datetime(2020, 10, 23, 14, 27, 22), datetime.datetime(2020, 10, 23, 14, 27, 22)) To loadFromThcl() : net_4999 begin to check gpu status inside check gpu memory l 3637 free memory gpu now : 10814 max_wait_temp : 1 max_wait : 0 FOUND : 1 Here is data_from_sql_as_vec to set the ParamDescriptorType : (4999, 'learn_qualipapia_papier_refus_from_vlg_data_aug', 16384, 25088, 'learn_qualipapia_papier_refus_from_vlg_data_aug', 'res5b', 10.0, None, None, 256, None, 0, None, 8, None, None, -1000.0, 1, datetime.datetime(2020, 10, 23, 14, 27, 22), datetime.datetime(2020, 10, 23, 14, 27, 22)) None mean_file_type : mean_file_path : prototxt_file_path : model : learn_qualipapia_papier_refus_from_vlg_data_aug Inside get_net Inside get_net before cache_data_model model_param file didn't exist Inside get_net before CDM.load_model_par_type model_name : learn_qualipapia_papier_refus_from_vlg_data_aug model_type : caffe list file need : ['caffemodel', 'deploy_conv_normal.prototxt', 'deploy_fc.prototxt', 'deploy.prototxt', 'mean.npy', 'synset_words.txt'] file exist in s3 : ['caffemodel', 'deploy.prototxt', 'mean.npy', 'synset_words.txt'] file manque in s3 : ['deploy_conv_normal.prototxt', 'deploy_fc.prototxt'] local folder : /data/models_weight/learn_qualipapia_papier_refus_from_vlg_data_aug /data/models_weight/learn_qualipapia_papier_refus_from_vlg_data_aug/caffemodel size_local : 44972172 size in s3 : 44972172 create time local : 2021-08-09 05:55:48 create time in s3 : 2021-08-06 19:28:49 caffemodel already exist and didn't need to update /data/models_weight/learn_qualipapia_papier_refus_from_vlg_data_aug/deploy.prototxt size_local : 17311 size in s3 : 17311 create time local : 2021-08-09 05:55:48 create time in s3 : 2021-08-06 19:28:49 deploy.prototxt already exist and didn't need to update /data/models_weight/learn_qualipapia_papier_refus_from_vlg_data_aug/mean.npy size_local : 1572992 size in s3 : 1572992 create time local : 2021-08-09 05:55:48 create time in s3 : 2021-08-06 19:28:51 mean.npy already exist and didn't need to update /data/models_weight/learn_qualipapia_papier_refus_from_vlg_data_aug/synset_words.txt size_local : 57 size in s3 : 57 create time local : 2021-08-09 05:55:48 create time in s3 : 2021-08-06 19:28:49 synset_words.txt already exist and didn't need to update Inside get_net after CDM.load_model_par_type After if not only_with_local_cache: /home/admin/workarea/install/caffe_cuda8_python3/python/:/home/admin/workarea/install/darknet/:/home/admin/workarea/git/Velours/python:/home/admin/workarea/install/caffe_frcnn_python3/py-faster-rcnn/caffe-fast-rcnn/python:/home/admin/mtr/.credentials:/home/admin/workarea/install/caffe/python:/home/admin/workarea/install/caffe_frcnn/py-faster-rcnn/tools/:/home/admin/workarea/git/fotonowerpip/:/home/admin/workarea/install/segment-anything:/home/admin//workarea/git/pyfvs/ Here before set mode gpu Doing nothing but we could set mode gpu after set mode gpu prototxt_filename : /data/models_weight/learn_qualipapia_papier_refus_from_vlg_data_aug/deploy.prototxt caffemodel_filename : /data/models_weight/learn_qualipapia_papier_refus_from_vlg_data_aug/caffemodel now we set caffe to gpu mode before predict begin to check gpu status inside check gpu memory l 3637 free memory gpu now : 10595 max_wait_temp : 1 max_wait : 0 dict_keys(['prob']) time used to do the prepocess of the images : 0.701502799987793 time used to do the prediction : 0.19222402572631836 we don't save the descriptors for this thcl 2456 tagging for thcl : 2868 To do loadFromThcl(), then load ParamDescType : thcl2868 thcls : [{'id': 2868, 'mtr_user_id': 31, 'name': 'learn_papier_nantes_300421', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Carton_brun,Carton_gris,Teint_Dans_La_Masse,autre_refus,cartonnette,environnement,kraft,metal,papier,plastique', 'svm_portfolios_learning': '3752117,3752118,3752123,3752106,3752116,3752124,3752119,3581575,3486029,3752122', 'photo_hashtag_type': 3632, 'photo_desc_type': 5288, 'type_classification': 'caffe', 'hashtag_id_list': '2107753024,2107753020,2107752385,2107752406,702398920,493012381,493202403,492628673,492668766,492725882'}] thcl {'id': 2868, 'mtr_user_id': 31, 'name': 'learn_papier_nantes_300421', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Carton_brun,Carton_gris,Teint_Dans_La_Masse,autre_refus,cartonnette,environnement,kraft,metal,papier,plastique', 'svm_portfolios_learning': '3752117,3752118,3752123,3752106,3752116,3752124,3752119,3581575,3486029,3752122', 'photo_hashtag_type': 3632, 'photo_desc_type': 5288, 'type_classification': 'caffe', 'hashtag_id_list': '2107753024,2107753020,2107752385,2107752406,702398920,493012381,493202403,492628673,492668766,492725882'} Update svm_hashtag_type_desc : 5288 FOUND : 1 Here is data_from_sql_as_vec to set the ParamDescriptorType : (5288, 'learn_papier_nantes_300421', 512, 512, 'learn_papier_nantes_300421', 'pool5', 10.0, None, None, 256, None, 0, None, 8, None, None, -1000.0, 1, datetime.datetime(2021, 4, 30, 17, 9, 41), datetime.datetime(2021, 4, 30, 17, 9, 41)) To loadFromThcl() : net_5288 begin to check gpu status inside check gpu memory l 3637 free memory gpu now : 10593 max_wait_temp : 1 max_wait : 0 FOUND : 1 Here is data_from_sql_as_vec to set the ParamDescriptorType : (5288, 'learn_papier_nantes_300421', 512, 512, 'learn_papier_nantes_300421', 'pool5', 10.0, None, None, 256, None, 0, None, 8, None, None, -1000.0, 1, datetime.datetime(2021, 4, 30, 17, 9, 41), datetime.datetime(2021, 4, 30, 17, 9, 41)) None mean_file_type : mean_file_path : prototxt_file_path : model : learn_papier_nantes_300421 Inside get_net Inside get_net before cache_data_model model_param file didn't exist Inside get_net before CDM.load_model_par_type model_name : learn_papier_nantes_300421 model_type : caffe list file need : ['caffemodel', 'deploy_conv_normal.prototxt', 'deploy_fc.prototxt', 'deploy.prototxt', 'mean.npy', 'synset_words.txt'] file exist in s3 : ['caffemodel', 'deploy.prototxt', 'mean.npy', 'synset_words.txt'] file manque in s3 : ['deploy_conv_normal.prototxt', 'deploy_fc.prototxt'] local folder : /data/models_weight/learn_papier_nantes_300421 /data/models_weight/learn_papier_nantes_300421/caffemodel size_local : 44791983 size in s3 : 44791983 create time local : 2021-08-09 05:55:59 create time in s3 : 2021-08-06 19:22:13 caffemodel already exist and didn't need to update /data/models_weight/learn_papier_nantes_300421/deploy.prototxt size_local : 17255 size in s3 : 17255 create time local : 2021-08-09 05:55:59 create time in s3 : 2021-08-06 19:22:12 deploy.prototxt already exist and didn't need to update /data/models_weight/learn_papier_nantes_300421/mean.npy size_local : 1572992 size in s3 : 1572992 create time local : 2021-08-09 05:55:59 create time in s3 : 2021-08-06 19:22:14 mean.npy already exist and didn't need to update /data/models_weight/learn_papier_nantes_300421/synset_words.txt size_local : 331 size in s3 : 331 create time local : 2021-08-09 05:56:00 create time in s3 : 2021-08-06 19:22:12 synset_words.txt already exist and didn't need to update Inside get_net after CDM.load_model_par_type After if not only_with_local_cache: /home/admin/workarea/install/caffe_cuda8_python3/python/:/home/admin/workarea/install/darknet/:/home/admin/workarea/git/Velours/python:/home/admin/workarea/install/caffe_frcnn_python3/py-faster-rcnn/caffe-fast-rcnn/python:/home/admin/mtr/.credentials:/home/admin/workarea/install/caffe/python:/home/admin/workarea/install/caffe_frcnn/py-faster-rcnn/tools/:/home/admin/workarea/git/fotonowerpip/:/home/admin/workarea/install/segment-anything:/home/admin//workarea/git/pyfvs/ Here before set mode gpu Doing nothing but we could set mode gpu after set mode gpu prototxt_filename : /data/models_weight/learn_papier_nantes_300421/deploy.prototxt caffemodel_filename : /data/models_weight/learn_papier_nantes_300421/caffemodel now we set caffe to gpu mode before predict begin to check gpu status inside check gpu memory l 3637 free memory gpu now : 10593 max_wait_temp : 1 max_wait : 0 dict_keys(['prob']) time used to do the prepocess of the images : 0.7149336338043213 time used to do the prediction : 0.13217425346374512 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 : 2.4557113647460938e-05 save missing photos in datou_result : time spend for datou_step_exec : 9.064277410507202 time spend to save output : 0.0005776882171630859 total time spend for step 3 : 9.064855098724365 step4:merge_mask_thcl_custom Tue Feb 18 22:15:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 1 Inconsistent number of input and output, step which parrallelize and manage error in input by avoiding sending an output for this data can't be used in tree dependencies of input and output complete output_args for input 2 VR 22-3-18 : For now we do not clean correctly the datou structure Begin step merge_mask_thcl_custom batch 1 Loaded 108 chid ids of type : 3663 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++As expected we have just one thcl present End of step merge_mask_thcl_custom Inside saveOutput : final : False verbose : 0 saveOutput not yet implemented for datou_step.type : merge_mask_thcl_custom we use saveGeneral [1338371833, 1338371831, 1338371804, 1338371801, 1338371425, 1338371422, 1338371420, 1338371418, 1338371401, 1338371391] Looping around the photos to save general results len do output : 10 /1338371833Didn't retrieve data .Didn't retrieve data . /1338371831Didn't retrieve data .Didn't retrieve data . /1338371804Didn't retrieve data .Didn't retrieve data . /1338371801Didn't retrieve data .Didn't retrieve data . /1338371425Didn't retrieve data .Didn't retrieve data . /1338371422Didn't retrieve data .Didn't retrieve data . /1338371420Didn't retrieve data .Didn't retrieve data . /1338371418Didn't retrieve data .Didn't retrieve data . /1338371401Didn't retrieve data .Didn't retrieve data . /1338371391Didn'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, '2597846') ('3459', '20656307', '1338371833', None, None, None, None, None, '2597846') ('3459', None, None, None, None, None, None, None, '2597846') ('3459', '20656307', '1338371831', None, None, None, None, None, '2597846') ('3459', None, None, None, None, None, None, None, '2597846') ('3459', '20656307', '1338371804', None, None, None, None, None, '2597846') ('3459', None, None, None, None, None, None, None, '2597846') ('3459', '20656307', '1338371801', None, None, None, None, None, '2597846') ('3459', None, None, None, None, None, None, None, '2597846') ('3459', '20656307', '1338371425', None, None, None, None, None, '2597846') ('3459', None, None, None, None, None, None, None, '2597846') ('3459', '20656307', '1338371422', None, None, None, None, None, '2597846') ('3459', None, None, None, None, None, None, None, '2597846') ('3459', '20656307', '1338371420', None, None, None, None, None, '2597846') ('3459', None, None, None, None, None, None, None, '2597846') ('3459', '20656307', '1338371418', None, None, None, None, None, '2597846') ('3459', None, None, None, None, None, None, None, '2597846') ('3459', '20656307', '1338371401', None, None, None, None, None, '2597846') ('3459', None, None, None, None, None, None, None, '2597846') ('3459', '20656307', '1338371391', None, None, None, None, None, '2597846') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 time used for this insertion : 0.013957977294921875 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07123398780822754 time spend to save output : 0.01467442512512207 total time spend for step 4 : 0.08590841293334961 step5:rle_unique_nms_with_priority Tue Feb 18 22:15:59 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 : 10 nb_hashtags : 5 time to prepare the origin masks : 8.425512075424194 time for calcul the mask position with numpy : 0.2799243927001953 nb_pixel_total : 5147471 time to create 1 rle with new method : 0.6278862953186035 time for calcul the mask position with numpy : 0.03550887107849121 nb_pixel_total : 62594 time to create 1 rle with old method : 0.06910252571105957 time for calcul the mask position with numpy : 0.03757071495056152 nb_pixel_total : 318108 time to create 1 rle with new method : 0.5160725116729736 time for calcul the mask position with numpy : 0.03546404838562012 nb_pixel_total : 2104 time to create 1 rle with old method : 0.0026226043701171875 time for calcul the mask position with numpy : 0.04464983940124512 nb_pixel_total : 1154010 time to create 1 rle with new method : 0.4802544116973877 time for calcul the mask position with numpy : 0.030730485916137695 nb_pixel_total : 233092 time to create 1 rle with new method : 0.509746789932251 time for calcul the mask position with numpy : 0.02152729034423828 nb_pixel_total : 19083 time to create 1 rle with old method : 0.021469831466674805 time for calcul the mask position with numpy : 0.021953344345092773 nb_pixel_total : 46074 time to create 1 rle with old method : 0.052936553955078125 time for calcul the mask position with numpy : 0.021697521209716797 nb_pixel_total : 44595 time to create 1 rle with old method : 0.049567461013793945 time for calcul the mask position with numpy : 0.021954774856567383 nb_pixel_total : 5534 time to create 1 rle with old method : 0.006496429443359375 time for calcul the mask position with numpy : 0.021366357803344727 nb_pixel_total : 17575 time to create 1 rle with old method : 0.02043604850769043 create new chi : 3.0307586193084717 time to delete rle : 0.015003442764282227 batch 1 Loaded 11 chid ids of type : 3726 Number RLEs to save : 14048 TO DO : save crop sub photo not yet done ! save time : 0.7714428901672363 nb_obj : 4 nb_hashtags : 4 time to prepare the origin masks : 2.2536816596984863 time for calcul the mask position with numpy : 0.28937220573425293 nb_pixel_total : 6907911 time to create 1 rle with new method : 0.7843790054321289 time for calcul the mask position with numpy : 0.022534847259521484 nb_pixel_total : 39519 time to create 1 rle with old method : 0.041300058364868164 time for calcul the mask position with numpy : 0.022172927856445312 nb_pixel_total : 62867 time to create 1 rle with old method : 0.06525373458862305 time for calcul the mask position with numpy : 0.02203536033630371 nb_pixel_total : 31923 time to create 1 rle with old method : 0.032660484313964844 time for calcul the mask position with numpy : 0.023024559020996094 nb_pixel_total : 8020 time to create 1 rle with old method : 0.008301496505737305 create new chi : 1.3582849502563477 time to delete rle : 0.00040602684020996094 batch 1 Loaded 5 chid ids of type : 3726 Number RLEs to save : 3853 TO DO : save crop sub photo not yet done ! save time : 0.2364199161529541 nb_obj : 9 nb_hashtags : 6 time to prepare the origin masks : 4.802433013916016 time for calcul the mask position with numpy : 0.35554051399230957 nb_pixel_total : 6751923 time to create 1 rle with new method : 0.43732213973999023 time for calcul the mask position with numpy : 0.026714801788330078 nb_pixel_total : 39084 time to create 1 rle with old method : 0.03920626640319824 time for calcul the mask position with numpy : 0.0383756160736084 nb_pixel_total : 123252 time to create 1 rle with old method : 0.12307286262512207 time for calcul the mask position with numpy : 0.03724026679992676 nb_pixel_total : 11565 time to create 1 rle with old method : 0.012264728546142578 time for calcul the mask position with numpy : 0.03641247749328613 nb_pixel_total : 27552 time to create 1 rle with old method : 0.028206586837768555 time for calcul the mask position with numpy : 0.03554272651672363 nb_pixel_total : 10636 time to create 1 rle with old method : 0.011232137680053711 time for calcul the mask position with numpy : 0.03580665588378906 nb_pixel_total : 36809 time to create 1 rle with old method : 0.03728365898132324 time for calcul the mask position with numpy : 0.02930593490600586 nb_pixel_total : 10915 time to create 1 rle with old method : 0.011537313461303711 time for calcul the mask position with numpy : 0.02302241325378418 nb_pixel_total : 20040 time to create 1 rle with old method : 0.021089553833007812 time for calcul the mask position with numpy : 0.02245354652404785 nb_pixel_total : 18464 time to create 1 rle with old method : 0.01874685287475586 create new chi : 1.4193661212921143 time to delete rle : 0.0007195472717285156 batch 1 Loaded 10 chid ids of type : 3726 Number RLEs to save : 6706 TO DO : save crop sub photo not yet done ! save time : 1.1108222007751465 nb_obj : 17 nb_hashtags : 4 time to prepare the origin masks : 9.818359136581421 time for calcul the mask position with numpy : 0.8625895977020264 nb_pixel_total : 5095967 time to create 1 rle with new method : 1.039449691772461 time for calcul the mask position with numpy : 0.03558611869812012 nb_pixel_total : 65621 time to create 1 rle with old method : 0.07328081130981445 time for calcul the mask position with numpy : 0.03687572479248047 nb_pixel_total : 138853 time to create 1 rle with old method : 0.15203142166137695 time for calcul the mask position with numpy : 0.03516840934753418 nb_pixel_total : 29427 time to create 1 rle with old method : 0.03290867805480957 time for calcul the mask position with numpy : 0.03353476524353027 nb_pixel_total : 2701 time to create 1 rle with old method : 0.003064393997192383 time for calcul the mask position with numpy : 0.02105879783630371 nb_pixel_total : 2410 time to create 1 rle with old method : 0.0028848648071289062 time for calcul the mask position with numpy : 0.034717559814453125 nb_pixel_total : 1260539 time to create 1 rle with new method : 0.748288631439209 time for calcul the mask position with numpy : 0.021478652954101562 nb_pixel_total : 44047 time to create 1 rle with old method : 0.04793739318847656 time for calcul the mask position with numpy : 0.020374536514282227 nb_pixel_total : 17753 time to create 1 rle with old method : 0.018886566162109375 time for calcul the mask position with numpy : 0.020511865615844727 nb_pixel_total : 3305 time to create 1 rle with old method : 0.0036439895629882812 time for calcul the mask position with numpy : 0.02124929428100586 nb_pixel_total : 27906 time to create 1 rle with old method : 0.030641794204711914 time for calcul the mask position with numpy : 0.021440982818603516 nb_pixel_total : 36662 time to create 1 rle with old method : 0.03898429870605469 time for calcul the mask position with numpy : 0.020098447799682617 nb_pixel_total : 5594 time to create 1 rle with old method : 0.006263017654418945 time for calcul the mask position with numpy : 0.0214998722076416 nb_pixel_total : 75540 time to create 1 rle with old method : 0.07905006408691406 time for calcul the mask position with numpy : 0.02078104019165039 nb_pixel_total : 2392 time to create 1 rle with old method : 0.0027921199798583984 time for calcul the mask position with numpy : 0.021878719329833984 nb_pixel_total : 45372 time to create 1 rle with old method : 0.04964041709899902 time for calcul the mask position with numpy : 0.021484851837158203 nb_pixel_total : 9809 time to create 1 rle with old method : 0.011383533477783203 time for calcul the mask position with numpy : 0.0242307186126709 nb_pixel_total : 186342 time to create 1 rle with new method : 0.564720630645752 create new chi : 4.289403915405273 time to delete rle : 0.0017056465148925781 batch 1 Loaded 18 chid ids of type : 3726 Number RLEs to save : 14593 TO DO : save crop sub photo not yet done ! save time : 1.0709152221679688 nb_obj : 18 nb_hashtags : 7 time to prepare the origin masks : 14.283933162689209 time for calcul the mask position with numpy : 0.844459056854248 nb_pixel_total : 4846832 time to create 1 rle with new method : 0.6388566493988037 time for calcul the mask position with numpy : 0.021467924118041992 nb_pixel_total : 65235 time to create 1 rle with old method : 0.07607913017272949 time for calcul the mask position with numpy : 0.022639989852905273 nb_pixel_total : 81198 time to create 1 rle with old method : 0.09621334075927734 time for calcul the mask position with numpy : 0.021975040435791016 nb_pixel_total : 44367 time to create 1 rle with old method : 0.048554182052612305 time for calcul the mask position with numpy : 0.022722721099853516 nb_pixel_total : 85718 time to create 1 rle with old method : 0.0904386043548584 time for calcul the mask position with numpy : 0.026389598846435547 nb_pixel_total : 6635 time to create 1 rle with old method : 0.007608652114868164 time for calcul the mask position with numpy : 0.027373075485229492 nb_pixel_total : 25063 time to create 1 rle with old method : 0.027021169662475586 time for calcul the mask position with numpy : 0.042244672775268555 nb_pixel_total : 1452186 time to create 1 rle with new method : 0.606374979019165 time for calcul the mask position with numpy : 0.023494243621826172 nb_pixel_total : 7411 time to create 1 rle with old method : 0.0088348388671875 time for calcul the mask position with numpy : 0.02544403076171875 nb_pixel_total : 168127 time to create 1 rle with new method : 0.5406274795532227 time for calcul the mask position with numpy : 0.023566007614135742 nb_pixel_total : 1454 time to create 1 rle with old method : 0.001726388931274414 time for calcul the mask position with numpy : 0.0235288143157959 nb_pixel_total : 10532 time to create 1 rle with old method : 0.012233972549438477 time for calcul the mask position with numpy : 0.02282118797302246 nb_pixel_total : 17993 time to create 1 rle with old method : 0.019715309143066406 time for calcul the mask position with numpy : 0.02306199073791504 nb_pixel_total : 12162 time to create 1 rle with old method : 0.015302896499633789 time for calcul the mask position with numpy : 0.026774168014526367 nb_pixel_total : 1449 time to create 1 rle with old method : 0.0018200874328613281 time for calcul the mask position with numpy : 0.024310588836669922 nb_pixel_total : 19313 time to create 1 rle with old method : 0.032016754150390625 time for calcul the mask position with numpy : 0.02560710906982422 nb_pixel_total : 184423 time to create 1 rle with new method : 1.137176752090454 time for calcul the mask position with numpy : 0.022941112518310547 nb_pixel_total : 4022 time to create 1 rle with old method : 0.00449824333190918 time for calcul the mask position with numpy : 0.022372007369995117 nb_pixel_total : 16120 time to create 1 rle with old method : 0.018073558807373047 create new chi : 4.79063606262207 time to delete rle : 0.0013158321380615234 batch 1 Loaded 19 chid ids of type : 3726 Number RLEs to save : 13553 TO DO : save crop sub photo not yet done ! save time : 1.1622726917266846 nb_obj : 6 nb_hashtags : 4 time to prepare the origin masks : 5.115101337432861 time for calcul the mask position with numpy : 0.8354525566101074 nb_pixel_total : 5047360 time to create 1 rle with new method : 0.32004237174987793 time for calcul the mask position with numpy : 0.022361040115356445 nb_pixel_total : 41029 time to create 1 rle with old method : 0.04563021659851074 time for calcul the mask position with numpy : 0.02805638313293457 nb_pixel_total : 145 time to create 1 rle with old method : 0.0002014636993408203 time for calcul the mask position with numpy : 0.03790616989135742 nb_pixel_total : 3664 time to create 1 rle with old method : 0.0039997100830078125 time for calcul the mask position with numpy : 0.04912137985229492 nb_pixel_total : 133853 time to create 1 rle with old method : 0.1650545597076416 time for calcul the mask position with numpy : 0.05434560775756836 nb_pixel_total : 1709867 time to create 1 rle with new method : 1.4423727989196777 time for calcul the mask position with numpy : 0.03336930274963379 nb_pixel_total : 114322 time to create 1 rle with old method : 0.13227009773254395 create new chi : 3.240475654602051 time to delete rle : 0.0009114742279052734 batch 1 Loaded 7 chid ids of type : 3726 Number RLEs to save : 8595 TO DO : save crop sub photo not yet done ! save time : 0.5167174339294434 nb_obj : 6 nb_hashtags : 4 time to prepare the origin masks : 4.366037368774414 time for calcul the mask position with numpy : 0.5009958744049072 nb_pixel_total : 6898611 time to create 1 rle with new method : 0.8706192970275879 time for calcul the mask position with numpy : 0.021199941635131836 nb_pixel_total : 42910 time to create 1 rle with old method : 0.04598736763000488 time for calcul the mask position with numpy : 0.020608901977539062 nb_pixel_total : 75004 time to create 1 rle with old method : 0.07905983924865723 time for calcul the mask position with numpy : 0.020176172256469727 nb_pixel_total : 3766 time to create 1 rle with old method : 0.004362583160400391 time for calcul the mask position with numpy : 0.01991724967956543 nb_pixel_total : 4222 time to create 1 rle with old method : 0.004703044891357422 time for calcul the mask position with numpy : 0.020206689834594727 nb_pixel_total : 23480 time to create 1 rle with old method : 0.02447223663330078 time for calcul the mask position with numpy : 0.027373075485229492 nb_pixel_total : 2247 time to create 1 rle with old method : 0.004273414611816406 create new chi : 1.7078239917755127 time to delete rle : 0.0008573532104492188 batch 1 Loaded 7 chid ids of type : 3726 Number RLEs to save : 4872 TO DO : save crop sub photo not yet done ! save time : 2.421583652496338 nb_obj : 7 nb_hashtags : 4 time to prepare the origin masks : 4.978823184967041 time for calcul the mask position with numpy : 0.3496835231781006 nb_pixel_total : 6886854 time to create 1 rle with new method : 0.3288261890411377 time for calcul the mask position with numpy : 0.02102375030517578 nb_pixel_total : 28001 time to create 1 rle with old method : 0.03067469596862793 time for calcul the mask position with numpy : 0.02460765838623047 nb_pixel_total : 53584 time to create 1 rle with old method : 0.05851602554321289 time for calcul the mask position with numpy : 0.020525455474853516 nb_pixel_total : 3812 time to create 1 rle with old method : 0.004436492919921875 time for calcul the mask position with numpy : 0.01996135711669922 nb_pixel_total : 47692 time to create 1 rle with old method : 0.05127072334289551 time for calcul the mask position with numpy : 0.019652366638183594 nb_pixel_total : 7062 time to create 1 rle with old method : 0.0076732635498046875 time for calcul the mask position with numpy : 0.019739389419555664 nb_pixel_total : 7205 time to create 1 rle with old method : 0.008121967315673828 time for calcul the mask position with numpy : 0.020305156707763672 nb_pixel_total : 16030 time to create 1 rle with old method : 0.01758432388305664 create new chi : 1.0475680828094482 time to delete rle : 0.0005214214324951172 batch 1 Loaded 8 chid ids of type : 3726 Number RLEs to save : 4792 TO DO : save crop sub photo not yet done ! save time : 1.2975897789001465 nb_obj : 12 nb_hashtags : 4 time to prepare the origin masks : 6.538959980010986 time for calcul the mask position with numpy : 0.3766191005706787 nb_pixel_total : 6355107 time to create 1 rle with new method : 0.5280601978302002 time for calcul the mask position with numpy : 0.03017449378967285 nb_pixel_total : 6580 time to create 1 rle with old method : 0.007524728775024414 time for calcul the mask position with numpy : 0.03321957588195801 nb_pixel_total : 28056 time to create 1 rle with old method : 0.030124902725219727 time for calcul the mask position with numpy : 0.03553509712219238 nb_pixel_total : 332778 time to create 1 rle with new method : 0.5214865207672119 time for calcul the mask position with numpy : 0.029683589935302734 nb_pixel_total : 6399 time to create 1 rle with old method : 0.007307291030883789 time for calcul the mask position with numpy : 0.028011322021484375 nb_pixel_total : 21704 time to create 1 rle with old method : 0.02439093589782715 time for calcul the mask position with numpy : 0.0285794734954834 nb_pixel_total : 25609 time to create 1 rle with old method : 0.03085923194885254 time for calcul the mask position with numpy : 0.032682180404663086 nb_pixel_total : 1991 time to create 1 rle with old method : 0.002185344696044922 time for calcul the mask position with numpy : 0.022135019302368164 nb_pixel_total : 76603 time to create 1 rle with old method : 0.08433651924133301 time for calcul the mask position with numpy : 0.023910045623779297 nb_pixel_total : 118304 time to create 1 rle with old method : 0.1288597583770752 time for calcul the mask position with numpy : 0.025319576263427734 nb_pixel_total : 2463 time to create 1 rle with old method : 0.0039386749267578125 time for calcul the mask position with numpy : 0.022753000259399414 nb_pixel_total : 429 time to create 1 rle with old method : 0.0008258819580078125 time for calcul the mask position with numpy : 0.021952390670776367 nb_pixel_total : 74217 time to create 1 rle with old method : 0.07959985733032227 create new chi : 2.582890748977661 time to delete rle : 0.0008604526519775391 batch 1 Loaded 13 chid ids of type : 3726 Number RLEs to save : 8502 TO DO : save crop sub photo not yet done ! save time : 0.5287833213806152 nb_obj : 14 nb_hashtags : 4 time to prepare the origin masks : 8.175012350082397 time for calcul the mask position with numpy : 0.394763708114624 nb_pixel_total : 6573778 time to create 1 rle with new method : 0.7344770431518555 time for calcul the mask position with numpy : 0.03452610969543457 nb_pixel_total : 52344 time to create 1 rle with old method : 0.058615922927856445 time for calcul the mask position with numpy : 0.03296804428100586 nb_pixel_total : 48985 time to create 1 rle with old method : 0.05484724044799805 time for calcul the mask position with numpy : 0.040335655212402344 nb_pixel_total : 13891 time to create 1 rle with old method : 0.017262935638427734 time for calcul the mask position with numpy : 0.034239768981933594 nb_pixel_total : 193546 time to create 1 rle with new method : 0.6085915565490723 time for calcul the mask position with numpy : 0.03309965133666992 nb_pixel_total : 3527 time to create 1 rle with old method : 0.0040435791015625 time for calcul the mask position with numpy : 0.0323638916015625 nb_pixel_total : 60 time to create 1 rle with old method : 0.00024628639221191406 time for calcul the mask position with numpy : 0.0331268310546875 nb_pixel_total : 3035 time to create 1 rle with old method : 0.003536224365234375 time for calcul the mask position with numpy : 0.03357410430908203 nb_pixel_total : 20221 time to create 1 rle with old method : 0.022283077239990234 time for calcul the mask position with numpy : 0.033405303955078125 nb_pixel_total : 6089 time to create 1 rle with old method : 0.007102489471435547 time for calcul the mask position with numpy : 0.03355288505554199 nb_pixel_total : 31403 time to create 1 rle with old method : 0.034923553466796875 time for calcul the mask position with numpy : 0.03297114372253418 nb_pixel_total : 46499 time to create 1 rle with old method : 0.05187678337097168 time for calcul the mask position with numpy : 0.033453941345214844 nb_pixel_total : 8566 time to create 1 rle with old method : 0.009447336196899414 time for calcul the mask position with numpy : 0.031757354736328125 nb_pixel_total : 18130 time to create 1 rle with old method : 0.020837783813476562 time for calcul the mask position with numpy : 0.03574872016906738 nb_pixel_total : 30166 time to create 1 rle with old method : 0.03485298156738281 create new chi : 2.60262131690979 time to delete rle : 0.0012090206146240234 batch 1 Loaded 15 chid ids of type : 3726 Number RLEs to save : 8270 TO DO : save crop sub photo not yet done ! save time : 1.6500344276428223 map_output_result : {1338371833: (0.0, 'Should be the crop_list due to order', 0.0), 1338371831: (0.0, 'Should be the crop_list due to order', 0.0), 1338371804: (0.0, 'Should be the crop_list due to order', 0.0), 1338371801: (0.0, 'Should be the crop_list due to order', 0.0), 1338371425: (0.0, 'Should be the crop_list due to order', 0.0), 1338371422: (0.0, 'Should be the crop_list due to order', 0.0), 1338371420: (0.0, 'Should be the crop_list due to order', 0.0), 1338371418: (0.0, 'Should be the crop_list due to order', 0.0), 1338371401: (0.0, 'Should be the crop_list due to order', 0.0), 1338371391: (0.0, 'Should be the crop_list due to order', 0.0)} End step rle-unique-nms Inside saveOutput : final : False verbose : 0 saveOutput not yet implemented for datou_step.type : rle_unique_nms_with_priority we use saveGeneral [1338371833, 1338371831, 1338371804, 1338371801, 1338371425, 1338371422, 1338371420, 1338371418, 1338371401, 1338371391] Looping around the photos to save general results len do output : 10 /1338371833.Didn't retrieve data . /1338371831.Didn't retrieve data . /1338371804.Didn't retrieve data . /1338371801.Didn't retrieve data . /1338371425.Didn't retrieve data . /1338371422.Didn't retrieve data . /1338371420.Didn't retrieve data . /1338371418.Didn't retrieve data . /1338371401.Didn't retrieve data . /1338371391.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, '2597846') ('3459', '20656307', '1338371833', None, None, None, None, None, '2597846') ('3459', None, None, None, None, None, None, None, '2597846') ('3459', '20656307', '1338371831', None, None, None, None, None, '2597846') ('3459', None, None, None, None, None, None, None, '2597846') ('3459', '20656307', '1338371804', None, None, None, None, None, '2597846') ('3459', None, None, None, None, None, None, None, '2597846') ('3459', '20656307', '1338371801', None, None, None, None, None, '2597846') ('3459', None, None, None, None, None, None, None, '2597846') ('3459', '20656307', '1338371425', None, None, None, None, None, '2597846') ('3459', None, None, None, None, None, None, None, '2597846') ('3459', '20656307', '1338371422', None, None, None, None, None, '2597846') ('3459', None, None, None, None, None, None, None, '2597846') ('3459', '20656307', '1338371420', None, None, None, None, None, '2597846') ('3459', None, None, None, None, None, None, None, '2597846') ('3459', '20656307', '1338371418', None, None, None, None, None, '2597846') ('3459', None, None, None, None, None, None, None, '2597846') ('3459', '20656307', '1338371401', None, None, None, None, None, '2597846') ('3459', None, None, None, None, None, None, None, '2597846') ('3459', '20656307', '1338371391', None, None, None, None, None, '2597846') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 time used for this insertion : 0.014037609100341797 save_final save missing photos in datou_result : time spend for datou_step_exec : 106.57027864456177 time spend to save output : 0.014494180679321289 total time spend for step 5 : 106.58477282524109 step6:crop_condition Tue Feb 18 22:17:46 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure some photos are not treated, begin crop_condition Loading chi in step crop with photo_hashtag_type : 3726 Loading chi in step crop for list_pids : 10 ! batch 1 Loaded 113 chid ids of type : 3726 begin to crop the class : teint_dans_la_masse param for this class : {'min_score': 0.7} filtre for class : teint_dans_la_masse hashtag_id of this class : 2107752385 Next one ! Next one ! map_result returned by crop_photo_return_map_crop : length : 2 About to insert : list_path_to_insert length 2 new photo from crops ! About to upload 2 photos upload in portfolio : 4869462 init cache_photo without model_param we have 2 photo to upload uploaded to storage server : ovh folder_temporaire : temp/1739913468_1349771 we have uploaded 2 photos in the portfolio 4869462 time of upload the photos Elapsed time : 0.782912015914917 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 ! map_result returned by crop_photo_return_map_crop : length : 7 About to insert : list_path_to_insert length 7 new photo from crops ! About to upload 7 photos upload in portfolio : 4869462 init cache_photo without model_param we have 7 photo to upload uploaded to storage server : ovh folder_temporaire : temp/1739913471_1349771 we have uploaded 7 photos in the portfolio 4869462 time of upload the photos Elapsed time : 2.1150004863739014 we have finished the crop for the class : autre_refus begin to crop the class : carton_gris param for this class : {'min_score': 0.5} filtre for class : carton_gris hashtag_id of this class : 2107753020 Next one ! Next one ! Next one ! Next one ! 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/1739913475_1349771 we have uploaded 4 photos in the portfolio 4869462 time of upload the photos Elapsed time : 3.3190367221832275 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 ! map_result returned by crop_photo_return_map_crop : length : 2 About to insert : list_path_to_insert length 2 new photo from crops ! About to upload 2 photos upload in portfolio : 4869462 init cache_photo without model_param we have 2 photo to upload uploaded to storage server : ovh folder_temporaire : temp/1739913480_1349771 we have uploaded 2 photos in the portfolio 4869462 time of upload the photos Elapsed time : 1.0406358242034912 we have finished the crop for the class : cartonnette begin to crop the class : carton_brun param for this class : {'min_score': 0.7} filtre for class : carton_brun hashtag_id of this class : 2107753024 Next one ! Next one ! Next one ! Next one ! Next one ! Next one ! Next one ! map_result returned by crop_photo_return_map_crop : length : 7 About to insert : list_path_to_insert length 7 new photo from crops ! About to upload 7 photos upload in portfolio : 4869462 init cache_photo without model_param we have 7 photo to upload uploaded to storage server : ovh folder_temporaire : temp/1739913484_1349771 we have uploaded 7 photos in the portfolio 4869462 time of upload the photos Elapsed time : 4.015261173248291 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 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/1739913489_1349771 we have uploaded 1 photos in the portfolio 4869462 time of upload the photos Elapsed time : 1.8929443359375 we have finished the crop for the class : kraft begin to crop the class : metal param for this class : {'min_score': 0.5} filtre for class : metal hashtag_id of this class : 492628673 delete rles for these photos Inside saveOutput : final : False verbose : 0 saveOutput not yet implemented for datou_step.type : crop_condition we use saveGeneral [1338371833, 1338371831, 1338371804, 1338371801, 1338371425, 1338371422, 1338371420, 1338371418, 1338371401, 1338371391] Looping around the photos to save general results len do output : 23 /1338393307Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1338393308Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1338393309Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1338393310Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1338393311Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1338393312Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1338393313Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1338393314Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1338393315Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1338393316Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1338393317Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1338393318Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1338393319Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1338393320Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1338393321Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1338393322Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1338393323Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1338393325Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1338393326Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1338393327Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1338393328Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1338393329Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1338393330Didn'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, '2597846') ('3459', '20656307', '1338371833', None, None, None, None, None, '2597846') ('3459', None, None, None, None, None, None, None, '2597846') ('3459', '20656307', '1338371831', None, None, None, None, None, '2597846') ('3459', None, None, None, None, None, None, None, '2597846') ('3459', '20656307', '1338371804', None, None, None, None, None, '2597846') ('3459', None, None, None, None, None, None, None, '2597846') ('3459', '20656307', '1338371801', None, None, None, None, None, '2597846') ('3459', None, None, None, None, None, None, None, '2597846') ('3459', '20656307', '1338371425', None, None, None, None, None, '2597846') ('3459', None, None, None, None, None, None, None, '2597846') ('3459', '20656307', '1338371422', None, None, None, None, None, '2597846') ('3459', None, None, None, None, None, None, None, '2597846') ('3459', '20656307', '1338371420', None, None, None, None, None, '2597846') ('3459', None, None, None, None, None, None, None, '2597846') ('3459', '20656307', '1338371418', None, None, None, None, None, '2597846') ('3459', None, None, None, None, None, None, None, '2597846') ('3459', '20656307', '1338371401', None, None, None, None, None, '2597846') ('3459', None, None, None, None, None, None, None, '2597846') ('3459', '20656307', '1338371391', None, None, None, None, None, '2597846') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 79 time used for this insertion : 5.166480541229248 save_final save missing photos in datou_result : time spend for datou_step_exec : 25.574633359909058 time spend to save output : 5.167322397232056 total time spend for step 6 : 30.741955757141113 step7:ventilate_hashtags_in_portfolio Tue Feb 18 22:18:17 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 : 20656307 get user id for portfolio 20656307 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20656307 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','Carton_brun','flou','kraft','papier','plastique','mal_croppe','metal','autre_refus','environnement','Teint_Dans_La_Masse','Carton_gris')) 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`=20656307 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','Carton_brun','flou','kraft','papier','plastique','mal_croppe','metal','autre_refus','environnement','Teint_Dans_La_Masse','Carton_gris')) AND mptpi.`min_score`=0.5 To do Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20656307 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','Carton_brun','flou','kraft','papier','plastique','mal_croppe','metal','autre_refus','environnement','Teint_Dans_La_Masse','Carton_gris')) AND mptpi.`min_score`=0.5 To do lien utilise dans velours : https://www.fotonower.com/velours/20656493,20656494,20656495,20656496,20656497,20656498,20656499,20656500,20656501,20656502,20656503,20656504?tags=cartonnette,Carton_brun,flou,kraft,papier,plastique,mal_croppe,metal,autre_refus,environnement,Teint_Dans_La_Masse,Carton_gris Inside saveOutput : final : False verbose : 0 saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1338371833, 1338371831, 1338371804, 1338371801, 1338371425, 1338371422, 1338371420, 1338371418, 1338371401, 1338371391] Looping around the photos to save general results len do output : 1 /20656307. 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, '2597846') ('3459', '20656307', '1338371833', None, None, None, None, None, '2597846') ('3459', None, None, None, None, None, None, None, '2597846') ('3459', '20656307', '1338371831', None, None, None, None, None, '2597846') ('3459', None, None, None, None, None, None, None, '2597846') ('3459', '20656307', '1338371804', None, None, None, None, None, '2597846') ('3459', None, None, None, None, None, None, None, '2597846') ('3459', '20656307', '1338371801', None, None, None, None, None, '2597846') ('3459', None, None, None, None, None, None, None, '2597846') ('3459', '20656307', '1338371425', None, None, None, None, None, '2597846') ('3459', None, None, None, None, None, None, None, '2597846') ('3459', '20656307', '1338371422', None, None, None, None, None, '2597846') ('3459', None, None, None, None, None, None, None, '2597846') ('3459', '20656307', '1338371420', None, None, None, None, None, '2597846') ('3459', None, None, None, None, None, None, None, '2597846') ('3459', '20656307', '1338371418', None, None, None, None, None, '2597846') ('3459', None, None, None, None, None, None, None, '2597846') ('3459', '20656307', '1338371401', None, None, None, None, None, '2597846') ('3459', None, None, None, None, None, None, None, '2597846') ('3459', '20656307', '1338371391', None, None, None, None, None, '2597846') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 time used for this insertion : 0.012757062911987305 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.6398751735687256 time spend to save output : 0.012982368469238281 total time spend for step 7 : 1.6528575420379639 step8:final Tue Feb 18 22:18:18 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 : {1338371833: ('0.04561285178720804',), 1338371831: ('0.04561285178720804',), 1338371804: ('0.04561285178720804',), 1338371801: ('0.04561285178720804',), 1338371425: ('0.04561285178720804',), 1338371422: ('0.04561285178720804',), 1338371420: ('0.04561285178720804',), 1338371418: ('0.04561285178720804',), 1338371401: ('0.04561285178720804',), 1338371391: ('0.04561285178720804',)} new output for save of step final : {1338371833: ('0.04561285178720804',), 1338371831: ('0.04561285178720804',), 1338371804: ('0.04561285178720804',), 1338371801: ('0.04561285178720804',), 1338371425: ('0.04561285178720804',), 1338371422: ('0.04561285178720804',), 1338371420: ('0.04561285178720804',), 1338371418: ('0.04561285178720804',), 1338371401: ('0.04561285178720804',), 1338371391: ('0.04561285178720804',)} [1338371833, 1338371831, 1338371804, 1338371801, 1338371425, 1338371422, 1338371420, 1338371418, 1338371401, 1338371391] Looping around the photos to save general results len do output : 10 /1338371833.Didn't retrieve data . /1338371831.Didn't retrieve data . /1338371804.Didn't retrieve data . /1338371801.Didn't retrieve data . /1338371425.Didn't retrieve data . /1338371422.Didn't retrieve data . /1338371420.Didn't retrieve data . /1338371418.Didn't retrieve data . /1338371401.Didn't retrieve data . /1338371391.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, '2597846') ('3459', '20656307', '1338371833', None, None, None, None, None, '2597846') ('3459', None, None, None, None, None, None, None, '2597846') ('3459', '20656307', '1338371831', None, None, None, None, None, '2597846') ('3459', None, None, None, None, None, None, None, '2597846') ('3459', '20656307', '1338371804', None, None, None, None, None, '2597846') ('3459', None, None, None, None, None, None, None, '2597846') ('3459', '20656307', '1338371801', None, None, None, None, None, '2597846') ('3459', None, None, None, None, None, None, None, '2597846') ('3459', '20656307', '1338371425', None, None, None, None, None, '2597846') ('3459', None, None, None, None, None, None, None, '2597846') ('3459', '20656307', '1338371422', None, None, None, None, None, '2597846') ('3459', None, None, None, None, None, None, None, '2597846') ('3459', '20656307', '1338371420', None, None, None, None, None, '2597846') ('3459', None, None, None, None, None, None, None, '2597846') ('3459', '20656307', '1338371418', None, None, None, None, None, '2597846') ('3459', None, None, None, None, None, None, None, '2597846') ('3459', '20656307', '1338371401', None, None, None, None, None, '2597846') ('3459', None, None, None, None, None, None, None, '2597846') ('3459', '20656307', '1338371391', None, None, None, None, None, '2597846') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 time used for this insertion : 0.013730049133300781 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.10191702842712402 time spend to save output : 0.014265060424804688 total time spend for step 8 : 0.11618208885192871 step9:velours_tree Tue Feb 18 22:18:18 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.08669662475585938 time spend to save output : 4.744529724121094e-05 total time spend for step 9 : 0.08674407005310059 step10:send_mail_cod Tue Feb 18 22:18:18 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_P20656307_18-02-2025_22_18_18.pdf 20656493 change filename to text .change filename to text .imagette206564931739913498 20656495 imagette206564951739913499 20656496 change filename to text .imagette206564961739913499 20656498 imagette206564981739913499 20656499 imagette206564991739913499 20656500 imagette206565001739913499 20656501 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 .imagette206565011739913499 20656494 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 .imagette206564941739913499 20656503 change filename to text .change filename to text .imagette206565031739913499 20656504 change filename to text .change filename to text .change filename to text .change filename to text .imagette206565041739913500 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20656307 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20656493,20656494,20656495,20656496,20656497,20656498,20656499,20656500,20656501,20656502,20656503,20656504?tags=cartonnette,Carton_brun,flou,kraft,papier,plastique,mal_croppe,metal,autre_refus,environnement,Teint_Dans_La_Masse,Carton_gris your option no_mail is active, we will not send the real mail to your client args[1338371833] : ('0.04561285178720804',) no score found for photo 1338371833 We are sending mail with results at report@fotonower.com args[1338371831] : ('0.04561285178720804',) no score found for photo 1338371831 We are sending mail with results at report@fotonower.com args[1338371804] : ('0.04561285178720804',) no score found for photo 1338371804 We are sending mail with results at report@fotonower.com args[1338371801] : ('0.04561285178720804',) no score found for photo 1338371801 We are sending mail with results at report@fotonower.com args[1338371425] : ('0.04561285178720804',) no score found for photo 1338371425 We are sending mail with results at report@fotonower.com args[1338371422] : ('0.04561285178720804',) no score found for photo 1338371422 We are sending mail with results at report@fotonower.com args[1338371420] : ('0.04561285178720804',) no score found for photo 1338371420 We are sending mail with results at report@fotonower.com args[1338371418] : ('0.04561285178720804',) no score found for photo 1338371418 We are sending mail with results at report@fotonower.com args[1338371401] : ('0.04561285178720804',) no score found for photo 1338371401 We are sending mail with results at report@fotonower.com args[1338371391] : ('0.04561285178720804',) no score found for photo 1338371391 We are sending mail with results at report@fotonower.com refus_total : 0.04561285178720804 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=20656307 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 1000 error for generate pdf : 'flou' Inside saveOutput : final : False verbose : 0 saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1338371833, 1338371831, 1338371804, 1338371801, 1338371425, 1338371422, 1338371420, 1338371418, 1338371401, 1338371391] 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, '2597846') ('3459', '20656307', '1338371833', None, None, None, None, None, '2597846') ('3459', None, None, None, None, None, None, None, '2597846') ('3459', '20656307', '1338371831', None, None, None, None, None, '2597846') ('3459', None, None, None, None, None, None, None, '2597846') ('3459', '20656307', '1338371804', None, None, None, None, None, '2597846') ('3459', None, None, None, None, None, None, None, '2597846') ('3459', '20656307', '1338371801', None, None, None, None, None, '2597846') ('3459', None, None, None, None, None, None, None, '2597846') ('3459', '20656307', '1338371425', None, None, None, None, None, '2597846') ('3459', None, None, None, None, None, None, None, '2597846') ('3459', '20656307', '1338371422', None, None, None, None, None, '2597846') ('3459', None, None, None, None, None, None, None, '2597846') ('3459', '20656307', '1338371420', None, None, None, None, None, '2597846') ('3459', None, None, None, None, None, None, None, '2597846') ('3459', '20656307', '1338371418', None, None, None, None, None, '2597846') ('3459', None, None, None, None, None, None, None, '2597846') ('3459', '20656307', '1338371401', None, None, None, None, None, '2597846') ('3459', None, None, None, None, None, None, None, '2597846') ('3459', '20656307', '1338371391', None, None, None, None, None, '2597846') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 time used for this insertion : 0.013748407363891602 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5401537418365479 time spend to save output : 0.01399540901184082 total time spend for step 10 : 1.5541491508483887 step11:split_time_score Tue Feb 18 22:18:20 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'}] (('18', 19),) ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 18022025 20656307 Nombre de photos uploadées : 19 / 23040 (0%) 18022025 20656307 Nombre de photos taguées (types de déchets): 0 / 19 (0%) 18022025 20656307 Nombre de photos taguées (volume) : 0 / 19 (0%) elapsed_time : load_data_split_time_score 2.1457672119140625e-06 elapsed_time : order_list_meta_photo_and_scores 5.7220458984375e-06 ??????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0010690689086914062 elapsed_time : insert_dashboard_record_day_entry 0.024283409118652344 We will return after consolidate but for now we need the day, how to get it, for now depending on the previous heavy steps find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656268 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656269 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656270 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656271 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656272 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656273 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656274 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656275 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656276 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656277 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656278 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656279 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656280 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656281 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656282 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656283 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656284 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656285 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656286 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656287 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656288 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656289 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656290 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656291 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656292 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656293 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656294 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656295 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656296 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656297 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656298 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656299 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656300 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656301 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656302 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656303 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656304 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656305 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656306 order by id desc limit 1 Qualite : 0.04561285178720804 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656307 order by id desc limit 1 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 11449 mask_detect is not consistent : 3 used against 2 in the step definition ! Step 11452 crop_condition have less inputs used (1) than in the step definition (2) : maybe we manage optionnal inputs ! Step 11452 crop_condition have less outputs used (2) than in the step definition (3) : some outputs may be not used ! Step 11453 merge_mask_thcl_custom have less inputs used (2) than in the step definition (3) : maybe we manage optionnal inputs ! WARNING : number of outputs for step 11453 merge_mask_thcl_custom is not consistent : 4 used against 2 in the step definition ! WARNING : number of inputs for step 11454 rle_unique_nms_with_priority is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 11454 rle_unique_nms_with_priority is not consistent : 2 used against 1 in the step definition ! Step 11478 crop_condition have less inputs used (1) than in the step definition (2) : maybe we manage optionnal inputs ! WARNING : number of outputs for step 11478 crop_condition is not consistent : 4 used against 3 in the step definition ! WARNING : number of inputs for step 11456 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 11456 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11455 final have less inputs used (2) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11455 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! Step 11458 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! WARNING : type of output 2 of step 11449 doesn't seem to be define in the database( WARNING : type of input 2 of step 11452 doesn't seem to be define in the database( WARNING : output 1 of step 11449 have datatype=2 whereas input 1 of step 11453 have datatype=7 WARNING : type of output 2 of step 11453 doesn't seem to be define in the database( WARNING : type of input 1 of step 11454 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : type of output 3 of step 11453 doesn't seem to be define in the database( WARNING : type of input 1 of step 11456 doesn't seem to be define in the database( WARNING : type of output 1 of step 11456 doesn't seem to be define in the database( WARNING : type of input 3 of step 11455 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 11456 have datatype=10 whereas input 3 of step 11458 have datatype=6 WARNING : type of input 5 of step 11458 doesn't seem to be define in the database( WARNING : output 0 of step 11477 have datatype=11 whereas input 5 of step 11458 have datatype=None WARNING : output 0 of step 11456 have datatype=10 whereas input 0 of step 11477 have datatype=18 WARNING : type of input 2 of step 11478 doesn't seem to be define in the database( WARNING : output 1 of step 11454 have datatype=7 whereas input 2 of step 11478 have datatype=None WARNING : type of output 3 of step 11478 doesn't seem to be define in the database( WARNING : type of input 2 of step 11456 doesn't seem to be define in the database( WARNING : output 0 of step 11453 have datatype=1 whereas input 0 of step 11454 have datatype=2 DataTypes for each output/input checked ! TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20656307 AND mptpi.`type`=3726 To do find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656308 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656309 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656310 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656311 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656312 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656313 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20656314 order by id desc limit 1 NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'18022025': {'nb_upload': 19, '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 [1338371833, 1338371831, 1338371804, 1338371801, 1338371425, 1338371422, 1338371420, 1338371418, 1338371401, 1338371391] Looping around the photos to save general results len do output : 1 /20656307Didn'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, '2597846') ('3459', '20656307', '1338371833', None, None, None, None, None, '2597846') ('3459', None, None, None, None, None, None, None, '2597846') ('3459', '20656307', '1338371831', None, None, None, None, None, '2597846') ('3459', None, None, None, None, None, None, None, '2597846') ('3459', '20656307', '1338371804', None, None, None, None, None, '2597846') ('3459', None, None, None, None, None, None, None, '2597846') ('3459', '20656307', '1338371801', None, None, None, None, None, '2597846') ('3459', None, None, None, None, None, None, None, '2597846') ('3459', '20656307', '1338371425', None, None, None, None, None, '2597846') ('3459', None, None, None, None, None, None, None, '2597846') ('3459', '20656307', '1338371422', None, None, None, None, None, '2597846') ('3459', None, None, None, None, None, None, None, '2597846') ('3459', '20656307', '1338371420', None, None, None, None, None, '2597846') ('3459', None, None, None, None, None, None, None, '2597846') ('3459', '20656307', '1338371418', None, None, None, None, None, '2597846') ('3459', None, None, None, None, None, None, None, '2597846') ('3459', '20656307', '1338371401', None, None, None, None, None, '2597846') ('3459', None, None, None, None, None, None, None, '2597846') ('3459', '20656307', '1338371391', None, None, None, None, None, '2597846') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 time used for this insertion : 0.013324499130249023 save_final save missing photos in datou_result : time spend for datou_step_exec : 35.51360368728638 time spend to save output : 0.013576745986938477 total time spend for step 11 : 35.527180433273315 caffe_path_current : About to save ! 2 After save, about to update current ! update_current_state 106.18user 104.87system 4:32.77elapsed 77%CPU (0avgtext+0avgdata 4013696maxresident)k 352384inputs+60896outputs (10940major+10514929minor)pagefaults 0swaps