Skip to content

Commit 3f83619

Browse files
author
Thinh Nguyen
authored
Merge pull request #70 from sidhulyalkar/main
Move import into make function
2 parents cb2b4cd + aeb8808 commit 3f83619

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

element_deeplabcut/train.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
import os
1111
from pathlib import Path
1212
from element_interface.utils import find_full_path, dict_to_uuid
13-
from deeplabcut import train_network
1413
from .readers import dlc_reader
1514

1615
try:
@@ -249,6 +248,8 @@ class ModelTraining(dj.Computed):
249248
# https://github.com/DeepLabCut/DeepLabCut/issues/70
250249

251250
def make(self, key):
251+
from deeplabcut import train_network # isort:skip
252+
252253
"""Launch training for each train.TrainingTask training_id via `.populate()`."""
253254
project_path, model_prefix = (TrainingTask & key).fetch1(
254255
"project_path", "model_prefix"

0 commit comments

Comments
 (0)