Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace RandomGenerator with SeedGenerator #2150

Merged
merged 17 commits into from
Nov 16, 2023

Conversation

sampathweb
Copy link
Collaborator

  • Replaces RandomGenerator with SeedGenerator shim in layers/preprocessing
  • Leave RandomGenerator for Waymo preprocessing and skip the 3d layers for Keras 3

@divyashreepathihalli divyashreepathihalli merged commit 365a675 into master Nov 16, 2023
7 of 16 checks passed
@divyashreepathihalli divyashreepathihalli deleted the fix-tests-aug-layers branch November 16, 2023 01:02
sampathweb added a commit that referenced this pull request Nov 18, 2023
sampathweb added a commit that referenced this pull request Nov 18, 2023
divyashreepathihalli pushed a commit that referenced this pull request Nov 18, 2023
divyashreepathihalli added a commit that referenced this pull request Nov 18, 2023
* Keras3 tests (#2152)

* Update requirements for Keras 3

* Update Requirements

* Update Requirements

* Add randint for keras3 compatibility

* remove force generator

* fix few tests

* fix tests

* fix more tests

* Revert "Replace `RandomGenerator` with `SeedGenerator` (#2150)" (#2161)

This reverts commit 365a675.

* Update actions.yml

---------

Co-authored-by: Ramesh Sampath <[email protected]>
divyashreepathihalli added a commit that referenced this pull request Nov 18, 2023
* Keras3 tests (#2152)

* Update requirements for Keras 3

* Update Requirements

* Update Requirements

* Add randint for keras3 compatibility

* remove force generator

* fix few tests

* fix tests

* fix more tests

* Revert "Replace `RandomGenerator` with `SeedGenerator` (#2150)" (#2161)

This reverts commit 365a675.

* Update actions.yml

* updates to rescaling

---------

Co-authored-by: Ramesh Sampath <[email protected]>
divyashreepathihalli pushed a commit to divyashreepathihalli/keras-cv that referenced this pull request Nov 18, 2023
divyashreepathihalli added a commit that referenced this pull request Nov 20, 2023
* Keras3 tests (#2152)

* Update requirements for Keras 3

* Update Requirements

* Update Requirements

* Add randint for keras3 compatibility

* remove force generator

* fix few tests

* fix tests

* fix more tests

* Update actions.yml

* Tf generator changes (#2162)

* Keras3 tests (#2152)

* Update requirements for Keras 3

* Update Requirements

* Update Requirements

* Add randint for keras3 compatibility

* remove force generator

* fix few tests

* fix tests

* fix more tests

* Revert "Replace `RandomGenerator` with `SeedGenerator` (#2150)" (#2161)

This reverts commit 365a675.

* Update actions.yml

---------

Co-authored-by: Ramesh Sampath <[email protected]>

* updates to rescaling

* fix import

* code reformat

* namescope

* update name_scope

* correct ops.random

* update base aug layer

* code reformat

* skip rand_augment test

* disable random shear test

* skip test

* update import

* fix format and base layer

* ads smart resize

* undo last commit

* smart_resize update

* update imports

* correct shameful spelling mistake

* update resizing

* update resizing

* update imports

* disable ragged tensor test

* skip tests

* change back translation and zoom test

* revert test changes

* update

* skip repeated augmentation tests

* disable random shear test

* code reformat

* remove legacy_seed

* code reformat

* revert updates to tests

* update tests

* fix mock test

---------

Co-authored-by: Ramesh Sampath <[email protected]>
sampathweb added a commit that referenced this pull request Nov 20, 2023
* Tf generator changes (#2168)

* Keras3 tests (#2152)

* Update requirements for Keras 3

* Update Requirements

* Update Requirements

* Add randint for keras3 compatibility

* remove force generator

* fix few tests

* fix tests

* fix more tests

* Update actions.yml

* Tf generator changes (#2162)

* Keras3 tests (#2152)

* Update requirements for Keras 3

* Update Requirements

* Update Requirements

* Add randint for keras3 compatibility

* remove force generator

* fix few tests

* fix tests

* fix more tests

* Revert "Replace `RandomGenerator` with `SeedGenerator` (#2150)" (#2161)

This reverts commit 365a675.

* Update actions.yml

---------

Co-authored-by: Ramesh Sampath <[email protected]>

* updates to rescaling

* fix import

* code reformat

* namescope

* update name_scope

* correct ops.random

* update base aug layer

* code reformat

* skip rand_augment test

* disable random shear test

* skip test

* update import

* fix format and base layer

* ads smart resize

* undo last commit

* smart_resize update

* update imports

* correct shameful spelling mistake

* update resizing

* update resizing

* update imports

* disable ragged tensor test

* skip tests

* change back translation and zoom test

* revert test changes

* update

* skip repeated augmentation tests

* disable random shear test

* code reformat

* remove legacy_seed

* code reformat

* revert updates to tests

* update tests

* fix mock test

---------

Co-authored-by: Ramesh Sampath <[email protected]>

* Skip keras 3 incompatible layers (#2169)

* Update requirements.txt

* disable flaky test

* code reformat

* fixes tests on coco metric and serialization

* code reformat

* Skip test on RandAugment

* Skip test on RandAugment

---------

Co-authored-by: Ramesh Sampath <[email protected]>
yuvraj-wale pushed a commit to yuvraj-wale/keras-cv that referenced this pull request Feb 8, 2024
* upload updated aug layers

* reformat and resolve error

* add more layers

* add aug_mix

* code reformat

* add few more layers

* add more layers

* add more layers#

* add more layers

* correct errors#

* remove force generator

* Update aug layers (keras-team#2147)

* Replace random_generator

* Replace random_genereator

* resolve dropblock error

* update base_augmentation_layer_3d and all subclasses

* fix random inversion test

* Fix format and tests

* Fix Keras 2 tests with Seed Gen

---------

Co-authored-by: divyashreepathihalli <[email protected]>
yuvraj-wale pushed a commit to yuvraj-wale/keras-cv that referenced this pull request Feb 8, 2024
yuvraj-wale pushed a commit to yuvraj-wale/keras-cv that referenced this pull request Feb 8, 2024
* Tf generator changes (keras-team#2168)

* Keras3 tests (keras-team#2152)

* Update requirements for Keras 3

* Update Requirements

* Update Requirements

* Add randint for keras3 compatibility

* remove force generator

* fix few tests

* fix tests

* fix more tests

* Update actions.yml

* Tf generator changes (keras-team#2162)

* Keras3 tests (keras-team#2152)

* Update requirements for Keras 3

* Update Requirements

* Update Requirements

* Add randint for keras3 compatibility

* remove force generator

* fix few tests

* fix tests

* fix more tests

* Revert "Replace `RandomGenerator` with `SeedGenerator` (keras-team#2150)" (keras-team#2161)

This reverts commit 365a675.

* Update actions.yml

---------

Co-authored-by: Ramesh Sampath <[email protected]>

* updates to rescaling

* fix import

* code reformat

* namescope

* update name_scope

* correct ops.random

* update base aug layer

* code reformat

* skip rand_augment test

* disable random shear test

* skip test

* update import

* fix format and base layer

* ads smart resize

* undo last commit

* smart_resize update

* update imports

* correct shameful spelling mistake

* update resizing

* update resizing

* update imports

* disable ragged tensor test

* skip tests

* change back translation and zoom test

* revert test changes

* update

* skip repeated augmentation tests

* disable random shear test

* code reformat

* remove legacy_seed

* code reformat

* revert updates to tests

* update tests

* fix mock test

---------

Co-authored-by: Ramesh Sampath <[email protected]>

* Skip keras 3 incompatible layers (keras-team#2169)

* Update requirements.txt

* disable flaky test

* code reformat

* fixes tests on coco metric and serialization

* code reformat

* Skip test on RandAugment

* Skip test on RandAugment

---------

Co-authored-by: Ramesh Sampath <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants