python /home/admin/mtr/script_for_cron.py -j datou_current3 -m 8 -a ' --fifo -a 533 -l 100 ' -s datou_current_533 -M 0 -S 0 -U 95,95,120 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 : 1548456 load datou : 533 # 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 ! 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 ! 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 ! 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_0, score_0), (photo_id, hashtag_id_1, score_1), ...] was removed should we ? [ (photo_id, hashtag_id_0, score_0), (photo_id, hashtag_id_1, score_1), ...] was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? chemin de la photo was removed should we ? load thcls load pdts Running datou job : batch_current TODO datou_current to load to do maybe to take outside batchDatouExec no input labels no input values updating current state to 1 we have a portfolio with more photos than limit : 3714>100 please execute split_portfolio.py -i 24113525 -l 100 size over we load limit photo not treated list_input_json: {} Current got : datou_id : 533, datou_cur_ids : ['3150707'] with mtr_portfolio_ids : ['24113525'] and first list_photo_ids : [] new path : /proc/1548456/ 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 ! 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 ! 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 ! DataTypes for each output/input checked ! List Step Type Loaded in datou : tfhub_classification2, argmax list_input_json : {} origin We have 1 , WARNING: data may be incomplete, need to offset and complete ! BFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFBFwe have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB length of list_filenames : 100 ; length of list_pids : 100 ; length of list_args : 100 time to download the photos : 16.679945707321167 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 : 2 step1:tfhub_classification2 Thu Jul 17 21:58:44 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 TFHub with tf2 ! nombre de thcls : 3 we are using the classfication for multi_thcl [3513, 3379, 3847] begin to check gpu status inside check gpu memory 2025-07-17 21:58:47.204523: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcuda.so.1 2025-07-17 21:58:47.231748: 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-07-17 21:58:47.235529: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1 2025-07-17 21:58:47.238139: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcublas.so.10 2025-07-17 21:58:47.239772: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcufft.so.10 2025-07-17 21:58:47.240073: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcurand.so.10 2025-07-17 21:58:47.241998: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusolver.so.10 2025-07-17 21:58:47.242934: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusparse.so.10 2025-07-17 21:58:47.247589: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudnn.so.7 2025-07-17 21:58:47.249390: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1703] Adding visible gpu devices: 0 2025-07-17 21:58:47.249777: 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-07-17 21:58:47.275405: I tensorflow/core/platform/profile_utils/cpu_utils.cc:102] CPU Frequency: 3493035000 Hz 2025-07-17 21:58:47.277281: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x7f39a8000b60 initialized for platform Host (this does not guarantee that XLA will be used). Devices: 2025-07-17 21:58:47.277311: I tensorflow/compiler/xla/service/service.cc:176] StreamExecutor device (0): Host, Default Version 2025-07-17 21:58:47.395679: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x2d9fb160 initialized for platform CUDA (this does not guarantee that XLA will be used). Devices: 2025-07-17 21:58:47.395716: I tensorflow/compiler/xla/service/service.cc:176] StreamExecutor device (0): NVIDIA GeForce RTX 2080 Ti, Compute Capability 7.5 2025-07-17 21:58:47.397098: 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-07-17 21:58:47.397186: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1 2025-07-17 21:58:47.397216: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcublas.so.10 2025-07-17 21:58:47.397243: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcufft.so.10 2025-07-17 21:58:47.397269: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcurand.so.10 2025-07-17 21:58:47.397296: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusolver.so.10 2025-07-17 21:58:47.397322: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusparse.so.10 2025-07-17 21:58:47.397348: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudnn.so.7 2025-07-17 21:58:47.399486: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1703] Adding visible gpu devices: 0 2025-07-17 21:58:47.399551: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1 2025-07-17 21:58:47.400757: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1102] Device interconnect StreamExecutor with strength 1 edge matrix: 2025-07-17 21:58:47.400780: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1108] 0 2025-07-17 21:58:47.400794: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1121] 0: N 2025-07-17 21:58:47.402968: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1247] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 3096 MB memory) -> physical GPU (device: 0, name: NVIDIA GeForce RTX 2080 Ti, pci bus id: 0000:41:00.0, compute capability: 7.5) l 3637 free memory gpu now : 10957 max_wait_temp : 1 max_wait : 5 1 Physical GPUs, 1 Logical GPUs tagging for thcl : 3513 To do loadFromThcl(), then load ParamDescType : thcl3513 thcls : [{'id': 3513, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2_tf', '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': 4557, 'photo_desc_type': 5767, 'type_classification': 'tf_classification2', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] thcl {'id': 3513, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2_tf', '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': 4557, 'photo_desc_type': 5767, 'type_classification': 'tf_classification2', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'} Update svm_hashtag_type_desc : 5767 FOUND : 1 Here is data_from_sql_as_vec to set the ParamDescriptorType : (5767, 'Rungis_amount_dechets_fall_2018_v2_tf', 2048, 2048, 'Rungis_amount_dechets_fall_2018_v2_tf', 'pool5', 10.0, None, None, 256, None, 0, None, 8, None, None, -1000.0, 3, datetime.datetime(2023, 3, 16, 15, 52, 10), datetime.datetime(2023, 3, 16, 15, 52, 10)) model_name : Rungis_amount_dechets_fall_2018_v2_tf model_param file didn't exist model_name : Rungis_amount_dechets_fall_2018_v2_tf model_type : tf_classification2 list file need : ['Confusion_Matrix.png', 'Precision_Recall_05102018_Papier_non_papier_dense.jpg', 'Precision_Recall_05102018_Papier_non_papier_peu_dense.jpg', 'Precision_Recall_05102018_Papier_non_papier_presque_vide.jpg', 'Precision_Recall_05102018_Papier_non_papier_tres_dense.jpg', 'Precision_Recall_05102018_Papier_non_papier_tres_peu_dense.jpg', 'Result_Summary.txt', 'checkpoint', 'model_checkpoint.ckpt.data-00000-of-00001', 'model_checkpoint.ckpt.data-00000-of-00002', 'model_checkpoint.ckpt.data-00001-of-00002', 'model_checkpoint.ckpt.index', 'model_weights.h5'] file exist in s3 : ['Confusion_Matrix.png', 'Precision_Recall_05102018_Papier_non_papier_dense.jpg', 'Precision_Recall_05102018_Papier_non_papier_peu_dense.jpg', 'Precision_Recall_05102018_Papier_non_papier_presque_vide.jpg', 'Precision_Recall_05102018_Papier_non_papier_tres_dense.jpg', 'Precision_Recall_05102018_Papier_non_papier_tres_peu_dense.jpg', 'Result_Summary.txt', 'checkpoint', 'model_checkpoint.ckpt.data-00000-of-00001', 'model_checkpoint.ckpt.data-00000-of-00002', 'model_checkpoint.ckpt.data-00001-of-00002', 'model_checkpoint.ckpt.index', 'model_weights.h5'] file manque in s3 : [] local folder : /data/models_weight/Rungis_amount_dechets_fall_2018_v2_tf /data/models_weight/Rungis_amount_dechets_fall_2018_v2_tf/Confusion_Matrix.png size_local : 67810 size in s3 : 67810 create time local : 2023-10-30 16:21:37 create time in s3 : 2023-10-30 14:09:29 Confusion_Matrix.png already exist and didn't need to update /data/models_weight/Rungis_amount_dechets_fall_2018_v2_tf/Precision_Recall_05102018_Papier_non_papier_dense.jpg size_local : 73949 size in s3 : 73949 create time local : 2023-10-30 16:21:38 create time in s3 : 2023-10-30 14:09:30 Precision_Recall_05102018_Papier_non_papier_dense.jpg already exist and didn't need to update /data/models_weight/Rungis_amount_dechets_fall_2018_v2_tf/Precision_Recall_05102018_Papier_non_papier_peu_dense.jpg size_local : 85572 size in s3 : 85572 create time local : 2023-10-30 16:21:38 create time in s3 : 2023-10-30 14:09:39 Precision_Recall_05102018_Papier_non_papier_peu_dense.jpg already exist and didn't need to update /data/models_weight/Rungis_amount_dechets_fall_2018_v2_tf/Precision_Recall_05102018_Papier_non_papier_presque_vide.jpg size_local : 72361 size in s3 : 72361 create time local : 2023-10-30 16:21:38 create time in s3 : 2023-10-30 14:09:37 Precision_Recall_05102018_Papier_non_papier_presque_vide.jpg already exist and didn't need to update /data/models_weight/Rungis_amount_dechets_fall_2018_v2_tf/Precision_Recall_05102018_Papier_non_papier_tres_dense.jpg size_local : 83567 size in s3 : 83567 create time local : 2023-10-30 16:21:38 create time in s3 : 2023-10-30 14:09:48 Precision_Recall_05102018_Papier_non_papier_tres_dense.jpg already exist and didn't need to update /data/models_weight/Rungis_amount_dechets_fall_2018_v2_tf/Precision_Recall_05102018_Papier_non_papier_tres_peu_dense.jpg size_local : 71611 size in s3 : 71611 create time local : 2023-10-30 16:21:38 create time in s3 : 2023-10-30 14:09:29 Precision_Recall_05102018_Papier_non_papier_tres_peu_dense.jpg already exist and didn't need to update /data/models_weight/Rungis_amount_dechets_fall_2018_v2_tf/Result_Summary.txt size_local : 1058 size in s3 : 1058 create time local : 2023-10-30 16:21:38 create time in s3 : 2023-10-30 14:09:30 Result_Summary.txt already exist and didn't need to update /data/models_weight/Rungis_amount_dechets_fall_2018_v2_tf/checkpoint size_local : 99 size in s3 : 99 create time local : 2023-10-30 16:21:38 create time in s3 : 2023-10-30 14:09:36 checkpoint already exist and didn't need to update /data/models_weight/Rungis_amount_dechets_fall_2018_v2_tf/model_checkpoint.ckpt.data-00000-of-00001 size_local : 188538519 size in s3 : 188538519 create time local : 2023-10-30 16:21:41 create time in s3 : 2023-10-30 14:09:40 model_checkpoint.ckpt.data-00000-of-00001 already exist and didn't need to update /data/models_weight/Rungis_amount_dechets_fall_2018_v2_tf/model_checkpoint.ckpt.data-00000-of-00002 size_local : 216572 size in s3 : 216572 create time local : 2023-10-30 16:21:41 create time in s3 : 2023-03-16 14:52:09 model_checkpoint.ckpt.data-00000-of-00002 already exist and didn't need to update /data/models_weight/Rungis_amount_dechets_fall_2018_v2_tf/model_checkpoint.ckpt.data-00001-of-00002 size_local : 32279708 size in s3 : 32279708 create time local : 2023-10-30 16:21:42 create time in s3 : 2023-03-16 14:52:07 model_checkpoint.ckpt.data-00001-of-00002 already exist and didn't need to update /data/models_weight/Rungis_amount_dechets_fall_2018_v2_tf/model_checkpoint.ckpt.index size_local : 28001 size in s3 : 28001 create time local : 2023-10-30 16:21:42 create time in s3 : 2023-10-30 14:09:30 model_checkpoint.ckpt.index already exist and didn't need to update /data/models_weight/Rungis_amount_dechets_fall_2018_v2_tf/model_weights.h5 size_local : 94501976 size in s3 : 94501976 create time local : 2023-10-30 16:21:44 create time in s3 : 2023-10-30 14:09:37 model_weights.h5 already exist and didn't need to update desc size : 2048 Model: "sequential" _________________________________________________________________ Layer (type) Output Shape Param # ================================================================= module (KerasLayer) (None, 2048) 23561152 _________________________________________________________________ Rungis_amount_dechets_fall_2 (None, 5) 10245 ================================================================= Total params: 23,571,397 Trainable params: 10,245 Non-trainable params: 23,561,152 _________________________________________________________________ Loading Weights... time used to create the model : 7.231829881668091 time used to load_weights : 1.0471935272216797 0it [00:00, ?it/s] 100it [00:00, 1181.42it/s]2025-07-17 21:58:57.612898: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcublas.so.10 2025-07-17 21:58:57.863021: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudnn.so.7 2025-07-17 21:59:03.623993: W tensorflow/core/framework/op_kernel.cc:1741] Unknown: OSError: image file is truncated (48 bytes not processed) Traceback (most recent call last): File "/usr/local/lib/python3.8/dist-packages/tensorflow/python/ops/script_ops.py", line 243, in __call__ ret = func(*args) File "/usr/local/lib/python3.8/dist-packages/tensorflow/python/autograph/impl/api.py", line 309, in wrapper return func(*args, **kwargs) File "/usr/local/lib/python3.8/dist-packages/tensorflow/python/data/ops/dataset_ops.py", line 785, in generator_py_func values = next(generator_state.get_iterator(iterator_id)) File "/usr/local/lib/python3.8/dist-packages/tensorflow/python/keras/engine/data_adapter.py", line 801, in wrapped_generator for data in generator_fn(): File "/usr/local/lib/python3.8/dist-packages/tensorflow/python/keras/engine/data_adapter.py", line 932, in generator_fn yield x[i] File "/usr/local/lib/python3.8/dist-packages/keras_preprocessing/image/iterator.py", line 65, in __getitem__ return self._get_batches_of_transformed_samples(index_array) File "/usr/local/lib/python3.8/dist-packages/keras_preprocessing/image/iterator.py", line 227, in _get_batches_of_transformed_samples img = load_img(filepaths[j], File "/usr/local/lib/python3.8/dist-packages/keras_preprocessing/image/utils.py", line 138, in load_img img = img.resize(width_height_tuple, resample) File "/home/admin/.local/lib/python3.8/site-packages/PIL/Image.py", line 2157, in resize self.load() File "/home/admin/.local/lib/python3.8/site-packages/PIL/ImageFile.py", line 266, in load raise OSError(msg) OSError: image file is truncated (48 bytes not processed) temp/1752782308_1548456_1372533085_51cf7bc9832e9229d9c7c2e2b2e34fa6.jpg temp/1752782308_1548456_1372533032_4d089ebb2ee71d5e38dda77026c0d39e.jpg temp/1752782308_1548456_1372533001_8f50135d643a34108cebd60b54ddac0e.jpg temp/1752782308_1548456_1372532971_bfb760a8b94bc736e4f392a8dd7b4c65.jpg temp/1752782308_1548456_1372532608_3fe4dd43bf3bf3c60a3bb9a453ca78b6.jpg temp/1752782308_1548456_1372532579_61a693012740a5f2e663bb3c6a515fb2.jpg temp/1752782308_1548456_1372532552_ceae0859fc4d52647b399c820b9e1b02.jpg temp/1752782308_1548456_1372532521_b37964990b0cffdf8a2a38b437fc03cb.jpg temp/1752782308_1548456_1372532490_d719b79cd815a906c45d75e6256f5384.jpg temp/1752782308_1548456_1372532458_edf0cc8c8e6fc4c273966756150b81ac.jpg temp/1752782308_1548456_1372532190_70f590cb65a581ec4b900e4a70c19f78.jpg temp/1752782308_1548456_1372532154_91fd3bdd6cefe6866e42df3d0c7383c5.jpg temp/1752782308_1548456_1372532125_4f001879e856be0776489f985044865b.jpg temp/1752782308_1548456_1372532093_7df2bbf1269fd484c321510d7e6e19dc.jpg temp/1752782308_1548456_1372532062_4a2a85f5b31ab4b2b573b566669e21a9.jpg temp/1752782308_1548456_1372532050_ce9ec10c3744475a61e3622453a17825.jpg temp/1752782308_1548456_1372531452_7140c583deabdc411904d4796909ffb0.jpg temp/1752782308_1548456_1372531439_da2143d1116443c16bb5b8081a55972c.jpg temp/1752782308_1548456_1372531422_a4fc014af42d8a91e76c1c8ffaa7c1e8.jpg temp/1752782308_1548456_1372531402_e8362fc5af18c4c6eec994258f36b096.jpg temp/1752782308_1548456_1372531361_86cb1f30cde7c626ce0915d9a7ff10f1.jpg temp/1752782308_1548456_1372531298_6151fbe22228047535fbfff0e686d132.jpg temp/1752782308_1548456_1372304045_632e2b6ce4b948cf2194c589bdb2e5d6.jpg temp/1752782308_1548456_1372304043_8417ffa4f231e6eccd38e6a415723a7a.jpg temp/1752782308_1548456_1372304041_0fabf13b6490a3a5119a84b2b2cbeb48.jpg temp/1752782308_1548456_1372304033_182fcd8701b1656a24ca2a28bf1d29d8.jpg temp/1752782308_1548456_1372304029_b7af260d77d9c6e159d49792b8cd3f80.jpg temp/1752782308_1548456_1372303377_471d6cec44c3d94056b6451d62c6cf68.jpg temp/1752782308_1548456_1372303371_6e4d1bf4d72aef25976dc119ded6916e.jpg temp/1752782308_1548456_1372303358_338bb7354a53b5b8148187f6f544c241.jpg temp/1752782308_1548456_1372303354_39657d3e31346c4e16b08dfdd70d7f5f.jpg temp/1752782308_1548456_1372303341_2550f4243fa3820e9d720d71af6a0ea4.jpg temp/1752782308_1548456_1372302118_cf9192b21734d779f1b3b80261e84987.jpg temp/1752782308_1548456_1372302114_bf7be8bed36bcf555038d802f230be16.jpg temp/1752782308_1548456_1372302107_8b984924e41eab255153b001137e2847.jpg temp/1752782308_1548456_1372302102_24981ba5475e19bb2e368d92b070cb85.jpg temp/1752782308_1548456_1372302097_4a3011a01103d3ee52498d3124936615.jpg temp/1752782308_1548456_1372302090_709f6f683d0ccdb5cb187820b238958c.jpg temp/1752782308_1548456_1372301326_09f86a5ea745fc211af9a8aa651f3537.jpg temp/1752782308_1548456_1372301244_4ea36897eda131f69005cbc53dfffaa4.jpg temp/1752782308_1548456_1372301154_f6b0b3b9c92b4cb0b98382f3dfc6b2e0.jpg temp/1752782308_1548456_1372301104_be6737201a6e3762b74a71f109f4fb04.jpg temp/1752782308_1548456_1372301064_64300727cac178ec56826d92a8c7d556.jpg temp/1752782308_1548456_1372301022_2cc94b8424c6b445864df20405b10f2f.jpg temp/1752782308_1548456_1372300178_61b3c498174e921e6e746ec966adf39b.jpg temp/1752782308_1548456_1372300135_2aabb90cc4a3ac5d887ad57d1ca85dcf.jpg temp/1752782308_1548456_1372300109_cafb9eacaab7aed2899ba1dca7662fc5.jpg temp/1752782308_1548456_1372300106_225820442edd2a9cc8389b541076b8eb.jpg temp/1752782308_1548456_1372300102_543fbc581703ba99fc05c67c71ecb81b.jpg temp/1752782308_1548456_1372300099_561e7de07acf621632aff0c98af35704.jpg temp/1752782308_1548456_1372299302_00d0295c016ee72327e9f2956dd8ae0e.jpg temp/1752782308_1548456_1372299293_34c549a580aaffe677c77f2b398b703a.jpg temp/1752782308_1548456_1372299285_276d5dfa5efa45efc1f864fa680b7b53.jpg temp/1752782308_1548456_1372299281_35adf2e5e55bea52d3d0452a66cdc89d.jpg temp/1752782308_1548456_1372299277_91d3a0a102cf62c592523407a24ad980.jpg temp/1752782308_1548456_1369539061_0e049feaeabf67efe229ad14609b1aea_62652504.jpg temp/1752782308_1548456_1369539056_a6f6aceb40f358a5fa6d28a274ae3a49_8164364.jpg temp/1752782308_1548456_1369539031_db35fa5b1bb9b770f57a13eb6a1ef94d_6389179.jpg temp/1752782308_1548456_1369539028_97ecbb140400a5ccbe6a08043f14a645_91009573.jpg temp/1752782308_1548456_1369539021_f77e5090bb96adb18410197b470a2e15_80747426.jpg temp/1752782308_1548456_1369539016_426abd957166903c7005c1e50a6b221b_8729083.jpg temp/1752782308_1548456_1369539009_c916832b4a8b42f4f156bc51dfbf3b82_17808480.jpg temp/1752782308_1548456_1369539002_f62c9be8b49e04c85f8f07299ed1ac98_98613331.jpg temp/1752782308_1548456_1369538946_c707fe84249cbeaf88a546a997dc2343_765814.jpg temp/1752782308_1548456_1369538941_e8bafa1d8e4bcdd73f35d05918dccd7f_19019599.jpg temp/1752782308_1548456_1369538932_5db83211126d3b4d93ede446fc7a1c86_26671265.jpg temp/1752782308_1548456_1369538927_de870f186964535a97a98f564a2cbba9_20114578.jpg temp/1752782308_1548456_1369538919_f8c7e5d97c50a8a8a170c210fa4ea862_84546381.jpg temp/1752782308_1548456_1369538912_7db27cf82dee35f506a77f85a65e1398_71750671.jpg temp/1752782308_1548456_1369538887_6c9147471b3fe373664f7974b0220c4a_44222159.jpg temp/1752782308_1548456_1369538883_b0679ff3a65da62c56ff26525a161e3b_65710931.jpg temp/1752782308_1548456_1369538879_1dd8854cfa75ccd199fd938034c4e17b_28073737.jpg temp/1752782308_1548456_1369538866_eeb5aeefc67420461a9d3a9d50f6d456_57411135.jpg temp/1752782308_1548456_1369538865_a696846538b7b7099ec03265ebbabfc0_3419306.jpg temp/1752782308_1548456_1369538864_9e80a0d225ff867a5efc288e34935d47_49486455.jpg temp/1752782308_1548456_1369538848_2a4bf5f6e0404ca8a018e36c7e87ab74_29011092.jpg temp/1752782308_1548456_1369538845_8b1faf6667efaf0322cca20bd8ba3f5a_183589.jpg temp/1752782308_1548456_1369538841_16f8b9a395d0b69bb85b1acccfe815a3_8532957.jpg temp/1752782308_1548456_1369538809_535a50b27d9eb1be20fefa579451e9c9_45163654.jpg temp/1752782308_1548456_1369538804_c431379999233c7ca8da648909aff838_40658507.jpg temp/1752782308_1548456_1369538793_a097242ac85f6e769c9f6e2b731d5e50_94000805.jpg temp/1752782308_1548456_1369538787_8bb8be8278ea2fb416556a22e4d77262_23188450.jpg temp/1752782308_1548456_1369538782_b96f3c1185d25f436edbe01ca55fc66e_84284456.jpg temp/1752782308_1548456_1369538728_9759c08275d8e32c6077832e21df35bc_31975529.jpg temp/1752782308_1548456_1369538721_8c0551330fa1d6c95aa66afb05fe1b21_81513524.jpg temp/1752782308_1548456_1369538714_7d36302b6d8077dc9e56ed0f8a7ccdda_70793688.jpg temp/1752782308_1548456_1369538709_72b80b51b2a8818e0481ee9b8d979575_19644636.jpg temp/1752782308_1548456_1369538677_0604dc0c204fe9641c4b2ce94079899e_11579977.jpg temp/1752782308_1548456_1369538674_a207a4cfdfd9aa94844d879c77d4a776_53103792.jpg temp/1752782308_1548456_1369538671_7c490fa551b524bb6c0112eded337677_13299494.jpg temp/1752782308_1548456_1369538670_69d01ca78f4b4b09a5fa290b3e3061bf_34786108.jpg temp/1752782308_1548456_1369538669_93b8d1fedfdd8a6811ff773e4bb55ffe_41008481.jpg temp/1752782308_1548456_1369538668_11c21a3ce4ed07d5aeb407c23db2112c_33564334.jpg temp/1752782308_1548456_1369538666_10fecb8ba056998422decfcbc4fd83ba_63352158.jpg temp/1752782308_1548456_1369538665_29b956acedce5dee643fed99527cd57c_19345974.jpg temp/1752782308_1548456_1369538663_96538e2ed30c1cde0565aa4be0ce70a5_63631434.jpg temp/1752782308_1548456_1369538661_f18f2f421a0eb3a2f9cd241c257d5949_8881104.jpg temp/1752782308_1548456_1369538660_578e3b8adde666ef99f186b5e6930412_20682816.jpg temp/1752782308_1548456_1369538659_39d5a8f1d73738f4ea9d4e4a91fd109f_35132666.jpg temp/1752782308_1548456_1369538642_8c5acc3552dad2214e2dd0d6c5c1e2ef_74986080.jpg Found 100 images belonging to 1 classes. begin to do the prediction : ERROR in datou_step_exec, will save and exit ! 2 root error(s) found. (0) Unknown: OSError: image file is truncated (48 bytes not processed) Traceback (most recent call last): File "/usr/local/lib/python3.8/dist-packages/tensorflow/python/ops/script_ops.py", line 243, in __call__ ret = func(*args) File "/usr/local/lib/python3.8/dist-packages/tensorflow/python/autograph/impl/api.py", line 309, in wrapper return func(*args, **kwargs) File "/usr/local/lib/python3.8/dist-packages/tensorflow/python/data/ops/dataset_ops.py", line 785, in generator_py_func values = next(generator_state.get_iterator(iterator_id)) File "/usr/local/lib/python3.8/dist-packages/tensorflow/python/keras/engine/data_adapter.py", line 801, in wrapped_generator for data in generator_fn(): File "/usr/local/lib/python3.8/dist-packages/tensorflow/python/keras/engine/data_adapter.py", line 932, in generator_fn yield x[i] File "/usr/local/lib/python3.8/dist-packages/keras_preprocessing/image/iterator.py", line 65, in __getitem__ return self._get_batches_of_transformed_samples(index_array) File "/usr/local/lib/python3.8/dist-packages/keras_preprocessing/image/iterator.py", line 227, in _get_batches_of_transformed_samples img = load_img(filepaths[j], File "/usr/local/lib/python3.8/dist-packages/keras_preprocessing/image/utils.py", line 138, in load_img img = img.resize(width_height_tuple, resample) File "/home/admin/.local/lib/python3.8/site-packages/PIL/Image.py", line 2157, in resize self.load() File "/home/admin/.local/lib/python3.8/site-packages/PIL/ImageFile.py", line 266, in load raise OSError(msg) OSError: image file is truncated (48 bytes not processed) [[{{node PyFunc}}]] [[IteratorGetNext]] [[IteratorGetNext/_2]] (1) Unknown: OSError: image file is truncated (48 bytes not processed) Traceback (most recent call last): File "/usr/local/lib/python3.8/dist-packages/tensorflow/python/ops/script_ops.py", line 243, in __call__ ret = func(*args) File "/usr/local/lib/python3.8/dist-packages/tensorflow/python/autograph/impl/api.py", line 309, in wrapper return func(*args, **kwargs) File "/usr/local/lib/python3.8/dist-packages/tensorflow/python/data/ops/dataset_ops.py", line 785, in generator_py_func values = next(generator_state.get_iterator(iterator_id)) File "/usr/local/lib/python3.8/dist-packages/tensorflow/python/keras/engine/data_adapter.py", line 801, in wrapped_generator for data in generator_fn(): File "/usr/local/lib/python3.8/dist-packages/tensorflow/python/keras/engine/data_adapter.py", line 932, in generator_fn yield x[i] File "/usr/local/lib/python3.8/dist-packages/keras_preprocessing/image/iterator.py", line 65, in __getitem__ return self._get_batches_of_transformed_samples(index_array) File "/usr/local/lib/python3.8/dist-packages/keras_preprocessing/image/iterator.py", line 227, in _get_batches_of_transformed_samples img = load_img(filepaths[j], File "/usr/local/lib/python3.8/dist-packages/keras_preprocessing/image/utils.py", line 138, in load_img img = img.resize(width_height_tuple, resample) File "/home/admin/.local/lib/python3.8/site-packages/PIL/Image.py", line 2157, in resize self.load() File "/home/admin/.local/lib/python3.8/site-packages/PIL/ImageFile.py", line 266, in load raise OSError(msg) OSError: image file is truncated (48 bytes not processed) [[{{node PyFunc}}]] [[IteratorGetNext]] 0 successful operations. 0 derived errors ignored. [Op:__inference_predict_function_34490] Function call stack: predict_function -> predict_function File "/home/admin/workarea/git/Velours/python/mtr/datou/datou_lib.py", line 2329, in datou_exec output = datou_step_exec(sNext, args, cache, context, map_info, verbose, mtr_user_id) File "/home/admin/workarea/git/Velours/python/mtr/datou/datou_lib.py", line 2523, in datou_step_exec return lib_process.datou_step_tfhub2(param, json_param, args, cache, context, map_info, verbose) File "/home/admin/workarea/git/Velours/python/mtr/datou/lib_step_exec/lib_step_process.py", line 3147, in datou_step_tfhub2 classes, outputs, features = this_model.predict_image_paths(list_paths, keep_aspect_ratio=keep_aspect_ratio, File "/home/admin/workarea/git/Velours/python/mtr/tfhub2/evaluate.py", line 288, in predict_image_paths Y_pred, F_pred = self.model.predict(valid_generator, validation_steps) File "/usr/local/lib/python3.8/dist-packages/tensorflow/python/keras/engine/training.py", line 88, in _method_wrapper return method(self, *args, **kwargs) File "/usr/local/lib/python3.8/dist-packages/tensorflow/python/keras/engine/training.py", line 1268, in predict tmp_batch_outputs = predict_function(iterator) File "/usr/local/lib/python3.8/dist-packages/tensorflow/python/eager/def_function.py", line 580, in __call__ result = self._call(*args, **kwds) File "/usr/local/lib/python3.8/dist-packages/tensorflow/python/eager/def_function.py", line 618, in _call results = self._stateful_fn(*args, **kwds) File "/usr/local/lib/python3.8/dist-packages/tensorflow/python/eager/function.py", line 2420, in __call__ return graph_function._filtered_call(args, kwargs) # pylint: disable=protected-access File "/usr/local/lib/python3.8/dist-packages/tensorflow/python/eager/function.py", line 1661, in _filtered_call return self._call_flat( File "/usr/local/lib/python3.8/dist-packages/tensorflow/python/eager/function.py", line 1745, in _call_flat return self._build_call_outputs(self._inference_function.call( File "/usr/local/lib/python3.8/dist-packages/tensorflow/python/eager/function.py", line 593, in call outputs = execute.execute( File "/usr/local/lib/python3.8/dist-packages/tensorflow/python/eager/execute.py", line 59, in quick_execute tensors = pywrap_tfe.TFE_Py_Execute(ctx._handle, device_name, op_name, [1372533085, 1372533032, 1372533001, 1372532971, 1372532608, 1372532579, 1372532552, 1372532521, 1372532490, 1372532458, 1372532190, 1372532154, 1372532125, 1372532093, 1372532062, 1372532050, 1372531452, 1372531439, 1372531422, 1372531402, 1372531361, 1372531298, 1372304045, 1372304043, 1372304041, 1372304033, 1372304029, 1372303377, 1372303371, 1372303358, 1372303354, 1372303341, 1372302118, 1372302114, 1372302107, 1372302102, 1372302097, 1372302090, 1372301326, 1372301244, 1372301154, 1372301104, 1372301064, 1372301022, 1372300178, 1372300135, 1372300109, 1372300106, 1372300102, 1372300099, 1372299302, 1372299293, 1372299285, 1372299281, 1372299277, 1369539061, 1369539056, 1369539031, 1369539028, 1369539021, 1369539016, 1369539009, 1369539002, 1369538946, 1369538941, 1369538932, 1369538927, 1369538919, 1369538912, 1369538887, 1369538883, 1369538879, 1369538866, 1369538865, 1369538864, 1369538848, 1369538845, 1369538841, 1369538809, 1369538804, 1369538793, 1369538787, 1369538782, 1369538728, 1369538721, 1369538714, 1369538709, 1369538677, 1369538674, 1369538671, 1369538670, 1369538669, 1369538668, 1369538666, 1369538665, 1369538663, 1369538661, 1369538660, 1369538659, 1369538642] begin to insert list_values into mtr_datou_result : length of list_values in save_final : 100 time used for this insertion : 0.17191839218139648 save_final ERROR in last step tfhub_classification2, 2 root error(s) found. (0) Unknown: OSError: image file is truncated (48 bytes not processed) Traceback (most recent call last): File "/usr/local/lib/python3.8/dist-packages/tensorflow/python/ops/script_ops.py", line 243, in __call__ ret = func(*args) File "/usr/local/lib/python3.8/dist-packages/tensorflow/python/autograph/impl/api.py", line 309, in wrapper return func(*args, **kwargs) File "/usr/local/lib/python3.8/dist-packages/tensorflow/python/data/ops/dataset_ops.py", line 785, in generator_py_func values = next(generator_state.get_iterator(iterator_id)) File "/usr/local/lib/python3.8/dist-packages/tensorflow/python/keras/engine/data_adapter.py", line 801, in wrapped_generator for data in generator_fn(): File "/usr/local/lib/python3.8/dist-packages/tensorflow/python/keras/engine/data_adapter.py", line 932, in generator_fn yield x[i] File "/usr/local/lib/python3.8/dist-packages/keras_preprocessing/image/iterator.py", line 65, in __getitem__ return self._get_batches_of_transformed_samples(index_array) File "/usr/local/lib/python3.8/dist-packages/keras_preprocessing/image/iterator.py", line 227, in _get_batches_of_transformed_samples img = load_img(filepaths[j], File "/usr/local/lib/python3.8/dist-packages/keras_preprocessing/image/utils.py", line 138, in load_img img = img.resize(width_height_tuple, resample) File "/home/admin/.local/lib/python3.8/site-packages/PIL/Image.py", line 2157, in resize self.load() File "/home/admin/.local/lib/python3.8/site-packages/PIL/ImageFile.py", line 266, in load raise OSError(msg) OSError: image file is truncated (48 bytes not processed) [[{{node PyFunc}}]] [[IteratorGetNext]] [[IteratorGetNext/_2]] (1) Unknown: OSError: image file is truncated (48 bytes not processed) Traceback (most recent call last): File "/usr/local/lib/python3.8/dist-packages/tensorflow/python/ops/script_ops.py", line 243, in __call__ ret = func(*args) File "/usr/local/lib/python3.8/dist-packages/tensorflow/python/autograph/impl/api.py", line 309, in wrapper return func(*args, **kwargs) File "/usr/local/lib/python3.8/dist-packages/tensorflow/python/data/ops/dataset_ops.py", line 785, in generator_py_func values = next(generator_state.get_iterator(iterator_id)) File "/usr/local/lib/python3.8/dist-packages/tensorflow/python/keras/engine/data_adapter.py", line 801, in wrapped_generator for data in generator_fn(): File "/usr/local/lib/python3.8/dist-packages/tensorflow/python/keras/engine/data_adapter.py", line 932, in generator_fn yield x[i] File "/usr/local/lib/python3.8/dist-packages/keras_preprocessing/image/iterator.py", line 65, in __getitem__ return self._get_batches_of_transformed_samples(index_array) File "/usr/local/lib/python3.8/dist-packages/keras_preprocessing/image/iterator.py", line 227, in _get_batches_of_transformed_samples img = load_img(filepaths[j], File "/usr/local/lib/python3.8/dist-packages/keras_preprocessing/image/utils.py", line 138, in load_img img = img.resize(width_height_tuple, resample) File "/home/admin/.local/lib/python3.8/site-packages/PIL/Image.py", line 2157, in resize self.load() File "/home/admin/.local/lib/python3.8/site-packages/PIL/ImageFile.py", line 266, in load raise OSError(msg) OSError: image file is truncated (48 bytes not processed) [[{{node PyFunc}}]] [[IteratorGetNext]] 0 successful operations. 0 derived errors ignored. [Op:__inference_predict_function_34490] Function call stack: predict_function -> predict_function time spend for datou_step_exec : 19.03957223892212 time spend to save output : 0.18297457695007324 total time spend for step 0 : 19.222546815872192 need to delete datou_research and reload, so keep current state 1 caffe_path_current : About to save ! 2 After save, about to update current ! 17.68user 5.63system 0:41.36elapsed 56%CPU (0avgtext+0avgdata 2836116maxresident)k 4360inputs+266200outputs (75major+1042545minor)pagefaults 0swaps