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

Small methods to augment images #19

Closed
wants to merge 36 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
8d194bb
Small methods to augment images
delucchi-cmu Oct 17, 2023
16f7d97
Merge branch 'delucchi/copier' of http://github.com/lincc-frameworks/…
delucchi-cmu Oct 17, 2023
14f88b0
Better dependency.
delucchi-cmu Oct 17, 2023
307cec7
Add detectron to workflow steps.
delucchi-cmu Oct 18, 2023
f369168
Install with conda instead
delucchi-cmu Oct 18, 2023
30b372c
Add arg
delucchi-cmu Oct 18, 2023
4199c4c
lol oops
delucchi-cmu Oct 18, 2023
32d4cbe
Merge pull request #22 from lincc-frameworks/main
delucchi-cmu Oct 18, 2023
10aeb79
try other environment
delucchi-cmu Oct 18, 2023
80f556c
change name
delucchi-cmu Oct 18, 2023
157e211
take out mamba?
delucchi-cmu Oct 18, 2023
008b78b
a;sdfj
delucchi-cmu Oct 18, 2023
3848b79
match channels
delucchi-cmu Oct 18, 2023
18e0453
python version
delucchi-cmu Oct 18, 2023
64cf5d1
asdf
delucchi-cmu Oct 18, 2023
ead7f5a
cuda action
delucchi-cmu Oct 18, 2023
fb54227
cuda action
delucchi-cmu Oct 18, 2023
8a500f1
cuda version
delucchi-cmu Oct 18, 2023
2a37c56
cuda version
delucchi-cmu Oct 18, 2023
3038575
take out cuda
delucchi-cmu Oct 18, 2023
41ad7cb
move torch dep
delucchi-cmu Oct 18, 2023
e3049d8
take out more deps
delucchi-cmu Oct 18, 2023
65fd2b7
try separate env file
delucchi-cmu Oct 18, 2023
cecaac2
change order
delucchi-cmu Oct 18, 2023
8704792
scarlet install
delucchi-cmu Oct 19, 2023
9611a0e
scarlet dependencies
delucchi-cmu Oct 19, 2023
aab4a1e
move deps
delucchi-cmu Oct 19, 2023
f8efeda
add peigen needs to be fully installed before scarlet is built?
delucchi-cmu Oct 19, 2023
fe49b1c
extract environment set up
delucchi-cmu Oct 19, 2023
bd1c2f6
hah - checkout before referencing file...
delucchi-cmu Oct 19, 2023
65f0ffd
take out of steps
delucchi-cmu Oct 19, 2023
4bd152c
resusable might not be right...
delucchi-cmu Oct 19, 2023
b1676ed
update all workflows
delucchi-cmu Oct 19, 2023
f294269
hm.. only pre-commit failed.
delucchi-cmu Oct 19, 2023
6f58951
use special bash again
delucchi-cmu Oct 19, 2023
c703e30
ugh.
delucchi-cmu Oct 19, 2023
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
21 changes: 15 additions & 6 deletions .github/workflows/build-documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,30 @@ concurrency:

jobs:
build:

runs-on: ubuntu-latest

defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v4
- uses: conda-incubator/setup-miniconda@v2
with:
python-version: '3.10'
python-version: 3.9.15
channels: conda-forge,defaults
channel-priority: strict
show-channel-urls: true
use-mamba: true
environment-file: ci-env.yml
activate-environment: deepdisc
- name: Install dependencies
run: |
sudo apt-get update
python -m pip install --upgrade pip
if [ -f docs/requirements.txt ]; then pip install -r docs/requirements.txt; fi
pip install .
pip install 'git+https://github.com/facebookresearch/detectron2.git@80307d2d5e06f06a8a677cc2653f23a4c56402ac'
pip install 'git+https://github.com/pmelchior/scarlet.git'
pip install .[dev]
if [ -f docs/requirements.txt ]; then pip install -r docs/requirements.txt; fi
- name: Install notebook requirements
run: |
sudo apt-get install pandoc
Expand Down
18 changes: 13 additions & 5 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,28 @@ concurrency:
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
- uses: conda-incubator/setup-miniconda@v2
with:
python-version: '3.10'
python-version: 3.9.15
channels: conda-forge,defaults
channel-priority: strict
show-channel-urls: true
use-mamba: true
environment-file: ci-env.yml
activate-environment: deepdisc
- name: Install dependencies
run: |
sudo apt-get update
python -m pip install --upgrade pip
pip install .
pip install 'git+https://github.com/facebookresearch/detectron2.git@80307d2d5e06f06a8a677cc2653f23a4c56402ac'
pip install 'git+https://github.com/pmelchior/scarlet.git'
pip install .[dev]
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Analyze code with linter

