Skip to content

Commit

Permalink
Merge pull request #428 from Nota-NetsPresso/427-path-check-bug
Browse files Browse the repository at this point in the history
Fix test directory check line
  • Loading branch information
illian01 committed Apr 22, 2024
2 parents e405599 + 70dbe9b commit 7d4c0ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

## Bug Fixes:

No changes to highlight.
- Fix test directory check line by `@illian01` in [PR 428](https://github.com/Nota-NetsPresso/netspresso-trainer/pull/428)

## Breaking Changes:

Expand Down
2 changes: 1 addition & 1 deletion src/netspresso_trainer/dataloaders/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def dataset_path_check(conf_data: DictConfig, mode: Literal['train', 'test']):
conf_data.path.test.label = None

elif mode == 'test':
assert conf_data.path.train.test_dataset is not None, "For test, test split of dataset must be provided."
assert conf_data.path.test.image is not None, "For test, test split of dataset must be provided."

if conf_data.path.train.image:
logger.warning('For test (evaluation or inference), train split of dataset is not needed. This field will be ignored.')
Expand Down

0 comments on commit 7d4c0ae

Please sign in to comment.