Skip to content

Commit

Permalink
Merge pull request #262 from alan-turing-institute/add-nb-deepforest-…
Browse files Browse the repository at this point in the history
…livestock

Notebook - Livestock detection using DeepForest
  • Loading branch information
acocac authored Dec 5, 2024
2 parents 711698f + 573c9ef commit 7004360
Show file tree
Hide file tree
Showing 8 changed files with 85 additions and 35 deletions.
4 changes: 4 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,7 @@
path = book/notebooks/gallery/67a1e320-7c47-4ea9-8df8-e868326bc90b
url = https://github.com/eds-book-gallery/67a1e320-7c47-4ea9-8df8-e868326bc90b.git
branch = render
[submodule "book/notebooks/gallery/95199651-9e81-4cae-a3a7-66398a9a5f62"]
path = book/notebooks/gallery/95199651-9e81-4cae-a3a7-66398a9a5f62
url = https://github.com/eds-book-gallery/95199651-9e81-4cae-a3a7-66398a9a5f62
branch = render
15 changes: 14 additions & 1 deletion book/_bibliography/references.bib
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ @article{Weinstein2020_MEE
volume = {11},
url = {https://besjournals.onlinelibrary.wiley.com/doi/abs/10.1111/2041-210X.13472},
year = {2020},
topic = {15d986da-2d7c-44fb-af71-700494485def}
topic = {15d986da-2d7c-44fb-af71-700494485def, 95199651-9e81-4cae-a3a7-66398a9a5f62}
}

@article{Weinstein2020_EI,
Expand Down Expand Up @@ -437,4 +437,17 @@ @misc{cocacastro2024_icenetnb
doi = {10.5281/zenodo.10808514},
url = {https://doi.org/10.5281/zenodo.10808514},
topic = {67a1e320-7c47-4ea9-8df8-e868326bc90b}
}

### 95199651-9e81-4cae-a3a7-66398a9a5f62
@misc{livestockdataset,
author = {G.J. Franke and Sander Mucher},
publisher = {Harvard Dataverse},
title = {{Annotated cows in aerial images for use in deep learning models}},
year = {2021},
version = {V1},
doi = {10.7910/DVN/N7GJYU},
url = {https://doi.org/10.7910/DVN/N7GJYU},
topic = {95199651-9e81-4cae-a3a7-66398a9a5f62}
}
2 changes: 2 additions & 0 deletions book/_toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ parts:
- file: notebooks/gallery
title: Gallery
sections:
- file: notebooks/gallery/95199651-9e81-4cae-a3a7-66398a9a5f62/notebook
title: Livestock detection (DeepForest)
- file: notebooks/gallery/67a1e320-7c47-4ea9-8df8-e868326bc90b/notebook
title: Daily sea ice forecasting (IceNet)
- file: notebooks/gallery/39d9c177-11da-41b2-9b64-63f4c1c834b3/notebook
Expand Down
36 changes: 36 additions & 0 deletions book/notebooks/gallery.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,42 @@
::::{grid} 1 3 3 3
:gutter: 2

:::{grid-item-card} Livestock detection <br> (DeepForest)
:margin: 3 0 0 0
:link: ./gallery/95199651-9e81-4cae-a3a7-66398a9a5f62/notebook.html
:link-type: url
:text-align: center
:shadow: md

{bdg-primary}`Farming`
{bdg-secondary}`Modelling`
<br>
{bdg-warning}`Standard`
{bdg-info}`Python`
^^^

<img src="https://github.com/eds-book-gallery/95199651-9e81-4cae-a3a7-66398a9a5f62/blob/postprint/images/thumbnail.png?raw=True"/>

+++
Appel (2024)

<p align="center">
<a href="https://github.com/eds-book-gallery/95199651-9e81-4cae-a3a7-66398a9a5f62/blob/main/LICENSE">
<img alt="License" src="https://img.shields.io/badge/License-MIT-yellow.svg">
</a>
<a href="http://mybinder.org/v2/gh/eds-book-gallery/95199651-9e81-4cae-a3a7-66398a9a5f62/main?labpath=notebook.ipynb">
<img alt="binder" src="https://mybinder.org/badge_logo.svg">
</a>
<a href="https://github.com/eds-book-gallery/95199651-9e81-4cae-a3a7-66398a9a5f62/actions/workflows/render.yaml">
<img alt="render" src="https://github.com/eds-book-gallery/95199651-9e81-4cae-a3a7-66398a9a5f62/actions/workflows/render.yaml/badge.svg">
</a>
<a href="https://zenodo.org/badge/latestdoi/880931043">
<img alt="doi" src="https://zenodo.org/badge/880931043.svg">
</a>
<br/>
</p>
:::

:::{grid-item-card} Daily sea ice forecasting <br> (IceNet library)
:margin: 3 0 0 0
:link: ./gallery/67a1e320-7c47-4ea9-8df8-e868326bc90b/notebook.html
Expand Down
57 changes: 25 additions & 32 deletions misc/rohub/register.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,27 +10,27 @@

# metadata
metadata_contribution = {
'environment': 'polar',
'environment': 'farming',
'topic': 'modelling',
'reponame': '67a1e320-7c47-4ea9-8df8-e868326bc90b',
'title': "Sea ice forecasting using the IceNet library",
'inputs': {'input1':{'name':'Codebase of the IceNet library',
'url':'https://github.com/icenet-ai/icenet/'},
'reponame': '95199651-9e81-4cae-a3a7-66398a9a5f62',
'title': "Livestock detection using DeepForest",
'inputs': {'input1':{'name':'Input dataset for the fine-tuned model',
'url':'https://doi.org/10.7910/DVN/N7GJYU'},
},
'outputs': {'content': 'results',
'url': "https://doi.org/10.5281/zenodo.12612126"},
'url': "https://doi.org/10.5281/zenodo.14279111"},
'author_GHuser': 'eds-book-gallery',
'references':{'ref1':{'name':'Seasonal Arctic sea ice forecasting with probabilistic deep learning',
'url':"https://doi.org/10.1038/s41467-021-25257-4"}},
'sketch': {'title':'Image showing an example of the forecasted sea ice',
'path':'_temp/rohub/67a1e320-7c47-4ea9-8df8-e868326bc90b/plot.png'}
'references':{'ref1':{'name':'Deepforest: a python package for rgb deep learning tree crown delineation',
'url':"https://doi.org/https://doi.org/10.1111/2041-210X.13472"}},
'sketch': {'title':'Image showing an example of the finetuned model predictions to detect livestock',
'path':'_temp/rohub/95199651-9e81-4cae-a3a7-66398a9a5f62/plot.png'}
}

title_nb = metadata_contribution['title']

metadata_rohub = {
'title': f'{title_nb} (Jupyter Notebook) published in the Environmental Data Science book',
'research_areas': ['Environmental research', 'Oceanography', 'Deep learning'],
'research_areas': ['Environmental research', 'Agriculture', 'Deep learning'],
'description': f'The research object refers to the {title_nb} notebook published in the Environmental Data Science book.',
'ros_type': 'Executable Research Object',
'ros_template': 'Executable Research Object folders structure',
Expand All @@ -48,34 +48,27 @@
# edition
authors=[
{"agent_type": "user",
"display_name": "Bryn Noel Ubald",
"name": "Bryn Noel Ubald",
"email": "[email protected]",
"orcid_id": "0000-0002-0206-7140",
"affiliation": "British Antarctic Survey"},
{"agent_type": "user",
"display_name": "James Byrne",
"name": "James Byrne",
"email": "[email protected]",
"orcid_id": "0000-0003-3731-2377",
"affiliation": "British Antarctic Survey"},
"display_name": "Cameron Appel",
"name": "Cameron Appel",
"email": "[email protected]",
"affiliation": "Queen Mary University London"},
]

ro.set_authors(agents=authors)

reviewers=[
{"agent_type": "user",
"display_name": "Wei Ji",
"name": "Wei Ji",
"email": "[email protected]",
"orcid_id": "0000-0003-2354-1988",
"affiliation": "Development Seed"},
"display_name": "Ethan P. White",
"name": "Ethan P. White",
"email": "[email protected]",
"orcid_id": "0000-0001-6728-7745",
"affiliation": "University of Florida"},
{"agent_type": "user",
"display_name": "William Gregory",
"name": "William Gregory",
"email": "[email protected]",
"orcid_id": "0000-0001-8176-1642",
"affiliation": "Princeton University"},
"display_name": "Louisa Van Zeeland",
"name": "Louisa Van Zeeland",
"email": "[email protected]",
"orcid_id": "0009-0005-0392-4377",
"affiliation": "The Alan Turing Institute"},
]

ro.set_contributors(agents=reviewers)
Expand Down
3 changes: 2 additions & 1 deletion misc/uuid/gen_uuid.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ def gen_new_uuid_edsbook():
'ac327c3a-5264-40a2-8c6e-1e8d7c4b37ef', '94486a7f-e046-461f-bbb9-334ec7b57040',
'bc30df18-fce2-42fa-aade-1ce5b7f3ca3c', '15d986da-2d7c-44fb-af71-700494485def',
'a2875cdc-ba6a-49dc-aab7-cdf7c4fc0fa8', '1b8921af-e77f-4ccf-ae38-4813cdceba0f',
'b34facfa-cea8-48f5-89f6-f11ce00812a9', '93463cac-471a-469d-ad52-0514fd9b67f2']
'b34facfa-cea8-48f5-89f6-f11ce00812a9', '93463cac-471a-469d-ad52-0514fd9b67f2',
'67a1e320-7c47-4ea9-8df8-e868326bc90b', '95199651-9e81-4cae-a3a7-66398a9a5f62']

gen_new_uuid_edsbook()

0 comments on commit 7004360

Please sign in to comment.