Skip to content

Commit

Permalink
[JA] Translations
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyaspiridonov committed Nov 4, 2023
1 parent be9af37 commit 3afad22
Show file tree
Hide file tree
Showing 332 changed files with 36,978 additions and 7,407 deletions.
56 changes: 42 additions & 14 deletions site/ja/addons/tutorials/average_optimizers_callback.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
"cellView": "form",
"id": "tuOe1ymfHZPu"
},
"outputs": [],
"outputs": [

],
"source": [
"#@title Licensed under the Apache License, Version 2.0 (the \"License\");\n",
"# you may not use this file except in compliance with the License.\n",
Expand Down Expand Up @@ -95,7 +97,9 @@
"metadata": {
"id": "sXEOqj5cIgyW"
},
"outputs": [],
"outputs": [

],
"source": [
"!pip install -U tensorflow-addons"
]
Expand All @@ -106,7 +110,9 @@
"metadata": {
"id": "IqR2PQG4ZaZ0"
},
"outputs": [],
"outputs": [

],
"source": [
"import tensorflow as tf\n",
"import tensorflow_addons as tfa"
Expand All @@ -118,7 +124,9 @@
"metadata": {
"id": "4hnJ2rDpI38-"
},
"outputs": [],
"outputs": [

],
"source": [
"import numpy as np\n",
"import os"
Expand All @@ -139,7 +147,9 @@
"metadata": {
"id": "KtylpxOmceaC"
},
"outputs": [],
"outputs": [

],
"source": [
"def create_model(opt):\n",
" model = tf.keras.models.Sequential([\n",
Expand Down Expand Up @@ -171,7 +181,9 @@
"metadata": {
"id": "mMOeXVmbdilM"
},
"outputs": [],
"outputs": [

],
"source": [
"#Load Fashion MNIST dataset\n",
"train, test = tf.keras.datasets.fashion_mnist.load_data()\n",
Expand Down Expand Up @@ -207,7 +219,9 @@
"metadata": {
"id": "_Q76K1fNk7Va"
},
"outputs": [],
"outputs": [

],
"source": [
"#Optimizers \n",
"sgd = tf.keras.optimizers.SGD(0.01)\n",
Expand All @@ -230,7 +244,9 @@
"metadata": {
"id": "SnvZjt34qEHY"
},
"outputs": [],
"outputs": [

],
"source": [
"#Callback \n",
"checkpoint_path = \"./training/cp-{epoch:04d}.ckpt\"\n",
Expand Down Expand Up @@ -267,7 +283,9 @@
"metadata": {
"id": "Xy8W4LYppadJ"
},
"outputs": [],
"outputs": [

],
"source": [
"#Build Model\n",
"model = create_model(sgd)\n",
Expand All @@ -282,7 +300,9 @@
"metadata": {
"id": "uU2iQ6HAZ6-E"
},
"outputs": [],
"outputs": [

],
"source": [
"#Evalute results\n",
"model.load_weights(checkpoint_dir)\n",
Expand All @@ -306,7 +326,9 @@
"metadata": {
"id": "--NIjBp-mhVb"
},
"outputs": [],
"outputs": [

],
"source": [
"#Build Model\n",
"model = create_model(moving_avg_sgd)\n",
Expand All @@ -321,7 +343,9 @@
"metadata": {
"id": "zRAym9EBmnW9"
},
"outputs": [],
"outputs": [

],
"source": [
"#Evalute results\n",
"model.load_weights(checkpoint_dir)\n",
Expand All @@ -345,7 +369,9 @@
"metadata": {
"id": "Ia7ALKefnXWQ"
},
"outputs": [],
"outputs": [

],
"source": [
"#Build Model\n",
"model = create_model(stocastic_avg_sgd)\n",
Expand All @@ -360,7 +386,9 @@
"metadata": {
"id": "EOT2E9NBoeHI"
},
"outputs": [],
"outputs": [

],
"source": [
"#Evalute results\n",
"model.load_weights(checkpoint_dir)\n",
Expand Down
56 changes: 42 additions & 14 deletions site/ja/addons/tutorials/image_ops.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
"cellView": "form",
"id": "l-m8KQ-nxK5l"
},
"outputs": [],
"outputs": [

],
"source": [
"#@title Licensed under the Apache License, Version 2.0 (the \"License\");\n",
"# you may not use this file except in compliance with the License.\n",
Expand Down Expand Up @@ -89,7 +91,9 @@
"metadata": {
"id": "o_QTX_vHGbj7"
},
"outputs": [],
"outputs": [

],
"source": [
"!pip install -U tensorflow-addons"
]
Expand All @@ -100,7 +104,9 @@
"metadata": {
"id": "5hVIKCrhWh4a"
},
"outputs": [],
"outputs": [

],
"source": [
"import tensorflow as tf\n",
"import numpy as np\n",
Expand Down Expand Up @@ -132,7 +138,9 @@
"metadata": {
"id": "IgUsVhBQ6dSg"
},
"outputs": [],
"outputs": [

],
"source": [
"img_path = tf.keras.utils.get_file('tensorflow.png','https://tensorflow.org/images/tf_logo.png')"
]
Expand Down Expand Up @@ -161,7 +169,9 @@
"metadata": {
"id": "NRlvNQdm1YI8"
},
"outputs": [],
"outputs": [

],
"source": [
"img_raw = tf.io.read_file(img_path)\n",
"img = tf.io.decode_image(img_raw)\n",
Expand All @@ -187,7 +197,9 @@
"metadata": {
"id": "tbaIkUCS2eNv"
},
"outputs": [],
"outputs": [

],
"source": [
"bw_img = 1.0 - tf.image.rgb_to_grayscale(img)\n",
"\n",
Expand Down Expand Up @@ -221,7 +233,9 @@
"metadata": {
"id": "SutWnbRoHl6i"
},
"outputs": [],
"outputs": [

],
"source": [
"mean = tfa.image.mean_filter2d(img, filter_shape=11)\n",
"_ = plt.imshow(mean)"
Expand All @@ -244,7 +258,9 @@
"metadata": {
"id": "9kxUES9sM8Jl"
},
"outputs": [],
"outputs": [

],
"source": [
"rotate = tfa.image.rotate(img, tf.constant(np.pi/8))\n",
"_ = plt.imshow(rotate)"
Expand All @@ -267,7 +283,9 @@
"metadata": {
"id": "HTh1Qpps8Rg5"
},
"outputs": [],
"outputs": [

],
"source": [
"transform = tfa.image.transform(img, [1.0, 1.0, -250, 0.0, 1.0, 0.0, 0.0, 0.0])\n",
"_ = plt.imshow(transform)"
Expand All @@ -290,7 +308,9 @@
"metadata": {
"id": "zZBI-9XvBSuh"
},
"outputs": [],
"outputs": [

],
"source": [
"delta = 0.5\n",
"lower_saturation = 0.1\n",
Expand Down Expand Up @@ -318,7 +338,9 @@
"metadata": {
"id": "vbCdwGtYChnQ"
},
"outputs": [],
"outputs": [

],
"source": [
"delta = 0.5\n",
"saturation = 0.3\n",
Expand All @@ -344,7 +366,9 @@
"metadata": {
"id": "dG557eQDDtSK"
},
"outputs": [],
"outputs": [

],
"source": [
"input_img = tf.image.convert_image_dtype(tf.expand_dims(img, 0), tf.dtypes.float32)\n",
"\n",
Expand Down Expand Up @@ -374,7 +398,9 @@
"metadata": {
"id": "-OMh6oeRQaYQ"
},
"outputs": [],
"outputs": [

],
"source": [
"gray = tf.image.convert_image_dtype(bw_img,tf.uint8)\n",
"# The op expects a batch of images, so add a batch dimension\n",
Expand All @@ -388,7 +414,9 @@
"metadata": {
"accelerator": "GPU",
"colab": {
"collapsed_sections": [],
"collapsed_sections": [

],
"name": "image_ops.ipynb",
"toc_visible": true
},
Expand Down
32 changes: 24 additions & 8 deletions site/ja/addons/tutorials/layers_normalizations.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
"cellView": "form",
"id": "aNZ7aEDyQIYU"
},
"outputs": [],
"outputs": [

],
"source": [
"#@title Licensed under the Apache License, Version 2.0 (the \"License\");\n",
"# you may not use this file except in compliance with the License.\n",
Expand Down Expand Up @@ -112,7 +114,9 @@
"metadata": {
"id": "_ZQGY_ALnirQ"
},
"outputs": [],
"outputs": [

],
"source": [
"!pip install -U tensorflow-addons"
]
Expand All @@ -123,7 +127,9 @@
"metadata": {
"id": "7aGgPZG_WBHg"
},
"outputs": [],
"outputs": [

],
"source": [
"import tensorflow as tf\n",
"import tensorflow_addons as tfa"
Expand All @@ -144,7 +150,9 @@
"metadata": {
"id": "3wso9oidUZZQ"
},
"outputs": [],
"outputs": [

],
"source": [
"mnist = tf.keras.datasets.mnist\n",
"\n",
Expand Down Expand Up @@ -175,7 +183,9 @@
"metadata": {
"id": "aIGjLwYWAm0v"
},
"outputs": [],
"outputs": [

],
"source": [
"model = tf.keras.models.Sequential([\n",
" # Reshape into \"channels last\" setup.\n",
Expand Down Expand Up @@ -220,7 +230,9 @@
"metadata": {
"id": "6sLVv-C8f6Kf"
},
"outputs": [],
"outputs": [

],
"source": [
"model = tf.keras.models.Sequential([\n",
" # Reshape into \"channels last\" setup.\n",
Expand Down Expand Up @@ -269,7 +281,9 @@
"metadata": {
"id": "Fh-Pp_e5UB54"
},
"outputs": [],
"outputs": [

],
"source": [
"model = tf.keras.models.Sequential([\n",
" # Reshape into \"channels last\" setup.\n",
Expand Down Expand Up @@ -307,7 +321,9 @@
],
"metadata": {
"colab": {
"collapsed_sections": [],
"collapsed_sections": [

],
"name": "layers_normalizations.ipynb",
"toc_visible": true
},
Expand Down
Loading

0 comments on commit 3afad22

Please sign in to comment.