Skip to content

Commit

Permalink
Merge pull request CSAILVision#245 from davidbau/tutorial
Browse files Browse the repository at this point in the history
Tutorial fixes
  • Loading branch information
hangzhaomit authored Aug 27, 2020
2 parents e494c00 + c68aada commit 9aff40d
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 5 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ https://github.com/CSAILVision/sceneparsing

If you simply want to play with our demo, please try this link: http://scenesegmentation.csail.mit.edu You can upload your own photo and parse it!

[You can also use this colab notebook playground here](https://colab.research.google.com/github/CSAILVision/semantic-segmentation-pytorch/blob/master/notebooks/DemoSegmenter.ipynb) to tinker with the code for segmenting an image.

All pretrained models can be found at:
http://sceneparsing.csail.mit.edu/model/pytorch

Expand Down
10 changes: 5 additions & 5 deletions notebooks/DemoSegmenter.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
"This is a notebook for running the benchmark semantic segmentation network from the the [ADE20K MIT Scene Parsing Benchchmark](http://sceneparsing.csail.mit.edu/).\n",
"\n",
"The code for this notebook is available here\n",
"https://github.com/davidbau/semantic-segmentation-pytorch/tree/tutorial/notebooks\n",
"https://github.com/CSAILVision/semantic-segmentation-pytorch/tree/master/notebooks\n",
"\n",
"It can be run on Colab at this URL https://colab.research.google.com/github/davidbau/semantic-segmentation-pytorch/blob/tutorial/notebooks/DemoSegmenter.ipynb"
"It can be run on Colab at this URL https://colab.research.google.com/github/CSAILVision/semantic-segmentation-pytorch/blob/master/notebooks/DemoSegmenter.ipynb"
]
},
{
Expand All @@ -34,8 +34,8 @@
"!(stat -t /usr/local/lib/*/dist-packages/google/colab > /dev/null 2>&1) && exit \n",
"pip install yacs 2>&1 >> install.log\n",
"git init 2>&1 >> install.log\n",
"git remote add origin https://github.com/davidbau/semantic-segmentation-pytorch.git 2>> install.log\n",
"git pull origin tutorial 2>&1 >> install.log\n",
"git remote add origin https://github.com/CSAILVision/semantic-segmentation-pytorch.git 2>> install.log\n",
"git pull origin master 2>&1 >> install.log\n",
"DOWNLOAD_ONLY=1 ./demo_test.sh 2>> install.log"
]
},
Expand Down Expand Up @@ -157,7 +157,7 @@
"\n",
"The segmentation model is coded as a function that takes a dictionary as input, because it wants to know both the input batch image data as well as the desired output segmentation resolution. We ask for full resolution output.\n",
"\n",
"Then we use the previously-defined visualize_result function to render the semgnatioon map."
"Then we use the previously-defined visualize_result function to render the segmentation map."
]
},
{
Expand Down
12 changes: 12 additions & 0 deletions notebooks/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Semantic Segmentation Demo
==========================

This directory contains a notebook for demonstrating the benchmark
semantic segmentation network from the the ADE20K MIT Scene Parsing
Benchchmark.

It can be run on Colab at
[this URL](https://colab.research.google.com/github/CSAILVision/semantic-segmentation-pytorch/blob/master/notebooks/DemoSegmenter.ipynb)
or on a local Jupyter notebook.

If running locally, run the script `setup_notebooks.sh` to start.

0 comments on commit 9aff40d

Please sign in to comment.