Skip to content

Releases: knaw-huc/laypa

2.1.3

17 Sep 16:02
0796b54
Compare
Choose a tag to compare

Release Notes for Laypa Version 2.1.3

Date: 2024-9-17

Overview

Docker updates and citation

New Features

  • CITATION.cff: You can now get citation info directly from github

Enhancements

  • TMP dir docker: Create TMP dir so running build scripts just works without needing to move a bunch of files around
  • Correct status code API: Previously status code was not set correctly
  • Scale factor now matches the index of pixel: subtract 1 from the number of pixels because arrays start at 0

Deprecations and Removals

  • Micromamba Docker: This build was not really recommended and did not result in significantly smaller docker images anyways

Known Issues

  • JPEG2000: loading jpeg 2000 does not work in python 3.11, some code is written specifically for 3.12. Waiting on pillow to release a version that plays nicely with 3.12 and jpeg2000 with embedded color profile

Docker Image

The Docker image for version 2.1.3 can be obtained using the following command:

docker pull loghi/docker.laypa:2.1.3

Contributors


Full Changelog: 2.1.0...2.1.3

2.1.0

02 Jul 12:44
Compare
Choose a tag to compare

Release Notes for Laypa Version 2.1.0

Date: 2024-6-26

Overview

Small fixes and moving of code

New Features

  • Argument for number of workers: Allow for setting number of workers for the dataloader during inference (default 4)

Enhancements

  • Seperate tools folder: Split tools from utils
  • Comments in extra defaults: Explain what all of the added options of the extra default do

Deprecations and Removals

  • None

Known Issues

  • Temp downgrade of numpy: Prevent problems caused by numpy 2

Docker Image

The Docker image for version 2.1.0 can be obtained using the following command:

docker pull loghi/docker.laypa:2.1.0

Contributors


Full Changelog: 2.0.5...2.1.0

2.0.5

18 Jun 15:36
d53e064
Compare
Choose a tag to compare

Release Notes for Laypa Version 2.0.5

Date: 2024-6-6

Overview

Refactor and validation tool

New Features

  • Validation tool: Get validation values for models without training

Enhancements

  • Fixed README info: Link to zenodo,
  • Turn off augmentations by default: Make sure you turn on the ones you want
  • Refactor: to remove some import

Deprecations and Removals

  • None

Known Issues

  • None

Docker Image

The Docker image for version 2.0.5 can be obtained using the following command:

docker pull loghi/docker.laypa:2.0.5

Contributors


Full Changelog: 2.0.4...2.0.5

2.0.4

03 May 13:30
Compare
Choose a tag to compare

Release Notes for Laypa Version 2.0.4

Date: 2024-4-29

Overview

Fix training being broken due to typo

New Features

  • None

Enhancements

  • Training is working again: Typo prevented training from running, got past manual test because of making the same typo twice
  • Fixed size validation Use correct scaling when running the validation with fixed size rescaling

Deprecations and Removals

  • None

Known Issues

  • None

Docker Image

The Docker image for version 2.0.4 can be obtained using the following command:

docker pull loghi/docker.laypa:2.0.4

Contributors


Full Changelog: 2.0.3...2.0.4

2.0.3

25 Apr 14:04
a24d178
Compare
Choose a tag to compare

Release Notes for Laypa Version 2.0.3

Date: 2024-4-25

Overview

New augmentations, and finally fixing training

New Features

  • New Augmentations: Invert, JPEG compression, Noise, Hue

Enhancements

  • Output used augments when testing: datasets/augmentations.py now shows the images as well as the used transformations.
  • Update some docs: Doc strings are updated
  • Fix Edge size not set: Preprocessing of images using the older method of having one size length be the same for all images is now fixed. Training with PREPROCESS.RESIZE.RESIZE_MODE longest_edge or PREPROCESS.RESIZE.RESIZE_MODE shortest_edge should work again.
  • Use np.uint8 wherever possible for Augmentations: For augmentations that don't require high precision use the unsigned integers in hopes of speeding up. May not produce the exact same numbers compared to the float32 version previously used.

Deprecations and Removals

  • None

Known Issues

  • Training broke due to typo: See 2.0.4 for fix

Docker Image

The Docker image for version 2.0.3 can be obtained using the following command:

docker pull loghi/docker.laypa:2.0.3

Contributors


Full Changelog: 2.0.2...2.0.3

2.0.2

25 Apr 09:31
Compare
Choose a tag to compare

Release Notes for Laypa Version 2.0.2

Date: 2024-4-18

Overview

Minor bug fixes

New Features

  • None

Enhancements

  • Remove /encrypted/ from configs: This folder only existed on a specific server, now all configs should be usable without changing this manually
  • Not longer wrong augmentations: Using the wrong augmentation for validation resulted in resizing twice, thus outputting the wrong metrics
  • Better augmentation visualization: Use real configs to show the effect of augmentations
  • Docs update: update eval.py docs

Deprecations and Removals

  • None

