Skip to content

Commit

Permalink
Merge branch 'main' into fix-batch-upload
Browse files Browse the repository at this point in the history
  • Loading branch information
NiklasNeugebauer committed Jan 24, 2025
2 parents e5ed4f7 + 6c1f422 commit 568f3d0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
8 changes: 4 additions & 4 deletions learning_loop_node/tests/trainer/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ async def test_initialized_trainer_node():
'model_variant': '',
'hyperparameters': {
'resolution': 800,
'flip_rl': False,
'flip_ud': False}
'fliplr': 0.5,
'flipud': 0.5}
})
await node._on_startup()
yield node
Expand All @@ -59,8 +59,8 @@ async def test_initialized_trainer():
'model_variant': '',
'hyperparameters': {
'resolution': 800,
'flip_rl': False,
'flip_ud': False}
'fliplr': 0.5,
'flipud': 0.5}
})
yield trainer
try:
Expand Down
2 changes: 1 addition & 1 deletion learning_loop_node/trainer/trainer_logic_generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ async def _upload_model_return_new_model_uuid(self, context: Context) -> str:
"""

files = await self._get_latest_model_files()
if files is None:
if files is None or len(files) == 0:
raise CriticalError('Could not get latest model files. Training might have failed.')

if isinstance(files, List):
Expand Down
5 changes: 2 additions & 3 deletions mock_trainer/app_code/tests/test_detections.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
# pylint: disable=protected-access,redefined-outer-name,unused-argument
import pytest
from fastapi.encoders import jsonable_encoder

from learning_loop_node.data_classes import Category, Context
from learning_loop_node.globals import GLOBALS
from learning_loop_node.tests import test_helper
Expand All @@ -29,8 +28,8 @@ async def test_all():
'model_variant': '',
'hyperparameters': {
'resolution': 800,
'flip_rl': False,
'flip_ud': False}
'fliplr': 0.5,
'flipud': 0.5}
}
# await asyncio.sleep(100)

Expand Down

0 comments on commit 568f3d0

Please sign in to comment.