From 26da49877f830ef3df45fec5b09f7f46af77a809 Mon Sep 17 00:00:00 2001 From: Sieger Falkena Date: Wed, 18 Sep 2024 21:08:19 +0200 Subject: [PATCH] add debug statement --- docs/tutorials/visualizing_samples.ipynb | 223 ++--------------------- 1 file changed, 12 insertions(+), 211 deletions(-) diff --git a/docs/tutorials/visualizing_samples.ipynb b/docs/tutorials/visualizing_samples.ipynb index 79b6e436d63..fb4423c9218 100644 --- a/docs/tutorials/visualizing_samples.ipynb +++ b/docs/tutorials/visualizing_samples.ipynb @@ -11,7 +11,7 @@ }, { "cell_type": "code", - "execution_count": 1, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -34,6 +34,7 @@ " num_epochs = 5\n", " for epoch in range(num_epochs):\n", " color = plt.cm.viridis(epoch / num_epochs)\n", + " print(sampler.chips)\n", " # sampler.chips.to_file(f'naip_chips_epoch_{epoch}') # Optional: save chips to file for display in GIS software\n", " ax = sampler.chips.plot(ax=ax, color=color)\n", " for sample in dataloader:\n", @@ -50,18 +51,9 @@ }, { "cell_type": "code", - "execution_count": 2, + "execution_count": null, "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Using downloaded and verified file: C:\\Users\\SIEGER~1.FAL\\AppData\\Local\\Temp\\naip\\m_3807511_ne_18_060_20181104.tif\n", - "Using downloaded and verified file: C:\\Users\\SIEGER~1.FAL\\AppData\\Local\\Temp\\naip\\m_3807512_sw_18_060_20180815.tif\n" - ] - } - ], + "outputs": [], "source": [ "naip_root = os.path.join(tempfile.gettempdir(), 'naip')\n", "naip_url = (\n", @@ -83,114 +75,18 @@ }, { "cell_type": "code", - "execution_count": 3, + "execution_count": null, "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "generating samples... \n" - ] - }, - { - "name": "stderr", - "output_type": "stream", - "text": [ - "100%|██████████| 3/3 [00:00<00:00, 998.72it/s]\n" - ] - } - ], + "outputs": [], "source": [ "sampler = RandomGeoSampler(naip, size=1000, length=3)" ] }, { "cell_type": "code", - "execution_count": 4, + "execution_count": null, "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "generating samples... \n" - ] - }, - { - "name": "stderr", - "output_type": "stream", - "text": [ - "100%|██████████| 3/3 [00:00" - ] - }, - "metadata": {}, - "output_type": "display_data" - } - ], + "outputs": [], "source": [ "run_epochs(naip, sampler)" ] @@ -204,7 +100,7 @@ }, { "cell_type": "code", - "execution_count": 5, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -222,7 +118,7 @@ }, { "cell_type": "code", - "execution_count": 6, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -231,104 +127,9 @@ }, { "cell_type": "code", - "execution_count": 7, + "execution_count": null, "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "generating samples... \n" - ] - }, - { - "name": "stderr", - "output_type": "stream", - "text": [ - "100%|██████████| 3/3 [00:00<00:00, 1743.27it/s]\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "generating samples... \n" - ] - }, - { - "name": "stderr", - "output_type": "stream", - "text": [ - "100%|██████████| 3/3 [00:00" - ] - }, - "metadata": {}, - "output_type": "display_data" - } - ], + "outputs": [], "source": [ "sampler = RandomGeoSampler(combined, size=1000, length=3)\n", "run_epochs(combined, sampler)"