text stringlengths 5 45.8k | id stringlengths 18 93 | metadata dict | __index_level_0__ int64 0 33 |
|---|---|---|---|
# Copyright 2022 The KerasCV Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | keras-cv/examples/training/object_detection/pascal_voc/faster_rcnn.py/0 | {
"file_path": "keras-cv/examples/training/object_detection/pascal_voc/faster_rcnn.py",
"repo_id": "keras-cv",
"token_count": 4874
} | 3 |
# Copyright 2023 The KerasCV Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | keras-cv/keras_cv/backend/scope.py/0 | {
"file_path": "keras-cv/keras_cv/backend/scope.py",
"repo_id": "keras-cv",
"token_count": 817
} | 4 |
# Copyright 2022 The KerasCV Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | keras-cv/keras_cv/bounding_box/to_ragged_test.py/0 | {
"file_path": "keras-cv/keras_cv/bounding_box/to_ragged_test.py",
"repo_id": "keras-cv",
"token_count": 1645
} | 5 |
# Copyright 2022 The KerasCV Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | keras-cv/keras_cv/core/factor_sampler/factor_sampler.py/0 | {
"file_path": "keras-cv/keras_cv/core/factor_sampler/factor_sampler.py",
"repo_id": "keras-cv",
"token_count": 411
} | 6 |
### The ImageNet Dataset in keras_cv
In order to load ImageNet with KerasCV, you'll need to download the [original ImageNet dataset](https://image-net.org) and parse the images into TFRecords.
Tensorflow provides a [script](https://github.com/tensorflow/tpu/blob/master/tools/datasets/imagenet_to_gcs.py) to perform th... | keras-cv/keras_cv/datasets/imagenet/README.md/0 | {
"file_path": "keras-cv/keras_cv/datasets/imagenet/README.md",
"repo_id": "keras-cv",
"token_count": 153
} | 7 |
# Copyright 2022 The KerasCV Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | keras-cv/keras_cv/datasets/waymo/transformer_test.py/0 | {
"file_path": "keras-cv/keras_cv/datasets/waymo/transformer_test.py",
"repo_id": "keras-cv",
"token_count": 3189
} | 8 |
# Copyright 2022 The KerasCV Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | keras-cv/keras_cv/layers/object_detection/roi_sampler_test.py/0 | {
"file_path": "keras-cv/keras_cv/layers/object_detection/roi_sampler_test.py",
"repo_id": "keras-cv",
"token_count": 6159
} | 9 |
# Copyright 2022 The KerasCV Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | keras-cv/keras_cv/layers/preprocessing/aug_mix.py/0 | {
"file_path": "keras-cv/keras_cv/layers/preprocessing/aug_mix.py",
"repo_id": "keras-cv",
"token_count": 6482
} | 10 |
# Copyright 2022 The KerasCV Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | keras-cv/keras_cv/layers/preprocessing/grid_mask.py/0 | {
"file_path": "keras-cv/keras_cv/layers/preprocessing/grid_mask.py",
"repo_id": "keras-cv",
"token_count": 4219
} | 11 |
# Copyright 2022 The KerasCV Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | keras-cv/keras_cv/layers/preprocessing/random_aspect_ratio_test.py/0 | {
"file_path": "keras-cv/keras_cv/layers/preprocessing/random_aspect_ratio_test.py",
"repo_id": "keras-cv",
"token_count": 939
} | 12 |
# Copyright 2022 The KerasCV Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | keras-cv/keras_cv/layers/preprocessing/random_crop_and_resize.py/0 | {
"file_path": "keras-cv/keras_cv/layers/preprocessing/random_crop_and_resize.py",
"repo_id": "keras-cv",
"token_count": 5099
} | 13 |
# Copyright 2023 The KerasCV Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | keras-cv/keras_cv/layers/preprocessing/random_saturation_test.py/0 | {
"file_path": "keras-cv/keras_cv/layers/preprocessing/random_saturation_test.py",
"repo_id": "keras-cv",
"token_count": 3401
} | 14 |
# Copyright 2022 The KerasCV Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | keras-cv/keras_cv/layers/preprocessing/solarization_test.py/0 | {
"file_path": "keras-cv/keras_cv/layers/preprocessing/solarization_test.py",
"repo_id": "keras-cv",
"token_count": 1405
} | 15 |
# Copyright 2022 Waymo LLC.
#
# Licensed under the terms in https://github.com/keras-team/keras-cv/blob/master/keras_cv/layers/preprocessing_3d/waymo/LICENSE # noqa: E501
import tensorflow as tf
from keras_cv.api_export import keras_cv_export
from keras_cv.backend import random
from keras_cv.layers.preprocessing_3d ... | keras-cv/keras_cv/layers/preprocessing_3d/waymo/global_random_dropping_points.py/0 | {
"file_path": "keras-cv/keras_cv/layers/preprocessing_3d/waymo/global_random_dropping_points.py",
"repo_id": "keras-cv",
"token_count": 1365
} | 16 |
# Copyright 2022 Waymo LLC.
#
# Licensed under the terms in https://github.com/keras-team/keras-cv/blob/master/keras_cv/layers/preprocessing_3d/waymo/LICENSE # noqa: E501
import tensorflow as tf
from keras_cv.api_export import keras_cv_export
from keras_cv.bounding_box_3d import CENTER_XYZ_DXDYDZ_PHI
from keras_cv.l... | keras-cv/keras_cv/layers/preprocessing_3d/waymo/swap_background.py/0 | {
"file_path": "keras-cv/keras_cv/layers/preprocessing_3d/waymo/swap_background.py",
"repo_id": "keras-cv",
"token_count": 3139
} | 17 |
# Copyright 2022 The KerasCV Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | keras-cv/keras_cv/layers/transformer_encoder_test.py/0 | {
"file_path": "keras-cv/keras_cv/layers/transformer_encoder_test.py",
"repo_id": "keras-cv",
"token_count": 804
} | 18 |
# Copyright 2022 The KerasCV Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | keras-cv/keras_cv/losses/numerical_tests/focal_loss_numerical_test.py/0 | {
"file_path": "keras-cv/keras_cv/losses/numerical_tests/focal_loss_numerical_test.py",
"repo_id": "keras-cv",
"token_count": 1285
} | 19 |
# Copyright 2023 The KerasCV Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | keras-cv/keras_cv/models/backbones/resnet_v1/resnet_v1_backbone.py/0 | {
"file_path": "keras-cv/keras_cv/models/backbones/resnet_v1/resnet_v1_backbone.py",
"repo_id": "keras-cv",
"token_count": 5269
} | 20 |
# Copyright 2023 The KerasCV Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | keras-cv/keras_cv/models/backbones/vit_det/vit_det_aliases.py/0 | {
"file_path": "keras-cv/keras_cv/models/backbones/vit_det/vit_det_aliases.py",
"repo_id": "keras-cv",
"token_count": 1393
} | 21 |
# Copyright 2023 The KerasCV Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | keras-cv/keras_cv/models/feature_extractor/clip/clip_processor.py/0 | {
"file_path": "keras-cv/keras_cv/models/feature_extractor/clip/clip_processor.py",
"repo_id": "keras-cv",
"token_count": 2025
} | 22 |
# Copyright 2022 The KerasCV Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | keras-cv/keras_cv/models/legacy/object_detection/faster_rcnn/faster_rcnn.py/0 | {
"file_path": "keras-cv/keras_cv/models/legacy/object_detection/faster_rcnn/faster_rcnn.py",
"repo_id": "keras-cv",
"token_count": 11857
} | 23 |
# Copyright 2023 The KerasCV Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | keras-cv/keras_cv/models/object_detection/yolo_v8/yolo_v8_label_encoder.py/0 | {
"file_path": "keras-cv/keras_cv/models/object_detection/yolo_v8/yolo_v8_label_encoder.py",
"repo_id": "keras-cv",
"token_count": 5092
} | 24 |
# Copyright 2022 The KerasCV Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | keras-cv/keras_cv/models/stable_diffusion/diffusion_model.py/0 | {
"file_path": "keras-cv/keras_cv/models/stable_diffusion/diffusion_model.py",
"repo_id": "keras-cv",
"token_count": 6703
} | 25 |
# Copyright 2022 The KerasCV Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | keras-cv/keras_cv/point_cloud/point_cloud_test.py/0 | {
"file_path": "keras-cv/keras_cv/point_cloud/point_cloud_test.py",
"repo_id": "keras-cv",
"token_count": 7984
} | 26 |
# Copyright 2022 The KerasCV Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | keras-cv/keras_cv/utils/fill_utils.py/0 | {
"file_path": "keras-cv/keras_cv/utils/fill_utils.py",
"repo_id": "keras-cv",
"token_count": 1152
} | 27 |
# Copyright 2023 The KerasCV Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | keras-cv/shell/count_preset_params.py/0 | {
"file_path": "keras-cv/shell/count_preset_params.py",
"repo_id": "keras-cv",
"token_count": 1060
} | 28 |
CI to run on PR and merge to Master. | keras-cv/.kokoro/README.md/0 | {
"file_path": "keras-cv/.kokoro/README.md",
"repo_id": "keras-cv",
"token_count": 10
} | 0 |
# KerasCV
[](https://github.com/keras-team/keras-cv/actions?query=workflow%3ATests+branch%3Amaster)



Date created: 2023/03/22
Last modified: 2023/03/22
Description: Visualize bounding boxes for a given dataset.
"""
"""
`keras_cv.visualization.plot_bounding_box_gallery()` is a function dedicated to
the visualization of bounding boxes predi... | keras-cv/examples/visualization/plot_bounding_box_gallery.py/0 | {
"file_path": "keras-cv/examples/visualization/plot_bounding_box_gallery.py",
"repo_id": "keras-cv",
"token_count": 876
} | 5 |
# Copyright 2022 The KerasCV Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | keras-cv/keras_cv/bounding_box_3d/formats.py/0 | {
"file_path": "keras-cv/keras_cv/bounding_box_3d/formats.py",
"repo_id": "keras-cv",
"token_count": 520
} | 6 |
# Copyright 2022 The KerasCV Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | keras-cv/keras_cv/datasets/pascal_voc/segmentation.py/0 | {
"file_path": "keras-cv/keras_cv/datasets/pascal_voc/segmentation.py",
"repo_id": "keras-cv",
"token_count": 7954
} | 7 |
# Copyright 2022 The KerasCV Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | keras-cv/keras_cv/keypoint/utils_test.py/0 | {
"file_path": "keras-cv/keras_cv/keypoint/utils_test.py",
"repo_id": "keras-cv",
"token_count": 979
} | 8 |
# Copyright 2022 The KerasCV Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | keras-cv/keras_cv/layers/object_detection/multi_class_non_max_suppression.py/0 | {
"file_path": "keras-cv/keras_cv/layers/object_detection/multi_class_non_max_suppression.py",
"repo_id": "keras-cv",
"token_count": 2332
} | 9 |
# Copyright 2022 The KerasCV Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | keras-cv/keras_cv/layers/object_detection_3d/centernet_label_encoder.py/0 | {
"file_path": "keras-cv/keras_cv/layers/object_detection_3d/centernet_label_encoder.py",
"repo_id": "keras-cv",
"token_count": 8152
} | 10 |
# Copyright 2023 The KerasCV Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | keras-cv/keras_cv/layers/preprocessing/channel_shuffle.py/0 | {
"file_path": "keras-cv/keras_cv/layers/preprocessing/channel_shuffle.py",
"repo_id": "keras-cv",
"token_count": 1829
} | 11 |
# Copyright 2023 The KerasCV Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | keras-cv/keras_cv/layers/preprocessing/mosaic.py/0 | {
"file_path": "keras-cv/keras_cv/layers/preprocessing/mosaic.py",
"repo_id": "keras-cv",
"token_count": 6082
} | 12 |
# Copyright 2022 The KerasCV Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | keras-cv/keras_cv/layers/preprocessing/random_channel_shift_test.py/0 | {
"file_path": "keras-cv/keras_cv/layers/preprocessing/random_channel_shift_test.py",
"repo_id": "keras-cv",
"token_count": 1902
} | 13 |
# Copyright 2023 The KerasCV Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | keras-cv/keras_cv/layers/preprocessing/random_flip_test.py/0 | {
"file_path": "keras-cv/keras_cv/layers/preprocessing/random_flip_test.py",
"repo_id": "keras-cv",
"token_count": 5471
} | 14 |
# Copyright 2023 The KerasCV Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | keras-cv/keras_cv/layers/preprocessing/random_translation_test.py/0 | {
"file_path": "keras-cv/keras_cv/layers/preprocessing/random_translation_test.py",
"repo_id": "keras-cv",
"token_count": 4946
} | 15 |
# Copyright 2022 Waymo LLC.
#
# Licensed under the terms in https://github.com/keras-team/keras-cv/blob/master/keras_cv/layers/preprocessing_3d/waymo/LICENSE # noqa: E501
import tensorflow as tf
from keras_cv.api_export import keras_cv_export
from keras_cv.backend import random
from keras_cv.bounding_box_3d import C... | keras-cv/keras_cv/layers/preprocessing_3d/waymo/global_random_scaling.py/0 | {
"file_path": "keras-cv/keras_cv/layers/preprocessing_3d/waymo/global_random_scaling.py",
"repo_id": "keras-cv",
"token_count": 3451
} | 16 |
# Copyright 2022 The KerasCV Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | keras-cv/keras_cv/layers/regularization/dropblock_2d_test.py/0 | {
"file_path": "keras-cv/keras_cv/layers/regularization/dropblock_2d_test.py",
"repo_id": "keras-cv",
"token_count": 1420
} | 17 |
# Copyright 2023 The KerasCV Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | keras-cv/keras_cv/losses/centernet_box_loss.py/0 | {
"file_path": "keras-cv/keras_cv/losses/centernet_box_loss.py",
"repo_id": "keras-cv",
"token_count": 2163
} | 18 |
# Copyright 2022 The KerasCV Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | keras-cv/keras_cv/losses/smooth_l1.py/0 | {
"file_path": "keras-cv/keras_cv/losses/smooth_l1.py",
"repo_id": "keras-cv",
"token_count": 725
} | 19 |
# Copyright 2023 The KerasCV Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | keras-cv/keras_cv/models/backbones/csp_darknet/csp_darknet_backbone_presets.py/0 | {
"file_path": "keras-cv/keras_cv/models/backbones/csp_darknet/csp_darknet_backbone_presets.py",
"repo_id": "keras-cv",
"token_count": 2218
} | 20 |
# Copyright 2023 The KerasCV Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | keras-cv/keras_cv/models/backbones/mix_transformer/mix_transformer_backbone_presets_test.py/0 | {
"file_path": "keras-cv/keras_cv/models/backbones/mix_transformer/mix_transformer_backbone_presets_test.py",
"repo_id": "keras-cv",
"token_count": 1423
} | 21 |
# Copyright 2022 The KerasCV Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | keras-cv/keras_cv/models/backbones/resnet_v2/resnet_v2_backbone.py/0 | {
"file_path": "keras-cv/keras_cv/models/backbones/resnet_v2/resnet_v2_backbone.py",
"repo_id": "keras-cv",
"token_count": 5936
} | 22 |
# Copyright 2023 The KerasCV Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | keras-cv/keras_cv/models/classification/image_classifier.py/0 | {
"file_path": "keras-cv/keras_cv/models/classification/image_classifier.py",
"repo_id": "keras-cv",
"token_count": 1944
} | 23 |
# Copyright 2022 The KerasCV Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | keras-cv/keras_cv/models/legacy/utils_test.py/0 | {
"file_path": "keras-cv/keras_cv/models/legacy/utils_test.py",
"repo_id": "keras-cv",
"token_count": 992
} | 24 |
# Copyright 2022 The KerasCV Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | keras-cv/keras_cv/models/object_detection/retinanet/retinanet_label_encoder.py/0 | {
"file_path": "keras-cv/keras_cv/models/object_detection/retinanet/retinanet_label_encoder.py",
"repo_id": "keras-cv",
"token_count": 4633
} | 25 |
# Copyright 2023 The KerasCV Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | keras-cv/keras_cv/models/object_detection/yolox/layers/yolox_head.py/0 | {
"file_path": "keras-cv/keras_cv/models/object_detection/yolox/layers/yolox_head.py",
"repo_id": "keras-cv",
"token_count": 2949
} | 26 |
# Copyright 2023 The KerasCV Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | keras-cv/keras_cv/models/segmentation/basnet/basnet_test.py/0 | {
"file_path": "keras-cv/keras_cv/models/segmentation/basnet/basnet_test.py",
"repo_id": "keras-cv",
"token_count": 2014
} | 27 |
# Copyright 2023 The KerasCV Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | keras-cv/keras_cv/models/segmentation/segment_anything/sam_presets.py/0 | {
"file_path": "keras-cv/keras_cv/models/segmentation/segment_anything/sam_presets.py",
"repo_id": "keras-cv",
"token_count": 676
} | 28 |
# Copyright 2022 The KerasCV Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | keras-cv/keras_cv/models/stable_diffusion/stable_diffusion_test.py/0 | {
"file_path": "keras-cv/keras_cv/models/stable_diffusion/stable_diffusion_test.py",
"repo_id": "keras-cv",
"token_count": 1896
} | 29 |
# Copyright 2023 The KerasCV Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | keras-cv/keras_cv/tools/convert_presets.py/0 | {
"file_path": "keras-cv/keras_cv/tools/convert_presets.py",
"repo_id": "keras-cv",
"token_count": 2620
} | 30 |
# Copyright 2023 The KerasCV Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | keras-cv/keras_cv/utils/python_utils.py/0 | {
"file_path": "keras-cv/keras_cv/utils/python_utils.py",
"repo_id": "keras-cv",
"token_count": 567
} | 31 |
[tool.black]
line-length = 80
[tool.isort]
profile = "black"
force_single_line = "True"
known_first_party = ["keras_cv", "tests"]
default_section = "THIRDPARTY"
line_length = 80
| keras-cv/pyproject.toml/0 | {
"file_path": "keras-cv/pyproject.toml",
"repo_id": "keras-cv",
"token_count": 70
} | 32 |
if [ "$#" -ne 2 ]; then
echo USAGE: ./process_backbone_weights.sh WEIGHTS_PATH GCS_PATH
exit 1
fi
WEIGHTS=$1
GCS_PATH=$2
echo Checksum: $(shasum -a 256 $WEIGHTS)
gsutil cp $WEIGHTS $GCS_PATH/
gsutil acl ch -u AllUsers:R $GCS_PATH/$WEIGHTS
| keras-cv/shell/weights/upload_weights.sh/0 | {
"file_path": "keras-cv/shell/weights/upload_weights.sh",
"repo_id": "keras-cv",
"token_count": 104
} | 33 |
set -e
set -x
cd "${KOKORO_ROOT}/"
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.9 1
PYTHON_BINARY="/usr/bin/python3.9"
"${PYTHON_BINARY}" -m venv venv
source venv/bin/activate
# Check the python version
python --version
python3 --version
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr... | keras-cv/.kokoro/github/ubuntu/gpu/build.sh/0 | {
"file_path": "keras-cv/.kokoro/github/ubuntu/gpu/build.sh",
"repo_id": "keras-cv",
"token_count": 1078
} | 0 |
# Security Policy
If you have discovered a security vulnerability in this project, please report it
privately. **Do not disclose it as a public issue.** This gives us time to work with you
to fix the issue before public exposure, reducing the chance that the exploit will be
used before a patch is released.
You may su... | keras-cv/SECURITY.md/0 | {
"file_path": "keras-cv/SECURITY.md",
"repo_id": "keras-cv",
"token_count": 177
} | 1 |
# Copyright 2023 The KerasCV Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | keras-cv/benchmarks/vectorized_random_flip.py/0 | {
"file_path": "keras-cv/benchmarks/vectorized_random_flip.py",
"repo_id": "keras-cv",
"token_count": 6054
} | 2 |
"""Setup TensorFlow as external dependency"""
_TF_HEADER_DIR = "TF_HEADER_DIR"
_TF_SHARED_LIBRARY_DIR = "TF_SHARED_LIBRARY_DIR"
_TF_SHARED_LIBRARY_NAME = "TF_SHARED_LIBRARY_NAME"
_TF_CXX11_ABI_FLAG = "TF_CXX11_ABI_FLAG"
_TF_CPLUSPLUS_VER = "TF_CPLUSPLUS_VER"
def _tpl(repository_ctx, tpl, substitutions = {}, out =... | keras-cv/build_deps/tf_dependency/tf_configure.bzl/0 | {
"file_path": "keras-cv/build_deps/tf_dependency/tf_configure.bzl",
"repo_id": "keras-cv",
"token_count": 3640
} | 3 |
# Copyright 2022 The KerasCV Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | keras-cv/examples/layers/preprocessing/classification/random_crop_demo.py/0 | {
"file_path": "keras-cv/examples/layers/preprocessing/classification/random_crop_demo.py",
"repo_id": "keras-cv",
"token_count": 339
} | 4 |
"""
Title: Plot an image gallery
Author: [lukewood](https://lukewood.xyz), updated by
[Suvaditya Mukherjee](https://twitter.com/halcyonrayes)
Date created: 2022/10/16
Last modified: 2022/06/24
Description: Visualize ground truth and predicted bounding boxes for a given
dataset.
"""
"""
Plotting images from... | keras-cv/examples/visualization/plot_image_gallery.py/0 | {
"file_path": "keras-cv/examples/visualization/plot_image_gallery.py",
"repo_id": "keras-cv",
"token_count": 352
} | 5 |
/* Copyright 2022 The KerasCV Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | keras-cv/keras_cv/custom_ops/box_util.cc/0 | {
"file_path": "keras-cv/keras_cv/custom_ops/box_util.cc",
"repo_id": "keras-cv",
"token_count": 6291
} | 6 |
# Copyright 2022 The KerasCV Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | keras-cv/keras_cv/datasets/pascal_voc/segmentation_test.py/0 | {
"file_path": "keras-cv/keras_cv/datasets/pascal_voc/segmentation_test.py",
"repo_id": "keras-cv",
"token_count": 6396
} | 7 |
# Copyright 2023 The KerasCV Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | keras-cv/keras_cv/layers/__init__.py/0 | {
"file_path": "keras-cv/keras_cv/layers/__init__.py",
"repo_id": "keras-cv",
"token_count": 2271
} | 8 |
# Copyright 2022 The KerasCV Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | keras-cv/keras_cv/layers/object_detection/multi_class_non_max_suppression_test.py/0 | {
"file_path": "keras-cv/keras_cv/layers/object_detection/multi_class_non_max_suppression_test.py",
"repo_id": "keras-cv",
"token_count": 614
} | 9 |
# Copyright 2022 The KerasCV Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | keras-cv/keras_cv/layers/object_detection_3d/centernet_label_encoder_test.py/0 | {
"file_path": "keras-cv/keras_cv/layers/object_detection_3d/centernet_label_encoder_test.py",
"repo_id": "keras-cv",
"token_count": 2396
} | 10 |
# Copyright 2023 The KerasCV Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | keras-cv/keras_cv/layers/preprocessing/channel_shuffle_test.py/0 | {
"file_path": "keras-cv/keras_cv/layers/preprocessing/channel_shuffle_test.py",
"repo_id": "keras-cv",
"token_count": 2063
} | 11 |
# Copyright 2022 The KerasCV Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | keras-cv/keras_cv/layers/preprocessing/random_choice.py/0 | {
"file_path": "keras-cv/keras_cv/layers/preprocessing/random_choice.py",
"repo_id": "keras-cv",
"token_count": 1772
} | 12 |
# Copyright 2022 The KerasCV Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | keras-cv/keras_cv/layers/preprocessing/random_gaussian_blur.py/0 | {
"file_path": "keras-cv/keras_cv/layers/preprocessing/random_gaussian_blur.py",
"repo_id": "keras-cv",
"token_count": 2033
} | 13 |
# Copyright 2023 The KerasCV Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | keras-cv/keras_cv/layers/preprocessing/random_zoom.py/0 | {
"file_path": "keras-cv/keras_cv/layers/preprocessing/random_zoom.py",
"repo_id": "keras-cv",
"token_count": 5006
} | 14 |
# Copyright 2022 The KerasCV Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | keras-cv/keras_cv/layers/preprocessing_3d/base_augmentation_layer_3d.py/0 | {
"file_path": "keras-cv/keras_cv/layers/preprocessing_3d/base_augmentation_layer_3d.py",
"repo_id": "keras-cv",
"token_count": 4405
} | 15 |
# Copyright 2022 Waymo LLC.
#
# Licensed under the terms in https://github.com/keras-team/keras-cv/blob/master/keras_cv/layers/preprocessing_3d/waymo/LICENSE # noqa: E501
import numpy as np
from keras_cv.layers.preprocessing_3d import base_augmentation_layer_3d
from keras_cv.layers.preprocessing_3d.waymo.global_rand... | keras-cv/keras_cv/layers/preprocessing_3d/waymo/global_random_scaling_test.py/0 | {
"file_path": "keras-cv/keras_cv/layers/preprocessing_3d/waymo/global_random_scaling_test.py",
"repo_id": "keras-cv",
"token_count": 2073
} | 16 |
# Copyright 2022 The KerasCV Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | keras-cv/keras_cv/layers/regularization/squeeze_excite.py/0 | {
"file_path": "keras-cv/keras_cv/layers/regularization/squeeze_excite.py",
"repo_id": "keras-cv",
"token_count": 2068
} | 17 |
# Copyright 2023 The KerasCV Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | keras-cv/keras_cv/losses/centernet_box_loss_test.py/0 | {
"file_path": "keras-cv/keras_cv/losses/centernet_box_loss_test.py",
"repo_id": "keras-cv",
"token_count": 611
} | 18 |
# Copyright 2023 The KerasCV Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | keras-cv/keras_cv/models/backbones/csp_darknet/csp_darknet_backbone_presets_test.py/0 | {
"file_path": "keras-cv/keras_cv/models/backbones/csp_darknet/csp_darknet_backbone_presets_test.py",
"repo_id": "keras-cv",
"token_count": 1546
} | 19 |
# Copyright 2023 The KerasCV Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | keras-cv/keras_cv/models/backbones/efficientnet_v1/efficientnet_v1_aliases.py/0 | {
"file_path": "keras-cv/keras_cv/models/backbones/efficientnet_v1/efficientnet_v1_aliases.py",
"repo_id": "keras-cv",
"token_count": 3998
} | 20 |
# Copyright 2023 The KerasCV Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | keras-cv/keras_cv/models/backbones/mix_transformer/mix_transformer_backbone_test.py/0 | {
"file_path": "keras-cv/keras_cv/models/backbones/mix_transformer/mix_transformer_backbone_test.py",
"repo_id": "keras-cv",
"token_count": 888
} | 21 |
# Copyright 2023 The KerasCV Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | keras-cv/keras_cv/models/backbones/resnet_v2/resnet_v2_backbone_presets.py/0 | {
"file_path": "keras-cv/keras_cv/models/backbones/resnet_v2/resnet_v2_backbone_presets.py",
"repo_id": "keras-cv",
"token_count": 1671
} | 22 |
# Copyright 2023 The KerasCV Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | keras-cv/keras_cv/models/classification/image_classifier_presets.py/0 | {
"file_path": "keras-cv/keras_cv/models/classification/image_classifier_presets.py",
"repo_id": "keras-cv",
"token_count": 2771
} | 23 |
# Copyright 2022 The KerasCV Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | keras-cv/keras_cv/models/legacy/convnext.py/0 | {
"file_path": "keras-cv/keras_cv/models/legacy/convnext.py",
"repo_id": "keras-cv",
"token_count": 9184
} | 24 |
# Copyright 2022 The KerasCV Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | keras-cv/keras_cv/models/object_detection/retinanet/retinanet_label_encoder_test.py/0 | {
"file_path": "keras-cv/keras_cv/models/object_detection/retinanet/retinanet_label_encoder_test.py",
"repo_id": "keras-cv",
"token_count": 2230
} | 25 |
# Copyright 2023 The KerasCV Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | keras-cv/keras_cv/models/object_detection/yolox/layers/yolox_head_test.py/0 | {
"file_path": "keras-cv/keras_cv/models/object_detection/yolox/layers/yolox_head_test.py",
"repo_id": "keras-cv",
"token_count": 756
} | 26 |
# Copyright 2023 The KerasCV Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | keras-cv/keras_cv/models/segmentation/segment_anything/sam_prompt_encoder.py/0 | {
"file_path": "keras-cv/keras_cv/models/segmentation/segment_anything/sam_prompt_encoder.py",
"repo_id": "keras-cv",
"token_count": 5422
} | 27 |
# Copyright 2022 The KerasCV Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | keras-cv/keras_cv/models/stable_diffusion/text_encoder.py/0 | {
"file_path": "keras-cv/keras_cv/models/stable_diffusion/text_encoder.py",
"repo_id": "keras-cv",
"token_count": 3165
} | 28 |
# Copyright 2022 The KerasCV Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | keras-cv/keras_cv/utils/resource_loader.py/0 | {
"file_path": "keras-cv/keras_cv/utils/resource_loader.py",
"repo_id": "keras-cv",
"token_count": 1051
} | 29 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.