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 : 4152663 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 : 761>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/4152663/ 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 : 14.858280897140503 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 Sun Jul 13 05:19:42 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-13 05:19:44.761183: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcuda.so.1 2025-07-13 05:19:44.814929: 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-13 05:19:44.815181: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1 2025-07-13 05:19:44.816973: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcublas.so.10 2025-07-13 05:19:44.818633: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcufft.so.10 2025-07-13 05:19:44.818909: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcurand.so.10 2025-07-13 05:19:44.821002: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusolver.so.10 2025-07-13 05:19:44.821921: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusparse.so.10 2025-07-13 05:19:44.825739: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudnn.so.7 2025-07-13 05:19:44.827181: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1703] Adding visible gpu devices: 0 2025-07-13 05:19:44.827548: 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-13 05:19:44.851391: I tensorflow/core/platform/profile_utils/cpu_utils.cc:102] CPU Frequency: 3493035000 Hz 2025-07-13 05:19:44.853391: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x7f525c000b60 initialized for platform Host (this does not guarantee that XLA will be used). Devices: 2025-07-13 05:19:44.853434: I tensorflow/compiler/xla/service/service.cc:176] StreamExecutor device (0): Host, Default Version 2025-07-13 05:19:44.973549: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x3be38100 initialized for platform CUDA (this does not guarantee that XLA will be used). Devices: 2025-07-13 05:19:44.973583: I tensorflow/compiler/xla/service/service.cc:176] StreamExecutor device (0): NVIDIA GeForce RTX 2080 Ti, Compute Capability 7.5 2025-07-13 05:19:44.974965: 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-13 05:19:44.975055: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1 2025-07-13 05:19:44.975085: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcublas.so.10 2025-07-13 05:19:44.975112: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcufft.so.10 2025-07-13 05:19:44.975138: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcurand.so.10 2025-07-13 05:19:44.975188: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusolver.so.10 2025-07-13 05:19:44.975218: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusparse.so.10 2025-07-13 05:19:44.975245: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudnn.so.7 2025-07-13 05:19:44.977358: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1703] Adding visible gpu devices: 0 2025-07-13 05:19:44.977423: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1 2025-07-13 05:19:44.978634: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1102] Device interconnect StreamExecutor with strength 1 edge matrix: 2025-07-13 05:19:44.978658: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1108] 0 2025-07-13 05:19:44.978671: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1121] 0: N 2025-07-13 05:19:44.980886: 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.439834833145142 time used to load_weights : 0.16578936576843262 0it [00:00, ?it/s] 100it [00:00, 1442.88it/s]2025-07-13 05:19:54.484958: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcublas.so.10 2025-07-13 05:19:54.720760: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudnn.so.7 2025-07-13 05:19:57.513883: 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/1752376767_4152663_1371949833_fa8fdf9ecc8f0eb5b90e7c3bbc34d0ca.jpg temp/1752376767_4152663_1369539064_78e5dded03bdd8a819966cfdff5daed6_60775681.jpg temp/1752376767_4152663_1369539061_0e049feaeabf67efe229ad14609b1aea_62652504.jpg temp/1752376767_4152663_1369539056_a6f6aceb40f358a5fa6d28a274ae3a49_8164364.jpg temp/1752376767_4152663_1369539031_db35fa5b1bb9b770f57a13eb6a1ef94d_6389179.jpg temp/1752376767_4152663_1369539028_97ecbb140400a5ccbe6a08043f14a645_91009573.jpg temp/1752376767_4152663_1369539021_f77e5090bb96adb18410197b470a2e15_80747426.jpg temp/1752376767_4152663_1369539016_426abd957166903c7005c1e50a6b221b_8729083.jpg temp/1752376767_4152663_1369539009_c916832b4a8b42f4f156bc51dfbf3b82_17808480.jpg temp/1752376767_4152663_1369539002_f62c9be8b49e04c85f8f07299ed1ac98_98613331.jpg temp/1752376767_4152663_1369538946_c707fe84249cbeaf88a546a997dc2343_765814.jpg temp/1752376767_4152663_1369538941_e8bafa1d8e4bcdd73f35d05918dccd7f_19019599.jpg temp/1752376767_4152663_1369538932_5db83211126d3b4d93ede446fc7a1c86_26671265.jpg temp/1752376767_4152663_1369538927_de870f186964535a97a98f564a2cbba9_20114578.jpg temp/1752376767_4152663_1369538919_f8c7e5d97c50a8a8a170c210fa4ea862_84546381.jpg temp/1752376767_4152663_1369538912_7db27cf82dee35f506a77f85a65e1398_71750671.jpg temp/1752376767_4152663_1369538887_6c9147471b3fe373664f7974b0220c4a_44222159.jpg temp/1752376767_4152663_1369538883_b0679ff3a65da62c56ff26525a161e3b_65710931.jpg temp/1752376767_4152663_1369538879_1dd8854cfa75ccd199fd938034c4e17b_28073737.jpg temp/1752376767_4152663_1369538866_eeb5aeefc67420461a9d3a9d50f6d456_57411135.jpg temp/1752376767_4152663_1369538865_a696846538b7b7099ec03265ebbabfc0_3419306.jpg temp/1752376767_4152663_1369538864_9e80a0d225ff867a5efc288e34935d47_49486455.jpg temp/1752376767_4152663_1369538848_2a4bf5f6e0404ca8a018e36c7e87ab74_29011092.jpg temp/1752376767_4152663_1369538845_8b1faf6667efaf0322cca20bd8ba3f5a_183589.jpg temp/1752376767_4152663_1369538841_16f8b9a395d0b69bb85b1acccfe815a3_8532957.jpg temp/1752376767_4152663_1369538809_535a50b27d9eb1be20fefa579451e9c9_45163654.jpg temp/1752376767_4152663_1369538804_c431379999233c7ca8da648909aff838_40658507.jpg temp/1752376767_4152663_1369538793_a097242ac85f6e769c9f6e2b731d5e50_94000805.jpg temp/1752376767_4152663_1369538787_8bb8be8278ea2fb416556a22e4d77262_23188450.jpg temp/1752376767_4152663_1369538782_b96f3c1185d25f436edbe01ca55fc66e_84284456.jpg temp/1752376767_4152663_1369538728_9759c08275d8e32c6077832e21df35bc_31975529.jpg temp/1752376767_4152663_1369538721_8c0551330fa1d6c95aa66afb05fe1b21_81513524.jpg temp/1752376767_4152663_1369538714_7d36302b6d8077dc9e56ed0f8a7ccdda_70793688.jpg temp/1752376767_4152663_1369538709_72b80b51b2a8818e0481ee9b8d979575_19644636.jpg temp/1752376767_4152663_1369538677_0604dc0c204fe9641c4b2ce94079899e_11579977.jpg temp/1752376767_4152663_1369538674_a207a4cfdfd9aa94844d879c77d4a776_53103792.jpg temp/1752376767_4152663_1369538671_7c490fa551b524bb6c0112eded337677_13299494.jpg temp/1752376767_4152663_1369538670_69d01ca78f4b4b09a5fa290b3e3061bf_34786108.jpg temp/1752376767_4152663_1369538669_93b8d1fedfdd8a6811ff773e4bb55ffe_41008481.jpg temp/1752376767_4152663_1369538668_11c21a3ce4ed07d5aeb407c23db2112c_33564334.jpg temp/1752376767_4152663_1369538666_10fecb8ba056998422decfcbc4fd83ba_63352158.jpg temp/1752376767_4152663_1369538665_29b956acedce5dee643fed99527cd57c_19345974.jpg temp/1752376767_4152663_1369538663_96538e2ed30c1cde0565aa4be0ce70a5_63631434.jpg temp/1752376767_4152663_1369538661_f18f2f421a0eb3a2f9cd241c257d5949_8881104.jpg temp/1752376767_4152663_1369538660_578e3b8adde666ef99f186b5e6930412_20682816.jpg temp/1752376767_4152663_1369538659_39d5a8f1d73738f4ea9d4e4a91fd109f_35132666.jpg temp/1752376767_4152663_1369538642_8c5acc3552dad2214e2dd0d6c5c1e2ef_74986080.jpg temp/1752376767_4152663_1369538638_b7b3ad62c426af35500b1a20cdff5653_73245971.jpg temp/1752376767_4152663_1369538634_16a678c440ec83dc3acee98093cd1499_78238033.jpg temp/1752376767_4152663_1369538631_125c35ed0a95ad3730dfc81ce627b335_82430258.jpg temp/1752376767_4152663_1369538628_d16824642f6296a74c2ae26ab64d179a_67750380.jpg temp/1752376767_4152663_1369538625_d84ccbd4cce7c830d7da0a0f454068f4_39240596.jpg temp/1752376767_4152663_1369538525_1eaa42d044a8788d33cbe812ea87fa69_9469493.jpg temp/1752376767_4152663_1369538516_c24ee0138b2ce9aeff459b5b6b612d0b_47280204.jpg temp/1752376767_4152663_1369538509_c1f3de86d1c274c35b336d9bb8508bf9_70271312.jpg temp/1752376767_4152663_1369538504_5994dea1779130df7634bad906ee5635_30269003.jpg temp/1752376767_4152663_1369538499_d1e437bdf64af96d5391c083ebc66eb6_10917066.jpg temp/1752376767_4152663_1369538493_682bd201b9b5237dc793b8628934c10b_78444263.jpg temp/1752376767_4152663_1369538445_007059b0d7ac51ec3e5a9db87830a002_67283641.jpg temp/1752376767_4152663_1369538441_609825c44544d7db1cf0ef01eda8c5ce_82694783.jpg temp/1752376767_4152663_1369538437_6257985e17b2a4ac45b6ea64ef7f9448_28318138.jpg temp/1752376767_4152663_1369538433_54ad392cc966545b9590b0915e380ce7_84989281.jpg temp/1752376767_4152663_1369538428_357f72043155810e0a96768c336d75ab_44144908.jpg temp/1752376767_4152663_1369538399_bdb9132e11e5b7384e710a1b48fe1593_79769680.jpg temp/1752376767_4152663_1369538396_c4cb36b3ed65c6ce568c990b2aacf1ca_88539706.jpg temp/1752376767_4152663_1369538393_c1bb8c2fa1e316ca79e4ad65003bc2d9_41514693.jpg temp/1752376767_4152663_1369538386_2a7ce019197c4ba093c09fd5868d6c8f_66898186.jpg temp/1752376767_4152663_1369538383_f26b02e780c06622fd0a676f219a63bc_33943468.jpg temp/1752376767_4152663_1369538380_65a557f68c7ce4037a51a7eb13d0d618_81223696.jpg temp/1752376767_4152663_1369538356_de07036f6e1e44241a87f216d6278acf_94123966.jpg temp/1752376767_4152663_1369538353_79d5b8bd8701b8145d92a1b6fc1da87b_79897561.jpg temp/1752376767_4152663_1369538349_5610d23956b350df3f47d2410380dc71_15562825.jpg temp/1752376767_4152663_1369538346_3f34b41f7fe77c299dd5ecbc4e57ecb1_37503071.jpg temp/1752376767_4152663_1369538345_23ce6a1d808f332a9f55c99dfa60e002_48416846.jpg temp/1752376767_4152663_1369538343_ae2cd3fd2289f9175fa77afc678bfa0e_59804870.jpg temp/1752376767_4152663_1369538342_0b3c1759b7757bad4a85374c8ae35425_44411708.jpg temp/1752376767_4152663_1369538340_c02cae2f199ac9d70133c49abc575dcd_73921221.jpg temp/1752376767_4152663_1369538338_4be3346c392f98a47398ffc58acb0c6a_33257214.jpg temp/1752376767_4152663_1369538337_42bebb385ed0fd26a67a845a8284d537_81327641.jpg temp/1752376767_4152663_1369538336_124fb66c850fad8d64c876ef7eea806b_82677502.jpg temp/1752376767_4152663_1369538327_6a437cf5e3c166b0ca55c55e1d38ef5b_96920444.jpg temp/1752376767_4152663_1369538326_3684ca2c751ae4ba2c7b3fe8dda27013_5790498.jpg temp/1752376767_4152663_1369538325_ec02fe83c6444b6a24430fd617a70016_60397283.jpg temp/1752376767_4152663_1369538324_95a263757b6bcae1872f8560f92c9ba3_63555569.jpg temp/1752376767_4152663_1369538323_d981d3fc023dd0389dc0d78302597040_56862677.jpg temp/1752376767_4152663_1369538322_129ac8cba02bfa0ed9246d670b5938c0_62787345.jpg temp/1752376767_4152663_1369538306_729502a9ef8f1d806e35ad2ef67c0aa8_4813999.jpg temp/1752376767_4152663_1369538305_a4f84e5e3a597a3ee3ada6f8fe9c3eac_12071823.jpg temp/1752376767_4152663_1369538304_b12d225a6b491680be85d9381b052f75_81601632.jpg temp/1752376767_4152663_1369538303_36cb558861281135db70d61495074071_71120751.jpg temp/1752376767_4152663_1369538302_3ec7f1c3fb9c792097997cd96c817353_32416889.jpg temp/1752376767_4152663_1369538301_2a9b93ffebadb0d73d1cbc5406e16371_92700482.jpg temp/1752376767_4152663_1369538297_ac41d51d7497ef30618e99604544a29a_12708161.jpg temp/1752376767_4152663_1369538296_804508e7d36d659d780ef0e4b0765e94_62540572.jpg temp/1752376767_4152663_1369538295_f2ed8753243bc8898fe7381b12bdcafe_12663277.jpg temp/1752376767_4152663_1369538293_0ac8c526acb6906fd152048c8327a639_27409557.jpg temp/1752376767_4152663_1369538290_d05dcff8a5f45b89259d727fb0c4f3b5_2135321.jpg temp/1752376767_4152663_1369538289_a004f0841d2fde56983c2365892d35ed_50681169.jpg temp/1752376767_4152663_1369538288_d2e36ca97da21af7c84b788405b4ce4e_96445948.jpg temp/1752376767_4152663_1369538284_bbed8a654981efa225bf7c2f58b04f5c_40085383.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, [1371949833, 1369539064, 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, 1369538638, 1369538634, 1369538631, 1369538628, 1369538625, 1369538525, 1369538516, 1369538509, 1369538504, 1369538499, 1369538493, 1369538445, 1369538441, 1369538437, 1369538433, 1369538428, 1369538399, 1369538396, 1369538393, 1369538386, 1369538383, 1369538380, 1369538356, 1369538353, 1369538349, 1369538346, 1369538345, 1369538343, 1369538342, 1369538340, 1369538338, 1369538337, 1369538336, 1369538327, 1369538326, 1369538325, 1369538324, 1369538323, 1369538322, 1369538306, 1369538305, 1369538304, 1369538303, 1369538302, 1369538301, 1369538297, 1369538296, 1369538295, 1369538293, 1369538290, 1369538289, 1369538288, 1369538284] begin to insert list_values into mtr_datou_result : length of list_values in save_final : 100 time used for this insertion : 0.1930677890777588 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 : 15.306769847869873 time spend to save output : 0.19777178764343262 total time spend for step 0 : 15.504541635513306 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 ! 14.53user 5.38system 0:34.08elapsed 58%CPU (0avgtext+0avgdata 2883804maxresident)k 288inputs+222208outputs (17major+1000529minor)pagefaults 0swaps