Skip to content

Commit

Permalink
#256 Add netspresso_trainer lazy import (#257)
Browse files Browse the repository at this point in the history
  • Loading branch information
Only-bottle authored Jun 24, 2024
1 parent f051995 commit a58a126
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion netspresso/trainer/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
from typing import Any, Dict, List, Optional, Union

from loguru import logger
from netspresso_trainer import train_with_yaml
from omegaconf import OmegaConf

from netspresso.enums import Status, Task, TaskType
Expand Down Expand Up @@ -361,6 +360,8 @@ def train(self, gpus: str, project_name: str) -> Dict:
Dict: A dictionary containing information about the training.
"""

from netspresso_trainer import train_with_yaml

self._validate_config()
self._apply_img_size()

Expand Down

0 comments on commit a58a126

Please sign in to comment.