mirror of
https://github.com/sbrl/research-rainfallradar
synced 2024-11-16 22:53:00 +00:00
153 lines
480 KiB
Text
153 lines
480 KiB
Text
|
{
|
||
|
"cells": [
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 1,
|
||
|
"id": "54f827d5-35f8-4b9d-b657-7c361907eb66",
|
||
|
"metadata": {},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"name": "stderr",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"2023-02-23 16:17:12.682973: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libcudart.so.11.0'; dlerror: libcudart.so.11.0: cannot open shared object file: No such file or directory\n",
|
||
|
"2023-02-23 16:17:12.682987: 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"
|
||
|
]
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"import tensorflow as tf\n",
|
||
|
"import matplotlib.pyplot as plt\n",
|
||
|
"\n",
|
||
|
"%matplotlib widget"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 2,
|
||
|
"id": "f61829a6-9d21-4286-aec9-73352cb57dff",
|
||
|
"metadata": {},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"name": "stderr",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"2023-02-23 16:17:14.892338: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:975] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\n",
|
||
|
"2023-02-23 16:17:14.892537: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libcudart.so.11.0'; dlerror: libcudart.so.11.0: cannot open shared object file: No such file or directory\n",
|
||
|
"2023-02-23 16:17:14.892589: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libcublas.so.11'; dlerror: libcublas.so.11: cannot open shared object file: No such file or directory\n",
|
||
|
"2023-02-23 16:17:14.892638: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libcublasLt.so.11'; dlerror: libcublasLt.so.11: cannot open shared object file: No such file or directory\n",
|
||
|
"2023-02-23 16:17:14.892685: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libcufft.so.10'; dlerror: libcufft.so.10: cannot open shared object file: No such file or directory\n",
|
||
|
"2023-02-23 16:17:14.892732: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libcurand.so.10'; dlerror: libcurand.so.10: cannot open shared object file: No such file or directory\n",
|
||
|
"2023-02-23 16:17:14.892780: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libcusolver.so.11'; dlerror: libcusolver.so.11: cannot open shared object file: No such file or directory\n",
|
||
|
"2023-02-23 16:17:14.892826: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libcusparse.so.11'; dlerror: libcusparse.so.11: cannot open shared object file: No such file or directory\n",
|
||
|
"2023-02-23 16:17:14.892872: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libcudnn.so.8'; dlerror: libcudnn.so.8: cannot open shared object file: No such file or directory\n",
|
||
|
"2023-02-23 16:17:14.892879: W tensorflow/core/common_runtime/gpu/gpu_device.cc:1850] 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",
|
||
|
"Skipping registering GPU devices...\n",
|
||
|
"2023-02-23 16:17:14.893690: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: AVX2 FMA\n",
|
||
|
"To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.\n"
|
||
|
]
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"tensor_in = tf.random.uniform([16,16,3])\n",
|
||
|
"\n",
|
||
|
"interpolation_modes = ([\"area\", \"bicubic\", \"bilinear\", \"gaussian\", \"lanczos3\", \"lanczos5\", \"mitchellcubic\", \"nearest\"])\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 3,
|
||
|
"id": "80947a57-0162-4ec7-9239-e129d7a54ac7",
|
||
|
"metadata": {},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"def do_upsample_test(tensor_in, interpolation):\n",
|
||
|
"\tmodel = tf.keras.Sequential([\n",
|
||
|
"\t\ttf.keras.layers.UpSampling2D(size=4, interpolation=interpolation)\n",
|
||
|
"\t])\n",
|
||
|
"\t\n",
|
||
|
"\treturn tf.squeeze(model(tf.expand_dims(tensor_in, 0)))"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 4,
|
||
|
"id": "d79df324",
|
||
|
"metadata": {},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"name": "stderr",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"Clipping input data to the valid range for imshow with RGB data ([0..1] for floats or [0..255] for integers).\n",
|
||
|
"Clipping input data to the valid range for imshow with RGB data ([0..1] for floats or [0..255] for integers).\n",
|
||
|
"Clipping input data to the valid range for imshow with RGB data ([0..1] for floats or [0..255] for integers).\n",
|
||
|
"Clipping input data to the valid range for imshow with RGB data ([0..1] for floats or [0..255] for integers).\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"data": {
|
||
|
"application/vnd.jupyter.widget-view+json": {
|
||
|
"model_id": "99877c3e493b4e57a14e3a6391224738",
|
||
|
"version_major": 2,
|
||
|
"version_minor": 0
|
||
|
},
|
||
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAoAAAAHgCAYAAAA10dzkAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMSwgaHR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ic/XJ/+9Kd/wPM2PniaCfgTjJQS3/Ed38HDH/5wQgg45wgh8OY3v5k/+ZM/OXL8F33RF93t71e/+tWcP3+e5zznOaSUrr5KKfzNv/k3ee1rX3vVfPOhnqtxbfiKr/iKu/39JV/yJTjneOUrX3ns8b/6q79K3/f87b/9tz+m7bg323KS+HCu+weLiPDMZz7zbtse+chH8va3v/3q37/8y7/M6dOneeYzn3m3MeLRj340N910093Myn/2Z3/Gl3/5l3PTTTdhrcV7z5Of/GSAD2o8Oqms12t+//d/ny/4gi8ghHB1+2q1OnJ//vAP/5DP//zP59y5c1ev8Vd/9VeTc+ZNb3rTh3zuxz3ucbz+9a/n+c9/Pr/+67/O5cuXjz3mJ3/yJ3nZy17G7/7u7x4x4d4TH0pbb7rpJh73uMfdbdv798XGR0YzAX+C8cIXvpAf/MEf5B/9o3/Ek5/8ZM6cOYMxhq/7uq9ju90eOf7mm2++299XzAtf/MVffI/nOH/+PMvl8kM+V+PacNNNN93tb+cc586du0fzyx133MF97nMfjLm2870PtR33ZltOEh/Odf9gWSwW9H1/t21d1zGO49W/b7/9di5evHg3YfK+XElTc3h4yBOf+ET6vudlL3sZD37wg1ksFld9GN9/jFgsFuzv73/E3+ETgQsXLqCq3HjjjUf2ve+22267jSc+8Yk85CEP4fu///u
|
||
|
"text/html": [
|
||
|
"\n",
|
||
|
" <div style=\"display: inline-block;\">\n",
|
||
|
" <div class=\"jupyter-widgets widget-label\" style=\"text-align: center;\">\n",
|
||
|
" Figure\n",
|
||
|
" </div>\n",
|
||
|
" <img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAoAAAAHgCAYAAAA10dzkAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/YYfK9AAAACXBIWXMAAA9hAAAPYQGoP6dpAAEAAElEQVR4nOz9ebQ1WV3fj78+e6qqc869z9QjLTSCjEHghwQDhkmDRBQR9Wuc0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/iKu/39JV/yJTjneOUrX3ns8b/6q79K3/f87b/9tz+m7bg323KS+HCu+weLiPDMZz7zbtse+chH8va3v/3q37/8y7/M6dOneeYzn3m3MeLRj340N910093Myn/2Z3/Gl3/5l3PTTTdhrcV7z5Of/GSAD2o8Oqms12t+//d/ny/4gi8ghHB1+2q1OnJ//vAP/5DP//zP59y5c1ev8Vd/9VeTc+ZNb3rTh3zuxz3ucbz+9a/n+c9/Pr/+67/O5cuXjz3mJ3/yJ3nZy17G7/7u7x4x4d4TH0pbb7rpJh73uMfdbdv798XGR0YzAX+C8cIXvpAf/MEf5B/9o3/Ek5/8ZM6cOYMxhq/7uq9ju90eOf7mm2++299XzAtf/MVffI/nOH/+PMvl8kM+V+PacNNNN93tb+cc586du0fzyx133MF97nMfjLm2870PtR33ZltOEh/Odf9gWSwW9H1/t21d1zGO49W/b7/9di5evHg3YfK+XElTc3h4yBOf+ET6vudlL3sZD37wg1ksFld9GN9/jFgsFuzv73/E3+ETgQsXLqC
|
||
|
" </div>\n",
|
||
|
" "
|
||
|
],
|
||
|
"text/plain": [
|
||
|
"Canvas(toolbar=Toolbar(toolitems=[('Home', 'Reset original view', 'home', 'home'), ('Back', 'Back to previous …"
|
||
|
]
|
||
|
},
|
||
|
"metadata": {},
|
||
|
"output_type": "display_data"
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"i = 0\n",
|
||
|
"for interpolation in interpolation_modes:\n",
|
||
|
"\tplt.subplot(2, len(interpolation_modes) // 2, i+1)\n",
|
||
|
"\tplt.title(interpolation)\n",
|
||
|
"\tresult = do_upsample_test(tensor_in, interpolation=interpolation)\n",
|
||
|
"\t\n",
|
||
|
"\tplt.imshow(result)\n",
|
||
|
"\ti += 1"
|
||
|
]
|
||
|
}
|
||
|
],
|
||
|
"metadata": {
|
||
|
"kernelspec": {
|
||
|
"display_name": "Python 3",
|
||
|
"language": "python",
|
||
|
"name": "python3"
|
||
|
},
|
||
|
"language_info": {
|
||
|
"codemirror_mode": {
|
||
|
"name": "ipython",
|
||
|
"version": 3
|
||
|
},
|
||
|
"file_extension": ".py",
|
||
|
"mimetype": "text/x-python",
|
||
|
"name": "python",
|
||
|
"nbconvert_exporter": "python",
|
||
|
"pygments_lexer": "ipython3",
|
||
|
"version": "3.10.6"
|
||
|
},
|
||
|
"vscode": {
|
||
|
"interpreter": {
|
||
|
"hash": "916dbcbb3f70747c44a77c7bcd40155683ae19c65e1c03b4aa3499c5328201f1"
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
"nbformat": 4,
|
||
|
"nbformat_minor": 5
|
||
|
}
|