Skip to content

Commit a2396df

Browse files
author
Dan Jia
committed
modify import in model/__init__.py to be compatible with python2
1 parent 86a9f21 commit a2396df

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

dr_spaam/bin/train.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
from dr_spaam.dataset import get_dataloader
66
from dr_spaam.pipeline.pipeline import Pipeline
7-
from dr_spaam.model import get_model
7+
from dr_spaam.model.get_model import get_model
88

99

1010
def run_training(model, pipeline, cfg):

dr_spaam/dr_spaam/model/__init__.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
# Only import python2 compatible modules here
12
from .dr_spaam import *
2-
# from .dr_spaam_fn import *
33
from .drow_net import *
4-
from .losses import *
5-
from .get_model import *
4+
# from .dr_spaam_fn import *
5+
# from .losses import *
6+
# from .get_model import *

0 commit comments

Comments
 (0)