Skip to content

Commit 9df2d03

Browse files
author
(Ian Stenbit)
committed
Run isort
1 parent 56bae79 commit 9df2d03

File tree

8 files changed

+11
-13
lines changed

8 files changed

+11
-13
lines changed

examples/layers/preprocessing/cut_mix_demo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
are loaded, then are passed through the preprocessing layers.
55
Finally, they are shown using matplotlib.
66
"""
7+
import matplotlib.pyplot as plt
78
import tensorflow as tf
89
import tensorflow_datasets as tfds
9-
from keras_cv.layers.preprocessing import cut_mix
10-
import matplotlib.pyplot as plt
1110

11+
from keras_cv.layers.preprocessing import cut_mix
1212

1313
IMG_SIZE = (224, 224)
1414
BATCH_SIZE = 64

examples/layers/preprocessing/mix_up_demo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
are loaded, then are passed through the preprocessing layers.
55
Finally, they are shown using matplotlib.
66
"""
7+
import matplotlib.pyplot as plt
78
import tensorflow as tf
89
import tensorflow_datasets as tfds
9-
from keras_cv.layers.preprocessing import mix_up
10-
import matplotlib.pyplot as plt
1110

11+
from keras_cv.layers.preprocessing import mix_up
1212

1313
IMG_SIZE = (224, 224)
1414
BATCH_SIZE = 64

keras_cv/__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,4 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
from keras_cv import metrics
16-
from keras_cv import layers
17-
from keras_cv import util
15+
from keras_cv import layers, metrics, util

keras_cv/layers/preprocessing/cut_mix_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414
import tensorflow as tf
15-
from keras_cv.layers.preprocessing.cut_mix import CutMix
1615

16+
from keras_cv.layers.preprocessing.cut_mix import CutMix
1717

1818
NUM_CLASSES = 10
1919

keras_cv/layers/preprocessing/mix_up_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414
import tensorflow as tf
15-
from keras_cv.layers.preprocessing.mix_up import MixUp
1615

16+
from keras_cv.layers.preprocessing.mix_up import MixUp
1717

1818
NUM_CLASSES = 10
1919

keras_cv/metrics/coco/base.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import tensorflow as tf
22
import tensorflow.keras as keras
33
import tensorflow.keras.initializers as initializers
4-
from keras_cv.util import bbox
4+
55
from keras_cv.metrics.coco import iou as iou_lib
66
from keras_cv.metrics.coco import util
7+
from keras_cv.util import bbox
78

89

910
class COCOBase(keras.metrics.Metric):

keras_cv/metrics/coco/numerical_tests/recall_correctness_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
import numpy as np
1919
import tensorflow as tf
2020

21-
from keras_cv.util import bbox
2221
from keras_cv.metrics.coco import iou as iou_lib
2322
from keras_cv.metrics.coco.recall import COCORecall
23+
from keras_cv.util import bbox
2424

2525
SAMPLE_FILE = os.path.dirname(os.path.abspath(__file__)) + "/sample_boxes.npz"
2626

setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@
1414

1515
"""Setup script."""
1616

17-
from setuptools import find_packages
18-
from setuptools import setup
17+
from setuptools import find_packages, setup
1918

2019
setup(
2120
name="keras-cv",

0 commit comments

Comments
 (0)