Skip to content

Commit

Permalink
Merge pull request #24 from MortenTabaka/MortenTabaka-patch-5 #patch
Browse files Browse the repository at this point in the history
Describe sample and mark notebook for predictions as legacy
  • Loading branch information
MortenTabaka committed Apr 9, 2023
2 parents 3289e5c + 96a0793 commit 68d98f6
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ All credits for the dataset go to the original author and contributors.**

## Making Predictions on Custom Images


After installing the necessary dependencies, execute the following command to run the prediction script:
```
python3 models/scripts/run_prediction_on_folder.py
Expand All @@ -34,6 +33,11 @@ python3 models/scripts/run_prediction_on_folder.py --help
```

## Sample result
The image used in this sample is a high-resolution TIFF orthophotomap covering an area of approximately 3.5 km². The image has a resolution of 25453x13176, and it is not part of the project dataset. Similar images for Poland regions can be obtained free of charge from the Head Office of Geodesy and Cartography through their [service](https://www.geoportal.gov.pl/dane/ortofotomapa).

To facilitate analysis, the image is split into tiles, and predictions are made on each tile. The outputs are then concatenated to the original size to produce the final result.

### Legend
- ![#000000](https://via.placeholder.com/15/000000/000000?text=+) `Background`
- ![#FF0000](https://via.placeholder.com/15/FF0000/000000?text=+) `Buildings`
- ![#008000](https://via.placeholder.com/15/008000/000000?text=+) `Woodland`
Expand All @@ -44,8 +48,6 @@ python3 models/scripts/run_prediction_on_folder.py --help
![prediction.png](reports%2Ffigures%2Fprediction.png)
![orthophotomap.png](reports%2Ffigures%2Forthophotomap.png)

Image source: https://www.geoportal.gov.pl/dane/ortofotomapa

# Installation
There are two ways to run this project: installing the environment via Anaconda or running a Docker container (recommended).

Expand Down Expand Up @@ -129,17 +131,9 @@ Jupyter notebooks used in early-stage development.
Jupyter notebook templates for machine learning operations in the project.
### Available templates
* [Training a new model.](https://github.com/MortenTabaka/Semantic-segmentation-of-LandCover.ai-dataset/blob/main/notebooks/templates/Model_training.ipynb)
* [Predict and plot masks, generated by model with downloaded best weights.](https://github.com/MortenTabaka/Semantic-segmentation-of-LandCover.ai-dataset/blob/main/notebooks/templates/Plot_predictions.ipynb)

# Data exploration

1. Check the class convention in the mask (Notebook v.1.0).

2. Preparing images for training (Notebook v.2.0).

# Model exploration
* [*LEGACY* - Predict and plot masks, generated by model with downloaded best weights.](https://github.com/MortenTabaka/Semantic-segmentation-of-LandCover.ai-dataset/blob/main/notebooks/templates/Plot_predictions.ipynb)

## DeepLabv3+ architecture
## DeepLabv3+ Architecture - Legacy Revisions

[Developemnt notebooks](https://drive.google.com/drive/folders/105HjfaU6_3NHRozYWXR9IjKiKKJRW5ez?usp=sharing)

Expand Down

0 comments on commit 68d98f6

Please sign in to comment.