Skip to content

Commit

Permalink
Merge pull request #81 from ziatdinovmax/master
Browse files Browse the repository at this point in the history
Update download links in examples
  • Loading branch information
ziatdinovmax authored Dec 2, 2023
2 parents 657ee4f + ef9130d commit 0eaedb7
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions examples/notebooks/AtomicSemanticSegmention.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
{
"cell_type": "markdown",
"metadata": {
"colab_type": "text",
"id": "view-in-github"
"id": "view-in-github",
"colab_type": "text"
},
"source": [
"<a href=\"https://colab.research.google.com/github/pycroscopy/atomai/blob/master/examples/notebooks/AtomicSemanticSegmention.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>"
"<a href=\"https://colab.research.google.com/github/ziatdinovmax/atomai/blob/master/examples/notebooks/AtomicSemanticSegmention.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>"
]
},
{
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
") "
")"
]
},
{
Expand Down Expand Up @@ -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",
Expand All @@ -859,4 +857,4 @@
},
"nbformat": 4,
"nbformat_minor": 0
}
}

0 comments on commit 0eaedb7

Please sign in to comment.