Brazilian nut and rubber tree detection from satellite images. Self-supervised representation learning and few-shot classification in PyTorch. Streamlit app for interactive visualization.
Project description
XPRIZE 2024 - Few-shot classification of Brazil nut trees in satellite imagery
The XPRIZE is a global competition designed to inspire and incentivize groundbreaking innovations that address some of the world's most pressing challenges. Established in 1995 by Peter Diamandis, the first XPRIZE was the Ansari XPRIZE, which awarded $10 million to the first team to build a private spacecraft capable of carrying passengers to the edge of space twice within two weeks. Since then, XPRIZE competitions have expanded to various fields, including health, energy, education, and the environment, offering substantial cash prizes to teams that achieve specific, ambitious goals. The idea is to catalyze technological advancements and solutions that might not emerge as quickly—or at all—without the motivation of a high-stakes competition.
This project explores the use of self-supervised representation learning to enhance the few-shot classification of Brazil nut trees in satellite imagery. By applying self-supervised techniques, the model learns robust features from large volumes of unlabeled satellite data, which can then be adapted with minimal labeled samples. This methodology addresses the common challenge of limited labeled data in remote sensing, aiming to improve the detection and classification accuracy of Brazil nut trees. The project’s outcomes could significantly contribute to more effective monitoring and conservation practices in the Amazon rainforest.
Setup and Installation
To get started, follow the steps below to set up your environment.
1. Install rye
If you haven't installed rye
yet, you can do so by following these instructions:
For macOS and Linux:
Open your terminal and run the following command:
curl -sSf https://rye.astral.sh/get | bash
2. Install Dependencies
Once rye is installed, sync the project dependencies by running:
rye sync
Running the Application
To run the application, ensure you have saved the pretrained encoder in ./models/encoder.onnx and placed your data in the ./data/ directory.
Running the Streamlit App
Start the application with the following command:
rye run dev
This will start the Streamlit app and open it in your default browser.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file xprize-0.2.0.tar.gz
.
File metadata
- Download URL: xprize-0.2.0.tar.gz
- Upload date:
- Size: 12.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | beb3a4eb51390274171c2ab444445a9368f7a4865e781ad9dea93d9e9e71f2aa |
|
MD5 | 0138c0fccdb9eb1bd445dc3efdb265da |
|
BLAKE2b-256 | 3d3260fa024c8a17b48a5eb0290325c90ccfed33f1a02dd2d2a83eed8450e9b7 |
File details
Details for the file xprize-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: xprize-0.2.0-py3-none-any.whl
- Upload date:
- Size: 2.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0e91ed89bfdcf0f6d0934a1b1d3143961e649f98aaa43edc8c9aec3edcbfa6b |
|
MD5 | e5c920618bd648cdc989d7814541c4e6 |
|
BLAKE2b-256 | 17badce9ddf5ae542919fe269d4182a09b283ae0bf62ec3a9dcff681065a12dc |