Skip to content

[security][H7] Migrate off abandoned imgaug to albumentations #15

Description

@eprifti

Split out from #10 which covered H2-H6 dep bumps.

Problem: `imgaug==0.4.0` is unmaintained (last release 2020) and pulls vulnerable transitive dependencies (old Shapely, imageio, etc.). It is imported in three files:

  • `Create_database/ecg_image_generator/helper_functions.py`
  • `Create_database/ecg_image_generator/ImageAugmentation/augment.py`
  • `Create_database/ecg_image_generator/CreasesWrinkles/creases.py`

Recommended target: `albumentations>=1.4.0` — actively maintained, similar API surface.

Scope:

  1. Map each imgaug transform used to its albumentations equivalent
  2. Replace imports and usage in the three files
  3. Remove `imgaug==0.4.0` from `requirements.txt`
  4. Regenerate or verify dataset output matches (at least qualitatively)

Non-trivial — kept as its own tracking issue rather than bundled.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestsecuritySecurity vulnerability or hardening

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions