Skip to content

Commit

Permalink
Moving all images to _static directory
Browse files Browse the repository at this point in the history
  • Loading branch information
kallewesterling committed Jul 17, 2024
1 parent a23bb1a commit 4d2343a
Show file tree
Hide file tree
Showing 37 changed files with 27 additions and 27 deletions.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ MapReader was developed for maps and geospatial images.
Classification of one-inch OS maps
----------------------------------

.. image:: ../../figures/tutorial_classification_one_inch_maps_001.png
.. image:: /_static/tutorial_classification_one_inch_maps_001.png
:width: 400px
:target: https://github.com/Living-with-machines/MapReader/tree/main/worked_examples/geospatial

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ We have provided two examples of this.
Classification of plant phenotypes
----------------------------------

.. image:: ../../figures/tutorial_classification_plant_phenotype.png
.. image:: /_static/tutorial_classification_plant_phenotype.png
:width: 400px
:target: https://github.com/Living-with-machines/MapReader/blob/main/worked_examples/non-geospatial/classification_plant_phenotype/Pipeline.ipynb

Expand All @@ -21,7 +21,7 @@ It can be found `here <https://github.com/Living-with-machines/MapReader/blob/ma
Classification of MNIST digits
------------------------------

.. image:: ../../figures/tutorial_classification_mnist.png
.. image:: /_static/tutorial_classification_mnist.png
:width: 400px
:target: https://github.com/Living-with-machines/MapReader/blob/main/worked_examples/non-geospatial/classification_mnist/Pipeline.ipynb

Expand Down
20 changes: 10 additions & 10 deletions docs/source/introduction-to-mapreader/what-is-mapreader.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ What is unique about MapReader?

MapReader is based on the 'patchwork method' in which whole map images are sliced into a grid of squares or 'patches':

.. image:: ../figures/patchify.png
.. image:: /_static/patchify.png

This unique way of pre-processing map images enables the use of image classification to identify visual features within maps, in order to answer important research questions.

Expand All @@ -17,7 +17,7 @@ What is 'the MapReader pipeline'?

The MapReader pipeline consists of a linear sequence of tasks:

.. image:: ../figures/pipeline_explained.png
.. image:: /_static/pipeline_explained.png

Together, these tasks can be used to train a computer vision (CV) classifier to recognize visual features within maps and identify patches containing these features across entire map collections.

Expand All @@ -30,21 +30,21 @@ What are the inputs and outputs of each stage in the MapReader pipeline?
------------------------------------------------------------------------

Download
^^^^^^^^^
.. image:: ../figures/in_out_download.png
~~~~~~~~
.. image:: /_static/in_out_download.png
:width: 600px

Load
^^^^^
.. image:: ../figures/in_out_load.png
~~~~
.. image:: /_static/in_out_load.png
:width: 600px

Annotate
^^^^^^^^^
.. image:: ../figures/in_out_annotate.png
~~~~~~~~
.. image:: /_static/in_out_annotate.png
:width: 600px

Classify (Train and Predict)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.. image:: ../figures/in_out_classify.png
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. image:: /_static/in_out_classify.png
:width: 600px
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ To help you visualize your metadata, the boundaries of the map sheets included i
my_ts.plot_all_metadata_on_map()
.. image:: ../../figures/plot_metadata_on_map.png
.. image:: /_static/plot_metadata_on_map.png
:width: 400px
:align: center

Expand Down
14 changes: 7 additions & 7 deletions docs/source/using-mapreader/step-by-step-guide/2-load.rst
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ To view a random sample of your images, use:
my_files.show_sample(num_samples=3)
.. image:: ../../figures/show_sample_parent.png
.. image:: /_static/show_sample_parent.png
:width: 400px


Expand All @@ -295,7 +295,7 @@ If, however, you want to see a random sample of your patches use the ``tree_leve
my_files.show_sample(num_samples=3, tree_level="patch")
.. image:: ../../figures/show_sample_child.png
.. image:: /_static/show_sample_child.png
:width: 400px


Expand All @@ -310,7 +310,7 @@ e.g. :
patch_list = my_files.list_patches()
my_files.show(patch_list[250:300])
.. image:: ../../figures/show.png
.. image:: /_static/show.png
:width: 400px


Expand All @@ -323,7 +323,7 @@ or
files_to_show = [patch_list[0], patch_list[350], patch_list[400]]
my_files.show(files_to_show)
.. image:: ../../figures/show_list.png
.. image:: /_static/show_list.png
:width: 400px


Expand All @@ -343,7 +343,7 @@ This can be done using:
parent_list = my_files.list_parents()
my_files.show_parent(parent_list[0])
.. image:: ../../figures/show_par.png
.. image:: /_static/show_par.png
:width: 400px


Expand Down Expand Up @@ -397,7 +397,7 @@ e.g. to view "mean_pixel_R" on your patches:
parent_list = my_files.list_parents()
my_files.show_parent(parent_list[0], column_to_plot="mean_pixel_R")
.. image:: ../../figures/show_par_RGB.png
.. image:: /_static/show_par_RGB.png
:width: 400px

If you want to see your image underneath, you can specify the ``alpha`` argument, which sets the transparency of your plotted values.
Expand All @@ -411,7 +411,7 @@ e.g. to view "mean_pixel_R" on your patches:
parent_list = my_files.list_parents()
my_files.show_parent(parent_list[0], column_to_plot="mean_pixel_R", alpha=0.5)
.. image:: ../../figures/show_par_RGB_0.5.png
.. image:: /_static/show_par_RGB_0.5.png
:width: 400px

.. note:: The ``column_to_plot`` argument can also be used with the ``show()`` method.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ For example, to show your "railspace" label:
.. todo:: update this pic

.. image:: ../../../figures/show_image_labels_10.png
.. image:: /_static/show_image_labels_10.png
:width: 400px


Expand All @@ -78,7 +78,7 @@ The ``.review_labels()`` method, which returns an interactive tool for adjusting
annotated_images.review_labels()
.. image:: ../../../figures/review_labels.png
.. image:: /_static/review_labels.png
:width: 400px


Expand Down Expand Up @@ -515,7 +515,7 @@ e.g. to plot the loss during each epoch of training and validation:
legends=["Train", "Valid"],
)
.. image:: ../../../figures/loss.png
.. image:: /_static/loss.png
:width: 400px


Expand All @@ -535,7 +535,7 @@ To see a sample of your predictions, use:
my_classifier.show_inference_sample_results(label="railspace")
.. image:: ../../../figures/inference_sample_results.png
.. image:: /_static/inference_sample_results.png
:width: 400px


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,10 @@ If two polygons overlap with intersection over area greater than the minimum IoA

Below are two examples of this:

.. image:: ../../figures/IoA.png
.. image:: /_static/IoA.png
:width: 400px

.. image:: ../../figures/IoA_0.9.png
.. image:: /_static/IoA_0.9.png
:width: 400px

By default, the minimum IoA is set to 0.7 so the deduplication algorithm will only remove the smaller polygon in the second example.
Expand Down

0 comments on commit 4d2343a

Please sign in to comment.