Skip to content

Commit 7eee38a

Browse files
sampathwebmattdangerwgrasskinsachinprasadhshaifeng-jin
authored
Create patch release r0.8.2 (#2326)
* Move keras-cv markdown files to toplevel (#2291) Keras, KerasNLP and KerasTuner all store things liek the CONTRIBUTING.md in the toplevel of the repo. We should do the same here. * Add `version()` API to unify with Keras and KerasNLP (#2199) * Unify `version` API with keras and keras_nlp * Formatting * Update to keep `version` parity with KerasNLP, support nightly version string * Update version_utils.py * Update version_utils.py * Update random_crop_and_zoom.py (#2294) * Update random_crop_and_zoom.py * Update description * rename file * bug fix (#2303) * Add BASNet Segmentation Model (#2006) (#2271) * BASNet model initial code structure * adding test and initial preset details * adding comments * cleaning and formatting code * keras 3 support added * disabling preset test for BASNet * Fix image.shape type (#2305) Fixed image.shape issue for tensorflow backend * Create workflow for auto assignment of issues and for stale issues (#2313) * Create auto-assignment.yaml * Create auto-assignment.js * Create stale-issue-pr.yaml * Rename auto-assignment.yaml to auto-assignment.yml * Rename stale-issue-pr.yaml to stale-issue-pr.yml * Fix format and Update Vectorized Base (#2323) * Fix CI Test for Basnet OOM and PyCoCo Test Failure for JAX (#2322) * Reduce memory consumption for BasNet tests (#2325) --------- Co-authored-by: Matt Watson <[email protected]> Co-authored-by: Gabriel Rasskin <[email protected]> Co-authored-by: Sachin Prasad <[email protected]> Co-authored-by: Haifeng Jin <[email protected]> Co-authored-by: Hamid Ali <[email protected]> Co-authored-by: Tirth Patel <[email protected]>
1 parent 0e2c479 commit 7eee38a

38 files changed

+914
-64
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: auto-assignment
2+
on:
3+
issues:
4+
types:
5+
- opened
6+
7+
permissions:
8+
contents: read
9+
issues: write
10+
pull-requests: write
11+
12+
jobs:
13+
welcome:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
- uses: actions/github-script@v7
18+
with:
19+
script: |
20+
const script = require('./\.github/workflows/scripts/auto-assignment.js')
21+
script({github, context})
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
/** Automatically assign issues and PRs to users in the `assigneesList`
2+
* on a rotating basis.
3+
4+
@param {!object}
5+
GitHub objects can call GitHub APIs using their built-in library functions.
6+
The context object contains issue and PR details.
7+
*/
8+
9+
module.exports = async ({ github, context }) => {
10+
let issueNumber;
11+
let assigneesList;
12+
// Is this an issue? If so, assign the issue number. Otherwise, assign the PR number.
13+
if (context.payload.issue) {
14+
//assignee List for issues.
15+
assigneesList = ["SuryanarayanaY", "sachinprasadhs"];
16+
issueNumber = context.payload.issue.number;
17+
} else {
18+
//assignee List for PRs.
19+
assigneesList = [];
20+
issueNumber = context.payload.number;
21+
}
22+
console.log("assignee list", assigneesList);
23+
console.log("entered auto assignment for this issue: ", issueNumber);
24+
if (!assigneesList.length) {
25+
console.log("No assignees found for this repo.");
26+
return;
27+
}
28+
let noOfAssignees = assigneesList.length;
29+
let selection = issueNumber % noOfAssignees;
30+
let assigneeForIssue = assigneesList[selection];
31+
32+
console.log(
33+
"issue Number = ",
34+
issueNumber + " , assigning to: ",
35+
assigneeForIssue
36+
);
37+
return github.rest.issues.addAssignees({
38+
issue_number: context.issue.number,
39+
owner: context.repo.owner,
40+
repo: context.repo.repo,
41+
assignees: [assigneeForIssue],
42+
});
43+
};
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Close inactive issues
2+
on:
3+
schedule:
4+
- cron: "30 1 * * *"
5+
jobs:
6+
close-issues:
7+
runs-on: ubuntu-latest
8+
permissions:
9+
issues: write
10+
pull-requests: write
11+
steps:
12+
- name: Awaiting response issues
13+
uses: actions/stale@v9
14+
with:
15+
days-before-issue-stale: 14
16+
days-before-issue-close: 14
17+
stale-issue-label: "stale"
18+
# reason for closed the issue default value is not_planned
19+
close-issue-reason: completed
20+
only-labels: "stat:awaiting response from contributor"
21+
stale-issue-message: >
22+
This issue is stale because it has been open for 14 days with no activity.
23+
It will be closed if no further activity occurs. Thank you.
24+
# List of labels to remove when issues/PRs unstale.
25+
labels-to-remove-when-unstale: "stat:awaiting response from contributor"
26+
close-issue-message: >
27+
This issue was closed because it has been inactive for 28 days.
28+
Please reopen if you'd like to work on this further.
29+
days-before-pr-stale: 14
30+
days-before-pr-close: 14
31+
stale-pr-message: "This PR is stale because it has been open for 14 days with no activity. It will be closed if no further activity occurs. Thank you."
32+
close-pr-message: "This PR was closed because it has been inactive for 28 days. Please reopen if you'd like to work on this further."
33+
repo-token: ${{ secrets.GITHUB_TOKEN }}
34+
- name: Contribution issues
35+
uses: actions/stale@v9
36+
with:
37+
days-before-issue-stale: 180
38+
days-before-issue-close: 365
39+
stale-issue-label: "stale"
40+
# reason for closed the issue default value is not_planned
41+
close-issue-reason: not_planned
42+
any-of-labels: "stat:contributions welcome,good first issue"
43+
# List of labels to remove when issues/PRs unstale.
44+
labels-to-remove-when-unstale: "stat:contributions welcome,good first issue"
45+
stale-issue-message: >
46+
This issue is stale because it has been open for 180 days with no activity.
47+
It will be closed if no further activity occurs. Thank you.
48+
close-issue-message: >
49+
This issue was closed because it has been inactive for more than 1 year.
50+
repo-token: ${{ secrets.GITHUB_TOKEN }}

.kokoro/github/ubuntu/gpu/build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ pip install --no-deps -e "." --progress-bar off
5151
# Run Extra Large Tests for Continuous builds
5252
if [ "${RUN_XLARGE:-0}" == "1" ]
5353
then
54-
pytest --check_gpu --run_large --run_extra_large --durations 0 \
54+
pytest --cache-clear --check_gpu --run_large --run_extra_large --durations 0 \
5555
keras_cv/bounding_box \
5656
keras_cv/callbacks \
5757
keras_cv/losses \
@@ -65,7 +65,7 @@ then
6565
keras_cv/models/segmentation \
6666
keras_cv/models/stable_diffusion
6767
else
68-
pytest --check_gpu --run_large --durations 0 \
68+
pytest --cache-clear --check_gpu --run_large --durations 0 \
6969
keras_cv/bounding_box \
7070
keras_cv/callbacks \
7171
keras_cv/losses \
File renamed without changes.
File renamed without changes.
File renamed without changes.

benchmarks/vectorized_randomly_zoomed_crop.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -249,10 +249,10 @@ def from_config(cls, config):
249249
config["zoom_factor"]
250250
)
251251
if isinstance(config["aspect_ratio_factor"], dict):
252-
config[
253-
"aspect_ratio_factor"
254-
] = keras.utils.deserialize_keras_object(
255-
config["aspect_ratio_factor"]
252+
config["aspect_ratio_factor"] = (
253+
keras.utils.deserialize_keras_object(
254+
config["aspect_ratio_factor"]
255+
)
256256
)
257257
return cls(**config)
258258

examples/layers/preprocessing/classification/random_crop_and_zoom.py renamed to examples/layers/preprocessing/classification/random_crop_and_resize_demo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
"""random_resized_crop_demo.py.py shows how to use the RandomResizedCrop
16-
preprocessing layer. Operates on an image of elephant. In this script the image
15+
"""This demo example shows how to use the RandomCropAndResize preprocessing
16+
layer. Operates on an image of elephant. In this script the image
1717
is loaded, then are passed through the preprocessing layers.
1818
Finally, they are shown using matplotlib.
1919
"""

keras_cv/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,5 @@
4141
from keras_cv.core import FactorSampler
4242
from keras_cv.core import NormalFactorSampler
4343
from keras_cv.core import UniformFactorSampler
44-
45-
__version__ = "0.8.1"
44+
from keras_cv.version_utils import __version__
45+
from keras_cv.version_utils import version

0 commit comments

Comments
 (0)