Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Finetuning presto with prometheo #269

Draft
wants to merge 18 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ jobs:
cd presto-worldcereal
pip install .
cd ..
- name: Install Prometheo from source
run: |
git clone https://github.com/WorldCereal/prometheo.git
cd prometheo
pip install .
cd ..
- name: Install WorldCereal dependencies
run: pip install ".[dev,train]"
- name: Run WorldCereal tests
Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,7 @@ jobs:
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
python -m pip install isort black==24.3.0 ruff==0.5.0 mypy==1.11.2 types-requests~=2.32.0

- name: isort
run: python -m isort . --check --diff
- name: black
run: python -m black --check --diff .
python -m pip install ruff==0.8.0 mypy==1.11.2 types-requests~=2.32.0
- name: ruff
run: ruff check .
- name: mypy
Expand Down
31 changes: 2 additions & 29 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,45 +37,18 @@ repos:
entry: shellcheck --check-sourced --shell=bash --exclude=SC1087
language: system
types: [shell]
# - id: pydocstyle
# name: pydocstyle
# entry: pydocstyle
# language: system
# types: [python]
# exclude: "(^experiments/|.*_depr)"
# - id: flake8
# name: flake8
# entry: flake8
# language: system
# types: [python]
# exclude: "(^tasks/|.*_depr)"
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: no-commit-to-branch
args: [ '--branch', 'main' ]
- repo: https://github.com/radix-ai/auto-smart-commit
rev: v1.0.3
hooks:
- id: auto-smart-commit
- repo: https://github.com/psf/black
rev: 24.3.0
hooks:
- id: black
language_version: python3
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
name: isort (python)
args: ["--profile", "black"]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.15
rev: v0.8.0
hooks:
- id: ruff
args: ["--fix"]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.11.2
rev: v1.13.0
hooks:
- id: mypy
additional_dependencies: ["types-requests"]
1 change: 1 addition & 0 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,5 @@ dependencies:
- openeo-gfmap==0.3.0
- git+https://github.com/worldcereal/worldcereal-classification
- git+https://github.com/WorldCereal/presto-worldcereal.git@croptype
- git+https://github.com/WorldCereal/prometheo

3 changes: 2 additions & 1 deletion jenkins_pre_install_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,6 @@ dir=$(pwd)

su - jenkins -c "cd $dir && \
source venv310/bin/activate && \
pip install git+https://github.com/WorldCereal/presto-worldcereal.git@croptype
pip install git+https://github.com/WorldCereal/presto-worldcereal.git@croptype && \
pip install git+https://github.com/WorldCereal/prometheo.git
"
197 changes: 0 additions & 197 deletions notebooks/reference_data/01_prepare_datasets.ipynb

This file was deleted.

Loading
Loading