Skip to content

Add type hints to Zero-DCE model functions#24

Open
geetanunakani wants to merge 1 commit into
TechieSamosa:mainfrom
geetanunakani:quality/type-hints-zero-dce
Open

Add type hints to Zero-DCE model functions#24
geetanunakani wants to merge 1 commit into
TechieSamosa:mainfrom
geetanunakani:quality/type-hints-zero-dce

Conversation

@geetanunakani

Copy link
Copy Markdown

Description

Added Python type hints to improve readability and static type checking support for the Zero-DCE model implementation.

Changes

  • Added -> None return type to __init__()
  • Added -> None return type to _init_weights()
  • Added explicit return type Tuple[torch.Tensor, torch.Tensor] to forward()
  • Added typed configuration parameter using Optional[Dict[str, Any]] in build_zero_dce()
  • Added required typing imports

Fixes #12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Quality] Enforce Type Hinting for src/models/

1 participant