Skip to content

Commit

Permalink
Merge pull request #524 from colibrisson/feature/reading_order
Browse files Browse the repository at this point in the history
Fix small bugs in the Feature/reading order branch
  • Loading branch information
mittagessen authored Jul 17, 2023
2 parents 20a869a + 8f34a9a commit 584ed68
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions kraken/containers.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,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

0 comments on commit 584ed68

Please sign in to comment.