Known Issues

  • Edge size not set: Preprocessing of images using the older method of having one size length be the same for all images is broken. Therefore training cannot start with PREPROCESS.RESIZE.RESIZE_MODE longest_edge or PREPROCESS.RESIZE.RESIZE_MODE shortest_edge

Docker Image

The Docker image for version 2.0.2 can be obtained using the following command:

docker pull loghi/docker.laypa:2.0.2

Contributors


Full Changelog: 2.0.1...2.0.2

2.0.1

25 Apr 09:20
Compare
Choose a tag to compare

Release Notes for Laypa Version 2.0.1

Date: 2024-4-10

Overview

Classes for baselines, and some minor bug fixes

New Features

  • Baseline with classes: Create a hybrid between baselines and regions. Where the baselines get the class of the region they are assigned to. The drawing in is also done with this class

Enhancements

  • DPI Preprocess: Also apply DPI rescaling during the preprocessing step. Get the DPI without opening the full image using imagesize package.
  • Resume training: Bug fix to properly resume training after something killed the process
  • Move model to device: Move model to device without explicitly checking. No-op if already on device

Deprecations and Removals

  • None

Known Issues

  • Edge size not set: Preprocessing of images using the older method of having one size length be the same for all images is broken. Therefore training cannot start with PREPROCESS.RESIZE.RESIZE_MODE longest_edge or PREPROCESS.RESIZE.RESIZE_MODE shortest_edge

Docker Image

The Docker image for version 2.0.1 can be obtained using the following command:

docker pull loghi/docker.laypa:2.0.1

Contributors


Full Changelog: 2.0.0...2.0.1

2.0.0

04 Apr 15:57
ed77518
Compare
Choose a tag to compare

Release Notes for Laypa Version 2.0.0

Date: 2024-4-4

Overview

DPI, CPU fallback, AugInput refactor, Docker file update

New Features

  • DPI adjustment: allow (automatic) adjustment of the images size based on the DPI read from the image
  • CPU fallback: On OOM try again but on CPU (when using the API)

Enhancements

  • AugInput: Now using AugInput as a standard to more easily allow changes/additions to the augmentation and input
  • Configurable: Make classes configurable so that they can automatically load in values from the config to their args/kwargs
  • Remove new line from git hash: Bug with git hash should be resolved when using the docker image
  • Smaller Docker images: smaller docker images by removing nsight packages
  • Typehints and docstrings: Update to outdated and new functions

Deprecations and Removals

  • None

Known Issues

  • None

Docker Image

The Docker image for version 2.0.0 can be obtained using the following command:

docker pull loghi/docker.laypa:2.0.0

Contributors


Full Changelog: 1.3.12...2.0.0

1.3.12

22 Mar 11:28
Compare
Choose a tag to compare

Release Notes for Laypa Version 1.3.11-1.3.12

Date: 2024-3-22

Overview

Bug fixes for squarelines and AMP. Duplication detection in preprocessing

New Features

  • Duplication detection based on filename: Detect duplicates and where the are coming from. Also useful to see overlap in GT datasets (if names are meaningful)

Enhancements

  • Fix issue with color drawing of square lines: Panoptic segmentation with square lines is now supported
  • Fix top bottom drawing in: bug made all previously drawn lines part of the top bottom calculation
  • Fix typo that prevented AMP during training: See Deprecations and Removals for how to use it

Deprecations and Removals

  • AMP is turned off by default: Users experience issues with bfloat16. To prevent multiple people coming with this question the AMP has been turned off. To turn it back on for training and inference use MODEL.AMP_TRAIN.ENABLED and MODEL.AMP_TEST.ENABLED respectively.

Known Issues

  • None

Docker Image

The Docker image for version 1.3.12 can be obtained using the following command:

docker pull loghi/docker.laypa:1.3.12

Contributors


Full Changelog: 1.3.10...1.3.12

1.3.10

06 Feb 15:44
22a9bfd
Compare
Choose a tag to compare

Release Notes for Laypa Version 1.3.9-1.3.10

Date: 2024-2-2

Overview

Automatic Mixed Precision, squaring of lines, API update, and fixing weird OOM stuff

New Features

  • Automatic Mixed Precision: Added optional arguments to use Automatic Mixed Precision (AMP) during training and inference. Current default casting has been set to bfloat16
  • Square Lines: Added option to draw square lines. First drawing in lines and retroactively assigning what pixels are part of the beginning and end of the baseline. See Known Issues

Enhancements

  • API health point: Check if API has not crashed
  • Improvement to resume training method: Only requires a config file now, infers the checkpoint from the config
  • OOM Error handeling: Remove traceback from error to prevent OOM from crashing the full program

Deprecations and Removals

  • None

Known Issues

  • Square Lines for training pano: Currently broken, but already fixed in next release cycle

Docker Image

The Docker image for version 1.3.10 can be obtained using the following command:

docker pull loghi/docker.laypa:1.3.10

Contributors


Full Changelog: 1.3.8...1.3.10