keras 3.12.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- keras/__init__.py +67 -0
- keras/_tf_keras/__init__.py +1 -0
- keras/_tf_keras/keras/__init__.py +65 -0
- keras/_tf_keras/keras/activations/__init__.py +41 -0
- keras/_tf_keras/keras/applications/__init__.py +83 -0
- keras/_tf_keras/keras/applications/convnext/__init__.py +15 -0
- keras/_tf_keras/keras/applications/densenet/__init__.py +13 -0
- keras/_tf_keras/keras/applications/efficientnet/__init__.py +20 -0
- keras/_tf_keras/keras/applications/efficientnet_v2/__init__.py +33 -0
- keras/_tf_keras/keras/applications/imagenet_utils/__init__.py +12 -0
- keras/_tf_keras/keras/applications/inception_resnet_v2/__init__.py +15 -0
- keras/_tf_keras/keras/applications/inception_v3/__init__.py +13 -0
- keras/_tf_keras/keras/applications/mobilenet/__init__.py +13 -0
- keras/_tf_keras/keras/applications/mobilenet_v2/__init__.py +13 -0
- keras/_tf_keras/keras/applications/mobilenet_v3/__init__.py +12 -0
- keras/_tf_keras/keras/applications/nasnet/__init__.py +12 -0
- keras/_tf_keras/keras/applications/resnet/__init__.py +13 -0
- keras/_tf_keras/keras/applications/resnet50/__init__.py +11 -0
- keras/_tf_keras/keras/applications/resnet_v2/__init__.py +15 -0
- keras/_tf_keras/keras/applications/vgg16/__init__.py +11 -0
- keras/_tf_keras/keras/applications/vgg19/__init__.py +11 -0
- keras/_tf_keras/keras/applications/xception/__init__.py +11 -0
- keras/_tf_keras/keras/backend/__init__.py +165 -0
- keras/_tf_keras/keras/callbacks/__init__.py +33 -0
- keras/_tf_keras/keras/config/__init__.py +57 -0
- keras/_tf_keras/keras/constraints/__init__.py +18 -0
- keras/_tf_keras/keras/datasets/__init__.py +14 -0
- keras/_tf_keras/keras/datasets/boston_housing/__init__.py +7 -0
- keras/_tf_keras/keras/datasets/california_housing/__init__.py +7 -0
- keras/_tf_keras/keras/datasets/cifar10/__init__.py +7 -0
- keras/_tf_keras/keras/datasets/cifar100/__init__.py +7 -0
- keras/_tf_keras/keras/datasets/fashion_mnist/__init__.py +7 -0
- keras/_tf_keras/keras/datasets/imdb/__init__.py +8 -0
- keras/_tf_keras/keras/datasets/mnist/__init__.py +7 -0
- keras/_tf_keras/keras/datasets/reuters/__init__.py +9 -0
- keras/_tf_keras/keras/distillation/__init__.py +16 -0
- keras/_tf_keras/keras/distribution/__init__.py +22 -0
- keras/_tf_keras/keras/dtype_policies/__init__.py +25 -0
- keras/_tf_keras/keras/export/__init__.py +7 -0
- keras/_tf_keras/keras/initializers/__init__.py +81 -0
- keras/_tf_keras/keras/layers/__init__.py +365 -0
- keras/_tf_keras/keras/legacy/__init__.py +7 -0
- keras/_tf_keras/keras/legacy/saving/__init__.py +12 -0
- keras/_tf_keras/keras/losses/__init__.py +85 -0
- keras/_tf_keras/keras/metrics/__init__.py +146 -0
- keras/_tf_keras/keras/mixed_precision/__init__.py +19 -0
- keras/_tf_keras/keras/models/__init__.py +12 -0
- keras/_tf_keras/keras/ops/__init__.py +303 -0
- keras/_tf_keras/keras/ops/image/__init__.py +20 -0
- keras/_tf_keras/keras/ops/linalg/__init__.py +20 -0
- keras/_tf_keras/keras/ops/nn/__init__.py +60 -0
- keras/_tf_keras/keras/ops/numpy/__init__.py +189 -0
- keras/_tf_keras/keras/optimizers/__init__.py +28 -0
- keras/_tf_keras/keras/optimizers/legacy/__init__.py +12 -0
- keras/_tf_keras/keras/optimizers/schedules/__init__.py +33 -0
- keras/_tf_keras/keras/preprocessing/__init__.py +18 -0
- keras/_tf_keras/keras/preprocessing/image/__init__.py +42 -0
- keras/_tf_keras/keras/preprocessing/sequence/__init__.py +14 -0
- keras/_tf_keras/keras/preprocessing/text/__init__.py +15 -0
- keras/_tf_keras/keras/quantizers/__init__.py +27 -0
- keras/_tf_keras/keras/random/__init__.py +17 -0
- keras/_tf_keras/keras/regularizers/__init__.py +22 -0
- keras/_tf_keras/keras/saving/__init__.py +35 -0
- keras/_tf_keras/keras/tree/__init__.py +20 -0
- keras/_tf_keras/keras/utils/__init__.py +90 -0
- keras/_tf_keras/keras/utils/bounding_boxes/__init__.py +33 -0
- keras/_tf_keras/keras/utils/legacy/__init__.py +12 -0
- keras/_tf_keras/keras/visualization/__init__.py +21 -0
- keras/_tf_keras/keras/wrappers/__init__.py +15 -0
- keras/activations/__init__.py +41 -0
- keras/applications/__init__.py +83 -0
- keras/applications/convnext/__init__.py +15 -0
- keras/applications/densenet/__init__.py +13 -0
- keras/applications/efficientnet/__init__.py +20 -0
- keras/applications/efficientnet_v2/__init__.py +33 -0
- keras/applications/imagenet_utils/__init__.py +12 -0
- keras/applications/inception_resnet_v2/__init__.py +15 -0
- keras/applications/inception_v3/__init__.py +13 -0
- keras/applications/mobilenet/__init__.py +13 -0
- keras/applications/mobilenet_v2/__init__.py +13 -0
- keras/applications/mobilenet_v3/__init__.py +12 -0
- keras/applications/nasnet/__init__.py +12 -0
- keras/applications/resnet/__init__.py +13 -0
- keras/applications/resnet50/__init__.py +11 -0
- keras/applications/resnet_v2/__init__.py +15 -0
- keras/applications/vgg16/__init__.py +11 -0
- keras/applications/vgg19/__init__.py +11 -0
- keras/applications/xception/__init__.py +11 -0
- keras/backend/__init__.py +26 -0
- keras/callbacks/__init__.py +33 -0
- keras/config/__init__.py +57 -0
- keras/constraints/__init__.py +18 -0
- keras/datasets/__init__.py +14 -0
- keras/datasets/boston_housing/__init__.py +7 -0
- keras/datasets/california_housing/__init__.py +7 -0
- keras/datasets/cifar10/__init__.py +7 -0
- keras/datasets/cifar100/__init__.py +7 -0
- keras/datasets/fashion_mnist/__init__.py +7 -0
- keras/datasets/imdb/__init__.py +8 -0
- keras/datasets/mnist/__init__.py +7 -0
- keras/datasets/reuters/__init__.py +9 -0
- keras/distillation/__init__.py +16 -0
- keras/distribution/__init__.py +22 -0
- keras/dtype_policies/__init__.py +25 -0
- keras/export/__init__.py +7 -0
- keras/initializers/__init__.py +81 -0
- keras/layers/__init__.py +364 -0
- keras/legacy/__init__.py +7 -0
- keras/legacy/saving/__init__.py +12 -0
- keras/losses/__init__.py +82 -0
- keras/metrics/__init__.py +144 -0
- keras/mixed_precision/__init__.py +19 -0
- keras/models/__init__.py +12 -0
- keras/ops/__init__.py +303 -0
- keras/ops/image/__init__.py +20 -0
- keras/ops/linalg/__init__.py +20 -0
- keras/ops/nn/__init__.py +60 -0
- keras/ops/numpy/__init__.py +189 -0
- keras/optimizers/__init__.py +28 -0
- keras/optimizers/legacy/__init__.py +12 -0
- keras/optimizers/schedules/__init__.py +33 -0
- keras/preprocessing/__init__.py +17 -0
- keras/preprocessing/image/__init__.py +11 -0
- keras/preprocessing/sequence/__init__.py +7 -0
- keras/quantizers/__init__.py +27 -0
- keras/random/__init__.py +17 -0
- keras/regularizers/__init__.py +22 -0
- keras/saving/__init__.py +35 -0
- keras/src/__init__.py +20 -0
- keras/src/activations/__init__.py +130 -0
- keras/src/activations/activations.py +684 -0
- keras/src/api_export.py +49 -0
- keras/src/applications/__init__.py +0 -0
- keras/src/applications/convnext.py +789 -0
- keras/src/applications/densenet.py +492 -0
- keras/src/applications/efficientnet.py +856 -0
- keras/src/applications/efficientnet_v2.py +1368 -0
- keras/src/applications/imagenet_utils.py +465 -0
- keras/src/applications/inception_resnet_v2.py +396 -0
- keras/src/applications/inception_v3.py +442 -0
- keras/src/applications/mobilenet.py +435 -0
- keras/src/applications/mobilenet_v2.py +497 -0
- keras/src/applications/mobilenet_v3.py +688 -0
- keras/src/applications/nasnet.py +869 -0
- keras/src/applications/resnet.py +591 -0
- keras/src/applications/resnet_v2.py +208 -0
- keras/src/applications/vgg16.py +248 -0
- keras/src/applications/vgg19.py +256 -0
- keras/src/applications/xception.py +355 -0
- keras/src/backend/__init__.py +77 -0
- keras/src/backend/common/__init__.py +10 -0
- keras/src/backend/common/backend_utils.py +525 -0
- keras/src/backend/common/dtypes.py +324 -0
- keras/src/backend/common/global_state.py +98 -0
- keras/src/backend/common/keras_tensor.py +422 -0
- keras/src/backend/common/masking.py +26 -0
- keras/src/backend/common/name_scope.py +73 -0
- keras/src/backend/common/remat.py +186 -0
- keras/src/backend/common/stateless_scope.py +105 -0
- keras/src/backend/common/symbolic_scope.py +23 -0
- keras/src/backend/common/tensor_attributes.py +36 -0
- keras/src/backend/common/variables.py +686 -0
- keras/src/backend/config.py +448 -0
- keras/src/backend/jax/__init__.py +31 -0
- keras/src/backend/jax/core.py +574 -0
- keras/src/backend/jax/distribution_lib.py +248 -0
- keras/src/backend/jax/export.py +184 -0
- keras/src/backend/jax/image.py +897 -0
- keras/src/backend/jax/layer.py +14 -0
- keras/src/backend/jax/linalg.py +103 -0
- keras/src/backend/jax/math.py +298 -0
- keras/src/backend/jax/nn.py +1458 -0
- keras/src/backend/jax/numpy.py +1456 -0
- keras/src/backend/jax/optimizer.py +111 -0
- keras/src/backend/jax/random.py +116 -0
- keras/src/backend/jax/rnn.py +230 -0
- keras/src/backend/jax/sparse.py +328 -0
- keras/src/backend/jax/tensorboard.py +23 -0
- keras/src/backend/jax/trainer.py +1038 -0
- keras/src/backend/numpy/__init__.py +26 -0
- keras/src/backend/numpy/core.py +454 -0
- keras/src/backend/numpy/export.py +10 -0
- keras/src/backend/numpy/image.py +1202 -0
- keras/src/backend/numpy/layer.py +2 -0
- keras/src/backend/numpy/linalg.py +102 -0
- keras/src/backend/numpy/math.py +322 -0
- keras/src/backend/numpy/nn.py +1231 -0
- keras/src/backend/numpy/numpy.py +1437 -0
- keras/src/backend/numpy/random.py +120 -0
- keras/src/backend/numpy/rnn.py +243 -0
- keras/src/backend/numpy/trainer.py +331 -0
- keras/src/backend/openvino/__init__.py +25 -0
- keras/src/backend/openvino/core.py +1187 -0
- keras/src/backend/openvino/export.py +10 -0
- keras/src/backend/openvino/image.py +89 -0
- keras/src/backend/openvino/layer.py +2 -0
- keras/src/backend/openvino/linalg.py +62 -0
- keras/src/backend/openvino/math.py +128 -0
- keras/src/backend/openvino/nn.py +508 -0
- keras/src/backend/openvino/numpy.py +2495 -0
- keras/src/backend/openvino/random.py +149 -0
- keras/src/backend/openvino/rnn.py +38 -0
- keras/src/backend/openvino/trainer.py +272 -0
- keras/src/backend/tensorflow/__init__.py +30 -0
- keras/src/backend/tensorflow/core.py +698 -0
- keras/src/backend/tensorflow/distribution_lib.py +87 -0
- keras/src/backend/tensorflow/export.py +19 -0
- keras/src/backend/tensorflow/image.py +1076 -0
- keras/src/backend/tensorflow/layer.py +114 -0
- keras/src/backend/tensorflow/linalg.py +270 -0
- keras/src/backend/tensorflow/math.py +381 -0
- keras/src/backend/tensorflow/nn.py +1126 -0
- keras/src/backend/tensorflow/numpy.py +3261 -0
- keras/src/backend/tensorflow/optimizer.py +253 -0
- keras/src/backend/tensorflow/random.py +190 -0
- keras/src/backend/tensorflow/rnn.py +971 -0
- keras/src/backend/tensorflow/sparse.py +782 -0
- keras/src/backend/tensorflow/tensorboard.py +21 -0
- keras/src/backend/tensorflow/trackable.py +58 -0
- keras/src/backend/tensorflow/trainer.py +1004 -0
- keras/src/backend/torch/__init__.py +45 -0
- keras/src/backend/torch/core.py +732 -0
- keras/src/backend/torch/export.py +128 -0
- keras/src/backend/torch/image.py +1192 -0
- keras/src/backend/torch/layer.py +65 -0
- keras/src/backend/torch/linalg.py +86 -0
- keras/src/backend/torch/math.py +419 -0
- keras/src/backend/torch/nn.py +1117 -0
- keras/src/backend/torch/numpy.py +1968 -0
- keras/src/backend/torch/optimizers/__init__.py +1 -0
- keras/src/backend/torch/optimizers/torch_adadelta.py +56 -0
- keras/src/backend/torch/optimizers/torch_adagrad.py +37 -0
- keras/src/backend/torch/optimizers/torch_adam.py +58 -0
- keras/src/backend/torch/optimizers/torch_adamax.py +52 -0
- keras/src/backend/torch/optimizers/torch_adamw.py +6 -0
- keras/src/backend/torch/optimizers/torch_lion.py +37 -0
- keras/src/backend/torch/optimizers/torch_nadam.py +74 -0
- keras/src/backend/torch/optimizers/torch_optimizer.py +45 -0
- keras/src/backend/torch/optimizers/torch_parallel_optimizer.py +26 -0
- keras/src/backend/torch/optimizers/torch_rmsprop.py +64 -0
- keras/src/backend/torch/optimizers/torch_sgd.py +36 -0
- keras/src/backend/torch/random.py +244 -0
- keras/src/backend/torch/rnn.py +728 -0
- keras/src/backend/torch/trainer.py +518 -0
- keras/src/callbacks/__init__.py +16 -0
- keras/src/callbacks/backup_and_restore.py +210 -0
- keras/src/callbacks/callback.py +308 -0
- keras/src/callbacks/callback_list.py +281 -0
- keras/src/callbacks/csv_logger.py +107 -0
- keras/src/callbacks/early_stopping.py +154 -0
- keras/src/callbacks/history.py +42 -0
- keras/src/callbacks/lambda_callback.py +87 -0
- keras/src/callbacks/learning_rate_scheduler.py +81 -0
- keras/src/callbacks/model_checkpoint.py +412 -0
- keras/src/callbacks/monitor_callback.py +104 -0
- keras/src/callbacks/progbar_logger.py +102 -0
- keras/src/callbacks/reduce_lr_on_plateau.py +130 -0
- keras/src/callbacks/remote_monitor.py +83 -0
- keras/src/callbacks/swap_ema_weights.py +180 -0
- keras/src/callbacks/tensorboard.py +688 -0
- keras/src/callbacks/terminate_on_nan.py +20 -0
- keras/src/constraints/__init__.py +60 -0
- keras/src/constraints/constraints.py +215 -0
- keras/src/datasets/__init__.py +10 -0
- keras/src/datasets/boston_housing.py +70 -0
- keras/src/datasets/california_housing.py +104 -0
- keras/src/datasets/cifar.py +28 -0
- keras/src/datasets/cifar10.py +101 -0
- keras/src/datasets/cifar100.py +86 -0
- keras/src/datasets/fashion_mnist.py +96 -0
- keras/src/datasets/imdb.py +188 -0
- keras/src/datasets/mnist.py +71 -0
- keras/src/datasets/reuters.py +221 -0
- keras/src/distillation/__init__.py +1 -0
- keras/src/distillation/distillation_loss.py +390 -0
- keras/src/distillation/distiller.py +598 -0
- keras/src/distribution/__init__.py +11 -0
- keras/src/distribution/distribution_lib.py +898 -0
- keras/src/dtype_policies/__init__.py +109 -0
- keras/src/dtype_policies/dtype_policy.py +448 -0
- keras/src/dtype_policies/dtype_policy_map.py +294 -0
- keras/src/export/__init__.py +5 -0
- keras/src/export/export_utils.py +107 -0
- keras/src/export/onnx.py +219 -0
- keras/src/export/openvino.py +204 -0
- keras/src/export/saved_model.py +693 -0
- keras/src/export/tf2onnx_lib.py +178 -0
- keras/src/export/tfsm_layer.py +182 -0
- keras/src/initializers/__init__.py +163 -0
- keras/src/initializers/constant_initializers.py +284 -0
- keras/src/initializers/initializer.py +84 -0
- keras/src/initializers/random_initializers.py +715 -0
- keras/src/layers/__init__.py +253 -0
- keras/src/layers/activations/__init__.py +5 -0
- keras/src/layers/activations/activation.py +41 -0
- keras/src/layers/activations/elu.py +33 -0
- keras/src/layers/activations/leaky_relu.py +67 -0
- keras/src/layers/activations/prelu.py +98 -0
- keras/src/layers/activations/relu.py +87 -0
- keras/src/layers/activations/softmax.py +87 -0
- keras/src/layers/attention/__init__.py +0 -0
- keras/src/layers/attention/additive_attention.py +102 -0
- keras/src/layers/attention/attention.py +331 -0
- keras/src/layers/attention/grouped_query_attention.py +503 -0
- keras/src/layers/attention/multi_head_attention.py +829 -0
- keras/src/layers/convolutional/__init__.py +0 -0
- keras/src/layers/convolutional/base_conv.py +413 -0
- keras/src/layers/convolutional/base_conv_transpose.py +259 -0
- keras/src/layers/convolutional/base_depthwise_conv.py +273 -0
- keras/src/layers/convolutional/base_separable_conv.py +294 -0
- keras/src/layers/convolutional/conv1d.py +170 -0
- keras/src/layers/convolutional/conv1d_transpose.py +140 -0
- keras/src/layers/convolutional/conv2d.py +137 -0
- keras/src/layers/convolutional/conv2d_transpose.py +148 -0
- keras/src/layers/convolutional/conv3d.py +134 -0
- keras/src/layers/convolutional/conv3d_transpose.py +152 -0
- keras/src/layers/convolutional/depthwise_conv1d.py +137 -0
- keras/src/layers/convolutional/depthwise_conv2d.py +138 -0
- keras/src/layers/convolutional/separable_conv1d.py +143 -0
- keras/src/layers/convolutional/separable_conv2d.py +144 -0
- keras/src/layers/core/__init__.py +0 -0
- keras/src/layers/core/dense.py +884 -0
- keras/src/layers/core/einsum_dense.py +1528 -0
- keras/src/layers/core/embedding.py +534 -0
- keras/src/layers/core/identity.py +31 -0
- keras/src/layers/core/input_layer.py +220 -0
- keras/src/layers/core/lambda_layer.py +232 -0
- keras/src/layers/core/masking.py +76 -0
- keras/src/layers/core/reversible_embedding.py +349 -0
- keras/src/layers/core/wrapper.py +46 -0
- keras/src/layers/input_spec.py +250 -0
- keras/src/layers/layer.py +2009 -0
- keras/src/layers/merging/__init__.py +0 -0
- keras/src/layers/merging/add.py +69 -0
- keras/src/layers/merging/average.py +70 -0
- keras/src/layers/merging/base_merge.py +280 -0
- keras/src/layers/merging/concatenate.py +178 -0
- keras/src/layers/merging/dot.py +378 -0
- keras/src/layers/merging/maximum.py +67 -0
- keras/src/layers/merging/minimum.py +67 -0
- keras/src/layers/merging/multiply.py +91 -0
- keras/src/layers/merging/subtract.py +82 -0
- keras/src/layers/normalization/__init__.py +0 -0
- keras/src/layers/normalization/batch_normalization.py +348 -0
- keras/src/layers/normalization/group_normalization.py +240 -0
- keras/src/layers/normalization/layer_normalization.py +226 -0
- keras/src/layers/normalization/rms_normalization.py +98 -0
- keras/src/layers/normalization/spectral_normalization.py +121 -0
- keras/src/layers/normalization/unit_normalization.py +64 -0
- keras/src/layers/pooling/__init__.py +0 -0
- keras/src/layers/pooling/average_pooling1d.py +92 -0
- keras/src/layers/pooling/average_pooling2d.py +109 -0
- keras/src/layers/pooling/average_pooling3d.py +85 -0
- keras/src/layers/pooling/base_global_pooling.py +50 -0
- keras/src/layers/pooling/base_pooling.py +82 -0
- keras/src/layers/pooling/global_average_pooling1d.py +86 -0
- keras/src/layers/pooling/global_average_pooling2d.py +68 -0
- keras/src/layers/pooling/global_average_pooling3d.py +69 -0
- keras/src/layers/pooling/global_max_pooling1d.py +66 -0
- keras/src/layers/pooling/global_max_pooling2d.py +68 -0
- keras/src/layers/pooling/global_max_pooling3d.py +69 -0
- keras/src/layers/pooling/max_pooling1d.py +93 -0
- keras/src/layers/pooling/max_pooling2d.py +109 -0
- keras/src/layers/pooling/max_pooling3d.py +85 -0
- keras/src/layers/preprocessing/__init__.py +0 -0
- keras/src/layers/preprocessing/category_encoding.py +166 -0
- keras/src/layers/preprocessing/data_layer.py +159 -0
- keras/src/layers/preprocessing/discretization.py +359 -0
- keras/src/layers/preprocessing/feature_space.py +822 -0
- keras/src/layers/preprocessing/hashed_crossing.py +227 -0
- keras/src/layers/preprocessing/hashing.py +287 -0
- keras/src/layers/preprocessing/image_preprocessing/__init__.py +0 -0
- keras/src/layers/preprocessing/image_preprocessing/aug_mix.py +328 -0
- keras/src/layers/preprocessing/image_preprocessing/auto_contrast.py +112 -0
- keras/src/layers/preprocessing/image_preprocessing/base_image_preprocessing_layer.py +385 -0
- keras/src/layers/preprocessing/image_preprocessing/bounding_boxes/__init__.py +0 -0
- keras/src/layers/preprocessing/image_preprocessing/bounding_boxes/bounding_box.py +468 -0
- keras/src/layers/preprocessing/image_preprocessing/bounding_boxes/converters.py +448 -0
- keras/src/layers/preprocessing/image_preprocessing/bounding_boxes/formats.py +135 -0
- keras/src/layers/preprocessing/image_preprocessing/bounding_boxes/iou.py +281 -0
- keras/src/layers/preprocessing/image_preprocessing/bounding_boxes/validation.py +182 -0
- keras/src/layers/preprocessing/image_preprocessing/center_crop.py +273 -0
- keras/src/layers/preprocessing/image_preprocessing/cut_mix.py +229 -0
- keras/src/layers/preprocessing/image_preprocessing/equalization.py +224 -0
- keras/src/layers/preprocessing/image_preprocessing/max_num_bounding_box.py +92 -0
- keras/src/layers/preprocessing/image_preprocessing/mix_up.py +183 -0
- keras/src/layers/preprocessing/image_preprocessing/rand_augment.py +267 -0
- keras/src/layers/preprocessing/image_preprocessing/random_brightness.py +158 -0
- keras/src/layers/preprocessing/image_preprocessing/random_color_degeneration.py +135 -0
- keras/src/layers/preprocessing/image_preprocessing/random_color_jitter.py +213 -0
- keras/src/layers/preprocessing/image_preprocessing/random_contrast.py +149 -0
- keras/src/layers/preprocessing/image_preprocessing/random_crop.py +276 -0
- keras/src/layers/preprocessing/image_preprocessing/random_elastic_transform.py +279 -0
- keras/src/layers/preprocessing/image_preprocessing/random_erasing.py +328 -0
- keras/src/layers/preprocessing/image_preprocessing/random_flip.py +236 -0
- keras/src/layers/preprocessing/image_preprocessing/random_gaussian_blur.py +220 -0
- keras/src/layers/preprocessing/image_preprocessing/random_grayscale.py +117 -0
- keras/src/layers/preprocessing/image_preprocessing/random_hue.py +171 -0
- keras/src/layers/preprocessing/image_preprocessing/random_invert.py +129 -0
- keras/src/layers/preprocessing/image_preprocessing/random_perspective.py +339 -0
- keras/src/layers/preprocessing/image_preprocessing/random_posterization.py +154 -0
- keras/src/layers/preprocessing/image_preprocessing/random_rotation.py +249 -0
- keras/src/layers/preprocessing/image_preprocessing/random_saturation.py +167 -0
- keras/src/layers/preprocessing/image_preprocessing/random_sharpness.py +171 -0
- keras/src/layers/preprocessing/image_preprocessing/random_shear.py +404 -0
- keras/src/layers/preprocessing/image_preprocessing/random_translation.py +384 -0
- keras/src/layers/preprocessing/image_preprocessing/random_zoom.py +430 -0
- keras/src/layers/preprocessing/image_preprocessing/resizing.py +308 -0
- keras/src/layers/preprocessing/image_preprocessing/solarization.py +217 -0
- keras/src/layers/preprocessing/index_lookup.py +1027 -0
- keras/src/layers/preprocessing/integer_lookup.py +409 -0
- keras/src/layers/preprocessing/mel_spectrogram.py +374 -0
- keras/src/layers/preprocessing/normalization.py +363 -0
- keras/src/layers/preprocessing/pipeline.py +84 -0
- keras/src/layers/preprocessing/rescaling.py +78 -0
- keras/src/layers/preprocessing/stft_spectrogram.py +383 -0
- keras/src/layers/preprocessing/string_lookup.py +421 -0
- keras/src/layers/preprocessing/text_vectorization.py +630 -0
- keras/src/layers/regularization/__init__.py +0 -0
- keras/src/layers/regularization/activity_regularization.py +43 -0
- keras/src/layers/regularization/alpha_dropout.py +99 -0
- keras/src/layers/regularization/dropout.py +78 -0
- keras/src/layers/regularization/gaussian_dropout.py +64 -0
- keras/src/layers/regularization/gaussian_noise.py +64 -0
- keras/src/layers/regularization/spatial_dropout.py +192 -0
- keras/src/layers/reshaping/__init__.py +0 -0
- keras/src/layers/reshaping/cropping1d.py +82 -0
- keras/src/layers/reshaping/cropping2d.py +224 -0
- keras/src/layers/reshaping/cropping3d.py +284 -0
- keras/src/layers/reshaping/flatten.py +84 -0
- keras/src/layers/reshaping/permute.py +64 -0
- keras/src/layers/reshaping/repeat_vector.py +48 -0
- keras/src/layers/reshaping/reshape.py +79 -0
- keras/src/layers/reshaping/up_sampling1d.py +60 -0
- keras/src/layers/reshaping/up_sampling2d.py +175 -0
- keras/src/layers/reshaping/up_sampling3d.py +134 -0
- keras/src/layers/reshaping/zero_padding1d.py +93 -0
- keras/src/layers/reshaping/zero_padding2d.py +119 -0
- keras/src/layers/reshaping/zero_padding3d.py +118 -0
- keras/src/layers/rnn/__init__.py +0 -0
- keras/src/layers/rnn/bidirectional.py +329 -0
- keras/src/layers/rnn/conv_lstm.py +695 -0
- keras/src/layers/rnn/conv_lstm1d.py +184 -0
- keras/src/layers/rnn/conv_lstm2d.py +184 -0
- keras/src/layers/rnn/conv_lstm3d.py +183 -0
- keras/src/layers/rnn/dropout_rnn_cell.py +66 -0
- keras/src/layers/rnn/gru.py +710 -0
- keras/src/layers/rnn/lstm.py +692 -0
- keras/src/layers/rnn/rnn.py +498 -0
- keras/src/layers/rnn/simple_rnn.py +449 -0
- keras/src/layers/rnn/stacked_rnn_cells.py +138 -0
- keras/src/layers/rnn/time_distributed.py +133 -0
- keras/src/legacy/__init__.py +0 -0
- keras/src/legacy/backend.py +2277 -0
- keras/src/legacy/layers.py +244 -0
- keras/src/legacy/losses.py +20 -0
- keras/src/legacy/preprocessing/__init__.py +0 -0
- keras/src/legacy/preprocessing/image.py +1884 -0
- keras/src/legacy/preprocessing/sequence.py +328 -0
- keras/src/legacy/preprocessing/text.py +336 -0
- keras/src/legacy/saving/__init__.py +0 -0
- keras/src/legacy/saving/json_utils.py +220 -0
- keras/src/legacy/saving/legacy_h5_format.py +652 -0
- keras/src/legacy/saving/saving_options.py +17 -0
- keras/src/legacy/saving/saving_utils.py +253 -0
- keras/src/legacy/saving/serialization.py +560 -0
- keras/src/losses/__init__.py +207 -0
- keras/src/losses/loss.py +256 -0
- keras/src/losses/losses.py +2764 -0
- keras/src/metrics/__init__.py +211 -0
- keras/src/metrics/accuracy_metrics.py +522 -0
- keras/src/metrics/confusion_metrics.py +1598 -0
- keras/src/metrics/correlation_metrics.py +215 -0
- keras/src/metrics/f_score_metrics.py +320 -0
- keras/src/metrics/hinge_metrics.py +100 -0
- keras/src/metrics/iou_metrics.py +759 -0
- keras/src/metrics/metric.py +254 -0
- keras/src/metrics/metrics_utils.py +686 -0
- keras/src/metrics/probabilistic_metrics.py +339 -0
- keras/src/metrics/reduction_metrics.py +219 -0
- keras/src/metrics/regression_metrics.py +608 -0
- keras/src/models/__init__.py +3 -0
- keras/src/models/cloning.py +419 -0
- keras/src/models/functional.py +885 -0
- keras/src/models/model.py +951 -0
- keras/src/models/sequential.py +383 -0
- keras/src/models/variable_mapping.py +61 -0
- keras/src/ops/__init__.py +16 -0
- keras/src/ops/core.py +1255 -0
- keras/src/ops/einops.py +189 -0
- keras/src/ops/function.py +458 -0
- keras/src/ops/image.py +1895 -0
- keras/src/ops/linalg.py +827 -0
- keras/src/ops/math.py +1135 -0
- keras/src/ops/nn.py +3147 -0
- keras/src/ops/node.py +143 -0
- keras/src/ops/numpy.py +7764 -0
- keras/src/ops/operation.py +402 -0
- keras/src/ops/operation_utils.py +425 -0
- keras/src/ops/symbolic_arguments.py +46 -0
- keras/src/optimizers/__init__.py +122 -0
- keras/src/optimizers/adadelta.py +135 -0
- keras/src/optimizers/adafactor.py +233 -0
- keras/src/optimizers/adagrad.py +108 -0
- keras/src/optimizers/adam.py +154 -0
- keras/src/optimizers/adamax.py +146 -0
- keras/src/optimizers/adamw.py +100 -0
- keras/src/optimizers/base_optimizer.py +1205 -0
- keras/src/optimizers/ftrl.py +239 -0
- keras/src/optimizers/lamb.py +148 -0
- keras/src/optimizers/lion.py +136 -0
- keras/src/optimizers/loss_scale_optimizer.py +345 -0
- keras/src/optimizers/muon.py +289 -0
- keras/src/optimizers/nadam.py +163 -0
- keras/src/optimizers/optimizer.py +27 -0
- keras/src/optimizers/rmsprop.py +172 -0
- keras/src/optimizers/schedules/__init__.py +16 -0
- keras/src/optimizers/schedules/learning_rate_schedule.py +976 -0
- keras/src/optimizers/sgd.py +138 -0
- keras/src/quantizers/__init__.py +57 -0
- keras/src/quantizers/gptq.py +490 -0
- keras/src/quantizers/gptq_config.py +184 -0
- keras/src/quantizers/gptq_core.py +462 -0
- keras/src/quantizers/quantizers.py +939 -0
- keras/src/random/__init__.py +9 -0
- keras/src/random/random.py +345 -0
- keras/src/random/seed_generator.py +161 -0
- keras/src/regularizers/__init__.py +60 -0
- keras/src/regularizers/regularizers.py +352 -0
- keras/src/saving/__init__.py +9 -0
- keras/src/saving/file_editor.py +900 -0
- keras/src/saving/keras_saveable.py +38 -0
- keras/src/saving/object_registration.py +230 -0
- keras/src/saving/saving_api.py +316 -0
- keras/src/saving/saving_lib.py +1657 -0
- keras/src/saving/serialization_lib.py +840 -0
- keras/src/testing/__init__.py +5 -0
- keras/src/testing/test_case.py +792 -0
- keras/src/testing/test_utils.py +163 -0
- keras/src/trainers/__init__.py +0 -0
- keras/src/trainers/compile_utils.py +840 -0
- keras/src/trainers/data_adapters/__init__.py +205 -0
- keras/src/trainers/data_adapters/array_data_adapter.py +378 -0
- keras/src/trainers/data_adapters/array_slicing.py +520 -0
- keras/src/trainers/data_adapters/data_adapter.py +112 -0
- keras/src/trainers/data_adapters/data_adapter_utils.py +395 -0
- keras/src/trainers/data_adapters/generator_data_adapter.py +89 -0
- keras/src/trainers/data_adapters/grain_dataset_adapter.py +214 -0
- keras/src/trainers/data_adapters/py_dataset_adapter.py +708 -0
- keras/src/trainers/data_adapters/tf_dataset_adapter.py +147 -0
- keras/src/trainers/data_adapters/torch_data_loader_adapter.py +93 -0
- keras/src/trainers/epoch_iterator.py +174 -0
- keras/src/trainers/trainer.py +1156 -0
- keras/src/tree/__init__.py +12 -0
- keras/src/tree/dmtree_impl.py +410 -0
- keras/src/tree/optree_impl.py +190 -0
- keras/src/tree/torchtree_impl.py +215 -0
- keras/src/tree/tree_api.py +412 -0
- keras/src/utils/__init__.py +26 -0
- keras/src/utils/argument_validation.py +92 -0
- keras/src/utils/audio_dataset_utils.py +453 -0
- keras/src/utils/backend_utils.py +188 -0
- keras/src/utils/code_stats.py +49 -0
- keras/src/utils/config.py +182 -0
- keras/src/utils/dataset_utils.py +1033 -0
- keras/src/utils/dtype_utils.py +51 -0
- keras/src/utils/file_utils.py +568 -0
- keras/src/utils/grain_utils.py +33 -0
- keras/src/utils/image_dataset_utils.py +681 -0
- keras/src/utils/image_utils.py +457 -0
- keras/src/utils/io_utils.py +142 -0
- keras/src/utils/jax_layer.py +690 -0
- keras/src/utils/jax_utils.py +11 -0
- keras/src/utils/model_visualization.py +520 -0
- keras/src/utils/module_utils.py +61 -0
- keras/src/utils/naming.py +73 -0
- keras/src/utils/numerical_utils.py +224 -0
- keras/src/utils/progbar.py +262 -0
- keras/src/utils/python_utils.py +200 -0
- keras/src/utils/rng_utils.py +71 -0
- keras/src/utils/sequence_utils.py +139 -0
- keras/src/utils/summary_utils.py +443 -0
- keras/src/utils/text_dataset_utils.py +416 -0
- keras/src/utils/tf_utils.py +157 -0
- keras/src/utils/timeseries_dataset_utils.py +261 -0
- keras/src/utils/torch_utils.py +194 -0
- keras/src/utils/traceback_utils.py +241 -0
- keras/src/utils/tracking.py +355 -0
- keras/src/version.py +9 -0
- keras/src/visualization/__init__.py +2 -0
- keras/src/visualization/draw_bounding_boxes.py +177 -0
- keras/src/visualization/draw_segmentation_masks.py +109 -0
- keras/src/visualization/plot_bounding_box_gallery.py +165 -0
- keras/src/visualization/plot_image_gallery.py +200 -0
- keras/src/visualization/plot_segmentation_mask_gallery.py +121 -0
- keras/src/wrappers/__init__.py +5 -0
- keras/src/wrappers/fixes.py +83 -0
- keras/src/wrappers/sklearn_wrapper.py +494 -0
- keras/src/wrappers/utils.py +90 -0
- keras/tree/__init__.py +20 -0
- keras/utils/__init__.py +90 -0
- keras/utils/bounding_boxes/__init__.py +33 -0
- keras/utils/legacy/__init__.py +12 -0
- keras/visualization/__init__.py +21 -0
- keras/wrappers/__init__.py +15 -0
- keras-3.12.1.dist-info/METADATA +152 -0
- keras-3.12.1.dist-info/RECORD +609 -0
- keras-3.12.1.dist-info/WHEEL +5 -0
- keras-3.12.1.dist-info/top_level.txt +1 -0
keras/__init__.py
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"""DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
This file was autogenerated. Do not edit it by hand,
|
|
4
|
+
since your modifications would be overwritten.
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from keras import _tf_keras as _tf_keras
|
|
8
|
+
from keras import activations as activations
|
|
9
|
+
from keras import applications as applications
|
|
10
|
+
from keras import backend as backend
|
|
11
|
+
from keras import callbacks as callbacks
|
|
12
|
+
from keras import config as config
|
|
13
|
+
from keras import constraints as constraints
|
|
14
|
+
from keras import datasets as datasets
|
|
15
|
+
from keras import distillation as distillation
|
|
16
|
+
from keras import distribution as distribution
|
|
17
|
+
from keras import dtype_policies as dtype_policies
|
|
18
|
+
from keras import export as export
|
|
19
|
+
from keras import initializers as initializers
|
|
20
|
+
from keras import layers as layers
|
|
21
|
+
from keras import legacy as legacy
|
|
22
|
+
from keras import losses as losses
|
|
23
|
+
from keras import metrics as metrics
|
|
24
|
+
from keras import mixed_precision as mixed_precision
|
|
25
|
+
from keras import models as models
|
|
26
|
+
from keras import ops as ops
|
|
27
|
+
from keras import optimizers as optimizers
|
|
28
|
+
from keras import preprocessing as preprocessing
|
|
29
|
+
from keras import quantizers as quantizers
|
|
30
|
+
from keras import random as random
|
|
31
|
+
from keras import regularizers as regularizers
|
|
32
|
+
from keras import saving as saving
|
|
33
|
+
from keras import tree as tree
|
|
34
|
+
from keras import utils as utils
|
|
35
|
+
from keras import visualization as visualization
|
|
36
|
+
from keras import wrappers as wrappers
|
|
37
|
+
from keras.src.backend import Variable as Variable
|
|
38
|
+
from keras.src.backend import device as device
|
|
39
|
+
from keras.src.backend import name_scope as name_scope
|
|
40
|
+
from keras.src.backend.common.keras_tensor import KerasTensor as KerasTensor
|
|
41
|
+
from keras.src.backend.common.remat import RematScope as RematScope
|
|
42
|
+
from keras.src.backend.common.remat import remat as remat
|
|
43
|
+
from keras.src.backend.common.stateless_scope import (
|
|
44
|
+
StatelessScope as StatelessScope,
|
|
45
|
+
)
|
|
46
|
+
from keras.src.backend.common.symbolic_scope import (
|
|
47
|
+
SymbolicScope as SymbolicScope,
|
|
48
|
+
)
|
|
49
|
+
from keras.src.dtype_policies.dtype_policy import DTypePolicy as DTypePolicy
|
|
50
|
+
from keras.src.dtype_policies.dtype_policy import (
|
|
51
|
+
FloatDTypePolicy as FloatDTypePolicy,
|
|
52
|
+
)
|
|
53
|
+
from keras.src.initializers.initializer import Initializer as Initializer
|
|
54
|
+
from keras.src.layers.core.input_layer import Input as Input
|
|
55
|
+
from keras.src.layers.input_spec import InputSpec as InputSpec
|
|
56
|
+
from keras.src.layers.layer import Layer as Layer
|
|
57
|
+
from keras.src.losses.loss import Loss as Loss
|
|
58
|
+
from keras.src.metrics.metric import Metric as Metric
|
|
59
|
+
from keras.src.models.model import Model as Model
|
|
60
|
+
from keras.src.models.sequential import Sequential as Sequential
|
|
61
|
+
from keras.src.ops.function import Function as Function
|
|
62
|
+
from keras.src.ops.operation import Operation as Operation
|
|
63
|
+
from keras.src.optimizers.optimizer import Optimizer as Optimizer
|
|
64
|
+
from keras.src.quantizers.quantizers import Quantizer as Quantizer
|
|
65
|
+
from keras.src.regularizers.regularizers import Regularizer as Regularizer
|
|
66
|
+
from keras.src.version import __version__ as __version__
|
|
67
|
+
from keras.src.version import version as version
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
from keras._tf_keras import keras
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"""DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
This file was autogenerated. Do not edit it by hand,
|
|
4
|
+
since your modifications would be overwritten.
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from keras import activations as activations
|
|
8
|
+
from keras import applications as applications
|
|
9
|
+
from keras import callbacks as callbacks
|
|
10
|
+
from keras import config as config
|
|
11
|
+
from keras import constraints as constraints
|
|
12
|
+
from keras import datasets as datasets
|
|
13
|
+
from keras import distillation as distillation
|
|
14
|
+
from keras import distribution as distribution
|
|
15
|
+
from keras import dtype_policies as dtype_policies
|
|
16
|
+
from keras import export as export
|
|
17
|
+
from keras import initializers as initializers
|
|
18
|
+
from keras import legacy as legacy
|
|
19
|
+
from keras import mixed_precision as mixed_precision
|
|
20
|
+
from keras import models as models
|
|
21
|
+
from keras import ops as ops
|
|
22
|
+
from keras import optimizers as optimizers
|
|
23
|
+
from keras import quantizers as quantizers
|
|
24
|
+
from keras import random as random
|
|
25
|
+
from keras import regularizers as regularizers
|
|
26
|
+
from keras import tree as tree
|
|
27
|
+
from keras import utils as utils
|
|
28
|
+
from keras import visualization as visualization
|
|
29
|
+
from keras import wrappers as wrappers
|
|
30
|
+
from keras._tf_keras.keras import backend as backend
|
|
31
|
+
from keras._tf_keras.keras import layers as layers
|
|
32
|
+
from keras._tf_keras.keras import losses as losses
|
|
33
|
+
from keras._tf_keras.keras import metrics as metrics
|
|
34
|
+
from keras._tf_keras.keras import preprocessing as preprocessing
|
|
35
|
+
from keras.src.backend import Variable as Variable
|
|
36
|
+
from keras.src.backend import device as device
|
|
37
|
+
from keras.src.backend import name_scope as name_scope
|
|
38
|
+
from keras.src.backend.common.keras_tensor import KerasTensor as KerasTensor
|
|
39
|
+
from keras.src.backend.common.remat import RematScope as RematScope
|
|
40
|
+
from keras.src.backend.common.remat import remat as remat
|
|
41
|
+
from keras.src.backend.common.stateless_scope import (
|
|
42
|
+
StatelessScope as StatelessScope,
|
|
43
|
+
)
|
|
44
|
+
from keras.src.backend.common.symbolic_scope import (
|
|
45
|
+
SymbolicScope as SymbolicScope,
|
|
46
|
+
)
|
|
47
|
+
from keras.src.dtype_policies.dtype_policy import DTypePolicy as DTypePolicy
|
|
48
|
+
from keras.src.dtype_policies.dtype_policy import (
|
|
49
|
+
FloatDTypePolicy as FloatDTypePolicy,
|
|
50
|
+
)
|
|
51
|
+
from keras.src.initializers.initializer import Initializer as Initializer
|
|
52
|
+
from keras.src.layers.core.input_layer import Input as Input
|
|
53
|
+
from keras.src.layers.input_spec import InputSpec as InputSpec
|
|
54
|
+
from keras.src.layers.layer import Layer as Layer
|
|
55
|
+
from keras.src.losses.loss import Loss as Loss
|
|
56
|
+
from keras.src.metrics.metric import Metric as Metric
|
|
57
|
+
from keras.src.models.model import Model as Model
|
|
58
|
+
from keras.src.models.sequential import Sequential as Sequential
|
|
59
|
+
from keras.src.ops.function import Function as Function
|
|
60
|
+
from keras.src.ops.operation import Operation as Operation
|
|
61
|
+
from keras.src.optimizers.optimizer import Optimizer as Optimizer
|
|
62
|
+
from keras.src.quantizers.quantizers import Quantizer as Quantizer
|
|
63
|
+
from keras.src.regularizers.regularizers import Regularizer as Regularizer
|
|
64
|
+
from keras.src.version import __version__ as __version__
|
|
65
|
+
from keras.src.version import version as version
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"""DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
This file was autogenerated. Do not edit it by hand,
|
|
4
|
+
since your modifications would be overwritten.
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from keras.src.activations import deserialize as deserialize
|
|
8
|
+
from keras.src.activations import get as get
|
|
9
|
+
from keras.src.activations import serialize as serialize
|
|
10
|
+
from keras.src.activations.activations import celu as celu
|
|
11
|
+
from keras.src.activations.activations import elu as elu
|
|
12
|
+
from keras.src.activations.activations import exponential as exponential
|
|
13
|
+
from keras.src.activations.activations import gelu as gelu
|
|
14
|
+
from keras.src.activations.activations import glu as glu
|
|
15
|
+
from keras.src.activations.activations import hard_shrink as hard_shrink
|
|
16
|
+
from keras.src.activations.activations import hard_sigmoid as hard_sigmoid
|
|
17
|
+
from keras.src.activations.activations import hard_silu as hard_silu
|
|
18
|
+
from keras.src.activations.activations import hard_silu as hard_swish
|
|
19
|
+
from keras.src.activations.activations import hard_tanh as hard_tanh
|
|
20
|
+
from keras.src.activations.activations import leaky_relu as leaky_relu
|
|
21
|
+
from keras.src.activations.activations import linear as linear
|
|
22
|
+
from keras.src.activations.activations import log_sigmoid as log_sigmoid
|
|
23
|
+
from keras.src.activations.activations import log_softmax as log_softmax
|
|
24
|
+
from keras.src.activations.activations import mish as mish
|
|
25
|
+
from keras.src.activations.activations import relu as relu
|
|
26
|
+
from keras.src.activations.activations import relu6 as relu6
|
|
27
|
+
from keras.src.activations.activations import selu as selu
|
|
28
|
+
from keras.src.activations.activations import sigmoid as sigmoid
|
|
29
|
+
from keras.src.activations.activations import silu as silu
|
|
30
|
+
from keras.src.activations.activations import silu as swish
|
|
31
|
+
from keras.src.activations.activations import soft_shrink as soft_shrink
|
|
32
|
+
from keras.src.activations.activations import softmax as softmax
|
|
33
|
+
from keras.src.activations.activations import softplus as softplus
|
|
34
|
+
from keras.src.activations.activations import softsign as softsign
|
|
35
|
+
from keras.src.activations.activations import sparse_plus as sparse_plus
|
|
36
|
+
from keras.src.activations.activations import sparse_sigmoid as sparse_sigmoid
|
|
37
|
+
from keras.src.activations.activations import sparsemax as sparsemax
|
|
38
|
+
from keras.src.activations.activations import squareplus as squareplus
|
|
39
|
+
from keras.src.activations.activations import tanh as tanh
|
|
40
|
+
from keras.src.activations.activations import tanh_shrink as tanh_shrink
|
|
41
|
+
from keras.src.activations.activations import threshold as threshold
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
"""DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
This file was autogenerated. Do not edit it by hand,
|
|
4
|
+
since your modifications would be overwritten.
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from keras.applications import convnext as convnext
|
|
8
|
+
from keras.applications import densenet as densenet
|
|
9
|
+
from keras.applications import efficientnet as efficientnet
|
|
10
|
+
from keras.applications import efficientnet_v2 as efficientnet_v2
|
|
11
|
+
from keras.applications import imagenet_utils as imagenet_utils
|
|
12
|
+
from keras.applications import inception_resnet_v2 as inception_resnet_v2
|
|
13
|
+
from keras.applications import inception_v3 as inception_v3
|
|
14
|
+
from keras.applications import mobilenet as mobilenet
|
|
15
|
+
from keras.applications import mobilenet_v2 as mobilenet_v2
|
|
16
|
+
from keras.applications import mobilenet_v3 as mobilenet_v3
|
|
17
|
+
from keras.applications import nasnet as nasnet
|
|
18
|
+
from keras.applications import resnet as resnet
|
|
19
|
+
from keras.applications import resnet50 as resnet50
|
|
20
|
+
from keras.applications import resnet_v2 as resnet_v2
|
|
21
|
+
from keras.applications import vgg16 as vgg16
|
|
22
|
+
from keras.applications import vgg19 as vgg19
|
|
23
|
+
from keras.applications import xception as xception
|
|
24
|
+
from keras.src.applications.convnext import ConvNeXtBase as ConvNeXtBase
|
|
25
|
+
from keras.src.applications.convnext import ConvNeXtLarge as ConvNeXtLarge
|
|
26
|
+
from keras.src.applications.convnext import ConvNeXtSmall as ConvNeXtSmall
|
|
27
|
+
from keras.src.applications.convnext import ConvNeXtTiny as ConvNeXtTiny
|
|
28
|
+
from keras.src.applications.convnext import ConvNeXtXLarge as ConvNeXtXLarge
|
|
29
|
+
from keras.src.applications.densenet import DenseNet121 as DenseNet121
|
|
30
|
+
from keras.src.applications.densenet import DenseNet169 as DenseNet169
|
|
31
|
+
from keras.src.applications.densenet import DenseNet201 as DenseNet201
|
|
32
|
+
from keras.src.applications.efficientnet import EfficientNetB0 as EfficientNetB0
|
|
33
|
+
from keras.src.applications.efficientnet import EfficientNetB1 as EfficientNetB1
|
|
34
|
+
from keras.src.applications.efficientnet import EfficientNetB2 as EfficientNetB2
|
|
35
|
+
from keras.src.applications.efficientnet import EfficientNetB3 as EfficientNetB3
|
|
36
|
+
from keras.src.applications.efficientnet import EfficientNetB4 as EfficientNetB4
|
|
37
|
+
from keras.src.applications.efficientnet import EfficientNetB5 as EfficientNetB5
|
|
38
|
+
from keras.src.applications.efficientnet import EfficientNetB6 as EfficientNetB6
|
|
39
|
+
from keras.src.applications.efficientnet import EfficientNetB7 as EfficientNetB7
|
|
40
|
+
from keras.src.applications.efficientnet_v2 import (
|
|
41
|
+
EfficientNetV2B0 as EfficientNetV2B0,
|
|
42
|
+
)
|
|
43
|
+
from keras.src.applications.efficientnet_v2 import (
|
|
44
|
+
EfficientNetV2B1 as EfficientNetV2B1,
|
|
45
|
+
)
|
|
46
|
+
from keras.src.applications.efficientnet_v2 import (
|
|
47
|
+
EfficientNetV2B2 as EfficientNetV2B2,
|
|
48
|
+
)
|
|
49
|
+
from keras.src.applications.efficientnet_v2 import (
|
|
50
|
+
EfficientNetV2B3 as EfficientNetV2B3,
|
|
51
|
+
)
|
|
52
|
+
from keras.src.applications.efficientnet_v2 import (
|
|
53
|
+
EfficientNetV2L as EfficientNetV2L,
|
|
54
|
+
)
|
|
55
|
+
from keras.src.applications.efficientnet_v2 import (
|
|
56
|
+
EfficientNetV2M as EfficientNetV2M,
|
|
57
|
+
)
|
|
58
|
+
from keras.src.applications.efficientnet_v2 import (
|
|
59
|
+
EfficientNetV2S as EfficientNetV2S,
|
|
60
|
+
)
|
|
61
|
+
from keras.src.applications.inception_resnet_v2 import (
|
|
62
|
+
InceptionResNetV2 as InceptionResNetV2,
|
|
63
|
+
)
|
|
64
|
+
from keras.src.applications.inception_v3 import InceptionV3 as InceptionV3
|
|
65
|
+
from keras.src.applications.mobilenet import MobileNet as MobileNet
|
|
66
|
+
from keras.src.applications.mobilenet_v2 import MobileNetV2 as MobileNetV2
|
|
67
|
+
from keras.src.applications.mobilenet_v3 import (
|
|
68
|
+
MobileNetV3Large as MobileNetV3Large,
|
|
69
|
+
)
|
|
70
|
+
from keras.src.applications.mobilenet_v3 import (
|
|
71
|
+
MobileNetV3Small as MobileNetV3Small,
|
|
72
|
+
)
|
|
73
|
+
from keras.src.applications.nasnet import NASNetLarge as NASNetLarge
|
|
74
|
+
from keras.src.applications.nasnet import NASNetMobile as NASNetMobile
|
|
75
|
+
from keras.src.applications.resnet import ResNet50 as ResNet50
|
|
76
|
+
from keras.src.applications.resnet import ResNet101 as ResNet101
|
|
77
|
+
from keras.src.applications.resnet import ResNet152 as ResNet152
|
|
78
|
+
from keras.src.applications.resnet_v2 import ResNet50V2 as ResNet50V2
|
|
79
|
+
from keras.src.applications.resnet_v2 import ResNet101V2 as ResNet101V2
|
|
80
|
+
from keras.src.applications.resnet_v2 import ResNet152V2 as ResNet152V2
|
|
81
|
+
from keras.src.applications.vgg16 import VGG16 as VGG16
|
|
82
|
+
from keras.src.applications.vgg19 import VGG19 as VGG19
|
|
83
|
+
from keras.src.applications.xception import Xception as Xception
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"""DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
This file was autogenerated. Do not edit it by hand,
|
|
4
|
+
since your modifications would be overwritten.
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from keras.src.applications.convnext import ConvNeXtBase as ConvNeXtBase
|
|
8
|
+
from keras.src.applications.convnext import ConvNeXtLarge as ConvNeXtLarge
|
|
9
|
+
from keras.src.applications.convnext import ConvNeXtSmall as ConvNeXtSmall
|
|
10
|
+
from keras.src.applications.convnext import ConvNeXtTiny as ConvNeXtTiny
|
|
11
|
+
from keras.src.applications.convnext import ConvNeXtXLarge as ConvNeXtXLarge
|
|
12
|
+
from keras.src.applications.convnext import (
|
|
13
|
+
decode_predictions as decode_predictions,
|
|
14
|
+
)
|
|
15
|
+
from keras.src.applications.convnext import preprocess_input as preprocess_input
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"""DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
This file was autogenerated. Do not edit it by hand,
|
|
4
|
+
since your modifications would be overwritten.
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from keras.src.applications.densenet import DenseNet121 as DenseNet121
|
|
8
|
+
from keras.src.applications.densenet import DenseNet169 as DenseNet169
|
|
9
|
+
from keras.src.applications.densenet import DenseNet201 as DenseNet201
|
|
10
|
+
from keras.src.applications.densenet import (
|
|
11
|
+
decode_predictions as decode_predictions,
|
|
12
|
+
)
|
|
13
|
+
from keras.src.applications.densenet import preprocess_input as preprocess_input
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"""DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
This file was autogenerated. Do not edit it by hand,
|
|
4
|
+
since your modifications would be overwritten.
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from keras.src.applications.efficientnet import EfficientNetB0 as EfficientNetB0
|
|
8
|
+
from keras.src.applications.efficientnet import EfficientNetB1 as EfficientNetB1
|
|
9
|
+
from keras.src.applications.efficientnet import EfficientNetB2 as EfficientNetB2
|
|
10
|
+
from keras.src.applications.efficientnet import EfficientNetB3 as EfficientNetB3
|
|
11
|
+
from keras.src.applications.efficientnet import EfficientNetB4 as EfficientNetB4
|
|
12
|
+
from keras.src.applications.efficientnet import EfficientNetB5 as EfficientNetB5
|
|
13
|
+
from keras.src.applications.efficientnet import EfficientNetB6 as EfficientNetB6
|
|
14
|
+
from keras.src.applications.efficientnet import EfficientNetB7 as EfficientNetB7
|
|
15
|
+
from keras.src.applications.efficientnet import (
|
|
16
|
+
decode_predictions as decode_predictions,
|
|
17
|
+
)
|
|
18
|
+
from keras.src.applications.efficientnet import (
|
|
19
|
+
preprocess_input as preprocess_input,
|
|
20
|
+
)
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"""DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
This file was autogenerated. Do not edit it by hand,
|
|
4
|
+
since your modifications would be overwritten.
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from keras.src.applications.efficientnet_v2 import (
|
|
8
|
+
EfficientNetV2B0 as EfficientNetV2B0,
|
|
9
|
+
)
|
|
10
|
+
from keras.src.applications.efficientnet_v2 import (
|
|
11
|
+
EfficientNetV2B1 as EfficientNetV2B1,
|
|
12
|
+
)
|
|
13
|
+
from keras.src.applications.efficientnet_v2 import (
|
|
14
|
+
EfficientNetV2B2 as EfficientNetV2B2,
|
|
15
|
+
)
|
|
16
|
+
from keras.src.applications.efficientnet_v2 import (
|
|
17
|
+
EfficientNetV2B3 as EfficientNetV2B3,
|
|
18
|
+
)
|
|
19
|
+
from keras.src.applications.efficientnet_v2 import (
|
|
20
|
+
EfficientNetV2L as EfficientNetV2L,
|
|
21
|
+
)
|
|
22
|
+
from keras.src.applications.efficientnet_v2 import (
|
|
23
|
+
EfficientNetV2M as EfficientNetV2M,
|
|
24
|
+
)
|
|
25
|
+
from keras.src.applications.efficientnet_v2 import (
|
|
26
|
+
EfficientNetV2S as EfficientNetV2S,
|
|
27
|
+
)
|
|
28
|
+
from keras.src.applications.efficientnet_v2 import (
|
|
29
|
+
decode_predictions as decode_predictions,
|
|
30
|
+
)
|
|
31
|
+
from keras.src.applications.efficientnet_v2 import (
|
|
32
|
+
preprocess_input as preprocess_input,
|
|
33
|
+
)
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"""DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
This file was autogenerated. Do not edit it by hand,
|
|
4
|
+
since your modifications would be overwritten.
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from keras.src.applications.imagenet_utils import (
|
|
8
|
+
decode_predictions as decode_predictions,
|
|
9
|
+
)
|
|
10
|
+
from keras.src.applications.imagenet_utils import (
|
|
11
|
+
preprocess_input as preprocess_input,
|
|
12
|
+
)
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"""DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
This file was autogenerated. Do not edit it by hand,
|
|
4
|
+
since your modifications would be overwritten.
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from keras.src.applications.inception_resnet_v2 import (
|
|
8
|
+
InceptionResNetV2 as InceptionResNetV2,
|
|
9
|
+
)
|
|
10
|
+
from keras.src.applications.inception_resnet_v2 import (
|
|
11
|
+
decode_predictions as decode_predictions,
|
|
12
|
+
)
|
|
13
|
+
from keras.src.applications.inception_resnet_v2 import (
|
|
14
|
+
preprocess_input as preprocess_input,
|
|
15
|
+
)
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"""DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
This file was autogenerated. Do not edit it by hand,
|
|
4
|
+
since your modifications would be overwritten.
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from keras.src.applications.inception_v3 import InceptionV3 as InceptionV3
|
|
8
|
+
from keras.src.applications.inception_v3 import (
|
|
9
|
+
decode_predictions as decode_predictions,
|
|
10
|
+
)
|
|
11
|
+
from keras.src.applications.inception_v3 import (
|
|
12
|
+
preprocess_input as preprocess_input,
|
|
13
|
+
)
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"""DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
This file was autogenerated. Do not edit it by hand,
|
|
4
|
+
since your modifications would be overwritten.
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from keras.src.applications.mobilenet import MobileNet as MobileNet
|
|
8
|
+
from keras.src.applications.mobilenet import (
|
|
9
|
+
decode_predictions as decode_predictions,
|
|
10
|
+
)
|
|
11
|
+
from keras.src.applications.mobilenet import (
|
|
12
|
+
preprocess_input as preprocess_input,
|
|
13
|
+
)
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"""DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
This file was autogenerated. Do not edit it by hand,
|
|
4
|
+
since your modifications would be overwritten.
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from keras.src.applications.mobilenet_v2 import MobileNetV2 as MobileNetV2
|
|
8
|
+
from keras.src.applications.mobilenet_v2 import (
|
|
9
|
+
decode_predictions as decode_predictions,
|
|
10
|
+
)
|
|
11
|
+
from keras.src.applications.mobilenet_v2 import (
|
|
12
|
+
preprocess_input as preprocess_input,
|
|
13
|
+
)
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"""DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
This file was autogenerated. Do not edit it by hand,
|
|
4
|
+
since your modifications would be overwritten.
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from keras.src.applications.mobilenet_v3 import (
|
|
8
|
+
decode_predictions as decode_predictions,
|
|
9
|
+
)
|
|
10
|
+
from keras.src.applications.mobilenet_v3 import (
|
|
11
|
+
preprocess_input as preprocess_input,
|
|
12
|
+
)
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"""DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
This file was autogenerated. Do not edit it by hand,
|
|
4
|
+
since your modifications would be overwritten.
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from keras.src.applications.nasnet import NASNetLarge as NASNetLarge
|
|
8
|
+
from keras.src.applications.nasnet import NASNetMobile as NASNetMobile
|
|
9
|
+
from keras.src.applications.nasnet import (
|
|
10
|
+
decode_predictions as decode_predictions,
|
|
11
|
+
)
|
|
12
|
+
from keras.src.applications.nasnet import preprocess_input as preprocess_input
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"""DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
This file was autogenerated. Do not edit it by hand,
|
|
4
|
+
since your modifications would be overwritten.
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from keras.src.applications.resnet import ResNet50 as ResNet50
|
|
8
|
+
from keras.src.applications.resnet import ResNet101 as ResNet101
|
|
9
|
+
from keras.src.applications.resnet import ResNet152 as ResNet152
|
|
10
|
+
from keras.src.applications.resnet import (
|
|
11
|
+
decode_predictions as decode_predictions,
|
|
12
|
+
)
|
|
13
|
+
from keras.src.applications.resnet import preprocess_input as preprocess_input
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"""DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
This file was autogenerated. Do not edit it by hand,
|
|
4
|
+
since your modifications would be overwritten.
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from keras.src.applications.resnet import ResNet50 as ResNet50
|
|
8
|
+
from keras.src.applications.resnet import (
|
|
9
|
+
decode_predictions as decode_predictions,
|
|
10
|
+
)
|
|
11
|
+
from keras.src.applications.resnet import preprocess_input as preprocess_input
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"""DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
This file was autogenerated. Do not edit it by hand,
|
|
4
|
+
since your modifications would be overwritten.
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from keras.src.applications.resnet_v2 import ResNet50V2 as ResNet50V2
|
|
8
|
+
from keras.src.applications.resnet_v2 import ResNet101V2 as ResNet101V2
|
|
9
|
+
from keras.src.applications.resnet_v2 import ResNet152V2 as ResNet152V2
|
|
10
|
+
from keras.src.applications.resnet_v2 import (
|
|
11
|
+
decode_predictions as decode_predictions,
|
|
12
|
+
)
|
|
13
|
+
from keras.src.applications.resnet_v2 import (
|
|
14
|
+
preprocess_input as preprocess_input,
|
|
15
|
+
)
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"""DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
This file was autogenerated. Do not edit it by hand,
|
|
4
|
+
since your modifications would be overwritten.
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from keras.src.applications.vgg16 import VGG16 as VGG16
|
|
8
|
+
from keras.src.applications.vgg16 import (
|
|
9
|
+
decode_predictions as decode_predictions,
|
|
10
|
+
)
|
|
11
|
+
from keras.src.applications.vgg16 import preprocess_input as preprocess_input
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"""DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
This file was autogenerated. Do not edit it by hand,
|
|
4
|
+
since your modifications would be overwritten.
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from keras.src.applications.vgg19 import VGG19 as VGG19
|
|
8
|
+
from keras.src.applications.vgg19 import (
|
|
9
|
+
decode_predictions as decode_predictions,
|
|
10
|
+
)
|
|
11
|
+
from keras.src.applications.vgg19 import preprocess_input as preprocess_input
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"""DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
This file was autogenerated. Do not edit it by hand,
|
|
4
|
+
since your modifications would be overwritten.
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from keras.src.applications.xception import Xception as Xception
|
|
8
|
+
from keras.src.applications.xception import (
|
|
9
|
+
decode_predictions as decode_predictions,
|
|
10
|
+
)
|
|
11
|
+
from keras.src.applications.xception import preprocess_input as preprocess_input
|