run: |
pylint -rn -sn --recursive=y ./src --rcfile=./src/.pylintrc
17 changes: 13 additions & 4 deletions .github/workflows/pre-commit-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,32 @@ on:
jobs:
pre-commit-ci:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
env:
SKIP: "check-lincc-frameworks-template-version,pytest-check,no-commit-to-branch,validate-pyproject,check-added-large-files,sphinx-build"
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v4
- uses: conda-incubator/setup-miniconda@v2
with:
python-version: '3.10'
python-version: 3.9.15
channels: conda-forge,defaults
channel-priority: strict
show-channel-urls: true
use-mamba: true
environment-file: ci-env.yml
activate-environment: deepdisc
- name: Install dependencies
run: |
sudo apt-get update
python -m pip install --upgrade pip
pip install .
pip install 'git+https://github.com/facebookresearch/detectron2.git@80307d2d5e06f06a8a677cc2653f23a4c56402ac'
pip install 'git+https://github.com/pmelchior/scarlet.git'
pip install .[dev]
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- uses: pre-commit/[email protected]
with:
extra_args: --from-ref ${{ github.event.pull_request.base.sha }} --to-ref ${{ github.event.pull_request.head.sha }}
Expand Down
21 changes: 16 additions & 5 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,29 @@ permissions:

jobs:
deploy:

runs-on: ubuntu-latest

defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
- uses: conda-incubator/setup-miniconda@v2
with:
python-version: '3.10'
python-version: 3.9.15
channels: conda-forge,defaults
channel-priority: strict
show-channel-urls: true
use-mamba: true
environment-file: ci-env.yml
activate-environment: deepdisc
- name: Install dependencies
run: |
sudo apt-get update
python -m pip install --upgrade pip
pip install .
pip install 'git+https://github.com/facebookresearch/detectron2.git@80307d2d5e06f06a8a677cc2653f23a4c56402ac'
pip install 'git+https://github.com/pmelchior/scarlet.git'
pip install .[dev]
pip install build
- name: Build package
run: python -m build
Expand Down
22 changes: 13 additions & 9 deletions .github/workflows/smoke-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,25 +16,29 @@ on:

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9', '3.10']

defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
- uses: conda-incubator/setup-miniconda@v2
with:
python-version: ${{ matrix.python-version }}
python-version: 3.9.15
channels: conda-forge,defaults
channel-priority: strict
show-channel-urls: true
use-mamba: true
environment-file: ci-env.yml
activate-environment: deepdisc
- name: Install dependencies
run: |
sudo apt-get update
python -m pip install --upgrade pip
pip install .
pip install 'git+https://github.com/facebookresearch/detectron2.git@80307d2d5e06f06a8a677cc2653f23a4c56402ac'
pip install 'git+https://github.com/pmelchior/scarlet.git'
pip install .[dev]
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: List dependencies
run: |
pip list
Expand Down
22 changes: 13 additions & 9 deletions .github/workflows/testing-and-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,25 +11,29 @@ on:

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9', '3.10']

defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
- uses: conda-incubator/setup-miniconda@v2
with:
python-version: ${{ matrix.python-version }}
python-version: 3.9.15
channels: conda-forge,defaults
channel-priority: strict
show-channel-urls: true
use-mamba: true
environment-file: ci-env.yml
activate-environment: deepdisc
- name: Install dependencies
run: |
sudo apt-get update
python -m pip install --upgrade pip
pip install .
pip install 'git+https://github.com/facebookresearch/detectron2.git@80307d2d5e06f06a8a677cc2653f23a4c56402ac'
pip install 'git+https://github.com/pmelchior/scarlet.git'
pip install .[dev]
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Run unit tests with pytest
run: |
python -m pytest tests --cov=deepdisc --cov-report=xml
Expand Down
20 changes: 20 additions & 0 deletions ci-env.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: deepdisc

channels:
- conda-forge
- defaults

dependencies:
- python=3.9
- astropy
- ipykernel
- imgaug
- numpy
- opencv
- pybind11
- pytorch
- torchvision
- pip:
- autograd
- peigen
- proxmin
Loading
Loading