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 : 2706672 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 : 30>10 please execute split_portfolio.py -i 20876647 -l 10 size over we load limit photo not treated list_input_json: [] Current got : datou_id : 3459, datou_cur_ids : ['2619247'] with mtr_portfolio_ids : ['20876647'] and first list_photo_ids : [] new path : /proc/2706672/ 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.2791762351989746 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 Thu Feb 27 08:16: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 : 5304 max_wait_temp : 1 max_wait : 0 gpu_flag : 0 2025-02-27 08:16:32.184072: 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-27 08:16:32.211157: I tensorflow/core/platform/profile_utils/cpu_utils.cc:102] CPU Frequency: 3493065000 Hz 2025-02-27 08:16:32.213646: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x7fc938000b60 initialized for platform Host (this does not guarantee that XLA will be used). Devices: 2025-02-27 08:16:32.213722: I tensorflow/compiler/xla/service/service.cc:176] StreamExecutor device (0): Host, Default Version 2025-02-27 08:16:32.218661: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcuda.so.1 2025-02-27 08:16:32.368308: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x3e4c6520 initialized for platform CUDA (this does not guarantee that XLA will be used). Devices: 2025-02-27 08:16:32.368369: I tensorflow/compiler/xla/service/service.cc:176] StreamExecutor device (0): NVIDIA GeForce RTX 2080 Ti, Compute Capability 7.5 2025-02-27 08:16:32.369404: 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-27 08:16:32.369876: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1 2025-02-27 08:16:32.373365: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcublas.so.10 2025-02-27 08:16:32.377467: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcufft.so.10 2025-02-27 08:16:32.378253: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcurand.so.10 2025-02-27 08:16:32.382498: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusolver.so.10 2025-02-27 08:16:32.384190: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusparse.so.10 2025-02-27 08:16:32.391455: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudnn.so.7 2025-02-27 08:16:32.392949: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1703] Adding visible gpu devices: 0 2025-02-27 08:16:32.393069: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1 2025-02-27 08:16:32.394039: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1102] Device interconnect StreamExecutor with strength 1 edge matrix: 2025-02-27 08:16:32.394065: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1108] 0 2025-02-27 08:16:32.394083: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1121] 0: N 2025-02-27 08:16:32.395668: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1247] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 4843 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-27 08:16:32.716373: 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-27 08:16:32.716531: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1 2025-02-27 08:16:32.716547: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcublas.so.10 2025-02-27 08:16:32.716564: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcufft.so.10 2025-02-27 08:16:32.716578: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcurand.so.10 2025-02-27 08:16:32.716591: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusolver.so.10 2025-02-27 08:16:32.716604: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusparse.so.10 2025-02-27 08:16:32.716619: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudnn.so.7 2025-02-27 08:16:32.717505: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1703] Adding visible gpu devices: 0 2025-02-27 08:16:32.718648: 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-27 08:16:32.718687: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1 2025-02-27 08:16:32.718703: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcublas.so.10 2025-02-27 08:16:32.718717: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcufft.so.10 2025-02-27 08:16:32.718731: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcurand.so.10 2025-02-27 08:16:32.718744: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusolver.so.10 2025-02-27 08:16:32.718761: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusparse.so.10 2025-02-27 08:16:32.718775: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudnn.so.7 2025-02-27 08:16:32.719751: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1703] Adding visible gpu devices: 0 2025-02-27 08:16:32.719804: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1102] Device interconnect StreamExecutor with strength 1 edge matrix: 2025-02-27 08:16:32.719813: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1108] 0 2025-02-27 08:16:32.719821: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1121] 0: N 2025-02-27 08:16:32.720769: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1247] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 4843 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-27 08:16:43.284200: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcublas.so.10 2025-02-27 08:16:43.479155: 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: (1080, 1920, 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: 1920.00000 nb d'objets trouves : 2 NEW PHOTO Processing 1 images image shape: (1080, 1920, 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: 1920.00000 nb d'objets trouves : 3 NEW PHOTO Processing 1 images image shape: (1080, 1920, 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: 1920.00000 nb d'objets trouves : 9 NEW PHOTO Processing 1 images image shape: (1080, 1920, 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: 1920.00000 nb d'objets trouves : 8 NEW PHOTO Processing 1 images image shape: (1080, 1920, 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: 1920.00000 nb d'objets trouves : 4 NEW PHOTO Processing 1 images image shape: (1080, 1920, 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: 1920.00000 nb d'objets trouves : 4 NEW PHOTO Processing 1 images image shape: (1080, 1920, 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: 1920.00000 nb d'objets trouves : 6 NEW PHOTO Processing 1 images image shape: (1080, 1920, 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: 1920.00000 nb d'objets trouves : 9 NEW PHOTO Processing 1 images image shape: (1080, 1920, 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: 1920.00000 nb d'objets trouves : 5 NEW PHOTO Processing 1 images image shape: (1080, 1920, 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: 1920.00000 nb d'objets trouves : 10 Detection mask done ! Trying to reset tf kernel 2707092 begin to check gpu status inside check gpu memory l 3610 free memory gpu now : 15 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 : 5304 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.2059323787689209 nb_pixel_total : 1323364 time to create 1 rle with new method : 0.10629606246948242 length of segment : 2066 time for calcul the mask position with numpy : 0.005346775054931641 nb_pixel_total : 323234 time to create 1 rle with new method : 0.015145301818847656 length of segment : 1009 time for calcul the mask position with numpy : 0.020552396774291992 nb_pixel_total : 1033578 time to create 1 rle with new method : 0.11985659599304199 length of segment : 1898 time for calcul the mask position with numpy : 0.007134437561035156 nb_pixel_total : 294313 time to create 1 rle with new method : 0.01813650131225586 length of segment : 1026 time for calcul the mask position with numpy : 0.0001125335693359375 nb_pixel_total : 1131 time to create 1 rle with old method : 0.0015354156494140625 length of segment : 31 time for calcul the mask position with numpy : 0.00031447410583496094 nb_pixel_total : 12988 time to create 1 rle with old method : 0.015158653259277344 length of segment : 214 time for calcul the mask position with numpy : 0.0009517669677734375 nb_pixel_total : 55302 time to create 1 rle with old method : 0.06289792060852051 length of segment : 310 time for calcul the mask position with numpy : 0.0015850067138671875 nb_pixel_total : 84792 time to create 1 rle with old method : 0.09702157974243164 length of segment : 643 time for calcul the mask position with numpy : 0.014362573623657227 nb_pixel_total : 797483 time to create 1 rle with new method : 0.24747371673583984 length of segment : 1321 time for calcul the mask position with numpy : 0.0008122920989990234 nb_pixel_total : 32249 time to create 1 rle with old method : 0.037647247314453125 length of segment : 237 time for calcul the mask position with numpy : 0.0006844997406005859 nb_pixel_total : 3381 time to create 1 rle with old method : 0.004615068435668945 length of segment : 153 length of segment : 0 time for calcul the mask position with numpy : 0.002437591552734375 nb_pixel_total : 65563 time to create 1 rle with old method : 0.07376861572265625 length of segment : 162 time for calcul the mask position with numpy : 0.00040078163146972656 nb_pixel_total : 3484 time to create 1 rle with old method : 0.0040853023529052734 length of segment : 126 time for calcul the mask position with numpy : 0.006485700607299805 nb_pixel_total : 219985 time to create 1 rle with new method : 0.014269113540649414 length of segment : 682 time for calcul the mask position with numpy : 0.015584707260131836 nb_pixel_total : 551874 time to create 1 rle with new method : 0.044777631759643555 length of segment : 1519 time for calcul the mask position with numpy : 0.0016074180603027344 nb_pixel_total : 105815 time to create 1 rle with old method : 0.13482260704040527 length of segment : 434 time for calcul the mask position with numpy : 0.0006008148193359375 nb_pixel_total : 34552 time to create 1 rle with old method : 0.03963875770568848 length of segment : 177 time for calcul the mask position with numpy : 0.0004363059997558594 nb_pixel_total : 13844 time to create 1 rle with old method : 0.01686859130859375 length of segment : 111 time for calcul the mask position with numpy : 0.0005145072937011719 nb_pixel_total : 32595 time to create 1 rle with old method : 0.03784894943237305 length of segment : 186 time for calcul the mask position with numpy : 0.00032639503479003906 nb_pixel_total : 14148 time to create 1 rle with old method : 0.017476797103881836 length of segment : 110 time for calcul the mask position with numpy : 0.10544610023498535 nb_pixel_total : 948394 time to create 1 rle with new method : 0.12047958374023438 length of segment : 2178 time for calcul the mask position with numpy : 0.003912687301635742 nb_pixel_total : 231984 time to create 1 rle with new method : 0.013757944107055664 length of segment : 877 time for calcul the mask position with numpy : 0.004400491714477539 nb_pixel_total : 307855 time to create 1 rle with new method : 0.011072158813476562 length of segment : 932 time for calcul the mask position with numpy : 0.0028879642486572266 nb_pixel_total : 181852 time to create 1 rle with new method : 0.008217811584472656 length of segment : 734 time for calcul the mask position with numpy : 0.00025534629821777344 nb_pixel_total : 1878 time to create 1 rle with old method : 0.002268552780151367 length of segment : 136 time for calcul the mask position with numpy : 0.01662898063659668 nb_pixel_total : 689382 time to create 1 rle with new method : 0.08608675003051758 length of segment : 1274 time for calcul the mask position with numpy : 0.0010602474212646484 nb_pixel_total : 70308 time to create 1 rle with old method : 0.07979083061218262 length of segment : 252 time for calcul the mask position with numpy : 0.004308462142944336 nb_pixel_total : 293782 time to create 1 rle with new method : 0.010593414306640625 length of segment : 1130 time for calcul the mask position with numpy : 0.14060425758361816 nb_pixel_total : 1165301 time to create 1 rle with new method : 0.0942080020904541 length of segment : 2064 time for calcul the mask position with numpy : 0.0017940998077392578 nb_pixel_total : 64652 time to create 1 rle with old method : 0.07531929016113281 length of segment : 262 time for calcul the mask position with numpy : 0.0053598880767822266 nb_pixel_total : 261770 time to create 1 rle with new method : 0.01190042495727539 length of segment : 833 time for calcul the mask position with numpy : 0.009528160095214844 nb_pixel_total : 304686 time to create 1 rle with new method : 0.010135173797607422 length of segment : 957 time for calcul the mask position with numpy : 0.0005424022674560547 nb_pixel_total : 35008 time to create 1 rle with old method : 0.041075944900512695 length of segment : 142 time for calcul the mask position with numpy : 0.0012023448944091797 nb_pixel_total : 31759 time to create 1 rle with old method : 0.04247236251831055 length of segment : 420 time for calcul the mask position with numpy : 0.0008294582366943359 nb_pixel_total : 43312 time to create 1 rle with old method : 0.051566362380981445 length of segment : 290 time for calcul the mask position with numpy : 0.0006825923919677734 nb_pixel_total : 24724 time to create 1 rle with old method : 0.02910447120666504 length of segment : 283 time for calcul the mask position with numpy : 0.001409769058227539 nb_pixel_total : 84676 time to create 1 rle with old method : 0.0954442024230957 length of segment : 671 time for calcul the mask position with numpy : 0.017934083938598633 nb_pixel_total : 707901 time to create 1 rle with new method : 0.07343792915344238 length of segment : 1818 time for calcul the mask position with numpy : 0.000949859619140625 nb_pixel_total : 75515 time to create 1 rle with old method : 0.0881948471069336 length of segment : 177 time for calcul the mask position with numpy : 0.0007979869842529297 nb_pixel_total : 43315 time to create 1 rle with old method : 0.050717830657958984 length of segment : 223 time for calcul the mask position with numpy : 0.0043582916259765625 nb_pixel_total : 315671 time to create 1 rle with new method : 0.009262561798095703 length of segment : 969 time for calcul the mask position with numpy : 0.0011355876922607422 nb_pixel_total : 40959 time to create 1 rle with old method : 0.04712629318237305 length of segment : 549 time for calcul the mask position with numpy : 0.012158632278442383 nb_pixel_total : 550884 time to create 1 rle with new method : 0.07901477813720703 length of segment : 1591 time for calcul the mask position with numpy : 0.0006186962127685547 nb_pixel_total : 18587 time to create 1 rle with old method : 0.021269559860229492 length of segment : 321 time for calcul the mask position with numpy : 0.00012969970703125 nb_pixel_total : 857 time to create 1 rle with old method : 0.0010590553283691406 length of segment : 42 time for calcul the mask position with numpy : 0.00014472007751464844 nb_pixel_total : 5866 time to create 1 rle with old method : 0.007136106491088867 length of segment : 86 time for calcul the mask position with numpy : 0.0008325576782226562 nb_pixel_total : 54085 time to create 1 rle with old method : 0.06184887886047363 length of segment : 179 time for calcul the mask position with numpy : 0.0017604827880859375 nb_pixel_total : 64144 time to create 1 rle with old method : 0.07208585739135742 length of segment : 480 time for calcul the mask position with numpy : 0.01951766014099121 nb_pixel_total : 450551 time to create 1 rle with new method : 0.05193042755126953 length of segment : 1643 time for calcul the mask position with numpy : 0.0007960796356201172 nb_pixel_total : 39477 time to create 1 rle with old method : 0.044251441955566406 length of segment : 175 time for calcul the mask position with numpy : 0.00031948089599609375 nb_pixel_total : 14165 time to create 1 rle with old method : 0.016022443771362305 length of segment : 261 time for calcul the mask position with numpy : 0.00020194053649902344 nb_pixel_total : 5142 time to create 1 rle with old method : 0.006224870681762695 length of segment : 51 time for calcul the mask position with numpy : 0.00018215179443359375 nb_pixel_total : 8113 time to create 1 rle with old method : 0.009685516357421875 length of segment : 88 time for calcul the mask position with numpy : 0.00014400482177734375 nb_pixel_total : 5799 time to create 1 rle with old method : 0.006687641143798828 length of segment : 57 time spent for convertir_results : 8.855220556259155 Inside saveOutput : final : False verbose : 0 eke 12-6-18 : saveMask need to be cleaned for new output ! Number saved : None batch 1 Loaded 55 chid ids of type : 3663 Number RLEs to save : 34560 save missing photos in datou_result : time spend for datou_step_exec : 34.861111640930176 time spend to save output : 1.9952163696289062 total time spend for step 1 : 36.85632801055908 step2:crop_condition Thu Feb 27 08:17:06 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure Loading chi in step crop with photo_hashtag_type : 3663 Loading chi in step crop for list_pids : 10 ! batch 1 Loaded 55 chid ids of type : 3663 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ begin to crop the class : teint_dans_la_masse param for this class : {'min_score': 0.7} filtre for class : teint_dans_la_masse hashtag_id of this class : 2107752385 we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! we have both polygon and rles Next one ! map_result returned by crop_photo_return_map_crop : length : 6 About to insert : list_path_to_insert length 6 new photo from crops ! we have finished the crop for the class : teint_dans_la_masse begin to crop the class : autre_refus param for this class : {'min_score': 0.5} filtre for class : autre_refus hashtag_id of this class : 2107752406 we have both polygon and rles Next one ! 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 : 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 ! 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 : cartonnette begin to crop the class : carton_brun param for this class : {'min_score': 0.7} filtre for class : carton_brun hashtag_id of this class : 2107753024 we have both polygon and rles Next one ! we have both polygon and rles Next one ! map_result returned by crop_photo_return_map_crop : length : 2 About to insert : list_path_to_insert length 2 new photo from crops ! we have finished the crop for the class : carton_brun begin to crop the class : plastique param for this class : {'min_score': 0.5} filtre for class : plastique hashtag_id of this class : 492725882 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 [1339872107, 1339872066, 1339872054, 1339871990, 1339871986, 1339871901, 1339871828, 1339871447, 1339871444, 1339871387] Looping around the photos to save general results len do output : 18 /-3688447484Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3688447482Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3688447485Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3688447510Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3688447512Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3688447519Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3688447491Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3688447522Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3688447529Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3688447505Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3688447508Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3688447514Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3688447511Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3688447525Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3688447528Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3688447492Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3688447493Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /-3688447495Didn'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, '2619247') ('3459', None, '1339872107', None, None, None, None, None, '2619247') ('3459', None, None, None, None, None, None, None, '2619247') ('3459', None, '1339872066', None, None, None, None, None, '2619247') ('3459', None, None, None, None, None, None, None, '2619247') ('3459', None, '1339872054', None, None, None, None, None, '2619247') ('3459', None, None, None, None, None, None, None, '2619247') ('3459', None, '1339871990', None, None, None, None, None, '2619247') ('3459', None, None, None, None, None, None, None, '2619247') ('3459', None, '1339871986', None, None, None, None, None, '2619247') ('3459', None, None, None, None, None, None, None, '2619247') ('3459', None, '1339871901', None, None, None, None, None, '2619247') ('3459', None, None, None, None, None, None, None, '2619247') ('3459', None, '1339871828', None, None, None, None, None, '2619247') ('3459', None, None, None, None, None, None, None, '2619247') ('3459', None, '1339871447', None, None, None, None, None, '2619247') ('3459', None, None, None, None, None, None, None, '2619247') ('3459', None, '1339871444', None, None, None, None, None, '2619247') ('3459', None, None, None, None, None, None, None, '2619247') ('3459', None, '1339871387', None, None, None, None, None, '2619247') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 64 time used for this insertion : 0.021352052688598633 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.052788019180298 time spend to save output : 0.02205491065979004 total time spend for step 2 : 5.074842929840088 step3:thcl Thu Feb 27 08:17:11 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed 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.008219480514526367 time to convert the images to numpy array : 2.86102294921875e-06 time to import caffe and check if the image exist : 0.011469125747680664 time to convert the images to numpy array : 0.008093118667602539 time to import caffe and check if the image exist : 0.009776830673217773 time to convert the images to numpy array : 0.010764360427856445 time to import caffe and check if the image exist : 0.011736631393432617 time to convert the images to numpy array : 0.01404118537902832 time to import caffe and check if the image exist : 0.010436058044433594 time to convert the images to numpy array : 0.017232656478881836 time to import caffe and check if the image exist : 0.013817787170410156 time to convert the images to numpy array : 0.01380014419555664 time to import caffe and check if the image exist : 0.007668018341064453 time to convert the images to numpy array : 0.023148536682128906 time to import caffe and check if the image exist : 0.010898828506469727 time to convert the images to numpy array : 0.019819974899291992 time to import caffe and check if the image exist : 0.008118867874145508 time to convert the images to numpy array : 0.024619102478027344 time to import caffe and check if the image exist : 0.008390665054321289 time to convert the images to numpy array : 0.02693319320678711 total time to convert the images to numpy array : 0.3047356605529785 list photo_ids error: [] list photo_ids correct : [-3688447493, -3688447495, -3688447528, -3688447492, -3688447485, -3688447510, -3688447529, -3688447505, -3688447511, -3688447525, -3688447484, -3688447482, -3688447508, -3688447514, -3688447512, -3688447519, -3688447491, -3688447522] number of photos to traite : 18 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 : 5304 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 : 5085 max_wait_temp : 1 max_wait : 0 dict_keys(['prob']) time used to do the prepocess of the images : 0.23280000686645508 time used to do the prediction : 0.10135459899902344 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 : 5083 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 : 5083 max_wait_temp : 1 max_wait : 0 dict_keys(['prob']) time used to do the prepocess of the images : 0.22799348831176758 time used to do the prediction : 0.08337616920471191 we don't save the descriptors for this thcl 2868 Inside saveOutput : final : False verbose : 0 time used to find the portfolios of the photos test new format of the output of the step_thcl begin to insert list_values into class_photo_scores : length of list_valuse in save_photo_hashtag_id_thcl_score : 0 time used for this insertion : 1.4543533325195312e-05 save missing photos in datou_result : time spend for datou_step_exec : 7.577627658843994 time spend to save output : 0.00041103363037109375 total time spend for step 3 : 7.578038692474365 step4:merge_mask_thcl_custom Thu Feb 27 08:17:18 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! 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 55 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 [1339872107, 1339872066, 1339872054, 1339871990, 1339871986, 1339871901, 1339871828, 1339871447, 1339871444, 1339871387] Looping around the photos to save general results len do output : 10 /1339872107Didn't retrieve data .Didn't retrieve data . /1339872066Didn't retrieve data .Didn't retrieve data . /1339872054Didn't retrieve data .Didn't retrieve data . /1339871990Didn't retrieve data .Didn't retrieve data . /1339871986Didn't retrieve data .Didn't retrieve data . /1339871901Didn't retrieve data .Didn't retrieve data . /1339871828Didn't retrieve data .Didn't retrieve data . /1339871447Didn't retrieve data .Didn't retrieve data . /1339871444Didn't retrieve data .Didn't retrieve data . /1339871387Didn'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, '2619247') ('3459', None, '1339872107', None, None, None, None, None, '2619247') ('3459', None, None, None, None, None, None, None, '2619247') ('3459', None, '1339872066', None, None, None, None, None, '2619247') ('3459', None, None, None, None, None, None, None, '2619247') ('3459', None, '1339872054', None, None, None, None, None, '2619247') ('3459', None, None, None, None, None, None, None, '2619247') ('3459', None, '1339871990', None, None, None, None, None, '2619247') ('3459', None, None, None, None, None, None, None, '2619247') ('3459', None, '1339871986', None, None, None, None, None, '2619247') ('3459', None, None, None, None, None, None, None, '2619247') ('3459', None, '1339871901', None, None, None, None, None, '2619247') ('3459', None, None, None, None, None, None, None, '2619247') ('3459', None, '1339871828', None, None, None, None, None, '2619247') ('3459', None, None, None, None, None, None, None, '2619247') ('3459', None, '1339871447', None, None, None, None, None, '2619247') ('3459', None, None, None, None, None, None, None, '2619247') ('3459', None, '1339871444', None, None, None, None, None, '2619247') ('3459', None, None, None, None, None, None, None, '2619247') ('3459', None, '1339871387', None, None, None, None, None, '2619247') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 time used for this insertion : 0.3548879623413086 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.05189657211303711 time spend to save output : 0.3554420471191406 total time spend for step 4 : 0.40733861923217773 step5:rle_unique_nms_with_priority Thu Feb 27 08:17:19 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 VR 22-3-18 : For now we do not clean correctly the datou structure Begin step rle-unique-nms nb_obj : 2 nb_hashtags : 1 time to prepare the origin masks : 0.6548612117767334 time for calcul the mask position with numpy : 0.025649547576904297 nb_pixel_total : 694842 time to create 1 rle with new method : 0.21642327308654785 time for calcul the mask position with numpy : 0.00869297981262207 nb_pixel_total : 51590 time to create 1 rle with old method : 0.06097269058227539 time for calcul the mask position with numpy : 0.0931549072265625 nb_pixel_total : 1327168 time to create 1 rle with new method : 0.1040961742401123 create new chi : 0.5270950794219971 time to delete rle : 0.017722606658935547 batch 1 Loaded 3 chid ids of type : 3726 Number RLEs to save : 5705 TO DO : save crop sub photo not yet done ! save time : 0.5938794612884521 nb_obj : 2 nb_hashtags : 1 time to prepare the origin masks : 0.36886000633239746 time for calcul the mask position with numpy : 0.035607337951660156 nb_pixel_total : 994963 time to create 1 rle with new method : 0.0965125560760498 time for calcul the mask position with numpy : 0.006880998611450195 nb_pixel_total : 49358 time to create 1 rle with old method : 0.06990408897399902 time for calcul the mask position with numpy : 0.04464268684387207 nb_pixel_total : 1029279 time to create 1 rle with new method : 0.10553812980651855 create new chi : 0.3739655017852783 time to delete rle : 0.0006437301635742188 batch 1 Loaded 3 chid ids of type : 3726 Number RLEs to save : 5908 TO DO : save crop sub photo not yet done ! save time : 0.3776402473449707 nb_obj : 6 nb_hashtags : 3 time to prepare the origin masks : 1.2781352996826172 time for calcul the mask position with numpy : 0.04388904571533203 nb_pixel_total : 1073014 time to create 1 rle with new method : 0.11350703239440918 time for calcul the mask position with numpy : 0.017169952392578125 nb_pixel_total : 812552 time to create 1 rle with new method : 0.09994935989379883 time for calcul the mask position with numpy : 0.006788730621337891 nb_pixel_total : 55031 time to create 1 rle with old method : 0.06355094909667969 time for calcul the mask position with numpy : 0.007060527801513672 nb_pixel_total : 32133 time to create 1 rle with old method : 0.03754067420959473 time for calcul the mask position with numpy : 0.007148027420043945 nb_pixel_total : 84683 time to create 1 rle with old method : 0.10136771202087402 time for calcul the mask position with numpy : 0.007177829742431641 nb_pixel_total : 12841 time to create 1 rle with old method : 0.014609336853027344 time for calcul the mask position with numpy : 0.006237983703613281 nb_pixel_total : 3346 time to create 1 rle with old method : 0.003885030746459961 create new chi : 0.5451505184173584 time to delete rle : 0.0006263256072998047 batch 1 Loaded 7 chid ids of type : 3726 Number RLEs to save : 6082 TO DO : save crop sub photo not yet done ! save time : 0.5146214962005615 nb_obj : 7 nb_hashtags : 3 time to prepare the origin masks : 0.815985918045044 time for calcul the mask position with numpy : 0.038906097412109375 nb_pixel_total : 1230268 time to create 1 rle with new method : 0.09160065650939941 time for calcul the mask position with numpy : 0.0072765350341796875 nb_pixel_total : 98313 time to create 1 rle with old method : 0.11495757102966309 time for calcul the mask position with numpy : 0.009696245193481445 nb_pixel_total : 473002 time to create 1 rle with new method : 0.0816960334777832 time for calcul the mask position with numpy : 0.009344339370727539 nb_pixel_total : 219861 time to create 1 rle with new method : 0.08131837844848633 time for calcul the mask position with numpy : 0.006418943405151367 nb_pixel_total : 113 time to create 1 rle with old method : 0.00025582313537597656 time for calcul the mask position with numpy : 0.006409168243408203 nb_pixel_total : 14110 time to create 1 rle with old method : 0.015985965728759766 time for calcul the mask position with numpy : 0.0066645145416259766 nb_pixel_total : 34463 time to create 1 rle with old method : 0.038259267807006836 time for calcul the mask position with numpy : 0.008233785629272461 nb_pixel_total : 3470 time to create 1 rle with old method : 0.003983259201049805 create new chi : 0.5401461124420166 time to delete rle : 0.0008752346038818359 batch 1 Loaded 8 chid ids of type : 3726 Number RLEs to save : 6369 TO DO : save crop sub photo not yet done ! save time : 0.47193312644958496 nb_obj : 4 nb_hashtags : 1 time to prepare the origin masks : 0.6588001251220703 time for calcul the mask position with numpy : 0.031316280364990234 nb_pixel_total : 973959 time to create 1 rle with new method : 0.058287620544433594 time for calcul the mask position with numpy : 0.007761716842651367 nb_pixel_total : 11039 time to create 1 rle with old method : 0.012547492980957031 time for calcul the mask position with numpy : 0.007867097854614258 nb_pixel_total : 85554 time to create 1 rle with old method : 0.09590482711791992 time for calcul the mask position with numpy : 0.012468099594116211 nb_pixel_total : 33658 time to create 1 rle with old method : 0.03891181945800781 time for calcul the mask position with numpy : 0.018773555755615234 nb_pixel_total : 969390 time to create 1 rle with new method : 0.043036699295043945 create new chi : 0.3280932903289795 time to delete rle : 0.0010454654693603516 batch 1 Loaded 5 chid ids of type : 3726 Number RLEs to save : 7156 TO DO : save crop sub photo not yet done ! save time : 0.6079227924346924 nb_obj : 4 nb_hashtags : 1 time to prepare the origin masks : 0.4930994510650635 time for calcul the mask position with numpy : 0.08980035781860352 nb_pixel_total : 1304035 time to create 1 rle with new method : 0.10148358345031738 time for calcul the mask position with numpy : 0.008573532104492188 nb_pixel_total : 38314 time to create 1 rle with old method : 0.057073354721069336 time for calcul the mask position with numpy : 0.009257793426513672 nb_pixel_total : 19167 time to create 1 rle with old method : 0.03346848487854004 time for calcul the mask position with numpy : 0.02288198471069336 nb_pixel_total : 710210 time to create 1 rle with new method : 0.23012709617614746 time for calcul the mask position with numpy : 0.007512092590332031 nb_pixel_total : 1874 time to create 1 rle with old method : 0.002132892608642578 create new chi : 0.5813138484954834 time to delete rle : 0.0006897449493408203 batch 1 Loaded 5 chid ids of type : 3726 Number RLEs to save : 4438 TO DO : save crop sub photo not yet done ! save time : 0.32973217964172363 nb_obj : 5 nb_hashtags : 3 time to prepare the origin masks : 0.9055995941162109 time for calcul the mask position with numpy : 0.01501607894897461 nb_pixel_total : 706849 time to create 1 rle with new method : 0.10290694236755371 time for calcul the mask position with numpy : 0.008501529693603516 nb_pixel_total : 64311 time to create 1 rle with old method : 0.08655786514282227 time for calcul the mask position with numpy : 0.00804281234741211 nb_pixel_total : 27431 time to create 1 rle with old method : 0.03432893753051758 time for calcul the mask position with numpy : 0.008033514022827148 nb_pixel_total : 47823 time to create 1 rle with old method : 0.062081098556518555 time for calcul the mask position with numpy : 0.007124662399291992 nb_pixel_total : 32986 time to create 1 rle with old method : 0.03926539421081543 time for calcul the mask position with numpy : 0.07399606704711914 nb_pixel_total : 1194200 time to create 1 rle with new method : 0.11223769187927246 create new chi : 0.5740642547607422 time to delete rle : 0.0007455348968505859 batch 1 Loaded 6 chid ids of type : 3726 Number RLEs to save : 6794 TO DO : save crop sub photo not yet done ! save time : 1.057072639465332 nb_obj : 9 nb_hashtags : 3 time to prepare the origin masks : 1.8503334522247314 time for calcul the mask position with numpy : 0.06588077545166016 nb_pixel_total : 1038104 time to create 1 rle with new method : 0.1839287281036377 time for calcul the mask position with numpy : 0.008279561996459961 nb_pixel_total : 31977 time to create 1 rle with old method : 0.03748631477355957 time for calcul the mask position with numpy : 0.008098840713500977 nb_pixel_total : 36331 time to create 1 rle with old method : 0.04111170768737793 time for calcul the mask position with numpy : 0.007976055145263672 nb_pixel_total : 30457 time to create 1 rle with old method : 0.035195112228393555 time for calcul the mask position with numpy : 0.007949113845825195 nb_pixel_total : 14601 time to create 1 rle with old method : 0.016777992248535156 time for calcul the mask position with numpy : 0.00808858871459961 nb_pixel_total : 43892 time to create 1 rle with old method : 0.04913783073425293 time for calcul the mask position with numpy : 0.008601903915405273 nb_pixel_total : 43064 time to create 1 rle with old method : 0.05061531066894531 time for calcul the mask position with numpy : 0.017375946044921875 nb_pixel_total : 778859 time to create 1 rle with new method : 0.14434528350830078 time for calcul the mask position with numpy : 0.008017778396606445 nb_pixel_total : 31651 time to create 1 rle with old method : 0.04246687889099121 time for calcul the mask position with numpy : 0.008581399917602539 nb_pixel_total : 24664 time to create 1 rle with old method : 0.033144235610961914 create new chi : 0.8028988838195801 time to delete rle : 0.001615285873413086 batch 1 Loaded 10 chid ids of type : 3726 Number RLEs to save : 8084 TO DO : save crop sub photo not yet done ! save time : 2.6214473247528076 nb_obj : 4 nb_hashtags : 2 time to prepare the origin masks : 0.506890058517456 time for calcul the mask position with numpy : 0.028486967086791992 nb_pixel_total : 1366437 time to create 1 rle with new method : 0.04860496520996094 time for calcul the mask position with numpy : 0.008440256118774414 nb_pixel_total : 54029 time to create 1 rle with old method : 0.05875730514526367 time for calcul the mask position with numpy : 0.008124351501464844 nb_pixel_total : 850 time to create 1 rle with old method : 0.0009529590606689453 time for calcul the mask position with numpy : 0.016341686248779297 nb_pixel_total : 633727 time to create 1 rle with new method : 0.0451052188873291 time for calcul the mask position with numpy : 0.008049964904785156 nb_pixel_total : 18557 time to create 1 rle with old method : 0.020082950592041016 create new chi : 0.24377989768981934 time to delete rle : 0.00045752525329589844 batch 1 Loaded 5 chid ids of type : 3726 Number RLEs to save : 4152 TO DO : save crop sub photo not yet done ! save time : 0.48276615142822266 nb_obj : 5 nb_hashtags : 3 time to prepare the origin masks : 0.5822818279266357 time for calcul the mask position with numpy : 0.11771416664123535 nb_pixel_total : 1505374 time to create 1 rle with new method : 0.10219836235046387 time for calcul the mask position with numpy : 0.0064849853515625 nb_pixel_total : 36834 time to create 1 rle with old method : 0.04450201988220215 time for calcul the mask position with numpy : 0.007477521896362305 nb_pixel_total : 8104 time to create 1 rle with old method : 0.01011037826538086 time for calcul the mask position with numpy : 0.008786439895629883 nb_pixel_total : 453706 time to create 1 rle with new method : 0.08519983291625977 time for calcul the mask position with numpy : 0.006618499755859375 nb_pixel_total : 63818 time to create 1 rle with old method : 0.0870504379272461 time for calcul the mask position with numpy : 0.0067365169525146484 nb_pixel_total : 5764 time to create 1 rle with old method : 0.009315252304077148 create new chi : 0.5004916191101074 time to delete rle : 0.0007994174957275391 batch 1 Loaded 6 chid ids of type : 3726 Number RLEs to save : 5754 TO DO : save crop sub photo not yet done ! save time : 0.34827303886413574 map_output_result : {1339872107: (0.0, 'Should be the crop_list due to order', 0), 1339872066: (0.0, 'Should be the crop_list due to order', 0), 1339872054: (0.0, 'Should be the crop_list due to order', 0), 1339871990: (0.0, 'Should be the crop_list due to order', 0), 1339871986: (0.0, 'Should be the crop_list due to order', 0), 1339871901: (0.0, 'Should be the crop_list due to order', 0), 1339871828: (0.0, 'Should be the crop_list due to order', 0), 1339871447: (0.0, 'Should be the crop_list due to order', 0), 1339871444: (0.0, 'Should be the crop_list due to order', 0), 1339871387: (0.0, 'Should be the crop_list due to order', 0)} End step rle-unique-nms Inside saveOutput : final : False verbose : 0 saveOutput not yet implemented for datou_step.type : rle_unique_nms_with_priority we use saveGeneral [1339872107, 1339872066, 1339872054, 1339871990, 1339871986, 1339871901, 1339871828, 1339871447, 1339871444, 1339871387] Looping around the photos to save general results len do output : 10 /1339872107.Didn't retrieve data . /1339872066.Didn't retrieve data . /1339872054.Didn't retrieve data . /1339871990.Didn't retrieve data . /1339871986.Didn't retrieve data . /1339871901.Didn't retrieve data . /1339871828.Didn't retrieve data . /1339871447.Didn't retrieve data . /1339871444.Didn't retrieve data . /1339871387.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, '2619247') ('3459', None, '1339872107', None, None, None, None, None, '2619247') ('3459', None, None, None, None, None, None, None, '2619247') ('3459', None, '1339872066', None, None, None, None, None, '2619247') ('3459', None, None, None, None, None, None, None, '2619247') ('3459', None, '1339872054', None, None, None, None, None, '2619247') ('3459', None, None, None, None, None, None, None, '2619247') ('3459', None, '1339871990', None, None, None, None, None, '2619247') ('3459', None, None, None, None, None, None, None, '2619247') ('3459', None, '1339871986', None, None, None, None, None, '2619247') ('3459', None, None, None, None, None, None, None, '2619247') ('3459', None, '1339871901', None, None, None, None, None, '2619247') ('3459', None, None, None, None, None, None, None, '2619247') ('3459', None, '1339871828', None, None, None, None, None, '2619247') ('3459', None, None, None, None, None, None, None, '2619247') ('3459', None, '1339871447', None, None, None, None, None, '2619247') ('3459', None, None, None, None, None, None, None, '2619247') ('3459', None, '1339871444', None, None, None, None, None, '2619247') ('3459', None, None, None, None, None, None, None, '2619247') ('3459', None, '1339871387', None, None, None, None, None, '2619247') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 time used for this insertion : 0.014737367630004883 save_final save missing photos in datou_result : time spend for datou_step_exec : 20.891926050186157 time spend to save output : 0.01815938949584961 total time spend for step 5 : 20.910085439682007 step6:crop_condition Thu Feb 27 08:17:40 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure 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 58 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 ! 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/1740640661_2706672 we have uploaded 1 photos in the portfolio 4869462 time of upload the photos Elapsed time : 0.641162633895874 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 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 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/1740640661_2706672 we have uploaded 1 photos in the portfolio 4869462 time of upload the photos Elapsed time : 2.425299644470215 we have finished the crop for the class : cartonnette begin to crop the class : carton_brun param for this class : {'min_score': 0.7} filtre for class : carton_brun hashtag_id of this class : 2107753024 Next one ! Next one ! Next one ! Next one ! map_result returned by crop_photo_return_map_crop : length : 4 About to insert : list_path_to_insert length 4 new photo from crops ! About to upload 4 photos upload in portfolio : 4869462 init cache_photo without model_param we have 4 photo to upload uploaded to storage server : ovh folder_temporaire : temp/1740640665_2706672 we have uploaded 4 photos in the portfolio 4869462 time of upload the photos Elapsed time : 1.9313626289367676 we have finished the crop for the class : carton_brun begin to crop the class : plastique param for this class : {'min_score': 0.5} filtre for class : plastique hashtag_id of this class : 492725882 begin to crop the class : kraft param for this class : {'min_score': 0.5} filtre for class : kraft hashtag_id of this class : 493202403 begin to crop the class : metal param for this class : {'min_score': 0.5} filtre for class : metal hashtag_id of this class : 492628673 delete rles for these photos Inside saveOutput : final : False verbose : 0 saveOutput not yet implemented for datou_step.type : crop_condition we use saveGeneral [1339872107, 1339872066, 1339872054, 1339871990, 1339871986, 1339871901, 1339871828, 1339871447, 1339871444, 1339871387] Looping around the photos to save general results len do output : 6 /1339876773Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1339876796Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1339876851Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1339876852Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1339876853Didn't retrieve data .Didn't retrieve data .Didn't retrieve data . /1339876854Didn'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, '2619247') ('3459', None, '1339872107', None, None, None, None, None, '2619247') ('3459', None, None, None, None, None, None, None, '2619247') ('3459', None, '1339872066', None, None, None, None, None, '2619247') ('3459', None, None, None, None, None, None, None, '2619247') ('3459', None, '1339872054', None, None, None, None, None, '2619247') ('3459', None, None, None, None, None, None, None, '2619247') ('3459', None, '1339871990', None, None, None, None, None, '2619247') ('3459', None, None, None, None, None, None, None, '2619247') ('3459', None, '1339871986', None, None, None, None, None, '2619247') ('3459', None, None, None, None, None, None, None, '2619247') ('3459', None, '1339871901', None, None, None, None, None, '2619247') ('3459', None, None, None, None, None, None, None, '2619247') ('3459', None, '1339871828', None, None, None, None, None, '2619247') ('3459', None, None, None, None, None, None, None, '2619247') ('3459', None, '1339871447', None, None, None, None, None, '2619247') ('3459', None, None, None, None, None, None, None, '2619247') ('3459', None, '1339871444', None, None, None, None, None, '2619247') ('3459', None, None, None, None, None, None, None, '2619247') ('3459', None, '1339871387', None, None, None, None, None, '2619247') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 28 time used for this insertion : 0.02293848991394043 save_final save missing photos in datou_result : time spend for datou_step_exec : 7.115851640701294 time spend to save output : 0.04079771041870117 total time spend for step 6 : 7.156649351119995 step7:ventilate_hashtags_in_portfolio Thu Feb 27 08:17:47 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 : 20876647 get user id for portfolio 20876647 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`=20876647 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','metal','Teint_Dans_La_Masse','cartonnette','flou','Carton_brun','papier','environnement','Carton_gris','plastique','kraft','autre_refus')) AND mptpi.`min_score`=0.5 To do Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20876647 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','metal','Teint_Dans_La_Masse','cartonnette','flou','Carton_brun','papier','environnement','Carton_gris','plastique','kraft','autre_refus')) AND mptpi.`min_score`=0.5 To do lien utilise dans velours : https://www.fotonower.com/velours/20877020,20877021,20877022,20877023,20877024,20877025,20877026,20877027,20877028,20877029,20877030,20877031?tags=mal_croppe,Teint_Dans_La_Masse,Carton_brun,plastique,papier,flou,autre_refus,cartonnette,kraft,Carton_gris,metal,environnement Inside saveOutput : final : False verbose : 0 saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1339872107, 1339872066, 1339872054, 1339871990, 1339871986, 1339871901, 1339871828, 1339871447, 1339871444, 1339871387] Looping around the photos to save general results len do output : 1 /20876647. 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, '2619247') ('3459', None, '1339872107', None, None, None, None, None, '2619247') ('3459', None, None, None, None, None, None, None, '2619247') ('3459', None, '1339872066', None, None, None, None, None, '2619247') ('3459', None, None, None, None, None, None, None, '2619247') ('3459', None, '1339872054', None, None, None, None, None, '2619247') ('3459', None, None, None, None, None, None, None, '2619247') ('3459', None, '1339871990', None, None, None, None, None, '2619247') ('3459', None, None, None, None, None, None, None, '2619247') ('3459', None, '1339871986', None, None, None, None, None, '2619247') ('3459', None, None, None, None, None, None, None, '2619247') ('3459', None, '1339871901', None, None, None, None, None, '2619247') ('3459', None, None, None, None, None, None, None, '2619247') ('3459', None, '1339871828', None, None, None, None, None, '2619247') ('3459', None, None, None, None, None, None, None, '2619247') ('3459', None, '1339871447', None, None, None, None, None, '2619247') ('3459', None, None, None, None, None, None, None, '2619247') ('3459', None, '1339871444', None, None, None, None, None, '2619247') ('3459', None, None, None, None, None, None, None, '2619247') ('3459', None, '1339871387', None, None, None, None, None, '2619247') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 time used for this insertion : 0.015187263488769531 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4388835430145264 time spend to save output : 0.01562809944152832 total time spend for step 7 : 1.4545116424560547 step8:final Thu Feb 27 08:17:48 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 : {1339872107: ('0.04675372985629606',), 1339872066: ('0.04675372985629606',), 1339872054: ('0.04675372985629606',), 1339871990: ('0.04675372985629606',), 1339871986: ('0.04675372985629606',), 1339871901: ('0.04675372985629606',), 1339871828: ('0.04675372985629606',), 1339871447: ('0.04675372985629606',), 1339871444: ('0.04675372985629606',), 1339871387: ('0.04675372985629606',)} new output for save of step final : {1339872107: ('0.04675372985629606',), 1339872066: ('0.04675372985629606',), 1339872054: ('0.04675372985629606',), 1339871990: ('0.04675372985629606',), 1339871986: ('0.04675372985629606',), 1339871901: ('0.04675372985629606',), 1339871828: ('0.04675372985629606',), 1339871447: ('0.04675372985629606',), 1339871444: ('0.04675372985629606',), 1339871387: ('0.04675372985629606',)} [1339872107, 1339872066, 1339872054, 1339871990, 1339871986, 1339871901, 1339871828, 1339871447, 1339871444, 1339871387] Looping around the photos to save general results len do output : 10 /1339872107.Didn't retrieve data . /1339872066.Didn't retrieve data . /1339872054.Didn't retrieve data . /1339871990.Didn't retrieve data . /1339871986.Didn't retrieve data . /1339871901.Didn't retrieve data . /1339871828.Didn't retrieve data . /1339871447.Didn't retrieve data . /1339871444.Didn't retrieve data . /1339871387.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, '2619247') ('3459', None, '1339872107', None, None, None, None, None, '2619247') ('3459', None, None, None, None, None, None, None, '2619247') ('3459', None, '1339872066', None, None, None, None, None, '2619247') ('3459', None, None, None, None, None, None, None, '2619247') ('3459', None, '1339872054', None, None, None, None, None, '2619247') ('3459', None, None, None, None, None, None, None, '2619247') ('3459', None, '1339871990', None, None, None, None, None, '2619247') ('3459', None, None, None, None, None, None, None, '2619247') ('3459', None, '1339871986', None, None, None, None, None, '2619247') ('3459', None, None, None, None, None, None, None, '2619247') ('3459', None, '1339871901', None, None, None, None, None, '2619247') ('3459', None, None, None, None, None, None, None, '2619247') ('3459', None, '1339871828', None, None, None, None, None, '2619247') ('3459', None, None, None, None, None, None, None, '2619247') ('3459', None, '1339871447', None, None, None, None, None, '2619247') ('3459', None, None, None, None, None, None, None, '2619247') ('3459', None, '1339871444', None, None, None, None, None, '2619247') ('3459', None, None, None, None, None, None, None, '2619247') ('3459', None, '1339871387', None, None, None, None, None, '2619247') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 time used for this insertion : 0.012563228607177734 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.11195015907287598 time spend to save output : 0.013155937194824219 total time spend for step 8 : 0.1251060962677002 step9:velours_tree Thu Feb 27 08:17:48 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.09244251251220703 time spend to save output : 5.2928924560546875e-05 total time spend for step 9 : 0.09249544143676758 step10:send_mail_cod Thu Feb 27 08:17:48 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_P20876647_27-02-2025_08_17_48.pdf 20877020 imagette208770201740640668 20877023 change filename to text .imagette208770231740640668 20877025 imagette208770251740640668 20877026 imagette208770261740640668 20877027 change filename to text .change filename to text .imagette208770271740640668 20877028 change filename to text .imagette208770281740640669 20877030 imagette208770301740640669 20877021 change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .imagette208770211740640669 20877022 change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .change filename to text .imagette208770221740640669 20877029 change filename to text .change filename to text .imagette208770291740640669 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20876647 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20877020,20877021,20877022,20877023,20877024,20877025,20877026,20877027,20877028,20877029,20877030,20877031?tags=mal_croppe,Teint_Dans_La_Masse,Carton_brun,plastique,papier,flou,autre_refus,cartonnette,kraft,Carton_gris,metal,environnement your option no_mail is active, we will not send the real mail to your client args[1339872107] : ('0.04675372985629606',) no score found for photo 1339872107 We are sending mail with results at report@fotonower.com args[1339872066] : ('0.04675372985629606',) no score found for photo 1339872066 We are sending mail with results at report@fotonower.com args[1339872054] : ('0.04675372985629606',) no score found for photo 1339872054 We are sending mail with results at report@fotonower.com args[1339871990] : ('0.04675372985629606',) no score found for photo 1339871990 We are sending mail with results at report@fotonower.com args[1339871986] : ('0.04675372985629606',) no score found for photo 1339871986 We are sending mail with results at report@fotonower.com args[1339871901] : ('0.04675372985629606',) no score found for photo 1339871901 We are sending mail with results at report@fotonower.com args[1339871828] : ('0.04675372985629606',) no score found for photo 1339871828 We are sending mail with results at report@fotonower.com args[1339871447] : ('0.04675372985629606',) no score found for photo 1339871447 We are sending mail with results at report@fotonower.com args[1339871444] : ('0.04675372985629606',) no score found for photo 1339871444 We are sending mail with results at report@fotonower.com args[1339871387] : ('0.04675372985629606',) no score found for photo 1339871387 We are sending mail with results at report@fotonower.com refus_total : 0.04675372985629606 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=20876647 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 1000 SELECT photo_id, url FROM MTRBack.photos ph WHERE photo_id IN (1339872632,1339872685,1339872338,1339872763,1339872688,1339872631,1339872568,1339872543,1339872488,1339872487,1339872421,1339872415,1339872379,1339872378,1339872339,1339871387,1339872291,1339872290,1339872231,1339872204) Found this number of photos: 20 begin to download photo : 1339872632 begin to download photo : 1339872631 begin to download photo : 1339872421 begin to download photo : 1339871387 download finish for photo 1339872632 begin to download photo : 1339872685 download finish for photo 1339872631 begin to download photo : 1339872568 download finish for photo 1339871387 begin to download photo : 1339872291 download finish for photo 1339872421 begin to download photo : 1339872415 download finish for photo 1339872568 begin to download photo : 1339872543 download finish for photo 1339872685 begin to download photo : 1339872338 download finish for photo 1339872291 begin to download photo : 1339872290 download finish for photo 1339872415 begin to download photo : 1339872379 download finish for photo 1339872338 begin to download photo : 1339872763 download finish for photo 1339872290 begin to download photo : 1339872231 download finish for photo 1339872379 begin to download photo : 1339872378 download finish for photo 1339872763 begin to download photo : 1339872688 download finish for photo 1339872231 begin to download photo : 1339872204 download finish for photo 1339872688 download finish for photo 1339872378 begin to download photo : 1339872339 download finish for photo 1339872204 download finish for photo 1339872339 download finish for photo 1339872543 begin to download photo : 1339872488 download finish for photo 1339872488 begin to download photo : 1339872487 download finish for photo 1339872487 start upload file to ovh https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20876647_27-02-2025_08_17_48.pdf results_Auto_P20876647_27-02-2025_08_17_48.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20876647_27-02-2025_08_17_48.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','20876647','results_Auto_P20876647_27-02-2025_08_17_48.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20876647_27-02-2025_08_17_48.pdf','pdf','','0.27','0.04675372985629606') Inside saveOutput : final : False verbose : 0 saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1339872107, 1339872066, 1339872054, 1339871990, 1339871986, 1339871901, 1339871828, 1339871447, 1339871444, 1339871387] 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, '2619247') ('3459', None, '1339872107', None, None, None, None, None, '2619247') ('3459', None, None, None, None, None, None, None, '2619247') ('3459', None, '1339872066', None, None, None, None, None, '2619247') ('3459', None, None, None, None, None, None, None, '2619247') ('3459', None, '1339872054', None, None, None, None, None, '2619247') ('3459', None, None, None, None, None, None, None, '2619247') ('3459', None, '1339871990', None, None, None, None, None, '2619247') ('3459', None, None, None, None, None, None, None, '2619247') ('3459', None, '1339871986', None, None, None, None, None, '2619247') ('3459', None, None, None, None, None, None, None, '2619247') ('3459', None, '1339871901', None, None, None, None, None, '2619247') ('3459', None, None, None, None, None, None, None, '2619247') ('3459', None, '1339871828', None, None, None, None, None, '2619247') ('3459', None, None, None, None, None, None, None, '2619247') ('3459', None, '1339871447', None, None, None, None, None, '2619247') ('3459', None, None, None, None, None, None, None, '2619247') ('3459', None, '1339871444', None, None, None, None, None, '2619247') ('3459', None, None, None, None, None, None, None, '2619247') ('3459', None, '1339871387', None, None, None, None, None, '2619247') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 time used for this insertion : 0.013065099716186523 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.743537425994873 time spend to save output : 0.013322830200195312 total time spend for step 10 : 4.756860256195068 step11:split_time_score Thu Feb 27 08:17:53 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 We expect there is only one output and this part is used while all output are not tuple or array We expect there is only one output and this part is used while all output are not tuple or array We expect there is only one output and this part is used while all output are not tuple or array We expect there is only one output and this part is used while all output are not tuple or array We expect there is only one output and this part is used while all output are not tuple or array We expect there is only one output and this part is used while all output are not tuple or array We expect there is only one output and this part is used while all output are not tuple or array We expect there is only one output and this part is used while all output are not tuple or array We expect there is only one output and this part is used while all output are not tuple or array We expect there is only one output and this part is used while all output are not tuple or array Inconsistent number of input and output, step which parrallelize and manage error in input by avoiding sending an output for this data can't be used in tree dependencies of input and output complete output_args for input 1 VR 22-3-18 : For now we do not clean correctly the datou structure begin split time score Catched exception ! Connect or reconnect ! TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] (('07', 30),) ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 27022025 20876647 Nombre de photos uploadées : 30 / 23040 (0%) 27022025 20876647 Nombre de photos taguées (types de déchets): 0 / 30 (0%) 27022025 20876647 Nombre de photos taguées (volume) : 0 / 30 (0%) elapsed_time : load_data_split_time_score 2.6226043701171875e-06 elapsed_time : order_list_meta_photo_and_scores 5.7220458984375e-06 ?????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.006918907165527344 elapsed_time : insert_dashboard_record_day_entry 0.022803068161010742 We will return after consolidate but for now we need the day, how to get it, for now depending on the previous heavy steps Qualite : 0.0632687756809284 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20875450_27-02-2025_07_41_21.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20875450 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`=20875450 AND mptpi.`type`=3726 To do find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20876646 order by id desc limit 1 Qualite : 0.05016083197612013 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20876647_27-02-2025_08_17_48.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20876647 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`=20876647 AND mptpi.`type`=3726 To do Qualite : 0.06677441255269197 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20876649_27-02-2025_08_11_52.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20876649 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`=20876649 AND mptpi.`type`=3726 To do NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'27022025': {'nb_upload': 30, '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 [1339872107, 1339872066, 1339872054, 1339871990, 1339871986, 1339871901, 1339871828, 1339871447, 1339871444, 1339871387] Looping around the photos to save general results len do output : 1 /20876647Didn'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, '2619247') ('3459', None, '1339872107', None, None, None, None, None, '2619247') ('3459', None, None, None, None, None, None, None, '2619247') ('3459', None, '1339872066', None, None, None, None, None, '2619247') ('3459', None, None, None, None, None, None, None, '2619247') ('3459', None, '1339872054', None, None, None, None, None, '2619247') ('3459', None, None, None, None, None, None, None, '2619247') ('3459', None, '1339871990', None, None, None, None, None, '2619247') ('3459', None, None, None, None, None, None, None, '2619247') ('3459', None, '1339871986', None, None, None, None, None, '2619247') ('3459', None, None, None, None, None, None, None, '2619247') ('3459', None, '1339871901', None, None, None, None, None, '2619247') ('3459', None, None, None, None, None, None, None, '2619247') ('3459', None, '1339871828', None, None, None, None, None, '2619247') ('3459', None, None, None, None, None, None, None, '2619247') ('3459', None, '1339871447', None, None, None, None, None, '2619247') ('3459', None, None, None, None, None, None, None, '2619247') ('3459', None, '1339871444', None, None, None, None, None, '2619247') ('3459', None, None, None, None, None, None, None, '2619247') ('3459', None, '1339871387', None, None, None, None, None, '2619247') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 time used for this insertion : 0.014428377151489258 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.1611886024475098 time spend to save output : 0.014621496200561523 total time spend for step 11 : 1.1758100986480713 caffe_path_current : About to save ! 2 After save, about to update current ! update_current_state 43.48user 27.99system 1:29.50elapsed 79%CPU (0avgtext+0avgdata 2750592maxresident)k 680888inputs+27136outputs (2820major+2318452minor)pagefaults 0swaps