Skip to content

Commit 1a63efe

Browse files
committed
releasing 1.8.0.rc0
1 parent 8a23893 commit 1a63efe

3 files changed

Lines changed: 4 additions & 5 deletions

File tree

.pre-commit-config.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,8 @@ repos:
5454
rev: v1.20.2
5555
hooks:
5656
- id: mypy
57-
# The hook runs in an isolated env without torch/torchvision/etc.
58-
# Full strict checking (matching pyproject.toml) runs in CI via ci-typing.yml.
59-
args: ["--ignore-missing-imports"]
57+
# The isolated hook has no torch; CI runs strict mypy with project deps.
58+
args: ["--ignore-missing-imports", "--allow-subclassing-any"]
6059
exclude: ^docs/(hooks|scripts)/.*\.py$
6160
additional_dependencies:
6261
- "types-PyYAML"

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "rfdetr"
7-
version = "1.8.0.dev"
7+
version = "1.8.0.rc0"
88
description = "RF-DETR"
99
readme = "README.md"
1010
authors = [

src/rfdetr/models/heads/keypoints.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def modulate(features: torch.Tensor, scale: torch.Tensor, shift: torch.Tensor) -
6464
return (scale + 1.0) * features + shift
6565

6666

67-
class ConditionalQueryInitializer(nn.Module): # type: ignore[misc]
67+
class ConditionalQueryInitializer(nn.Module):
6868
"""Initialize keypoint query tokens with adaptive layer-normalization style modulation."""
6969

7070
def __init__(self, dim: int, num_queries: int, out_dim: int | None = None) -> None:

0 commit comments

Comments
 (0)