File tree Expand file tree Collapse file tree 8 files changed +11
-13
lines changed
examples/layers/preprocessing Expand file tree Collapse file tree 8 files changed +11
-13
lines changed Original file line number Diff line number Diff line change 44are loaded, then are passed through the preprocessing layers.
55Finally, they are shown using matplotlib.
66"""
7+ import matplotlib .pyplot as plt
78import tensorflow as tf
89import 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
1313IMG_SIZE = (224 , 224 )
1414BATCH_SIZE = 64
Original file line number Diff line number Diff line change 44are loaded, then are passed through the preprocessing layers.
55Finally, they are shown using matplotlib.
66"""
7+ import matplotlib .pyplot as plt
78import tensorflow as tf
89import 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
1313IMG_SIZE = (224 , 224 )
1414BATCH_SIZE = 64
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 1212# See the License for the specific language governing permissions and
1313# limitations under the License.
1414import 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
1818NUM_CLASSES = 10
1919
Original file line number Diff line number Diff line change 1212# See the License for the specific language governing permissions and
1313# limitations under the License.
1414import 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
1818NUM_CLASSES = 10
1919
Original file line number Diff line number Diff line change 11import tensorflow as tf
22import tensorflow .keras as keras
33import tensorflow .keras .initializers as initializers
4- from keras_cv . util import bbox
4+
55from keras_cv .metrics .coco import iou as iou_lib
66from keras_cv .metrics .coco import util
7+ from keras_cv .util import bbox
78
89
910class COCOBase (keras .metrics .Metric ):
Original file line number Diff line number Diff line change 1818import numpy as np
1919import tensorflow as tf
2020
21- from keras_cv .util import bbox
2221from keras_cv .metrics .coco import iou as iou_lib
2322from keras_cv .metrics .coco .recall import COCORecall
23+ from keras_cv .util import bbox
2424
2525SAMPLE_FILE = os .path .dirname (os .path .abspath (__file__ )) + "/sample_boxes.npz"
2626
Original file line number Diff line number Diff line change 1414
1515"""Setup script."""
1616
17- from setuptools import find_packages
18- from setuptools import setup
17+ from setuptools import find_packages , setup
1918
2019setup (
2120 name = "keras-cv" ,
You can’t perform that action at this time.
0 commit comments