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

Apply Same Transforms to Image and Masks #502

Merged

Conversation

Pale-Blue-Dot-97
Copy link
Owner

This small PR allows the same random geometric transforms to be applied to both the imagery and masks from a dataset. This only applies to kornia transforms by leveraging its support for supplying the params of the previous transform as an argument to forward to use rather than new random parameters being generated.

Users can use this new feature by specifying transforms in the transforms key at the top-level of dataset_params. This can still be used in conjunction with transforms specified solely for image or mask. See example_PSP.yaml an example of this.

Pale-Blue-Dot-97 and others added 30 commits April 10, 2024 00:55
updates:
- [github.com/psf/black: 24.3.0 → 24.4.0](psf/black@24.3.0...24.4.0)
Bumps [starlette](https://github.com/encode/starlette) from 0.37.1 to 0.37.2.
- [Release notes](https://github.com/encode/starlette/releases)
- [Changelog](https://github.com/encode/starlette/blob/master/docs/release-notes.md)
- [Commits](encode/starlette@0.37.1...0.37.2)

---
updated-dependencies:
- dependency-name: starlette
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [onnx](https://github.com/onnx/onnx) from 1.15.0 to 1.16.0.
- [Release notes](https://github.com/onnx/onnx/releases)
- [Changelog](https://github.com/onnx/onnx/blob/main/docs/Changelog-ml.md)
- [Commits](onnx/onnx@v1.15.0...v1.16.0)

---
updated-dependencies:
- dependency-name: onnx
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
…ents/onnx-1.16.0

Bump onnx from 1.15.0 to 1.16.0 in /requirements
…ents/starlette-0.37.2

Bump starlette from 0.37.1 to 0.37.2 in /requirements
…nfig

[pre-commit.ci] pre-commit autoupdate
Bumps [wandb](https://github.com/wandb/wandb) from 0.16.2 to 0.16.6.
- [Release notes](https://github.com/wandb/wandb/releases)
- [Changelog](https://github.com/wandb/wandb/blob/main/CHANGELOG.md)
- [Commits](wandb/wandb@v0.16.2...v0.16.6)

---
updated-dependencies:
- dependency-name: wandb
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [tox](https://github.com/tox-dev/tox) from 4.14.1 to 4.14.2.
- [Release notes](https://github.com/tox-dev/tox/releases)
- [Changelog](https://github.com/tox-dev/tox/blob/main/docs/changelog.rst)
- [Commits](tox-dev/tox@4.14.1...4.14.2)

---
updated-dependencies:
- dependency-name: tox
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
…ents/tox-4.14.2

Bump tox from 4.14.1 to 4.14.2 in /requirements
…ents/wandb-0.16.6

Bump wandb from 0.16.2 to 0.16.6 in /requirements
updates:
- [github.com/psf/black: 24.4.0 → 24.4.2](psf/black@24.4.0...24.4.2)
Bumps [numpy](https://github.com/numpy/numpy) from 1.26.3 to 1.26.4.
- [Release notes](https://github.com/numpy/numpy/releases)
- [Changelog](https://github.com/numpy/numpy/blob/main/doc/RELEASE_WALKTHROUGH.rst)
- [Commits](numpy/numpy@v1.26.3...v1.26.4)

---
updated-dependencies:
- dependency-name: numpy
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [argcomplete](https://github.com/kislyuk/argcomplete) from 3.2.2 to 3.3.0.
- [Release notes](https://github.com/kislyuk/argcomplete/releases)
- [Changelog](https://github.com/kislyuk/argcomplete/blob/develop/Changes.rst)
- [Commits](kislyuk/argcomplete@v3.2.2...v3.3.0)

---
updated-dependencies:
- dependency-name: argcomplete
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
…ents/argcomplete-3.3.0

Bump argcomplete from 3.2.2 to 3.3.0 in /requirements
Bumps [scikit-learn](https://github.com/scikit-learn/scikit-learn) from 1.4.0 to 1.5.0.
- [Release notes](https://github.com/scikit-learn/scikit-learn/releases)
- [Commits](scikit-learn/scikit-learn@1.4.0...1.5.0)

---
updated-dependencies:
- dependency-name: scikit-learn
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
…ents/scikit-learn-1.5.0

Bump scikit-learn from 1.4.0 to 1.5.0 in /requirements
…nfig

[pre-commit.ci] pre-commit autoupdate
…ents/numpy-1.26.4

Bump numpy from 1.26.3 to 1.26.4 in /requirements
Bumps [mlflow](https://github.com/mlflow/mlflow) from 2.11.1 to 2.13.2.
- [Release notes](https://github.com/mlflow/mlflow/releases)
- [Changelog](https://github.com/mlflow/mlflow/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mlflow/mlflow/commits)

---
updated-dependencies:
- dependency-name: mlflow
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [requests](https://github.com/psf/requests) from 2.31.0 to 2.32.2.
- [Release notes](https://github.com/psf/requests/releases)
- [Changelog](https://github.com/psf/requests/blob/main/HISTORY.md)
- [Commits](psf/requests@v2.31.0...v2.32.2)

---
updated-dependencies:
- dependency-name: requests
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [tqdm](https://github.com/tqdm/tqdm) from 4.66.2 to 4.66.3.
- [Release notes](https://github.com/tqdm/tqdm/releases)
- [Commits](tqdm/tqdm@v4.66.2...v4.66.3)

---
updated-dependencies:
- dependency-name: tqdm
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
…ents/tqdm-4.66.3

Bump tqdm from 4.66.2 to 4.66.3 in /requirements
…ents/requests-2.32.2

Bump requests from 2.31.0 to 2.32.2 in /requirements
…ents/mlflow-2.13.2

Bump mlflow from 2.11.1 to 2.13.2 in /requirements
Bumps [matplotlib](https://github.com/matplotlib/matplotlib) from 3.8.2 to 3.9.0.
- [Release notes](https://github.com/matplotlib/matplotlib/releases)
- [Commits](matplotlib/matplotlib@v3.8.2...v3.9.0)

---
updated-dependencies:
- dependency-name: matplotlib
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [tqdm](https://github.com/tqdm/tqdm) from 4.66.3 to 4.66.4.
- [Release notes](https://github.com/tqdm/tqdm/releases)
- [Commits](tqdm/tqdm@v4.66.3...v4.66.4)

---
updated-dependencies:
- dependency-name: tqdm
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
@Pale-Blue-Dot-97 Pale-Blue-Dot-97 added enhancement New feature or request generalise Code needs generalising testing New tests needed python Pull requests that update Python code yaml Updates to yaml files labels Jul 8, 2024
@Pale-Blue-Dot-97 Pale-Blue-Dot-97 self-assigned this Jul 8, 2024
@Pale-Blue-Dot-97 Pale-Blue-Dot-97 merged commit b6e224f into 458-downstream-tasks Jul 8, 2024
0 of 14 checks passed
@Pale-Blue-Dot-97 Pale-Blue-Dot-97 deleted the 497-apply-transforms-to-images-and-masks branch July 8, 2024 19:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request generalise Code needs generalising python Pull requests that update Python code testing New tests needed yaml Updates to yaml files
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant