-
Notifications
You must be signed in to change notification settings - Fork 846
π§ chore(ci): upgrade python 3.13 #3112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -20,8 +20,6 @@ | |
|
|
||
| from anomalib.data.dataclasses.generic import ImageT, _GenericBatch, _GenericItem | ||
|
|
||
| NumpyT = TypeVar("NumpyT") | ||
|
|
||
|
|
||
| class InferenceBatch(NamedTuple): | ||
| """Batch for use in torch and inference models. | ||
|
|
@@ -43,6 +41,9 @@ class InferenceBatch(NamedTuple): | |
| pred_mask: torch.Tensor | None = None | ||
|
|
||
|
|
||
| NumpyT = TypeVar("NumpyT") | ||
|
||
|
|
||
|
|
||
| @dataclass | ||
| class ToNumpyMixin(Generic[NumpyT]): | ||
| """Mixin for converting torch-based dataclasses to numpy. | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The removal of the upper bound
<=2.8.0for thecpuextra creates potential compatibility risks. If PyTorch 3.0+ introduces breaking changes, users could encounter issues. Consider retaining an upper bound (e.g.,<3.0) or adding a comment explaining why the constraint was relaxed.