Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
- capitalize start of docstring
- use ignore copy
- fix examples
- move docstring templates and custom output classes to top
- remove "-> None" typehinting from __init__
- type hinting for forward passes
- fix docstrings for custom output classes
  • Loading branch information
geetu040 committed Dec 21, 2024
1 parent 1ac1b84 commit 27bff69
Show file tree
Hide file tree
Showing 3 changed files with 153 additions and 154 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def __init__(
image_mean: Optional[Union[float, List[float]]] = None,
image_std: Optional[Union[float, List[float]]] = None,
**kwargs,
) -> None:
):
super().__init__(**kwargs)
size = size if size is not None else {"height": 1536, "width": 1536}
size = get_size_dict(size)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def __init__(
image_mean: Optional[Union[float, List[float]]] = None,
image_std: Optional[Union[float, List[float]]] = None,
**kwargs,
) -> None:
):
super().__init__(**kwargs)
size = size if size is not None else {"height": 1536, "width": 1536}
size = get_size_dict(size)
Expand Down
Loading

0 comments on commit 27bff69

Please sign in to comment.