-
Notifications
You must be signed in to change notification settings - Fork 372
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added custom semantic segmentation trainer tutorial #1897
Open
calebrob6
wants to merge
31
commits into
main
Choose a base branch
from
tutorial/week1
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 27 commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
6fca51b
Added custom segmentation trainer tutorial
calebrob6 c8bb544
Black formatting
calebrob6 604bc1f
Updates
calebrob6 e679143
black formatting
calebrob6 a9808c5
Adding a jupytext synced python file
calebrob6 b57d745
Trying jupytext
calebrob6 f1f4c63
Linting
calebrob6 c43526d
Typo fix and constructor fix
calebrob6 5a20899
Trainer args
calebrob6 c7090d1
Update num epochs
calebrob6 9c0cff2
Make base trainer class work properly
calebrob6 c4734e5
Updating kernelspec name
calebrob6 8a2abc5
Make mypy happy I think
calebrob6 a6f7045
Add tutorial to docs
calebrob6 fe3dd34
Linting
calebrob6 cdd43a9
Adding torchgeo datasets install
calebrob6 1a59301
Ruff
calebrob6 27953c2
Update to notebook
calebrob6 5fc368e
Adding some comments
calebrob6 7a6dc06
Remove the .py file
calebrob6 d7402fd
Download less data
calebrob6 c4c02ec
ruff
calebrob6 4acc493
nbstripout
calebrob6 62663de
See if removing pip installs help
calebrob6 ef438f2
What is going on?
calebrob6 2092f43
Try pip installs again
calebrob6 037fc01
Ruff
calebrob6 30c76da
Update docs/tutorials/custom_segmentation_trainer.ipynb
calebrob6 0c4aa0d
Update docs/tutorials/custom_segmentation_trainer.ipynb
calebrob6 fed6524
Update docs/tutorials/custom_segmentation_trainer.ipynb
calebrob6 94718ab
Update docs/tutorials/custom_segmentation_trainer.ipynb
calebrob6 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
"cells": [ | ||
{ | ||
"cell_type": "markdown", | ||
"id": "35303546", | ||
"id": "0", | ||
"metadata": {}, | ||
"source": [ | ||
"Copyright (c) Microsoft Corporation. All rights reserved.\n", | ||
|
@@ -12,7 +12,7 @@ | |
}, | ||
{ | ||
"cell_type": "markdown", | ||
"id": "9478ed9a", | ||
"id": "1", | ||
"metadata": { | ||
"id": "NdrXRgjU7Zih" | ||
}, | ||
|
@@ -26,7 +26,7 @@ | |
}, | ||
{ | ||
"cell_type": "markdown", | ||
"id": "34f10e9f", | ||
"id": "2", | ||
"metadata": { | ||
"id": "lCqHTGRYBZcz" | ||
}, | ||
|
@@ -39,7 +39,7 @@ | |
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "019092f0", | ||
"id": "3", | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
|
@@ -48,7 +48,7 @@ | |
}, | ||
{ | ||
"cell_type": "markdown", | ||
"id": "4db9f791", | ||
"id": "4", | ||
"metadata": { | ||
"id": "dV0NLHfGBMWl" | ||
}, | ||
|
@@ -61,7 +61,7 @@ | |
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "3d92b0f1", | ||
"id": "5", | ||
"metadata": { | ||
"id": "entire-albania" | ||
}, | ||
|
@@ -79,7 +79,7 @@ | |
}, | ||
{ | ||
"cell_type": "markdown", | ||
"id": "7f26e4b8", | ||
"id": "6", | ||
"metadata": { | ||
"id": "5rLknZxrBEMz" | ||
}, | ||
|
@@ -92,7 +92,7 @@ | |
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "4a39af46", | ||
"id": "7", | ||
"metadata": { | ||
"colab": { | ||
"base_uri": "https://localhost:8080/", | ||
|
@@ -154,10 +154,10 @@ | |
" 'https://naipeuwest.blob.core.windows.net/naip/v002/de/2018/de_060cm_2018/38075/'\n", | ||
")\n", | ||
"tiles = [\n", | ||
" 'm_3807511_ne_18_060_20181104.tif',\n", | ||
" 'm_3807511_se_18_060_20181104.tif',\n", | ||
" 'm_3807512_nw_18_060_20180815.tif',\n", | ||
" 'm_3807512_sw_18_060_20180815.tif',\n", | ||
" 'm_3807511_ne_18_060_20181104.tif'\n", | ||
" #'m_3807511_se_18_060_20181104.tif',\n", | ||
" #'m_3807512_nw_18_060_20180815.tif',\n", | ||
" #'m_3807512_sw_18_060_20180815.tif',\n", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here |
||
"]\n", | ||
"for tile in tiles:\n", | ||
" download_url(naip_url + tile, naip_root)\n", | ||
|
@@ -167,7 +167,7 @@ | |
}, | ||
{ | ||
"cell_type": "markdown", | ||
"id": "e25bad40", | ||
"id": "8", | ||
"metadata": { | ||
"id": "HQVji2B22Qfu" | ||
}, | ||
|
@@ -178,7 +178,7 @@ | |
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "689bb2b0", | ||
"id": "9", | ||
"metadata": { | ||
"colab": { | ||
"base_uri": "https://localhost:8080/" | ||
|
@@ -195,7 +195,7 @@ | |
}, | ||
{ | ||
"cell_type": "markdown", | ||
"id": "56f2d78b", | ||
"id": "10", | ||
"metadata": { | ||
"id": "OWUhlfpD22IX" | ||
}, | ||
|
@@ -206,7 +206,7 @@ | |
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "daefbc4d", | ||
"id": "11", | ||
"metadata": { | ||
"id": "WXxy8F8l2-aC" | ||
}, | ||
|
@@ -217,7 +217,7 @@ | |
}, | ||
{ | ||
"cell_type": "markdown", | ||
"id": "ded44652", | ||
"id": "12", | ||
"metadata": { | ||
"id": "yF_R54Yf3EUd" | ||
}, | ||
|
@@ -230,7 +230,7 @@ | |
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "b8a0d99c", | ||
"id": "13", | ||
"metadata": { | ||
"id": "RLczuU293itT" | ||
}, | ||
|
@@ -241,7 +241,7 @@ | |
}, | ||
{ | ||
"cell_type": "markdown", | ||
"id": "5b8c1c52", | ||
"id": "14", | ||
"metadata": { | ||
"id": "OWa-mmYd8S6K" | ||
}, | ||
|
@@ -254,7 +254,7 @@ | |
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "96faa142", | ||
"id": "15", | ||
"metadata": { | ||
"id": "jfx-9ZmU8ZTc" | ||
}, | ||
|
@@ -265,7 +265,7 @@ | |
}, | ||
{ | ||
"cell_type": "markdown", | ||
"id": "64ae63f7", | ||
"id": "16", | ||
"metadata": { | ||
"id": "HZIfqqW58oZe" | ||
}, | ||
|
@@ -278,7 +278,7 @@ | |
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "8a2b44f8", | ||
"id": "17", | ||
"metadata": { | ||
"id": "7sGmNvBy8uIg" | ||
}, | ||
|
@@ -291,11 +291,6 @@ | |
} | ||
], | ||
"metadata": { | ||
"colab": { | ||
"collapsed_sections": [], | ||
"name": "getting_started.ipynb", | ||
"provenance": [] | ||
}, | ||
"execution": { | ||
"timeout": 1200 | ||
}, | ||
|
@@ -314,7 +309,7 @@ | |
"name": "python", | ||
"nbconvert_exporter": "python", | ||
"pygments_lexer": "ipython3", | ||
"version": "3.10.8" | ||
"version": "3.10.14" | ||
} | ||
}, | ||
"nbformat": 4, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -353,9 +353,6 @@ | |
} | ||
], | ||
"metadata": { | ||
"colab": { | ||
"provenance": [] | ||
}, | ||
"execution": { | ||
"timeout": 1200 | ||
}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the plan to delete these commented out files or uncomment them?