Skip to content
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

Fix small bugs in the Feature/reading order branch #524

Merged
merged 2 commits into from
Jul 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions kraken/containers.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ class BaselineLine:
split: Optional[Literal['train', 'validation', 'test']] = None
regions: Optional[List[str]] = None

def __getitem__(self, item):
return getattr(self, item)

@dataclass
class BBoxLine:
"""
Expand Down
2 changes: 1 addition & 1 deletion kraken/lib/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
from pytorch_lightning.callbacks import Callback, EarlyStopping, BaseFinetuning, LearningRateMonitor

from kraken.lib import models, vgsl, default_specs, progress
from kraken.lib.xml import preparse_xml_data
# from kraken.lib.xml import preparse_xml_data
from kraken.lib.util import make_printable
from kraken.lib.codec import PytorchCodec
from kraken.lib.dataset import (ArrowIPCRecognitionDataset, BaselineSet,
Expand Down