Skip to content

Commit

Permalink
Fixed type
Browse files Browse the repository at this point in the history
Signed-off-by: Martin <[email protected]>
  • Loading branch information
bmmtstb committed Jun 21, 2024
1 parent bc0a1e5 commit 09151f2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dgs/models/dataset/keypoint_rcnn.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

import os
from abc import ABC
from typing import Union

import torch as t
from imagesize import imagesize
Expand Down Expand Up @@ -243,7 +244,7 @@ class KeypointRCNNImageBackbone(KeypointRCNNBackbone, ImageDataset):
__doc__ += KeypointRCNNBackbone.__doc__

data: list[FilePath]
masks: list[tvte.Mask | None]
masks: list[Union[tvte.Mask, None]]

def __init__(self, config: Config, path: NodePath) -> None:
KeypointRCNNBackbone.__init__(self, config=config, path=path)
Expand Down

0 comments on commit 09151f2

Please sign in to comment.