From ef9130dfccf37d13147509b9501fa8a47a8fb3c1 Mon Sep 17 00:00:00 2001
From: Maxim Ziatdinov <34245227+ziatdinovmax@users.noreply.github.com>
Date: Fri, 1 Dec 2023 19:23:45 -0800
Subject: [PATCH] Update download links
---
.../notebooks/AtomicSemanticSegmention.ipynb | 26 +++++++++----------
1 file changed, 12 insertions(+), 14 deletions(-)
diff --git a/examples/notebooks/AtomicSemanticSegmention.ipynb b/examples/notebooks/AtomicSemanticSegmention.ipynb
index 968222b..86815ec 100644
--- a/examples/notebooks/AtomicSemanticSegmention.ipynb
+++ b/examples/notebooks/AtomicSemanticSegmention.ipynb
@@ -3,11 +3,11 @@
{
"cell_type": "markdown",
"metadata": {
- "colab_type": "text",
- "id": "view-in-github"
+ "id": "view-in-github",
+ "colab_type": "text"
},
"source": [
- ""
+ ""
]
},
{
@@ -125,11 +125,10 @@
},
"outputs": [],
"source": [
- "download_link1 = 'https://www.dropbox.com/s/q961z099trfqioj/ferroics-exp-small-m.npz?dl=0'\n",
- "download_link2 = 'https://www.dropbox.com/s/w7j12xchjd0at77/lbfo_expdata.npy?dl=0'\n",
- "\n",
- "!wget -q $download_link1 -O 'training_data.npy'\n",
- "!wget -q $download_link2 -O 'validation_data.npy'\n",
+ "download_link1 = 'https://drive.google.com/uc?id=1-4-IQ71m--OelQb1891GnbG1Ako1-DKh'\n",
+ "download_link2 = 'https://drive.google.com/uc?id=18JK9GcMPMWHmHtwArujVQRLr6N4VIM_j'\n",
+ "!gdown -q $download_link1 -O 'training_data.npy'\n",
+ "!gdown -q $download_link2 -O 'validation_data.npy'\n",
"\n",
"# Load train/test data (this is a simple dataset generated just from a single image)\n",
"dataset = np.load('training_data.npy')\n",
@@ -222,7 +221,7 @@
"\n",
"n = n + 1\n",
"fig = plt.figure( figsize=(30, 8))\n",
- "for i in range(1, n): \n",
+ "for i in range(1, n):\n",
" ax = fig.add_subplot(2, n, i)\n",
" ax.imshow(images[i-1,0,:,:], cmap='gray')\n",
" ax.set_title('Augmented image ' + str(i))\n",
@@ -447,7 +446,7 @@
"source": [
"model.fit(images, labels, images_test, labels_test, # training data\n",
" training_cycles=300, compute_accuracy=True, swa=True # training parameters\n",
- ") "
+ ")"
]
},
{
@@ -848,9 +847,8 @@
"metadata": {
"accelerator": "GPU",
"colab": {
- "collapsed_sections": [],
- "include_colab_link": true,
- "provenance": []
+ "provenance": [],
+ "include_colab_link": true
},
"kernelspec": {
"display_name": "Python 3",
@@ -859,4 +857,4 @@
},
"nbformat": 4,
"nbformat_minor": 0
-}
+}
\ No newline at end of file