-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from allenai/refactor-upgrade
refactor
- Loading branch information
Showing
179 changed files
with
390,255 additions
and
573 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
data/* | ||
.env/* | ||
.env/* | ||
**/.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
*.pyc | ||
.vscode | ||
.env | ||
.env | ||
**/**/.DS_Store | ||
**/**/nohup.out | ||
**/.ipynb_checkpoints/ | ||
**/.venv/ | ||
**/*.ipynb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
exclude: ais/data/machine_annotations/tsr/standard_rendezvous.csv | ||
exclude_types: ["*.geojson"] | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.4.0 | ||
hooks: | ||
- id: check-yaml | ||
- id: end-of-file-fixer | ||
- id: trailing-whitespace | ||
- id: check-json | ||
- id: mixed-line-ending | ||
- id: requirements-txt-fixer | ||
- id: pretty-format-json | ||
args: ["--autofix"] | ||
- id: check-case-conflict | ||
- id: check-docstring-first | ||
- id: check-added-large-files | ||
- id: check-ast | ||
- id: check-byte-order-marker | ||
- id: check-executables-have-shebangs | ||
- id: check-merge-conflict | ||
- id: check-toml | ||
- id: debug-statements | ||
- id: detect-aws-credentials | ||
args: [--allow-missing-credentials] | ||
- id: detect-private-key | ||
|
||
- repo: https://github.com/pre-commit/mirrors-mypy | ||
rev: v1.1.1 | ||
hooks: | ||
- id: mypy | ||
args: | ||
[ | ||
--install-types, | ||
--ignore-missing-imports, | ||
--disallow-untyped-defs, | ||
--ignore-missing-imports, | ||
--non-interactive, | ||
] | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.4.0 | ||
hooks: | ||
- id: detect-private-key | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.4.0 | ||
hooks: | ||
- id: check-added-large-files | ||
- repo: https://github.com/PyCQA/bandit | ||
rev: "1.7.5" | ||
hooks: | ||
- id: bandit | ||
exclude: ^tests/ | ||
args: | ||
- -s | ||
- B101 | ||
- repo: local | ||
hooks: | ||
- id: interrogate | ||
name: interrogate | ||
language: system | ||
entry: interrogate | ||
types: [python] | ||
args: | ||
[ | ||
--ignore-init-method, | ||
--ignore-init-module, | ||
-p, | ||
-vv, | ||
ais, | ||
--fail-under=80, | ||
] | ||
- repo: https://github.com/charliermarsh/ruff-pre-commit | ||
rev: "v0.0.257" | ||
hooks: | ||
- id: ruff | ||
args: [--fix, --exit-non-zero-on-fix, --ignore, "E501"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Base Image | ||
FROM nvidia/cuda:11.3.1-cudnn8-runtime-ubuntu20.04@sha256:9ccfe38d9cb31ae23f6f8f9595b450565da18399c2e71ebc9a5c079f786319e3 | ||
|
||
# Environment Variables | ||
ENV WANDB_API_KEY=$WANDB_API_KEY \ | ||
RUN_TAG=$RUN_TAG \ | ||
WANDB_MODE=$WANDB_MODE \ | ||
WANDB_START_METHOD="thread" \ | ||
WANDB_PROJECT="vessel-detection" \ | ||
COPERNICUS_USERNAME=$COPERNICUS_USERNAME \ | ||
COPERNICUS_PASSWORD=$COPERNICUS_PASSWORD | ||
|
||
# System Dependencies and Cleanup | ||
RUN apt-get update -y && \ | ||
DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt-get install -y tzdata && \ | ||
apt-get install -y software-properties-common ffmpeg libsm6 libxext6 libhdf5-serial-dev netcdf-bin libnetcdf-dev && \ | ||
add-apt-repository ppa:ubuntugis/ubuntugis-unstable && \ | ||
apt-get update && \ | ||
apt-get install -y curl build-essential gdal-bin libgdal-dev libpq-dev python3-gdal python3-pip apt-transport-https ca-certificates gnupg && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
# Copy only the necessary files | ||
COPY requirements.txt /home/vessel_detection/requirements.txt | ||
|
||
# Install Python Packages | ||
RUN pip install --no-cache-dir -r /home/vessel_detection/requirements.txt | ||
|
||
# Set Working Directory and Prepare App | ||
WORKDIR /home/vessel_detection/src | ||
COPY src /home/vessel_detection/src | ||
COPY tests /home/vessel_detection/src/ | ||
RUN mkdir -p /root/.cache/torch/hub/checkpoints/ | ||
COPY torch_weights/swin_v2_s-637d8ceb.pth /root/.cache/torch/hub/checkpoints/swin_v2_s-637d8ceb.pth | ||
COPY torch_weights/resnet50-0676ba61.pth /root/.cache/torch/hub/checkpoints/resnet50-0676ba61.pth | ||
COPY torch_weights/swin_v2_t-b137f0e2.pth /root/.cache/torch/hub/checkpoints/swin_v2_t-b137f0e2.pth | ||
|
||
# CMD | ||
CMD ["python3", "main.py"] |
3 changes: 0 additions & 3 deletions
3
data/model_artifacts/sentinel-2/frcnn_cmp2/15cddd5-sentinel2-swinv2-small-fpn/best.pth
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.