1700bee
user_wwq 3 years ago
15 changed file(s) with 33 addition(s) and 35 deletion(s). Raw diff Collapse all Expand all
22 {
33 "cell_type": "code",
44 "execution_count": 2,
5 "id": "aa198a5c",
5 "id": "dc3b490c",
66 "metadata": {},
77 "outputs": [
88 {
99 "name": "stderr",
1010 "output_type": "stream",
1111 "text": [
12 "2022-07-11 18:02:37.037995: W tensorflow/stream_executor/platform/default/dso_loader.cc:59] Could not load dynamic library 'libcudart.so.10.1'; dlerror: libcudart.so.10.1: cannot open shared object file: No such file or directory\n",
13 "2022-07-11 18:02:37.038035: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.\n"
12 "2022-07-21 21:07:47.961364: W tensorflow/stream_executor/platform/default/dso_loader.cc:59] Could not load dynamic library 'libcudart.so.10.1'; dlerror: libcudart.so.10.1: cannot open shared object file: No such file or directory\n",
13 "2022-07-21 21:07:47.961398: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.\n"
1414 ]
1515 },
1616 {
3838 },
3939 {
4040 "cell_type": "code",
41 "execution_count": 4,
42 "id": "0edef439",
43 "metadata": {},
44 "outputs": [],
45 "source": [
46 "model_PATH='./src/output/models/model2000.ckpt'\n",
41 "execution_count": 3,
42 "id": "b3725e89",
43 "metadata": {},
44 "outputs": [],
45 "source": [
46 "model_PATH='./src/output/models/model227000.ckpt'\n",
4747 "out_PATH='./results/test_output.png'\n",
4848 "IMAGE_SZ = 128"
4949 ]
5050 },
5151 {
5252 "cell_type": "code",
53 "execution_count": 5,
54 "id": "2b461a3a",
53 "execution_count": 4,
54 "id": "db355c13",
5555 "metadata": {},
5656 "outputs": [],
5757 "source": [
6767 },
6868 {
6969 "cell_type": "code",
70 "execution_count": 12,
71 "id": "57ac9ea3",
70 "execution_count": 5,
71 "id": "921f7ee4",
7272 "metadata": {},
7373 "outputs": [],
7474 "source": [
8080 },
8181 {
8282 "cell_type": "code",
83 "execution_count": 7,
84 "id": "41670ee1",
83 "execution_count": 6,
84 "id": "e654a93b",
8585 "metadata": {},
8686 "outputs": [],
8787 "source": [
9494 },
9595 {
9696 "cell_type": "code",
97 "execution_count": 8,
98 "id": "93bb30e9",
97 "execution_count": 7,
98 "id": "c7c78bd4",
9999 "metadata": {},
100100 "outputs": [],
101101 "source": [
116116 },
117117 {
118118 "cell_type": "code",
119 "execution_count": 10,
120 "id": "0c3712cb",
119 "execution_count": 8,
120 "id": "112cb0a2",
121121 "metadata": {},
122122 "outputs": [],
123123 "source": [
140140 },
141141 {
142142 "cell_type": "code",
143 "execution_count": 13,
144 "id": "720ed042",
143 "execution_count": 9,
144 "id": "bd28ad9e",
145145 "metadata": {},
146146 "outputs": [
147147 {
157157 "WARNING:tensorflow:From /home/jovyan/work/src/model.py:79: conv2d_transpose (from tensorflow.python.keras.legacy_tf_layers.convolutional) is deprecated and will be removed in a future version.\n",
158158 "Instructions for updating:\n",
159159 "Use `tf.keras.layers.Conv2DTranspose` instead.\n",
160 "INFO:tensorflow:Restoring parameters from ./src/output/models/model2000.ckpt\n"
160 "INFO:tensorflow:Restoring parameters from ./src/output/models/model227000.ckpt\n"
161161 ]
162162 },
163163 {
164164 "name": "stderr",
165165 "output_type": "stream",
166166 "text": [
167 "2022-07-11 18:03:35.362439: W tensorflow/stream_executor/platform/default/dso_loader.cc:59] Could not load dynamic library 'libcuda.so.1'; dlerror: libcuda.so.1: cannot open shared object file: No such file or directory\n",
168 "2022-07-11 18:03:35.362468: W tensorflow/stream_executor/cuda/cuda_driver.cc:312] failed call to cuInit: UNKNOWN ERROR (303)\n",
169 "2022-07-11 18:03:35.362489: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:156] kernel driver does not appear to be running on this host (notebook): /proc/driver/nvidia/version does not exist\n",
170 "2022-07-11 18:03:35.362763: I tensorflow/core/platform/cpu_feature_guard.cc:142] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN)to use the following CPU instructions in performance-critical operations: AVX2 AVX512F FMA\n",
167 "2022-07-21 21:07:52.404094: W tensorflow/stream_executor/platform/default/dso_loader.cc:59] Could not load dynamic library 'libcuda.so.1'; dlerror: libcuda.so.1: cannot open shared object file: No such file or directory\n",
168 "2022-07-21 21:07:52.404122: W tensorflow/stream_executor/cuda/cuda_driver.cc:312] failed call to cuInit: UNKNOWN ERROR (303)\n",
169 "2022-07-21 21:07:52.404144: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:156] kernel driver does not appear to be running on this host (notebook): /proc/driver/nvidia/version does not exist\n",
170 "2022-07-21 21:07:52.404443: I tensorflow/core/platform/cpu_feature_guard.cc:142] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN)to use the following CPU instructions in performance-critical operations: AVX2 AVX512F FMA\n",
171171 "To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.\n",
172 "2022-07-11 18:03:35.385100: I tensorflow/core/platform/profile_utils/cpu_utils.cc:104] CPU Frequency: 2500000000 Hz\n",
173 "2022-07-11 18:03:35.399501: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x60885a0 initialized for platform Host (this does not guarantee that XLA will be used). Devices:\n",
174 "2022-07-11 18:03:35.399527: I tensorflow/compiler/xla/service/service.cc:176] StreamExecutor device (0): Host, Default Version\n"
172 "2022-07-21 21:07:52.426464: I tensorflow/core/platform/profile_utils/cpu_utils.cc:104] CPU Frequency: 2500000000 Hz\n",
173 "2022-07-21 21:07:52.440496: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x441b180 initialized for platform Host (this does not guarantee that XLA will be used). Devices:\n",
174 "2022-07-21 21:07:52.440522: I tensorflow/compiler/xla/service/service.cc:176] StreamExecutor device (0): Host, Default Version\n"
175175 ]
176176 },
177177 {
178178 "name": "stdout",
179179 "output_type": "stream",
180180 "text": [
181 "Runned time: 4.791 s\n"
181 "Runned time: 0.204 s\n"
182182 ]
183183 },
184184 {
187187 "{'Output': './results/test_output.png'}"
188188 ]
189189 },
190 "execution_count": 13,
190 "execution_count": 9,
191191 "metadata": {},
192192 "output_type": "execute_result"
193193 }
11 Photo:
22 name: Photo
33 value_type: img
4 description: 请传入128*128的图片
4 description: 请传入128*128的待扩展图片
55 output:
66 Output:
77 name: Output
77 import os
88 import sys
99
10 model_PATH='./src/output/models/model2000.ckpt'
10 model_PATH='./src/output/models/model227000.ckpt'
1111 out_PATH='./results/test_output.png'
1212 IMAGE_SZ = 128
1313
Binary diff not shown
+0
-2
src/output/models/checkpoint less more
0 model_checkpoint_path: "model0.ckpt"
1 all_model_checkpoint_paths: "model0.ckpt"
src/output/models/model0.ckpt.data-00000-of-00001 less more
Binary diff not shown
src/output/models/model0.ckpt.index less more
Binary diff not shown
src/output/models/model0.ckpt.meta less more
Binary diff not shown
src/output/models/model2000.ckpt.data-00000-of-00001 less more
Binary diff not shown
src/output/models/model2000.ckpt.index less more
Binary diff not shown
src/output/models/model2000.ckpt.meta less more
Binary diff not shown