Skip to content

Fix Normalize transform #20

@raghavmecheri

Description

@raghavmecheri

Describe the bug
I've hardcoded this entire function call -- it's specific to a 3-dimensional array, where the innermost element has 3 channels. This is probably not a good idea at all.

To Reproduce
There's no bug at the moment, so this is redundant. I'm sure this'll lead to a load of different bugs if not fixed though.

Expected behavior

  • Generalises to different sized input arrays
  • Maybe something more efficient than 3 nested loops?

Screenshots
N/A

Desktop (please complete the following information):
N/A

Additional context
Ref:

_norm = (arr, mean, std) => {

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions