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 : 2256034 load datou : 3459 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 11449 mask_detect is not consistent : 3 used against 2 in the step definition ! Step 11452 crop_condition have less inputs used (1) than in the step definition (2) : maybe we manage optionnal inputs ! Step 11452 crop_condition have less outputs used (2) than in the step definition (3) : some outputs may be not used ! Step 11453 merge_mask_thcl_custom have less inputs used (2) than in the step definition (3) : maybe we manage optionnal inputs ! WARNING : number of outputs for step 11453 merge_mask_thcl_custom is not consistent : 4 used against 2 in the step definition ! WARNING : number of inputs for step 11454 rle_unique_nms_with_priority is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 11454 rle_unique_nms_with_priority is not consistent : 2 used against 1 in the step definition ! Step 11478 crop_condition have less inputs used (1) than in the step definition (2) : maybe we manage optionnal inputs ! WARNING : number of outputs for step 11478 crop_condition is not consistent : 4 used against 3 in the step definition ! WARNING : number of inputs for step 11456 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 11456 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11455 final have less inputs used (2) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11455 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! Step 11458 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! WARNING : type of output 2 of step 11449 doesn't seem to be define in the database( WARNING : type of input 2 of step 11452 doesn't seem to be define in the database( WARNING : output 1 of step 11449 have datatype=2 whereas input 1 of step 11453 have datatype=7 WARNING : type of output 2 of step 11453 doesn't seem to be define in the database( WARNING : type of input 1 of step 11454 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : type of output 3 of step 11453 doesn't seem to be define in the database( WARNING : type of input 1 of step 11456 doesn't seem to be define in the database( WARNING : type of output 1 of step 11456 doesn't seem to be define in the database( WARNING : type of input 3 of step 11455 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 11456 have datatype=10 whereas input 3 of step 11458 have datatype=6 WARNING : type of input 5 of step 11458 doesn't seem to be define in the database( WARNING : output 0 of step 11477 have datatype=11 whereas input 5 of step 11458 have datatype=None WARNING : output 0 of step 11456 have datatype=10 whereas input 0 of step 11477 have datatype=18 WARNING : type of input 2 of step 11478 doesn't seem to be define in the database( WARNING : output 1 of step 11454 have datatype=7 whereas input 2 of step 11478 have datatype=None WARNING : type of output 3 of step 11478 doesn't seem to be define in the database( WARNING : type of input 2 of step 11456 doesn't seem to be define in the database( WARNING : output 0 of step 11453 have datatype=1 whereas input 0 of step 11454 have datatype=2 DataTypes for each output/input checked ! Unexpected type for variable list_input_json ERROR or WARNING : can't parse json string Expecting value: line 1 column 1 (char 0) Tried to parse : chemin de la photo was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? [(photo_id, hashtag_id, hashtag_type, x0, x1, y0, y1, score, seg_temp, polygons), ...] was removed should we ? chemin de la photo was removed should we ? [ (photo_id_loc, hashtag_id, hashtag_type, x0, x1, y0, y1, score, None), ...] was removed should we ? chemin de la photo was removed should we ? id de la photo (peut être local ou global) was removed should we ? chemin de la photo was removed should we ? (x0, y0, x1, y1) was removed should we ? chemin de la photo was removed should we ? [ (photo_id, hashtag_id_0, score_0), (photo_id, hashtag_id_1, score_1), ...] was removed should we ? output optionnel thcl was removed should we ? id de la photo (peut être local ou global) was removed should we ? [ (photo_id, photo_id_loc, hashtag_type, x0, x1, y0, y1, score), ...] was removed should we ? [ (photo_id, hashtag_id_0, score_0), (photo_id, hashtag_id_1, score_1), ...] was removed should we ? id de la photo (peut être local ou global) was removed should we ? [ (photo_id, photo_id_loc, hashtag_type, x0, x1, y0, y1, score), ...] was removed should we ? chemin de la photo was removed should we ? donnée sous forme de texte was removed should we ? [ (photo_id, photo_id_loc, hashtag_type, x0, x1, y0, y1, score), ...] was removed should we ? [ (photo_id_loc, hashtag_id, hashtag_type, x0, x1, y0, y1, score, None), ...] was removed should we ? chemin de la photo was removed should we ? id de la photo (peut être local ou global) was removed should we ? chemin de la photo was removed should we ? (x0, y0, x1, y1) was removed should we ? None was removed should we ? donnée sous forme de texte was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? id de la photo (peut être local ou global) was removed should we ? donnée sous forme de texte was removed should we ? donnée sous forme de texte was removed should we ? donnée sous forme de texte was removed should we ? None was removed should we ? donnée sous forme de nombre was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? donnée sous forme de texte was removed should we ? None was removed should we ? donnée sous forme de texte was removed should we ? [ptf_id0,ptf_id1...] was removed should we ? FOUND : 1 Here is data_from_sql_as_vec to set the ParamDescriptorType : (4999, 'learn_qualipapia_papier_refus_from_vlg_data_aug', 16384, 25088, 'learn_qualipapia_papier_refus_from_vlg_data_aug', 'res5b', 10.0, None, None, 256, None, 0, None, 8, None, None, -1000.0, 1, datetime.datetime(2020, 10, 23, 14, 27, 22), datetime.datetime(2020, 10, 23, 14, 27, 22)) FOUND : 1 Here is data_from_sql_as_vec to set the ParamDescriptorType : (5288, 'learn_papier_nantes_300421', 512, 512, 'learn_papier_nantes_300421', 'pool5', 10.0, None, None, 256, None, 0, None, 8, None, None, -1000.0, 1, datetime.datetime(2021, 4, 30, 17, 9, 41), datetime.datetime(2021, 4, 30, 17, 9, 41)) FOUND : 1 Here is data_from_sql_as_vec to set the ParamDescriptorType : (5309, 'learn_convoyeur_qualipapia_nantes_poly_100521_1', 16384, 25088, 'learn_convoyeur_qualipapia_nantes_poly_100521_1', 'pool5', 10.0, None, None, 256, None, 0, None, 8, None, None, -1000.0, 1, datetime.datetime(2021, 5, 10, 19, 20, 46), datetime.datetime(2021, 5, 10, 19, 20, 46)) load thcls load THCL from format json or kwargs add thcl : 2456 in CacheModelConfig load THCL from format json or kwargs add thcl : 2868 in CacheModelConfig load THCL from format json or kwargs add thcl : 2896 in CacheModelConfig load pdts add pdt : 4999 in CacheModelConfig add pdt : 5288 in CacheModelConfig add pdt : 5309 in CacheModelConfig Running datou job : batch_current TODO datou_current to load to do maybe to take outside batchDatouExec updating current state to 1 we have a portfolio with more photos than limit : 18>10 please execute split_portfolio.py -i 20528945 -l 10 size over we load limit photo not treated list_input_json: [] Current got : datou_id : 3459, datou_cur_ids : ['2584410'] with mtr_portfolio_ids : ['20528945'] and first list_photo_ids : [] new path : /proc/2256034/ 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.4890415668487549 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 Fri Feb 14 00:06:29 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Beginning of datou step mask_detect ! save_polygon : True begin detect begin to check gpu status inside check gpu memory l 3637 free memory gpu now : 5359 max_wait_temp : 1 max_wait : 0 gpu_flag : 0 2025-02-14 00:06:33.279838: 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-14 00:06:33.315171: I tensorflow/core/platform/profile_utils/cpu_utils.cc:102] CPU Frequency: 3493065000 Hz 2025-02-14 00:06:33.317534: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x7f8104000b60 initialized for platform Host (this does not guarantee that XLA will be used). Devices: 2025-02-14 00:06:33.317617: I tensorflow/compiler/xla/service/service.cc:176] StreamExecutor device (0): Host, Default Version 2025-02-14 00:06:33.323298: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcuda.so.1 2025-02-14 00:06:33.586626: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x3b1da680 initialized for platform CUDA (this does not guarantee that XLA will be used). Devices: 2025-02-14 00:06:33.586705: I tensorflow/compiler/xla/service/service.cc:176] StreamExecutor device (0): NVIDIA GeForce RTX 2080 Ti, Compute Capability 7.5 2025-02-14 00:06:33.588081: 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-14 00:06:33.588830: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1 2025-02-14 00:06:33.593008: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcublas.so.10 2025-02-14 00:06:33.612245: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcufft.so.10 2025-02-14 00:06:33.613927: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcurand.so.10 2025-02-14 00:06:33.646322: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusolver.so.10 2025-02-14 00:06:33.651331: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusparse.so.10 2025-02-14 00:06:33.706571: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudnn.so.7 2025-02-14 00:06:33.707936: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1703] Adding visible gpu devices: 0 2025-02-14 00:06:33.708384: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1 2025-02-14 00:06:33.709040: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1102] Device interconnect StreamExecutor with strength 1 edge matrix: 2025-02-14 00:06:33.709057: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1108] 0 2025-02-14 00:06:33.709067: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1121] 0: N 2025-02-14 00:06:33.710741: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1247] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 4895 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-14 00:06:34.108065: 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-14 00:06:34.108160: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1 2025-02-14 00:06:34.108181: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcublas.so.10 2025-02-14 00:06:34.108200: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcufft.so.10 2025-02-14 00:06:34.108218: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcurand.so.10 2025-02-14 00:06:34.108236: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusolver.so.10 2025-02-14 00:06:34.108253: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusparse.so.10 2025-02-14 00:06:34.108271: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudnn.so.7 2025-02-14 00:06:34.109451: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1703] Adding visible gpu devices: 0 2025-02-14 00:06:34.110570: 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-14 00:06:34.110607: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1 2025-02-14 00:06:34.110625: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcublas.so.10 2025-02-14 00:06:34.110642: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcufft.so.10 2025-02-14 00:06:34.110659: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcurand.so.10 2025-02-14 00:06:34.110676: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusolver.so.10 2025-02-14 00:06:34.110692: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusparse.so.10 2025-02-14 00:06:34.110709: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudnn.so.7 2025-02-14 00:06:34.111894: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1703] Adding visible gpu devices: 0 2025-02-14 00:06:34.111929: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1102] Device interconnect StreamExecutor with strength 1 edge matrix: 2025-02-14 00:06:34.111940: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1108] 0 2025-02-14 00:06:34.111949: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1121] 0: N 2025-02-14 00:06:34.113168: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1247] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 4895 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-14 00:06:46.457747: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcublas.so.10 2025-02-14 00:06:46.748139: 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 : 7 NEW PHOTO Processing 1 images image shape: (2160, 3264, 3) min: 0.00000 max: 255.00000 molded_images shape: (1, 640, 640, 3) min: -123.70000 max: 151.10000 image_metas shape: (1, 18) min: 0.00000 max: 3264.00000 nb d'objets trouves : 9 NEW PHOTO Processing 1 images image shape: (2160, 3264, 3) min: 0.00000 max: 255.00000 molded_images shape: (1, 640, 640, 3) min: -123.70000 max: 151.10000 image_metas shape: (1, 18) min: 0.00000 max: 3264.00000 nb d'objets trouves : 16 NEW PHOTO Processing 1 images image shape: (2160, 3264, 3) min: 0.00000 max: 255.00000 molded_images shape: (1, 640, 640, 3) min: -123.70000 max: 151.10000 image_metas shape: (1, 18) min: 0.00000 max: 3264.00000 nb d'objets trouves : 11 NEW PHOTO Processing 1 images image shape: (2160, 3264, 3) min: 0.00000 max: 255.00000 molded_images shape: (1, 640, 640, 3) min: -123.70000 max: 151.10000 image_metas shape: (1, 18) min: 0.00000 max: 3264.00000 nb d'objets trouves : 5 NEW PHOTO Processing 1 images image shape: (2160, 3264, 3) min: 0.00000 max: 255.00000 molded_images shape: (1, 640, 640, 3) min: -123.70000 max: 151.10000 image_metas shape: (1, 18) min: 0.00000 max: 3264.00000 nb d'objets trouves : 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 : 15 NEW PHOTO Processing 1 images image shape: (2160, 3264, 3) min: 0.00000 max: 255.00000 molded_images shape: (1, 640, 640, 3) min: -123.70000 max: 151.10000 image_metas shape: (1, 18) min: 0.00000 max: 3264.00000 nb d'objets trouves : 7 NEW PHOTO Processing 1 images image shape: (2160, 3264, 3) min: 0.00000 max: 255.00000 molded_images shape: (1, 640, 640, 3) min: -123.70000 max: 151.10000 image_metas shape: (1, 18) min: 0.00000 max: 3264.00000 nb d'objets trouves : 12 Detection mask done ! Trying to reset tf kernel 2256497 begin to check gpu status inside check gpu memory l 3610 free memory gpu now : 70 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 : 5359 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.000270843505859375 nb_pixel_total : 7268 time to create 1 rle with old method : 0.008505105972290039 length of segment : 88 time for calcul the mask position with numpy : 0.0016291141510009766 nb_pixel_total : 55625 time to create 1 rle with old method : 0.06108593940734863 length of segment : 277 time for calcul the mask position with numpy : 0.00018286705017089844 nb_pixel_total : 3396 time to create 1 rle with old method : 0.004282951354980469 length of segment : 103 time for calcul the mask position with numpy : 0.005521059036254883 nb_pixel_total : 216482 time to create 1 rle with new method : 0.01544046401977539 length of segment : 792 time for calcul the mask position with numpy : 0.0005624294281005859 nb_pixel_total : 16737 time to create 1 rle with old method : 0.01934075355529785 length of segment : 303 time for calcul the mask position with numpy : 0.02067089080810547 nb_pixel_total : 502092 time to create 1 rle with new method : 0.4452080726623535 length of segment : 930 time for calcul the mask position with numpy : 0.03803110122680664 nb_pixel_total : 893635 time to create 1 rle with new method : 0.4145190715789795 length of segment : 1173 time for calcul the mask position with numpy : 0.0008320808410644531 nb_pixel_total : 32966 time to create 1 rle with old method : 0.0383913516998291 length of segment : 546 time for calcul the mask position with numpy : 0.0007541179656982422 nb_pixel_total : 22243 time to create 1 rle with old method : 0.025900602340698242 length of segment : 149 time for calcul the mask position with numpy : 0.004475831985473633 nb_pixel_total : 203346 time to create 1 rle with new method : 0.0070760250091552734 length of segment : 559 time for calcul the mask position with numpy : 0.0059604644775390625 nb_pixel_total : 329533 time to create 1 rle with new method : 0.008695840835571289 length of segment : 667 time for calcul the mask position with numpy : 0.8010289669036865 nb_pixel_total : 2339011 time to create 1 rle with new method : 0.5917203426361084 length of segment : 3881 time for calcul the mask position with numpy : 0.0004894733428955078 nb_pixel_total : 7157 time to create 1 rle with old method : 0.008565664291381836 length of segment : 142 time for calcul the mask position with numpy : 0.00011420249938964844 nb_pixel_total : 1066 time to create 1 rle with old method : 0.0015690326690673828 length of segment : 29 time for calcul the mask position with numpy : 0.02048039436340332 nb_pixel_total : 1075624 time to create 1 rle with new method : 0.08485865592956543 length of segment : 2487 time for calcul the mask position with numpy : 0.0018925666809082031 nb_pixel_total : 92181 time to create 1 rle with old method : 0.1021726131439209 length of segment : 348 time for calcul the mask position with numpy : 0.01660895347595215 nb_pixel_total : 968154 time to create 1 rle with new method : 0.2917158603668213 length of segment : 1191 time for calcul the mask position with numpy : 0.0005221366882324219 nb_pixel_total : 15637 time to create 1 rle with old method : 0.018283843994140625 length of segment : 183 time for calcul the mask position with numpy : 0.02731013298034668 nb_pixel_total : 677394 time to create 1 rle with new method : 0.1950063705444336 length of segment : 1977 time for calcul the mask position with numpy : 0.006368875503540039 nb_pixel_total : 442007 time to create 1 rle with new method : 0.011088132858276367 length of segment : 589 time for calcul the mask position with numpy : 0.003208160400390625 nb_pixel_total : 157887 time to create 1 rle with new method : 0.009041070938110352 length of segment : 547 time for calcul the mask position with numpy : 0.004396200180053711 nb_pixel_total : 254501 time to create 1 rle with new method : 0.012549638748168945 length of segment : 662 time for calcul the mask position with numpy : 0.0028018951416015625 nb_pixel_total : 193638 time to create 1 rle with new method : 0.0065882205963134766 length of segment : 605 time for calcul the mask position with numpy : 0.008323907852172852 nb_pixel_total : 387826 time to create 1 rle with new method : 0.03378796577453613 length of segment : 617 time for calcul the mask position with numpy : 0.0005919933319091797 nb_pixel_total : 13966 time to create 1 rle with old method : 0.017111778259277344 length of segment : 119 time for calcul the mask position with numpy : 0.0002789497375488281 nb_pixel_total : 8758 time to create 1 rle with old method : 0.011043787002563477 length of segment : 100 time for calcul the mask position with numpy : 0.001432180404663086 nb_pixel_total : 43179 time to create 1 rle with old method : 0.05088090896606445 length of segment : 478 time for calcul the mask position with numpy : 0.001054525375366211 nb_pixel_total : 33219 time to create 1 rle with old method : 0.03930854797363281 length of segment : 350 time for calcul the mask position with numpy : 0.0015261173248291016 nb_pixel_total : 29972 time to create 1 rle with old method : 0.03609895706176758 length of segment : 272 time for calcul the mask position with numpy : 0.0005662441253662109 nb_pixel_total : 4369 time to create 1 rle with old method : 0.005460977554321289 length of segment : 161 time for calcul the mask position with numpy : 0.0003292560577392578 nb_pixel_total : 9941 time to create 1 rle with old method : 0.012278556823730469 length of segment : 113 time for calcul the mask position with numpy : 0.002057790756225586 nb_pixel_total : 88322 time to create 1 rle with old method : 0.09980511665344238 length of segment : 308 time for calcul the mask position with numpy : 0.004088640213012695 nb_pixel_total : 131252 time to create 1 rle with old method : 0.14779043197631836 length of segment : 561 time for calcul the mask position with numpy : 0.0016963481903076172 nb_pixel_total : 54187 time to create 1 rle with old method : 0.060019493103027344 length of segment : 352 time for calcul the mask position with numpy : 0.04551339149475098 nb_pixel_total : 1675934 time to create 1 rle with new method : 0.9919323921203613 length of segment : 3145 time for calcul the mask position with numpy : 0.015985727310180664 nb_pixel_total : 583289 time to create 1 rle with new method : 0.048819780349731445 length of segment : 1129 time for calcul the mask position with numpy : 0.002437591552734375 nb_pixel_total : 51349 time to create 1 rle with old method : 0.07185840606689453 length of segment : 345 time for calcul the mask position with numpy : 0.0015139579772949219 nb_pixel_total : 47821 time to create 1 rle with old method : 0.0522158145904541 length of segment : 527 time for calcul the mask position with numpy : 0.0011208057403564453 nb_pixel_total : 40921 time to create 1 rle with old method : 0.045276641845703125 length of segment : 330 time for calcul the mask position with numpy : 0.002287626266479492 nb_pixel_total : 96276 time to create 1 rle with old method : 0.1135869026184082 length of segment : 330 time for calcul the mask position with numpy : 0.00020122528076171875 nb_pixel_total : 4953 time to create 1 rle with old method : 0.0064525604248046875 length of segment : 47 time for calcul the mask position with numpy : 0.04372048377990723 nb_pixel_total : 1883337 time to create 1 rle with new method : 0.9130961894989014 length of segment : 4066 time for calcul the mask position with numpy : 0.0033292770385742188 nb_pixel_total : 134980 time to create 1 rle with old method : 0.14461135864257812 length of segment : 574 time for calcul the mask position with numpy : 0.001123666763305664 nb_pixel_total : 26099 time to create 1 rle with old method : 0.029674291610717773 length of segment : 250 time for calcul the mask position with numpy : 0.005988597869873047 nb_pixel_total : 373091 time to create 1 rle with new method : 0.009913444519042969 length of segment : 708 time for calcul the mask position with numpy : 0.002410888671875 nb_pixel_total : 89597 time to create 1 rle with old method : 0.11153984069824219 length of segment : 321 time for calcul the mask position with numpy : 0.0017108917236328125 nb_pixel_total : 27055 time to create 1 rle with old method : 0.03127765655517578 length of segment : 464 time for calcul the mask position with numpy : 0.40961790084838867 nb_pixel_total : 2627555 time to create 1 rle with new method : 0.9456419944763184 length of segment : 2881 time for calcul the mask position with numpy : 0.0016303062438964844 nb_pixel_total : 102637 time to create 1 rle with old method : 0.11352229118347168 length of segment : 455 time for calcul the mask position with numpy : 0.009516239166259766 nb_pixel_total : 500511 time to create 1 rle with new method : 0.014370918273925781 length of segment : 886 time for calcul the mask position with numpy : 0.008029699325561523 nb_pixel_total : 382159 time to create 1 rle with new method : 0.014374256134033203 length of segment : 781 time for calcul the mask position with numpy : 0.03987860679626465 nb_pixel_total : 1993438 time to create 1 rle with new method : 0.8078784942626953 length of segment : 3057 time for calcul the mask position with numpy : 0.00019478797912597656 nb_pixel_total : 2217 time to create 1 rle with old method : 0.00264739990234375 length of segment : 66 time for calcul the mask position with numpy : 0.0012331008911132812 nb_pixel_total : 53953 time to create 1 rle with old method : 0.05997300148010254 length of segment : 358 time for calcul the mask position with numpy : 0.0011434555053710938 nb_pixel_total : 53354 time to create 1 rle with old method : 0.06077694892883301 length of segment : 279 time for calcul the mask position with numpy : 0.0015687942504882812 nb_pixel_total : 71739 time to create 1 rle with old method : 0.08671855926513672 length of segment : 299 time for calcul the mask position with numpy : 0.0007364749908447266 nb_pixel_total : 25365 time to create 1 rle with old method : 0.029444217681884766 length of segment : 429 time for calcul the mask position with numpy : 0.0006732940673828125 nb_pixel_total : 30130 time to create 1 rle with old method : 0.03334975242614746 length of segment : 293 time for calcul the mask position with numpy : 0.011973381042480469 nb_pixel_total : 572244 time to create 1 rle with new method : 0.01779913902282715 length of segment : 1120 time for calcul the mask position with numpy : 0.0030870437622070312 nb_pixel_total : 132893 time to create 1 rle with old method : 0.1448838710784912 length of segment : 458 time for calcul the mask position with numpy : 0.0029442310333251953 nb_pixel_total : 52895 time to create 1 rle with old method : 0.058424949645996094 length of segment : 251 time for calcul the mask position with numpy : 0.0001742839813232422 nb_pixel_total : 3710 time to create 1 rle with old method : 0.004764080047607422 length of segment : 90 time for calcul the mask position with numpy : 0.0060389041900634766 nb_pixel_total : 202070 time to create 1 rle with new method : 0.009918451309204102 length of segment : 632 time for calcul the mask position with numpy : 0.00022220611572265625 nb_pixel_total : 1907 time to create 1 rle with old method : 0.0023741722106933594 length of segment : 103 time for calcul the mask position with numpy : 0.0005528926849365234 nb_pixel_total : 23444 time to create 1 rle with old method : 0.02868199348449707 length of segment : 140 time for calcul the mask position with numpy : 0.00034618377685546875 nb_pixel_total : 9755 time to create 1 rle with old method : 0.011708498001098633 length of segment : 123 time for calcul the mask position with numpy : 0.000148773193359375 nb_pixel_total : 3127 time to create 1 rle with old method : 0.004120826721191406 length of segment : 45 time for calcul the mask position with numpy : 0.0004420280456542969 nb_pixel_total : 10384 time to create 1 rle with old method : 0.013512849807739258 length of segment : 158 time for calcul the mask position with numpy : 0.0005924701690673828 nb_pixel_total : 15812 time to create 1 rle with old method : 0.019002199172973633 length of segment : 162 time for calcul the mask position with numpy : 0.0012428760528564453 nb_pixel_total : 43630 time to create 1 rle with old method : 0.04788517951965332 length of segment : 366 time for calcul the mask position with numpy : 0.023296117782592773 nb_pixel_total : 1083226 time to create 1 rle with new method : 0.06075882911682129 length of segment : 1617 time for calcul the mask position with numpy : 0.0034742355346679688 nb_pixel_total : 122036 time to create 1 rle with old method : 0.13627052307128906 length of segment : 292 time for calcul the mask position with numpy : 0.003578662872314453 nb_pixel_total : 126707 time to create 1 rle with old method : 0.13950395584106445 length of segment : 562 time for calcul the mask position with numpy : 0.003935337066650391 nb_pixel_total : 177303 time to create 1 rle with new method : 0.009388923645019531 length of segment : 597 time for calcul the mask position with numpy : 0.0002219676971435547 nb_pixel_total : 2901 time to create 1 rle with old method : 0.0035631656646728516 length of segment : 91 time for calcul the mask position with numpy : 0.0062408447265625 nb_pixel_total : 310299 time to create 1 rle with new method : 0.17421507835388184 length of segment : 663 time for calcul the mask position with numpy : 0.0017552375793457031 nb_pixel_total : 30001 time to create 1 rle with old method : 0.03521370887756348 length of segment : 242 time for calcul the mask position with numpy : 0.00022983551025390625 nb_pixel_total : 5837 time to create 1 rle with old method : 0.007562160491943359 length of segment : 92 time for calcul the mask position with numpy : 0.0027513504028320312 nb_pixel_total : 121157 time to create 1 rle with old method : 0.140794038772583 length of segment : 532 time for calcul the mask position with numpy : 0.0017783641815185547 nb_pixel_total : 66467 time to create 1 rle with old method : 0.10782504081726074 length of segment : 404 time for calcul the mask position with numpy : 0.0006394386291503906 nb_pixel_total : 19357 time to create 1 rle with old method : 0.0224001407623291 length of segment : 197 time for calcul the mask position with numpy : 0.0009005069732666016 nb_pixel_total : 31283 time to create 1 rle with old method : 0.03604412078857422 length of segment : 361 time for calcul the mask position with numpy : 0.0043487548828125 nb_pixel_total : 138198 time to create 1 rle with old method : 0.15222430229187012 length of segment : 698 time for calcul the mask position with numpy : 0.0016312599182128906 nb_pixel_total : 53496 time to create 1 rle with old method : 0.05957913398742676 length of segment : 341 time for calcul the mask position with numpy : 0.0036919116973876953 nb_pixel_total : 220405 time to create 1 rle with new method : 0.009361982345581055 length of segment : 516 time for calcul the mask position with numpy : 0.00018143653869628906 nb_pixel_total : 1937 time to create 1 rle with old method : 0.0024421215057373047 length of segment : 66 time for calcul the mask position with numpy : 0.005327939987182617 nb_pixel_total : 240917 time to create 1 rle with new method : 0.010030031204223633 length of segment : 639 time for calcul the mask position with numpy : 0.0002837181091308594 nb_pixel_total : 5024 time to create 1 rle with old method : 0.00609588623046875 length of segment : 203 time for calcul the mask position with numpy : 0.00017595291137695312 nb_pixel_total : 1154 time to create 1 rle with old method : 0.0014793872833251953 length of segment : 66 time for calcul the mask position with numpy : 0.0013883113861083984 nb_pixel_total : 65344 time to create 1 rle with old method : 0.07197904586791992 length of segment : 251 time for calcul the mask position with numpy : 0.0009436607360839844 nb_pixel_total : 53427 time to create 1 rle with old method : 0.06044197082519531 length of segment : 310 time spent for convertir_results : 24.462841510772705 Inside saveOutput : final : False verbose : 0 eke 12-6-18 : saveMask need to be cleaned for new output ! Number saved : None batch 1 Loaded 91 chid ids of type : 3663 Number RLEs to save : 56067 save missing photos in datou_result : time spend for datou_step_exec : 65.94754076004028 time spend to save output : 4.170116901397705 total time spend for step 1 : 70.11765766143799 step2:crop_condition Fri Feb 14 00:07:39 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 91 chid ids of type : 3663 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ begin to crop the class : teint_dans_la_masse param for this class : {'min_score': 0.7} filtre for class : teint_dans_la_masse hashtag_id of this class : 2107752385 we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! map_result returned by crop_photo_return_map_crop : length : 7 About to insert : list_path_to_insert length 7 new photo from crops ! we have finished the crop for the class : teint_dans_la_masse begin to crop the class : autre_refus param for this class : {'min_score': 0.5} filtre for class : autre_refus hashtag_id of this class : 2107752406 we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! map_result returned by crop_photo_return_map_crop : length : 6 About to insert : list_path_to_insert length 6 new photo from crops ! we have finished the crop for the class : autre_refus begin to crop the class : carton_gris param for this class : {'min_score': 0.5} filtre for class : carton_gris hashtag_id of this class : 2107753020 we have both polygon and rles Next one ! we have both polygon and rles Next one ! 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_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 ! map_result returned by crop_photo_return_map_crop : length : 26 About to insert : list_path_to_insert length 26 new photo from crops ! we have finished the crop for the class : cartonnette begin to crop the class : carton_brun param for this class : {'min_score': 0.7} filtre for class : carton_brun hashtag_id of this class : 2107753024 we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! map_result returned by crop_photo_return_map_crop : length : 3 About to insert : list_path_to_insert length 3 new photo from crops ! we have finished the crop for the class : carton_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 ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! map_result returned by crop_photo_return_map_crop : length : 7 About to insert : list_path_to_insert length 7 new photo from crops ! we have finished the crop for the class : plastique begin to crop the class : kraft param for this class : {'min_score': 0.5} filtre for class : kraft hashtag_id of this class : 493202403 we have both polygon and rles Next one ! map_result returned by crop_photo_return_map_crop : length : 1 About to insert : list_path_to_insert length 1 new photo from crops ! we have finished the crop for the class : kraft begin to crop the class : metal param for this class : {'min_score': 0.5} filtre for class : metal hashtag_id of this class : 492628673 delete rles for these photos Inside saveOutput : final : False verbose : 0 saveOutput not yet implemented for datou_step.type : crop_condition we use saveGeneral [1337444911, 1337444910, 1337444857, 1337444843, 1337444823, 1337444816, 1337405218, 1337405130, 1337405024, 1337404774] Looping around the photos to save general results len do output : 52 /-3673993305Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3673993331Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3673993343Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3673993341Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3673993345Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3673993340Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3673993360Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3673993298Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3673993303Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3673993309Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3673993323Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3673993338Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3673993349Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3673993281Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3673993370Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3673993290Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3673993282Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3673993289Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3673993288Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3673993284Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3673993296Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3673993301Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3673993302Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3673993313Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3673993307Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3673993317Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3673993318Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3673993324Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3673993326Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3673993327Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3673993329Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3673993339Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3673993334Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3673993350Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3673993352Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3673993359Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3673993357Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3673993356Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3673993363Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3673993365Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3673993362Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3673993314Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3673993319Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3673993364Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3673993291Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3673993300Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3673993312Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3673993308Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3673993320Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3673993335Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3673993354Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3673993371Didn'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, '2584410') ('3459', '20528945', '1337444911', None, None, None, None, None, '2584410') ('3459', None, None, None, None, None, None, None, '2584410') ('3459', '20528945', '1337444910', None, None, None, None, None, '2584410') ('3459', None, None, None, None, None, None, None, '2584410') ('3459', '20528945', '1337444857', None, None, None, None, None, '2584410') ('3459', None, None, None, None, None, None, None, '2584410') ('3459', '20528945', '1337444843', None, None, None, None, None, '2584410') ('3459', None, None, None, None, None, None, None, '2584410') ('3459', '20528945', '1337444823', None, None, None, None, None, '2584410') ('3459', None, None, None, None, None, None, None, '2584410') ('3459', '20528945', '1337444816', None, None, None, None, None, '2584410') ('3459', None, None, None, None, None, None, None, '2584410') ('3459', '20528945', '1337405218', None, None, None, None, None, '2584410') ('3459', None, None, None, None, None, None, None, '2584410') ('3459', '20528945', '1337405130', None, None, None, None, None, '2584410') ('3459', None, None, None, None, None, None, None, '2584410') ('3459', '20528945', '1337405024', None, None, None, None, None, '2584410') ('3459', None, None, None, None, None, None, None, '2584410') ('3459', '20528945', '1337404774', None, None, None, None, None, '2584410') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 166 time used for this insertion : 0.030277490615844727 save_final save missing photos in datou_result : time spend for datou_step_exec : 35.4302453994751 time spend to save output : 0.03179788589477539 total time spend for step 2 : 35.46204328536987 step3:thcl Fri Feb 14 00:08:14 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 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.00897669792175293 time to convert the images to numpy array : 3.337860107421875e-06 time to import caffe and check if the image exist : 0.01226496696472168 time to convert the images to numpy array : 0.12722039222717285 time to import caffe and check if the image exist : 0.013900041580200195 time to convert the images to numpy array : 0.2591578960418701 time to import caffe and check if the image exist : 0.013960838317871094 time to convert the images to numpy array : 0.26122546195983887 time to import caffe and check if the image exist : 0.015776395797729492 time to convert the images to numpy array : 0.2817988395690918 time to import caffe and check if the image exist : 0.01568150520324707 time to convert the images to numpy array : 0.3172323703765869 time to import caffe and check if the image exist : 0.015131235122680664 time to convert the images to numpy array : 0.3291463851928711 time to import caffe and check if the image exist : 0.016764402389526367 time to convert the images to numpy array : 0.5672333240509033 time to import caffe and check if the image exist : 0.013348579406738281 time to convert the images to numpy array : 0.5710477828979492 time to import caffe and check if the image exist : 0.02223372459411621 time to convert the images to numpy array : 0.5910418033599854 total time to convert the images to numpy array : 1.0997402667999268 list photo_ids error: [] list photo_ids correct : [-3673993349, -3673993281, -3673993370, -3673993290, -3673993282, -3673993289, -3673993307, -3673993317, -3673993318, -3673993324, -3673993326, -3673993327, -3673993320, -3673993335, -3673993354, -3673993371, -3673993360, -3673993298, -3673993303, -3673993309, -3673993323, -3673993338, -3673993305, -3673993331, -3673993343, -3673993341, -3673993345, -3673993340, -3673993357, -3673993356, -3673993363, -3673993365, -3673993362, -3673993314, -3673993319, -3673993364, -3673993291, -3673993300, -3673993312, -3673993308, -3673993288, -3673993284, -3673993296, -3673993301, -3673993302, -3673993313, -3673993329, -3673993339, -3673993334, -3673993350, -3673993352, -3673993359] number of photos to traite : 52 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 : 5359 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 : 5140 max_wait_temp : 1 max_wait : 0 dict_keys(['prob']) time used to do the prepocess of the images : 0.7873108386993408 time used to do the prediction : 0.3934762477874756 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 : 5138 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 : 5138 max_wait_temp : 1 max_wait : 0 dict_keys(['prob']) time used to do the prepocess of the images : 0.8330416679382324 time used to do the prediction : 0.12484216690063477 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.9802322387695312e-05 save missing photos in datou_result : time spend for datou_step_exec : 10.30367398262024 time spend to save output : 0.0006570816040039062 total time spend for step 3 : 10.304331064224243 step4:merge_mask_thcl_custom Fri Feb 14 00:08:25 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 1 Inconsistent number of input and output, step which parrallelize and manage error in input by avoiding sending an output for this data can't be used in tree dependencies of input and output complete output_args for input 2 VR 22-3-18 : For now we do not clean correctly the datou structure Begin step merge_mask_thcl_custom batch 1 Loaded 91 chid ids of type : 3663 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++As expected we have just one thcl present End of step merge_mask_thcl_custom Inside saveOutput : final : False verbose : 0 saveOutput not yet implemented for datou_step.type : merge_mask_thcl_custom we use saveGeneral [1337444911, 1337444910, 1337444857, 1337444843, 1337444823, 1337444816, 1337405218, 1337405130, 1337405024, 1337404774] Looping around the photos to save general results len do output : 10 /1337444911Didn't retrieve data .Didn't retrieve data . /1337444910Didn't retrieve data .Didn't retrieve data . /1337444857Didn't retrieve data .Didn't retrieve data . /1337444843Didn't retrieve data .Didn't retrieve data . /1337444823Didn't retrieve data .Didn't retrieve data . /1337444816Didn't retrieve data .Didn't retrieve data . /1337405218Didn't retrieve data .Didn't retrieve data . /1337405130Didn't retrieve data .Didn't retrieve data . /1337405024Didn't retrieve data .Didn't retrieve data . /1337404774Didn'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, '2584410') ('3459', '20528945', '1337444911', None, None, None, None, None, '2584410') ('3459', None, None, None, None, None, None, None, '2584410') ('3459', '20528945', '1337444910', None, None, None, None, None, '2584410') ('3459', None, None, None, None, None, None, None, '2584410') ('3459', '20528945', '1337444857', None, None, None, None, None, '2584410') ('3459', None, None, None, None, None, None, None, '2584410') ('3459', '20528945', '1337444843', None, None, None, None, None, '2584410') ('3459', None, None, None, None, None, None, None, '2584410') ('3459', '20528945', '1337444823', None, None, None, None, None, '2584410') ('3459', None, None, None, None, None, None, None, '2584410') ('3459', '20528945', '1337444816', None, None, None, None, None, '2584410') ('3459', None, None, None, None, None, None, None, '2584410') ('3459', '20528945', '1337405218', None, None, None, None, None, '2584410') ('3459', None, None, None, None, None, None, None, '2584410') ('3459', '20528945', '1337405130', None, None, None, None, None, '2584410') ('3459', None, None, None, None, None, None, None, '2584410') ('3459', '20528945', '1337405024', None, None, None, None, None, '2584410') ('3459', None, None, None, None, None, None, None, '2584410') ('3459', '20528945', '1337404774', None, None, None, None, None, '2584410') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 time used for this insertion : 0.013204574584960938 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07236433029174805 time spend to save output : 0.01369333267211914 total time spend for step 4 : 0.08605766296386719 step5:rle_unique_nms_with_priority Fri Feb 14 00:08:25 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 : 11 nb_hashtags : 6 time to prepare the origin masks : 10.424264669418335 time for calcul the mask position with numpy : 0.2246875762939453 nb_pixel_total : 5549022 time to create 1 rle with new method : 0.3937647342681885 time for calcul the mask position with numpy : 0.02144646644592285 nb_pixel_total : 20136 time to create 1 rle with old method : 0.023840665817260742 time for calcul the mask position with numpy : 0.023307323455810547 nb_pixel_total : 8059 time to create 1 rle with old method : 0.010087966918945312 time for calcul the mask position with numpy : 0.023035526275634766 nb_pixel_total : 33032 time to create 1 rle with old method : 0.035918474197387695 time for calcul the mask position with numpy : 0.026764631271362305 nb_pixel_total : 216162 time to create 1 rle with new method : 0.3778064250946045 time for calcul the mask position with numpy : 0.023298978805541992 nb_pixel_total : 7249 time to create 1 rle with old method : 0.008740901947021484 time for calcul the mask position with numpy : 0.026614665985107422 nb_pixel_total : 436204 time to create 1 rle with new method : 0.4423820972442627 time for calcul the mask position with numpy : 0.027367830276489258 nb_pixel_total : 502174 time to create 1 rle with new method : 0.3850851058959961 time for calcul the mask position with numpy : 0.023519277572631836 nb_pixel_total : 16608 time to create 1 rle with old method : 0.032320261001586914 time for calcul the mask position with numpy : 0.032515525817871094 nb_pixel_total : 202882 time to create 1 rle with new method : 0.30563926696777344 time for calcul the mask position with numpy : 0.02128314971923828 nb_pixel_total : 3326 time to create 1 rle with old method : 0.003707408905029297 time for calcul the mask position with numpy : 0.02246570587158203 nb_pixel_total : 55386 time to create 1 rle with old method : 0.07448172569274902 create new chi : 2.7155768871307373 time to delete rle : 0.010574579238891602 batch 1 Loaded 12 chid ids of type : 3726 Number RLEs to save : 11335 TO DO : save crop sub photo not yet done ! save time : 0.6397268772125244 nb_obj : 7 nb_hashtags : 3 time to prepare the origin masks : 4.037991523742676 time for calcul the mask position with numpy : 0.1572558879852295 nb_pixel_total : 3355034 time to create 1 rle with new method : 1.2438294887542725 time for calcul the mask position with numpy : 0.039945125579833984 nb_pixel_total : 249508 time to create 1 rle with new method : 0.33185911178588867 time for calcul the mask position with numpy : 0.0387270450592041 nb_pixel_total : 842 time to create 1 rle with old method : 0.0010421276092529297 time for calcul the mask position with numpy : 0.053043365478515625 nb_pixel_total : 1002277 time to create 1 rle with new method : 0.4715690612792969 time for calcul the mask position with numpy : 0.03771495819091797 nb_pixel_total : 91996 time to create 1 rle with old method : 0.10141801834106445 time for calcul the mask position with numpy : 0.035657644271850586 nb_pixel_total : 1048 time to create 1 rle with old method : 0.001941680908203125 time for calcul the mask position with numpy : 0.03485822677612305 nb_pixel_total : 5751 time to create 1 rle with old method : 0.006430387496948242 time for calcul the mask position with numpy : 0.06241011619567871 nb_pixel_total : 2343784 time to create 1 rle with new method : 0.3159317970275879 create new chi : 3.0455527305603027 time to delete rle : 0.0015375614166259766 batch 1 Loaded 8 chid ids of type : 3726 Number RLEs to save : 16802 TO DO : save crop sub photo not yet done ! save time : 0.9211900234222412 nb_obj : 6 nb_hashtags : 2 time to prepare the origin masks : 5.667649984359741 time for calcul the mask position with numpy : 0.6352970600128174 nb_pixel_total : 5575377 time to create 1 rle with new method : 0.9275829792022705 time for calcul the mask position with numpy : 0.030095577239990234 nb_pixel_total : 62063 time to create 1 rle with old method : 0.07677388191223145 time for calcul the mask position with numpy : 0.044677734375 nb_pixel_total : 253748 time to create 1 rle with new method : 0.7403678894042969 time for calcul the mask position with numpy : 0.03635764122009277 nb_pixel_total : 172555 time to create 1 rle with new method : 1.4467146396636963 time for calcul the mask position with numpy : 0.041872501373291016 nb_pixel_total : 99518 time to create 1 rle with old method : 0.11292481422424316 time for calcul the mask position with numpy : 0.03882169723510742 nb_pixel_total : 211048 time to create 1 rle with new method : 0.8869667053222656 time for calcul the mask position with numpy : 0.042208194732666016 nb_pixel_total : 675931 time to create 1 rle with new method : 0.7589201927185059 create new chi : 5.954118490219116 time to delete rle : 0.0016705989837646484 batch 1 Loaded 7 chid ids of type : 3726 Number RLEs to save : 10549 TO DO : save crop sub photo not yet done ! save time : 0.7125184535980225 nb_obj : 13 nb_hashtags : 5 time to prepare the origin masks : 8.73975944519043 time for calcul the mask position with numpy : 0.20469164848327637 nb_pixel_total : 4522765 time to create 1 rle with new method : 0.4635200500488281 time for calcul the mask position with numpy : 0.03978562355041504 nb_pixel_total : 29808 time to create 1 rle with old method : 0.04793381690979004 time for calcul the mask position with numpy : 0.044060468673706055 nb_pixel_total : 423934 time to create 1 rle with new method : 0.5263612270355225 time for calcul the mask position with numpy : 0.03513288497924805 nb_pixel_total : 42748 time to create 1 rle with old method : 0.04621291160583496 time for calcul the mask position with numpy : 0.05829358100891113 nb_pixel_total : 1687047 time to create 1 rle with new method : 0.5159738063812256 time for calcul the mask position with numpy : 0.04111766815185547 nb_pixel_total : 131108 time to create 1 rle with old method : 0.1498429775238037 time for calcul the mask position with numpy : 0.038687944412231445 nb_pixel_total : 33231 time to create 1 rle with old method : 0.03810858726501465 time for calcul the mask position with numpy : 0.03577160835266113 nb_pixel_total : 9857 time to create 1 rle with old method : 0.01338648796081543 time for calcul the mask position with numpy : 0.038187265396118164 nb_pixel_total : 4341 time to create 1 rle with old method : 0.011189460754394531 time for calcul the mask position with numpy : 0.060146331787109375 nb_pixel_total : 88082 time to create 1 rle with old method : 0.09897661209106445 time for calcul the mask position with numpy : 0.03822898864746094 nb_pixel_total : 8712 time to create 1 rle with old method : 0.009894609451293945 time for calcul the mask position with numpy : 0.03811025619506836 nb_pixel_total : 13898 time to create 1 rle with old method : 0.016900062561035156 time for calcul the mask position with numpy : 0.04268383979797363 nb_pixel_total : 3444 time to create 1 rle with old method : 0.005085945129394531 time for calcul the mask position with numpy : 0.03722643852233887 nb_pixel_total : 51265 time to create 1 rle with old method : 0.26276397705078125 create new chi : 3.0525786876678467 time to delete rle : 0.001995086669921875 batch 1 Loaded 14 chid ids of type : 3726 Number RLEs to save : 15913 TO DO : save crop sub photo not yet done ! save time : 1.0215551853179932 nb_obj : 9 nb_hashtags : 6 time to prepare the origin masks : 8.553734302520752 time for calcul the mask position with numpy : 0.6685707569122314 nb_pixel_total : 4294201 time to create 1 rle with new method : 0.5165917873382568 time for calcul the mask position with numpy : 0.03734230995178223 nb_pixel_total : 1348 time to create 1 rle with old method : 0.00183868408203125 time for calcul the mask position with numpy : 0.03779911994934082 nb_pixel_total : 134806 time to create 1 rle with old method : 0.2086467742919922 time for calcul the mask position with numpy : 0.04875063896179199 nb_pixel_total : 370230 time to create 1 rle with new method : 0.3283698558807373 time for calcul the mask position with numpy : 0.03399848937988281 nb_pixel_total : 96023 time to create 1 rle with old method : 0.10549235343933105 time for calcul the mask position with numpy : 0.05329322814941406 nb_pixel_total : 2034305 time to create 1 rle with new method : 0.3975379467010498 time for calcul the mask position with numpy : 0.024959087371826172 nb_pixel_total : 4891 time to create 1 rle with old method : 0.005752086639404297 time for calcul the mask position with numpy : 0.02393627166748047 nb_pixel_total : 47669 time to create 1 rle with old method : 0.05446338653564453 time for calcul the mask position with numpy : 0.03586935997009277 nb_pixel_total : 40822 time to create 1 rle with old method : 0.045058488845825195 time for calcul the mask position with numpy : 0.03749823570251465 nb_pixel_total : 25945 time to create 1 rle with old method : 0.028232097625732422 create new chi : 2.7792370319366455 time to delete rle : 0.0013422966003417969 batch 1 Loaded 10 chid ids of type : 3726 Number RLEs to save : 14098 TO DO : save crop sub photo not yet done ! save time : 0.9251775741577148 nb_obj : 3 nb_hashtags : 2 time to prepare the origin masks : 4.123337984085083 time for calcul the mask position with numpy : 0.4884920120239258 nb_pixel_total : 4218013 time to create 1 rle with new method : 0.882455587387085 time for calcul the mask position with numpy : 0.03876924514770508 nb_pixel_total : 102574 time to create 1 rle with old method : 0.11236095428466797 time for calcul the mask position with numpy : 0.22168374061584473 nb_pixel_total : 2702791 time to create 1 rle with new method : 0.8104753494262695 time for calcul the mask position with numpy : 0.03807187080383301 nb_pixel_total : 26862 time to create 1 rle with old method : 0.03164172172546387 create new chi : 2.701167583465576 time to delete rle : 0.0010492801666259766 batch 1 Loaded 4 chid ids of type : 3726 Number RLEs to save : 9116 TO DO : save crop sub photo not yet done ! save time : 0.6408774852752686 nb_obj : 8 nb_hashtags : 5 time to prepare the origin masks : 5.093755722045898 time for calcul the mask position with numpy : 0.2627577781677246 nb_pixel_total : 4453940 time to create 1 rle with new method : 0.7510762214660645 time for calcul the mask position with numpy : 0.02651500701904297 nb_pixel_total : 381356 time to create 1 rle with new method : 0.6250593662261963 time for calcul the mask position with numpy : 0.023180246353149414 nb_pixel_total : 28007 time to create 1 rle with old method : 0.03296828269958496 time for calcul the mask position with numpy : 0.021871328353881836 nb_pixel_total : 51336 time to create 1 rle with old method : 0.05933785438537598 time for calcul the mask position with numpy : 0.02378392219543457 nb_pixel_total : 30102 time to create 1 rle with old method : 0.03321957588195801 time for calcul the mask position with numpy : 0.02375507354736328 nb_pixel_total : 55603 time to create 1 rle with old method : 0.062403202056884766 time for calcul the mask position with numpy : 0.024227380752563477 nb_pixel_total : 611 time to create 1 rle with old method : 0.00077056884765625 time for calcul the mask position with numpy : 0.024554967880249023 nb_pixel_total : 57452 time to create 1 rle with old method : 0.06156134605407715 time for calcul the mask position with numpy : 0.333981990814209 nb_pixel_total : 1991833 time to create 1 rle with new method : 0.9472334384918213 create new chi : 3.425666570663452 time to delete rle : 0.0011951923370361328 batch 1 Loaded 9 chid ids of type : 3726 Number RLEs to save : 12662 TO DO : save crop sub photo not yet done ! save time : 0.8202078342437744 nb_obj : 13 nb_hashtags : 4 time to prepare the origin masks : 6.510422945022583 time for calcul the mask position with numpy : 0.4039583206176758 nb_pixel_total : 5347344 time to create 1 rle with new method : 1.4491851329803467 time for calcul the mask position with numpy : 0.024398326873779297 nb_pixel_total : 23337 time to create 1 rle with old method : 0.025648832321166992 time for calcul the mask position with numpy : 0.023441553115844727 nb_pixel_total : 43505 time to create 1 rle with old method : 0.04697251319885254 time for calcul the mask position with numpy : 0.036550045013427734 nb_pixel_total : 1082850 time to create 1 rle with new method : 0.381209135055542 time for calcul the mask position with numpy : 0.030026674270629883 nb_pixel_total : 15751 time to create 1 rle with old method : 0.02007889747619629 time for calcul the mask position with numpy : 0.027545452117919922 nb_pixel_total : 10284 time to create 1 rle with old method : 0.011845111846923828 time for calcul the mask position with numpy : 0.025500059127807617 nb_pixel_total : 3108 time to create 1 rle with old method : 0.003635406494140625 time for calcul the mask position with numpy : 0.02537250518798828 nb_pixel_total : 9721 time to create 1 rle with old method : 0.01072382926940918 time for calcul the mask position with numpy : 0.027257204055786133 nb_pixel_total : 132499 time to create 1 rle with old method : 0.1437058448791504 time for calcul the mask position with numpy : 0.026151418685913086 nb_pixel_total : 52811 time to create 1 rle with old method : 0.056996822357177734 time for calcul the mask position with numpy : 0.027472496032714844 nb_pixel_total : 201829 time to create 1 rle with new method : 0.8425600528717041 time for calcul the mask position with numpy : 0.04223465919494629 nb_pixel_total : 1900 time to create 1 rle with old method : 0.0022568702697753906 time for calcul the mask position with numpy : 0.04871177673339844 nb_pixel_total : 121617 time to create 1 rle with old method : 0.13203811645507812 time for calcul the mask position with numpy : 0.045824527740478516 nb_pixel_total : 3684 time to create 1 rle with old method : 0.004532814025878906 create new chi : 4.0533835887908936 time to delete rle : 0.0020940303802490234 batch 1 Loaded 14 chid ids of type : 3726 Number RLEs to save : 11068 TO DO : save crop sub photo not yet done ! save time : 0.7891411781311035 nb_obj : 6 nb_hashtags : 4 time to prepare the origin masks : 6.718713283538818 time for calcul the mask position with numpy : 0.7572305202484131 nb_pixel_total : 6403491 time to create 1 rle with new method : 1.1796536445617676 time for calcul the mask position with numpy : 0.0368044376373291 nb_pixel_total : 120997 time to create 1 rle with old method : 0.13271522521972656 time for calcul the mask position with numpy : 0.037616729736328125 nb_pixel_total : 5737 time to create 1 rle with old method : 0.006547212600708008 time for calcul the mask position with numpy : 0.037032127380371094 nb_pixel_total : 310262 time to create 1 rle with new method : 0.8309142589569092 time for calcul the mask position with numpy : 0.03510785102844238 nb_pixel_total : 2893 time to create 1 rle with old method : 0.003294229507446289 time for calcul the mask position with numpy : 0.03653883934020996 nb_pixel_total : 176993 time to create 1 rle with new method : 0.4971895217895508 time for calcul the mask position with numpy : 0.0392911434173584 nb_pixel_total : 29867 time to create 1 rle with old method : 0.03338789939880371 create new chi : 3.7642836570739746 time to delete rle : 0.0009942054748535156 batch 1 Loaded 7 chid ids of type : 3726 Number RLEs to save : 6616 TO DO : save crop sub photo not yet done ! save time : 0.49326562881469727 nb_obj : 11 nb_hashtags : 3 time to prepare the origin masks : 7.596059322357178 time for calcul the mask position with numpy : 0.7202765941619873 nb_pixel_total : 6211961 time to create 1 rle with new method : 0.6567771434783936 time for calcul the mask position with numpy : 0.034630537033081055 nb_pixel_total : 1150 time to create 1 rle with old method : 0.001354217529296875 time for calcul the mask position with numpy : 0.02362823486328125 nb_pixel_total : 240152 time to create 1 rle with new method : 0.8348348140716553 time for calcul the mask position with numpy : 0.021936416625976562 nb_pixel_total : 66469 time to create 1 rle with old method : 0.0735325813293457 time for calcul the mask position with numpy : 0.024085044860839844 nb_pixel_total : 1931 time to create 1 rle with old method : 0.0030972957611083984 time for calcul the mask position with numpy : 0.02466416358947754 nb_pixel_total : 31290 time to create 1 rle with old method : 0.03962230682373047 time for calcul the mask position with numpy : 0.022221088409423828 nb_pixel_total : 65140 time to create 1 rle with old method : 0.07032251358032227 time for calcul the mask position with numpy : 0.020918846130371094 nb_pixel_total : 1927 time to create 1 rle with old method : 0.002520322799682617 time for calcul the mask position with numpy : 0.0218813419342041 nb_pixel_total : 53359 time to create 1 rle with old method : 0.06397628784179688 time for calcul the mask position with numpy : 0.022754430770874023 nb_pixel_total : 137619 time to create 1 rle with old method : 0.150007963180542 time for calcul the mask position with numpy : 0.023041486740112305 nb_pixel_total : 219966 time to create 1 rle with new method : 0.623887300491333 time for calcul the mask position with numpy : 0.023618221282958984 nb_pixel_total : 19276 time to create 1 rle with old method : 0.021259307861328125 create new chi : 3.619872808456421 time to delete rle : 0.0011601448059082031 batch 1 Loaded 12 chid ids of type : 3726 Number RLEs to save : 9608 TO DO : save crop sub photo not yet done ! save time : 0.6897296905517578 map_output_result : {1337444911: (0.0, 'Should be the crop_list due to order', 0.0), 1337444910: (0.0, 'Should be the crop_list due to order', 0.0), 1337444857: (0.0, 'Should be the crop_list due to order', 0.0), 1337444843: (0.0, 'Should be the crop_list due to order', 0.0), 1337444823: (0.0, 'Should be the crop_list due to order', 0.0), 1337444816: (0.0, 'Should be the crop_list due to order', 0.0), 1337405218: (0.0, 'Should be the crop_list due to order', 0.0), 1337405130: (0.0, 'Should be the crop_list due to order', 0.0), 1337405024: (0.0, 'Should be the crop_list due to order', 0.0), 1337404774: (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 [1337444911, 1337444910, 1337444857, 1337444843, 1337444823, 1337444816, 1337405218, 1337405130, 1337405024, 1337404774] Looping around the photos to save general results len do output : 10 /1337444911.Didn't retrieve data . /1337444910.Didn't retrieve data . /1337444857.Didn't retrieve data . /1337444843.Didn't retrieve data . /1337444823.Didn't retrieve data . /1337444816.Didn't retrieve data . /1337405218.Didn't retrieve data . /1337405130.Didn't retrieve data . /1337405024.Didn't retrieve data . /1337404774.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, '2584410') ('3459', '20528945', '1337444911', None, None, None, None, None, '2584410') ('3459', None, None, None, None, None, None, None, '2584410') ('3459', '20528945', '1337444910', None, None, None, None, None, '2584410') ('3459', None, None, None, None, None, None, None, '2584410') ('3459', '20528945', '1337444857', None, None, None, None, None, '2584410') ('3459', None, None, None, None, None, None, None, '2584410') ('3459', '20528945', '1337444843', None, None, None, None, None, '2584410') ('3459', None, None, None, None, None, None, None, '2584410') ('3459', '20528945', '1337444823', None, None, None, None, None, '2584410') ('3459', None, None, None, None, None, None, None, '2584410') ('3459', '20528945', '1337444816', None, None, None, None, None, '2584410') ('3459', None, None, None, None, None, None, None, '2584410') ('3459', '20528945', '1337405218', None, None, None, None, None, '2584410') ('3459', None, None, None, None, None, None, None, '2584410') ('3459', '20528945', '1337405130', None, None, None, None, None, '2584410') ('3459', None, None, None, None, None, None, None, '2584410') ('3459', '20528945', '1337405024', None, None, None, None, None, '2584410') ('3459', None, None, None, None, None, None, None, '2584410') ('3459', '20528945', '1337404774', None, None, None, None, None, '2584410') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 time used for this insertion : 0.015996456146240234 save_final save missing photos in datou_result : time spend for datou_step_exec : 111.29042983055115 time spend to save output : 0.016513824462890625 total time spend for step 5 : 111.30694365501404 step6:crop_condition Fri Feb 14 00:10:16 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 97 chid ids of type : 3726 begin to crop the class : teint_dans_la_masse param for this class : {'min_score': 0.7} filtre for class : teint_dans_la_masse hashtag_id of this class : 2107752385 Next one ! Next one ! Next one ! map_result returned by crop_photo_return_map_crop : length : 3 About to insert : list_path_to_insert length 3 new photo from crops ! About to upload 3 photos upload in portfolio : 4869462 init cache_photo without model_param we have 3 photo to upload uploaded to storage server : ovh folder_temporaire : temp/1739488219_2256034 we have uploaded 3 photos in the portfolio 4869462 time of upload the photos Elapsed time : 1.1091372966766357 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 ! map_result returned by crop_photo_return_map_crop : length : 6 About to insert : list_path_to_insert length 6 new photo from crops ! About to upload 6 photos upload in portfolio : 4869462 init cache_photo without model_param we have 6 photo to upload uploaded to storage server : ovh folder_temporaire : temp/1739488224_2256034 we have uploaded 6 photos in the portfolio 4869462 time of upload the photos Elapsed time : 2.1484906673431396 we have finished the crop for the class : autre_refus begin to crop the class : carton_gris param for this class : {'min_score': 0.5} filtre for class : carton_gris hashtag_id of this class : 2107753020 Next one ! Next one ! map_result returned by crop_photo_return_map_crop : length : 2 About to insert : list_path_to_insert length 2 new photo from crops ! About to upload 2 photos upload in portfolio : 4869462 init cache_photo without model_param we have 2 photo to upload uploaded to storage server : ovh folder_temporaire : temp/1739488228_2256034 we have uploaded 2 photos in the portfolio 4869462 time of upload the photos Elapsed time : 0.8135209083557129 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 ! 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/1739488230_2256034 we have uploaded 1 photos in the portfolio 4869462 time of upload the photos Elapsed time : 0.5559048652648926 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 ! 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/1739488232_2256034 we have uploaded 2 photos in the portfolio 4869462 time of upload the photos Elapsed time : 0.9297740459442139 we have finished the crop for the class : carton_brun begin to crop the class : plastique param for this class : {'min_score': 0.5} filtre for class : plastique hashtag_id of this class : 492725882 Next one ! Next one ! Next one ! 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/1739488237_2256034 we have uploaded 4 photos in the portfolio 4869462 time of upload the photos Elapsed time : 1.4926247596740723 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 [1337444911, 1337444910, 1337444857, 1337444843, 1337444823, 1337444816, 1337405218, 1337405130, 1337405024, 1337404774] Looping around the photos to save general results len do output : 18 /1337465317Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1337465318Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1337465319Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1337465323Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1337465324Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1337465325Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1337465326Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1337465327Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1337465328Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1337465331Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1337465332Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1337465333Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1337465336Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1337465337Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1337465338Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1337465340Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1337465341Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1337465342Didn'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, '2584410') ('3459', '20528945', '1337444911', None, None, None, None, None, '2584410') ('3459', None, None, None, None, None, None, None, '2584410') ('3459', '20528945', '1337444910', None, None, None, None, None, '2584410') ('3459', None, None, None, None, None, None, None, '2584410') ('3459', '20528945', '1337444857', None, None, None, None, None, '2584410') ('3459', None, None, None, None, None, None, None, '2584410') ('3459', '20528945', '1337444843', None, None, None, None, None, '2584410') ('3459', None, None, None, None, None, None, None, '2584410') ('3459', '20528945', '1337444823', None, None, None, None, None, '2584410') ('3459', None, None, None, None, None, None, None, '2584410') ('3459', '20528945', '1337444816', None, None, None, None, None, '2584410') ('3459', None, None, None, None, None, None, None, '2584410') ('3459', '20528945', '1337405218', None, None, None, None, None, '2584410') ('3459', None, None, None, None, None, None, None, '2584410') ('3459', '20528945', '1337405130', None, None, None, None, None, '2584410') ('3459', None, None, None, None, None, None, None, '2584410') ('3459', '20528945', '1337405024', None, None, None, None, None, '2584410') ('3459', None, None, None, None, None, None, None, '2584410') ('3459', '20528945', '1337404774', None, None, None, None, None, '2584410') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 64 time used for this insertion : 0.03469705581665039 save_final save missing photos in datou_result : time spend for datou_step_exec : 22.842491149902344 time spend to save output : 0.035446882247924805 total time spend for step 6 : 22.87793803215027 step7:ventilate_hashtags_in_portfolio Fri Feb 14 00:10:39 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 : 20528945 get user id for portfolio 20528945 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`=20528945 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','kraft','papier','plastique','mal_croppe','cartonnette','Teint_Dans_La_Masse','environnement','autre_refus','metal','flou','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`=20528945 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','kraft','papier','plastique','mal_croppe','cartonnette','Teint_Dans_La_Masse','environnement','autre_refus','metal','flou','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`=20528945 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','kraft','papier','plastique','mal_croppe','cartonnette','Teint_Dans_La_Masse','environnement','autre_refus','metal','flou','Carton_gris')) AND mptpi.`min_score`=0.5 To do lien utilise dans velours : https://www.fotonower.com/velours/20529139,20529140,20529141,20529142,20529143,20529144,20529145,20529146,20529147,20529148,20529149,20529150?tags=Carton_brun,kraft,papier,plastique,mal_croppe,cartonnette,Teint_Dans_La_Masse,environnement,autre_refus,metal,flou,Carton_gris Inside saveOutput : final : False verbose : 0 saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1337444911, 1337444910, 1337444857, 1337444843, 1337444823, 1337444816, 1337405218, 1337405130, 1337405024, 1337404774] Looping around the photos to save general results len do output : 1 /20528945. 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, '2584410') ('3459', '20528945', '1337444911', None, None, None, None, None, '2584410') ('3459', None, None, None, None, None, None, None, '2584410') ('3459', '20528945', '1337444910', None, None, None, None, None, '2584410') ('3459', None, None, None, None, None, None, None, '2584410') ('3459', '20528945', '1337444857', None, None, None, None, None, '2584410') ('3459', None, None, None, None, None, None, None, '2584410') ('3459', '20528945', '1337444843', None, None, None, None, None, '2584410') ('3459', None, None, None, None, None, None, None, '2584410') ('3459', '20528945', '1337444823', None, None, None, None, None, '2584410') ('3459', None, None, None, None, None, None, None, '2584410') ('3459', '20528945', '1337444816', None, None, None, None, None, '2584410') ('3459', None, None, None, None, None, None, None, '2584410') ('3459', '20528945', '1337405218', None, None, None, None, None, '2584410') ('3459', None, None, None, None, None, None, None, '2584410') ('3459', '20528945', '1337405130', None, None, None, None, None, '2584410') ('3459', None, None, None, None, None, None, None, '2584410') ('3459', '20528945', '1337405024', None, None, None, None, None, '2584410') ('3459', None, None, None, None, None, None, None, '2584410') ('3459', '20528945', '1337404774', None, None, None, None, None, '2584410') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 time used for this insertion : 0.015928983688354492 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.947270154953003 time spend to save output : 0.016289472579956055 total time spend for step 7 : 1.963559627532959 step8:final Fri Feb 14 00:10:41 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! 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 : {1337444911: ('0.06743200877946215',), 1337444910: ('0.06743200877946215',), 1337444857: ('0.06743200877946215',), 1337444843: ('0.06743200877946215',), 1337444823: ('0.06743200877946215',), 1337444816: ('0.06743200877946215',), 1337405218: ('0.06743200877946215',), 1337405130: ('0.06743200877946215',), 1337405024: ('0.06743200877946215',), 1337404774: ('0.06743200877946215',)} new output for save of step final : {1337444911: ('0.06743200877946215',), 1337444910: ('0.06743200877946215',), 1337444857: ('0.06743200877946215',), 1337444843: ('0.06743200877946215',), 1337444823: ('0.06743200877946215',), 1337444816: ('0.06743200877946215',), 1337405218: ('0.06743200877946215',), 1337405130: ('0.06743200877946215',), 1337405024: ('0.06743200877946215',), 1337404774: ('0.06743200877946215',)} [1337444911, 1337444910, 1337444857, 1337444843, 1337444823, 1337444816, 1337405218, 1337405130, 1337405024, 1337404774] Looping around the photos to save general results len do output : 10 /1337444911.Didn't retrieve data . /1337444910.Didn't retrieve data . /1337444857.Didn't retrieve data . /1337444843.Didn't retrieve data . /1337444823.Didn't retrieve data . /1337444816.Didn't retrieve data . /1337405218.Didn't retrieve data . /1337405130.Didn't retrieve data . /1337405024.Didn't retrieve data . /1337404774.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, '2584410') ('3459', '20528945', '1337444911', None, None, None, None, None, '2584410') ('3459', None, None, None, None, None, None, None, '2584410') ('3459', '20528945', '1337444910', None, None, None, None, None, '2584410') ('3459', None, None, None, None, None, None, None, '2584410') ('3459', '20528945', '1337444857', None, None, None, None, None, '2584410') ('3459', None, None, None, None, None, None, None, '2584410') ('3459', '20528945', '1337444843', None, None, None, None, None, '2584410') ('3459', None, None, None, None, None, None, None, '2584410') ('3459', '20528945', '1337444823', None, None, None, None, None, '2584410') ('3459', None, None, None, None, None, None, None, '2584410') ('3459', '20528945', '1337444816', None, None, None, None, None, '2584410') ('3459', None, None, None, None, None, None, None, '2584410') ('3459', '20528945', '1337405218', None, None, None, None, None, '2584410') ('3459', None, None, None, None, None, None, None, '2584410') ('3459', '20528945', '1337405130', None, None, None, None, None, '2584410') ('3459', None, None, None, None, None, None, None, '2584410') ('3459', '20528945', '1337405024', None, None, None, None, None, '2584410') ('3459', None, None, None, None, None, None, None, '2584410') ('3459', '20528945', '1337404774', None, None, None, None, None, '2584410') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 time used for this insertion : 0.016057729721069336 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.10351324081420898 time spend to save output : 0.016601085662841797 total time spend for step 8 : 0.12011432647705078 step9:velours_tree Fri Feb 14 00:10:41 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed 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.03888702392578125 time spend to save output : 4.00543212890625e-05 total time spend for step 9 : 0.03892707824707031 step10:send_mail_cod Fri Feb 14 00:10:41 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! 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_P20528945_14-02-2025_00_10_41.pdf 20529140 imagette205291401739488241 20529142 change filename to text .change filename to text .change filename to text .change filename to text .imagette205291421739488241 20529143 imagette205291431739488241 20529144 change filename to text .imagette205291441739488241 20529147 change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .imagette205291471739488241 20529148 imagette205291481739488242 20529149 imagette205291491739488242 20529139 change filename to text .change filename to text .imagette205291391739488242 20529145 change filename to text .change filename to text .change filename to text .imagette205291451739488242 20529150 change filename to text .change filename to text .imagette205291501739488242 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20528945 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20529139,20529140,20529141,20529142,20529143,20529144,20529145,20529146,20529147,20529148,20529149,20529150?tags=Carton_brun,kraft,papier,plastique,mal_croppe,cartonnette,Teint_Dans_La_Masse,environnement,autre_refus,metal,flou,Carton_gris your option no_mail is active, we will not send the real mail to your client args[1337444911] : ('0.06743200877946215',) no score found for photo 1337444911 apple ('0.06743200877946215',) We are sending mail with results at report@fotonower.com args[1337444910] : ('0.06743200877946215',) no score found for photo 1337444910 apple ('0.06743200877946215',) We are sending mail with results at report@fotonower.com args[1337444857] : ('0.06743200877946215',) no score found for photo 1337444857 apple ('0.06743200877946215',) We are sending mail with results at report@fotonower.com args[1337444843] : ('0.06743200877946215',) no score found for photo 1337444843 apple ('0.06743200877946215',) We are sending mail with results at report@fotonower.com args[1337444823] : ('0.06743200877946215',) no score found for photo 1337444823 apple ('0.06743200877946215',) We are sending mail with results at report@fotonower.com args[1337444816] : ('0.06743200877946215',) no score found for photo 1337444816 apple ('0.06743200877946215',) We are sending mail with results at report@fotonower.com args[1337405218] : ('0.06743200877946215',) no score found for photo 1337405218 apple ('0.06743200877946215',) We are sending mail with results at report@fotonower.com args[1337405130] : ('0.06743200877946215',) no score found for photo 1337405130 apple ('0.06743200877946215',) We are sending mail with results at report@fotonower.com args[1337405024] : ('0.06743200877946215',) no score found for photo 1337405024 apple ('0.06743200877946215',) We are sending mail with results at report@fotonower.com args[1337404774] : ('0.06743200877946215',) no score found for photo 1337404774 apple ('0.06743200877946215',) We are sending mail with results at report@fotonower.com refus_total : 0.06743200877946215 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=20528945 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 1000 SELECT photo_id, url FROM MTRBack.photos ph WHERE photo_id IN (1337404321,1337404322,1337404511,1337404520,1337404774,1337404296,1337405218,1337444843,1337444911,1337405130,1337405024,1337444910,1337444857,1337444823,1337444816,1337404509,1337404366,1337404317) Found this number of photos: 18 begin to download photo : 1337404321 begin to download photo : 1337404774 begin to download photo : 1337444911 begin to download photo : 1337444857 begin to download photo : 1337404366 download finish for photo 1337404774 begin to download photo : 1337404296 download finish for photo 1337444857 begin to download photo : 1337444823 download finish for photo 1337444911 begin to download photo : 1337405130 download finish for photo 1337404321 begin to download photo : 1337404322 download finish for photo 1337404296 begin to download photo : 1337405218 download finish for photo 1337444823 begin to download photo : 1337444816 download finish for photo 1337404366 begin to download photo : 1337404317 download finish for photo 1337404322 begin to download photo : 1337404511 download finish for photo 1337405218 begin to download photo : 1337444843 download finish for photo 1337444816 begin to download photo : 1337404509 download finish for photo 1337405130 begin to download photo : 1337405024 download finish for photo 1337405024 begin to download photo : 1337444910 download finish for photo 1337404511 begin to download photo : 1337404520 download finish for photo 1337444843 download finish for photo 1337404317 download finish for photo 1337404509 download finish for photo 1337404520 download finish for photo 1337444910 start upload file to ovh https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20528945_14-02-2025_00_10_41.pdf results_Auto_P20528945_14-02-2025_00_10_41.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20528945_14-02-2025_00_10_41.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('3459','20528945','results_Auto_P20528945_14-02-2025_00_10_41.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20528945_14-02-2025_00_10_41.pdf','pdf','','0.61','0.06743200877946215') Inside saveOutput : final : False verbose : 0 saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1337444911, 1337444910, 1337444857, 1337444843, 1337444823, 1337444816, 1337405218, 1337405130, 1337405024, 1337404774] 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, '2584410') ('3459', '20528945', '1337444911', None, None, None, None, None, '2584410') ('3459', None, None, None, None, None, None, None, '2584410') ('3459', '20528945', '1337444910', None, None, None, None, None, '2584410') ('3459', None, None, None, None, None, None, None, '2584410') ('3459', '20528945', '1337444857', None, None, None, None, None, '2584410') ('3459', None, None, None, None, None, None, None, '2584410') ('3459', '20528945', '1337444843', None, None, None, None, None, '2584410') ('3459', None, None, None, None, None, None, None, '2584410') ('3459', '20528945', '1337444823', None, None, None, None, None, '2584410') ('3459', None, None, None, None, None, None, None, '2584410') ('3459', '20528945', '1337444816', None, None, None, None, None, '2584410') ('3459', None, None, None, None, None, None, None, '2584410') ('3459', '20528945', '1337405218', None, None, None, None, None, '2584410') ('3459', None, None, None, None, None, None, None, '2584410') ('3459', '20528945', '1337405130', None, None, None, None, None, '2584410') ('3459', None, None, None, None, None, None, None, '2584410') ('3459', '20528945', '1337405024', None, None, None, None, None, '2584410') ('3459', None, None, None, None, None, None, None, '2584410') ('3459', '20528945', '1337404774', None, None, None, None, None, '2584410') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 time used for this insertion : 0.012630939483642578 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.889176845550537 time spend to save output : 0.012868642807006836 total time spend for step 10 : 4.902045488357544 step11:split_time_score Fri Feb 14 00:10: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 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'}] (('17', 18),) ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 13022025 20528945 Nombre de photos uploadées : 18 / 23040 (0%) 13022025 20528945 Nombre de photos taguées (types de déchets): 0 / 18 (0%) 13022025 20528945 Nombre de photos taguées (volume) : 0 / 18 (0%) elapsed_time : load_data_split_time_score 3.337860107421875e-06 elapsed_time : order_list_meta_photo_and_scores 9.298324584960938e-06 ?????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0009789466857910156 elapsed_time : insert_dashboard_record_day_entry 0.038101911544799805 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 = 20528841 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20528843 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20528845 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20528847 order by id desc limit 1 Qualite : 0.14136086604967552 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20503797_13-02-2025_09_15_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20503797 order by id desc limit 1 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 7928 mask_detect is not consistent : 3 used against 2 in the step definition ! Step 8092 crop_condition have less inputs used (1) than in the step definition (2) : maybe we manage optionnal inputs ! WARNING : number of outputs for step 8092 crop_condition is not consistent : 4 used against 3 in the step definition ! WARNING : number of inputs for step 7933 rle_unique_nms_with_priority is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 7933 rle_unique_nms_with_priority is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 7935 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 7934 final have less inputs used (2) than in the step definition (3) : maybe we manage optionnal inputs ! Step 7934 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13649 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 9283 split_time_score have less inputs used (1) than in the step definition (2) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : type of output 1 of step 7935 doesn't seem to be define in the database( WARNING : type of input 3 of step 7934 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : type of input 1 of step 7935 doesn't seem to be define in the database( WARNING : output 1 of step 7933 have datatype=7 whereas input 1 of step 7935 have datatype=None WARNING : type of output 2 of step 7928 doesn't seem to be define in the database( WARNING : type of input 2 of step 8092 doesn't seem to be define in the database( WARNING : type of output 3 of step 8092 doesn't seem to be define in the database( WARNING : type of input 1 of step 7933 doesn't seem to be define in the database( WARNING : type of output 2 of step 7928 doesn't seem to be define in the database( WARNING : type of input 1 of step 10917 doesn't seem to be define in the database( WARNING : type of output 2 of step 7928 doesn't seem to be define in the database( WARNING : type of input 1 of step 10918 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 7935 have datatype=10 whereas input 3 of step 10916 have datatype=6 WARNING : output 0 of step 7935 have datatype=10 whereas input 0 of step 13649 have datatype=18 WARNING : type of output 1 of step 13649 doesn't seem to be define in the database( WARNING : type of input 5 of step 10916 doesn't seem to be define in the database( DataTypes for each output/input checked ! TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20503797 AND mptpi.`type`=3594 To do find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20503798_13-02-2025_15_42_23.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20503798 order by id desc limit 1 Qualite : 0.14449458458151784 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20503799_13-02-2025_09_01_27.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20503799 order by id desc limit 1 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 7928 mask_detect is not consistent : 3 used against 2 in the step definition ! Step 8092 crop_condition have less inputs used (1) than in the step definition (2) : maybe we manage optionnal inputs ! WARNING : number of outputs for step 8092 crop_condition is not consistent : 4 used against 3 in the step definition ! WARNING : number of inputs for step 7933 rle_unique_nms_with_priority is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 7933 rle_unique_nms_with_priority is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 7935 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 7934 final have less inputs used (2) than in the step definition (3) : maybe we manage optionnal inputs ! Step 7934 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13649 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 9283 split_time_score have less inputs used (1) than in the step definition (2) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : type of output 1 of step 7935 doesn't seem to be define in the database( WARNING : type of input 3 of step 7934 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : type of input 1 of step 7935 doesn't seem to be define in the database( WARNING : output 1 of step 7933 have datatype=7 whereas input 1 of step 7935 have datatype=None WARNING : type of output 2 of step 7928 doesn't seem to be define in the database( WARNING : type of input 2 of step 8092 doesn't seem to be define in the database( WARNING : type of output 3 of step 8092 doesn't seem to be define in the database( WARNING : type of input 1 of step 7933 doesn't seem to be define in the database( WARNING : type of output 2 of step 7928 doesn't seem to be define in the database( WARNING : type of input 1 of step 10917 doesn't seem to be define in the database( WARNING : type of output 2 of step 7928 doesn't seem to be define in the database( WARNING : type of input 1 of step 10918 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 7935 have datatype=10 whereas input 3 of step 10916 have datatype=6 WARNING : output 0 of step 7935 have datatype=10 whereas input 0 of step 13649 have datatype=18 WARNING : type of output 1 of step 13649 doesn't seem to be define in the database( WARNING : type of input 5 of step 10916 doesn't seem to be define in the database( DataTypes for each output/input checked ! TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20503799 AND mptpi.`type`=3594 To do find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20528849 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20528851 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20528853 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20528854 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20528856 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20528858 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20528860 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20528862 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20528864 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20528865 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20528867 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20528869 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20528871 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20528872 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20528874 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20528876 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20528878 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20528881 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20528906 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20528907 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20528909 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20528911 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20528937 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20528939 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20528940 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20528941 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20528942 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20528943 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20528944 order by id desc limit 1 Qualite : 0.06743200877946215 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20528945_14-02-2025_00_10_41.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20528945 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`=20528945 AND mptpi.`type`=3726 To do find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20528946 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20528947 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20528948 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20528949 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20528950 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20528951 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20528952 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20528953 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20528954 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20528957 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20528958 order by id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20528959 order by id desc limit 1 NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'13022025': {'nb_upload': 18, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} Inside saveOutput : final : True verbose : 0 saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1337444911, 1337444910, 1337444857, 1337444843, 1337444823, 1337444816, 1337405218, 1337405130, 1337405024, 1337404774] Looping around the photos to save general results len do output : 1 /20528945Didn'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, '2584410') ('3459', '20528945', '1337444911', None, None, None, None, None, '2584410') ('3459', None, None, None, None, None, None, None, '2584410') ('3459', '20528945', '1337444910', None, None, None, None, None, '2584410') ('3459', None, None, None, None, None, None, None, '2584410') ('3459', '20528945', '1337444857', None, None, None, None, None, '2584410') ('3459', None, None, None, None, None, None, None, '2584410') ('3459', '20528945', '1337444843', None, None, None, None, None, '2584410') ('3459', None, None, None, None, None, None, None, '2584410') ('3459', '20528945', '1337444823', None, None, None, None, None, '2584410') ('3459', None, None, None, None, None, None, None, '2584410') ('3459', '20528945', '1337444816', None, None, None, None, None, '2584410') ('3459', None, None, None, None, None, None, None, '2584410') ('3459', '20528945', '1337405218', None, None, None, None, None, '2584410') ('3459', None, None, None, None, None, None, None, '2584410') ('3459', '20528945', '1337405130', None, None, None, None, None, '2584410') ('3459', None, None, None, None, None, None, None, '2584410') ('3459', '20528945', '1337405024', None, None, None, None, None, '2584410') ('3459', None, None, None, None, None, None, None, '2584410') ('3459', '20528945', '1337404774', None, None, None, None, None, '2584410') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 time used for this insertion : 0.05185103416442871 save_final save missing photos in datou_result : time spend for datou_step_exec : 36.41051721572876 time spend to save output : 0.061963796615600586 total time spend for step 11 : 36.47248101234436 caffe_path_current : About to save ! 2 After save, about to update current ! update_current_state 123.33user 124.46system 5:00.10elapsed 82%CPU (0avgtext+0avgdata 3680816maxresident)k 2893112inputs+99552outputs (29281major+11155820minor)pagefaults 0swaps