Fix training.py imports
@@ -8,10 +8,6 @@ from __future__ import print_function
import warnings
import copy
import numpy as np
-
-from keras.utils import Sequence
-from keras.utils import GeneratorEnqueuer
-from keras.utils import OrderedEnqueuer
from scipy.sparse import issparse
try:
@@ -24,6 +20,9 @@ from .. import backend as K
from .. import optimizers
from .. import losses
from .. import metrics as metrics_module
+from ..utils.data_utils import Sequence
+from ..utils.data_utils import GeneratorEnqueuer
+from ..utils.data_utils import OrderedEnqueuer
from ..utils.generic_utils import Progbar
from .. import callbacks as cbks
from ..legacy import interfaces
