From 82dd69e3e60c335abaf324bcabc3970f070f28b9 Mon Sep 17 00:00:00 2001 From: Caleb Robinson Date: Fri, 20 Sep 2024 17:05:17 +0000 Subject: [PATCH] See if removing pip installs help --- docs/tutorials/custom_raster_dataset.ipynb | 9 +-------- docs/tutorials/custom_segmentation_trainer.ipynb | 10 +++++++--- docs/tutorials/getting_started.ipynb | 2 +- docs/tutorials/indices.ipynb | 2 +- docs/tutorials/pretrained_weights.ipynb | 2 +- docs/tutorials/trainers.ipynb | 2 +- docs/tutorials/transforms.ipynb | 2 +- 7 files changed, 13 insertions(+), 16 deletions(-) diff --git a/docs/tutorials/custom_raster_dataset.ipynb b/docs/tutorials/custom_raster_dataset.ipynb index 0bcb756bbf6..7230fcea07b 100644 --- a/docs/tutorials/custom_raster_dataset.ipynb +++ b/docs/tutorials/custom_raster_dataset.ipynb @@ -84,13 +84,6 @@ }, { "cell_type": "code", - "custom": { - "metadata": { - "tags": [ - "skip-execution" - ] - } - }, "execution_count": null, "metadata": { "colab": { @@ -101,7 +94,7 @@ }, "outputs": [], "source": [ - "%pip install torchgeo planetary_computer pystac" + "# %pip install torchgeo planetary_computer pystac" ] }, { diff --git a/docs/tutorials/custom_segmentation_trainer.ipynb b/docs/tutorials/custom_segmentation_trainer.ipynb index c8e05f1212f..d408b71423f 100644 --- a/docs/tutorials/custom_segmentation_trainer.ipynb +++ b/docs/tutorials/custom_segmentation_trainer.ipynb @@ -38,7 +38,7 @@ "metadata": {}, "outputs": [], "source": [ - "%pip install torchgeo" + "# %pip install torchgeo" ] }, { @@ -287,7 +287,11 @@ "source": [ "# The following Trainer config is useful just for testing the code in this notebook.\n", "trainer = pl.Trainer(\n", - " limit_train_batches=1, limit_val_batches=1, num_sanity_val_steps=0, max_epochs=1\n", + " limit_train_batches=1,\n", + " limit_val_batches=1,\n", + " num_sanity_val_steps=0,\n", + " max_epochs=1,\n", + " accelerator='cpu',\n", ")\n", "# You can use the following for actual training runs.\n", "# trainer = pl.Trainer(min_epochs=150, max_epochs=250, log_every_n_steps=50)" @@ -498,7 +502,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.12.5" + "version": "3.10.14" } }, "nbformat": 4, diff --git a/docs/tutorials/getting_started.ipynb b/docs/tutorials/getting_started.ipynb index eb96602150f..a6d18646361 100644 --- a/docs/tutorials/getting_started.ipynb +++ b/docs/tutorials/getting_started.ipynb @@ -43,7 +43,7 @@ "metadata": {}, "outputs": [], "source": [ - "#%pip install torchgeo" + "# %pip install torchgeo" ] }, { diff --git a/docs/tutorials/indices.ipynb b/docs/tutorials/indices.ipynb index ceb93a8223d..05ddcbbc049 100644 --- a/docs/tutorials/indices.ipynb +++ b/docs/tutorials/indices.ipynb @@ -64,7 +64,7 @@ }, "outputs": [], "source": [ - "%pip install torchgeo" + "# %pip install torchgeo" ] }, { diff --git a/docs/tutorials/pretrained_weights.ipynb b/docs/tutorials/pretrained_weights.ipynb index e2b4c7612b0..fb71f63733e 100644 --- a/docs/tutorials/pretrained_weights.ipynb +++ b/docs/tutorials/pretrained_weights.ipynb @@ -47,7 +47,7 @@ }, "outputs": [], "source": [ - "%pip install torchgeo" + "# %pip install torchgeo" ] }, { diff --git a/docs/tutorials/trainers.ipynb b/docs/tutorials/trainers.ipynb index 37d91a5714a..dabafbd33b3 100644 --- a/docs/tutorials/trainers.ipynb +++ b/docs/tutorials/trainers.ipynb @@ -47,7 +47,7 @@ }, "outputs": [], "source": [ - "%pip install torchgeo tensorboard" + "# %pip install torchgeo tensorboard" ] }, { diff --git a/docs/tutorials/transforms.ipynb b/docs/tutorials/transforms.ipynb index 4aeb12cbb2a..b9549315f7b 100644 --- a/docs/tutorials/transforms.ipynb +++ b/docs/tutorials/transforms.ipynb @@ -61,7 +61,7 @@ }, "outputs": [], "source": [ - "%pip install torchgeo" + "# %pip install torchgeo" ] }, {