Xornotor commited on
Commit
9cebadf
1 Parent(s): 8451adc

Renamed pkl to HDF5

Browse files
Checkpoints/{exp3multif0.pkl → exp3multif0.h5} RENAMED
File without changes
app_test.ipynb CHANGED
@@ -2,9 +2,28 @@
2
  "cells": [
3
  {
4
  "cell_type": "code",
5
- "execution_count": 2,
6
  "metadata": {},
7
  "outputs": [
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8
  {
9
  "name": "stdout",
10
  "output_type": "stream",
@@ -30,7 +49,7 @@
30
  "data": {
31
  "text/plain": []
32
  },
33
- "execution_count": 2,
34
  "metadata": {},
35
  "output_type": "execute_result"
36
  },
@@ -41,8 +60,8 @@
41
  "1/1 [==============================] - 10s 10s/step\n",
42
  "1/1 [==============================] - 10s 10s/step\n",
43
  "1/1 [==============================] - 5s 5s/step\n",
44
- "1/1 [==============================] - 1s 885ms/step\n",
45
- "1/1 [==============================] - 0s 496ms/step\n"
46
  ]
47
  }
48
  ],
 
2
  "cells": [
3
  {
4
  "cell_type": "code",
5
+ "execution_count": 1,
6
  "metadata": {},
7
  "outputs": [
8
+ {
9
+ "name": "stderr",
10
+ "output_type": "stream",
11
+ "text": [
12
+ "/home/and/miniconda3/envs/cqfe/lib/python3.11/site-packages/tqdm/auto.py:21: TqdmWarning: IProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install.html\n",
13
+ " from .autonotebook import tqdm as notebook_tqdm\n",
14
+ "2024-08-03 12:21:43.656166: I tensorflow/tsl/cuda/cudart_stub.cc:28] Could not find cuda drivers on your machine, GPU will not be used.\n",
15
+ "2024-08-03 12:21:43.696083: E tensorflow/compiler/xla/stream_executor/cuda/cuda_dnn.cc:9342] Unable to register cuDNN factory: Attempting to register factory for plugin cuDNN when one has already been registered\n",
16
+ "2024-08-03 12:21:43.696120: E tensorflow/compiler/xla/stream_executor/cuda/cuda_fft.cc:609] Unable to register cuFFT factory: Attempting to register factory for plugin cuFFT when one has already been registered\n",
17
+ "2024-08-03 12:21:43.696157: E tensorflow/compiler/xla/stream_executor/cuda/cuda_blas.cc:1518] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered\n",
18
+ "2024-08-03 12:21:43.703335: I tensorflow/tsl/cuda/cudart_stub.cc:28] Could not find cuda drivers on your machine, GPU will not be used.\n",
19
+ "2024-08-03 12:21:43.704201: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.\n",
20
+ "To enable the following instructions: AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.\n",
21
+ "2024-08-03 12:21:44.529426: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT\n",
22
+ "2024-08-03 12:21:45.118823: I tensorflow/compiler/xla/stream_executor/cuda/cuda_gpu_executor.cc:894] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero. See more at https://github.com/torvalds/linux/blob/v6.0/Documentation/ABI/testing/sysfs-bus-pci#L344-L355\n",
23
+ "2024-08-03 12:21:45.162904: W tensorflow/core/common_runtime/gpu/gpu_device.cc:2211] Cannot dlopen some GPU libraries. Please make sure the missing libraries mentioned above are installed properly if you would like to use GPU. Follow the guide at https://www.tensorflow.org/install/gpu for how to download and setup the required libraries for your platform.\n",
24
+ "Skipping registering GPU devices...\n"
25
+ ]
26
+ },
27
  {
28
  "name": "stdout",
29
  "output_type": "stream",
 
49
  "data": {
50
  "text/plain": []
51
  },
52
+ "execution_count": 1,
53
  "metadata": {},
54
  "output_type": "execute_result"
55
  },
 
60
  "1/1 [==============================] - 10s 10s/step\n",
61
  "1/1 [==============================] - 10s 10s/step\n",
62
  "1/1 [==============================] - 5s 5s/step\n",
63
+ "1/1 [==============================] - 1s 871ms/step\n",
64
+ "1/1 [==============================] - 1s 506ms/step\n"
65
  ]
66
  }
67
  ],
cqfe_models.py CHANGED
@@ -1,3 +1,4 @@
 
1
  import tensorflow as tf
2
  from tensorflow.keras import Model
3
  from tensorflow.keras.optimizers import Adam
@@ -295,7 +296,7 @@ def late_deep_cnn_model():
295
  optimizer='adam'
296
  )
297
 
298
- model.load_weights('./Checkpoints/exp3multif0.pkl')
299
 
300
  return model
301
 
 
1
+ import pickle
2
  import tensorflow as tf
3
  from tensorflow.keras import Model
4
  from tensorflow.keras.optimizers import Adam
 
296
  optimizer='adam'
297
  )
298
 
299
+ model.load_weights('./Checkpoints/exp3multif0.h5')
300
 
301
  return model
302