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

Fix Incorrect Default Parameters in NoiseScheduler for StableDiffusion #2065

Open
wants to merge 118 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
118 commits
Select commit Hold shift + click to select a range
11a0913
Added correct default parameters in NoiseScheduler
yuvraj-wale Sep 8, 2023
5b3ad08
Fix some imports in KerasCV that are invalid with Namex (#2064)
ianstenbit Sep 8, 2023
c4c0710
Update version to 0.6.3 (#2066)
ianstenbit Sep 8, 2023
e3400e8
Fix input path for visualization issue (#2068)
ianstenbit Sep 11, 2023
f81780e
Update version to 0.6.4 (#2069)
ianstenbit Sep 12, 2023
69c4152
Update the comment of the `num_classes` parameter of deeplab v3 (#2071)
aaudevart Sep 12, 2023
f0c1f88
Set read-only tokens for all workflows (#2075)
pnacht Sep 14, 2023
227c5b5
Add the Segment Anything Model to KerasCV (#1987)
tirthasheshpatel Sep 19, 2023
2c614d3
Export SD submodels (#2080)
jbischof Sep 19, 2023
81ed5a7
adding deeplab_v3_plus_presets (#2051)
divyashreepathihalli Sep 20, 2023
36368bb
[Yolov8 detector] Fix example in docstring (#2082)
cosmo3769 Sep 21, 2023
d389a9e
Bump python version requirement to 3.9 (#2079)
mattdangerw Sep 21, 2023
896102d
fixed shape issue in example in docstring (#2083)
cosmo3769 Sep 22, 2023
09d9fbb
Use "masks" and "boxes" as prompt keys for SAM (#2084)
ianstenbit Sep 22, 2023
492bb40
Support partial prompting in SAM (#2085)
ianstenbit Sep 22, 2023
2ef46ee
Explicitly specify full package for more modules, as shown in #2001 (…
BjarneHerland Sep 22, 2023
bec2706
Update VITDet to conform to KerasCV scaling standards (#2086)
ianstenbit Sep 22, 2023
3feef5b
Resolve mean/std swap for VITDet backbone (#2087)
ianstenbit Sep 28, 2023
ff4f3c1
Support importing Keras3 as Keras instead of Keras Core (#2089)
ianstenbit Sep 29, 2023
5b7cfee
remove tests from pypi build (#2094)
haifeng-jin Oct 2, 2023
03cebe6
Export task models as both models.task.Model and models.Model (#2093)
ianstenbit Oct 2, 2023
22e4ec8
Fix CSPDarkNetBackbone export (#2096)
ianstenbit Oct 5, 2023
4bf0c43
Fix PyTorch tests (#2097)
ianstenbit Oct 5, 2023
d443f69
Doc updates to switch branding to Keras 3 (#2092)
ianstenbit Oct 6, 2023
aa820bb
Fix a flaky test for Segment Anything (#2090)
ianstenbit Oct 9, 2023
6b5ebd7
Fix decoding of LabelEncoder for RetinaNet (#2099)
ianstenbit Oct 10, 2023
a59fb9b
Use the proper title for example (#2109)
Philmod Oct 20, 2023
ffa6c81
Fix the issue + Remove unused arg (#2113)
ID6109 Oct 23, 2023
0618031
Update README.md (#2106)
AniketP04 Oct 31, 2023
c56f69c
Update mask_invalid_detections.py (#2117)
VBPMP Oct 31, 2023
3c65de6
Fix the issue (#2102): Add cast to float32 from float16 into Stable D…
Nov 2, 2023
ef7a360
Fix RetinaNet shape issue (#2119)
tirthasheshpatel Nov 3, 2023
1df146c
update reviewers names (#2130)
divyashreepathihalli Nov 6, 2023
c10fd37
update keras-cv json file name (#2128)
divyashreepathihalli Nov 6, 2023
43eefe7
Improve keras 3 detection (#2132)
divyashreepathihalli Nov 9, 2023
8a2939a
Fix Segment Anything Model saving bug (#2138)
tirthasheshpatel Nov 10, 2023
e7304f4
Adds Nightly package for `keras-cv` (#2139)
sampathweb Nov 10, 2023
e3f846c
Set a security policy (#2142)
pnacht Nov 14, 2023
e87289b
add Random ops shim (#2145)
divyashreepathihalli Nov 14, 2023
1b694d2
Replace `RandomGenerator` with `SeedGenerator` (#2150)
sampathweb Nov 16, 2023
9292d08
Revert "Replace `RandomGenerator` with `SeedGenerator` (#2150)" (#2161)
sampathweb Nov 18, 2023
dabdddf
Keras 3 compatibility (#2170)
divyashreepathihalli Nov 20, 2023
d75dc2f
fix noise scheduler error in stable diffusion (#2171)
divyashreepathihalli Nov 20, 2023
7bfaeab
Fix the issue(keras-team#2158): Add some file names into .gitignore (…
y-vectorfield Nov 20, 2023
bcb6c0f
fix shapes error if images was a list. (#2173)
divyashreepathihalli Nov 20, 2023
cf2b9bb
Removed setup.py develop from documentation, replaced with pip instal…
EdIzaguirre Nov 21, 2023
aa9c83f
Remove keras-nightly pin (#2174)
sampathweb Nov 21, 2023
ac757cd
fix model None error (#2176)
divyashreepathihalli Nov 21, 2023
65078f7
update version error (#2175)
divyashreepathihalli Nov 22, 2023
61b91d7
Fixes Saving Format related test failures for Keras 3 (#2180)
sampathweb Nov 22, 2023
e74881a
convert to tensor before smart resize (#2184)
sampathweb Nov 22, 2023
8bf0ec9
Fix Keras 3 version check (#2191)
sampathweb Nov 28, 2023
87cae5d
Update version 0.8 (#2190)
sampathweb Nov 30, 2023
c1b3eb6
Fix bug when upranking passthrough inputs to RandAugment (#2194)
mattdangerw Dec 1, 2023
9cac8e6
fix stable diffusion rank error (#2208)
divyashreepathihalli Dec 1, 2023
ec8a11b
Simplify running KerasCV with Keras 3 (#2179)
divyashreepathihalli Dec 1, 2023
6969be1
Fix dtype support for SegmentAnythingModel (#2207)
tirthasheshpatel Dec 4, 2023
426f123
Align config with Keras NLP (#2217)
sampathweb Dec 6, 2023
6566c33
Fix SegFormer Presets (#2222)
nkovela1 Dec 7, 2023
05d37ec
Update README.md (#2223)
divyashreepathihalli Dec 8, 2023
eb9dbe2
Adds Kokoro GPU Tests (#2224)
sampathweb Dec 8, 2023
b91d4a7
Update random_cutout.py to be a subclass of VectorizedBaseImageAugmen…
sup3rgiu Dec 8, 2023
105b535
Vectorized implementation of RandomColorDegeneration and Equalization…
sup3rgiu Dec 8, 2023
c332456
Fix the issue(keras-team#2195): Improve readability and comprehensibi…
y-vectorfield Dec 11, 2023
1b7a89b
Fix GPU Tests (#2228)
sampathweb Dec 11, 2023
276944b
fix jax failing tests (#2231)
divyashreepathihalli Dec 11, 2023
40dbf7c
Change reference of SeedGen and Serialization (#2241)
sampathweb Dec 14, 2023
9800b4c
Remove xlarge from continuous build (#2242)
sampathweb Dec 14, 2023
a718231
Fixes GPU Tests - JAX, PyTorch and some failures for Keras2 (#2243)
sampathweb Dec 14, 2023
a02ae0e
Update Random to Stateless - Disables Stable Diffussion tests (#2245)
sampathweb Dec 15, 2023
74ef6b1
Support non-tensorflow backends in KerasCV's preprocessing layers (#2…
tirthasheshpatel Dec 15, 2023
c2841f2
fix https://github.com/keras-team/keras-cv/issues/2134 (#2248)
divyashreepathihalli Dec 15, 2023
8dcaad2
Fix drop block (#2250)
divyashreepathihalli Dec 15, 2023
cf93cc7
fix 3d preprocessing layer (#2252)
divyashreepathihalli Dec 15, 2023
ac2e0f2
Fixing conversion of box formats on the original boxes (#2213)
ariG23498 Dec 27, 2023
b68995c
Add dependabot to update GitHub Actions and Python dependencies (#2259)
pnacht Dec 27, 2023
7e8476d
Remove cloudbuild config (#2260)
mattdangerw Jan 2, 2024
212388b
align pip_build with keras (#2256)
sampathweb Jan 3, 2024
4ce3172
Adapt KerasCV for Kaggle integration with new preset format (#2200)
nkovela1 Nov 29, 2023
463a3b4
Add Kaggle preset conversion upload script (#2205)
nkovela1 Nov 30, 2023
2cf4902
Switch all available presets to Kaggle format (#2206)
nkovela1 Dec 5, 2023
aa894ec
Update conversion script to fix model naming (#2221)
nkovela1 Dec 7, 2023
827fc02
Change CenterPillar name (#2219)
nkovela1 Dec 7, 2023
111cb98
Add clearer errors for preset methods (#2220)
nkovela1 Dec 7, 2023
9cd8d7f
Update segformer_presets with backbone import (fix merge) (#2225)
nkovela1 Dec 8, 2023
5e9d9fc
Switch presets to final Kaggle location (#2216)
nkovela1 Dec 11, 2023
6e53d2f
Update version to 0.8.0.dev0
sampathweb Dec 11, 2023
fce2118
Remove print statement in test
sampathweb Dec 11, 2023
9ba2e74
Update SegFormer preset tests to remove input_shape arg (#2234)
nkovela1 Dec 11, 2023
398b22b
Update `load_weights` for Keras 2 compatibility (#2235)
nkovela1 Dec 11, 2023
9e2a82c
Modify layer checkpoint dependencies to empty list (#2247)
nkovela1 Dec 15, 2023
61dc1a9
Change layer checkpoint dependencies to empty dict (#2249)
nkovela1 Dec 15, 2023
e9ba6ba
Backwards compatibility fixes for Keras <=2.15 (#2273)
nkovela1 Jan 4, 2024
49c7313
Remove weight traversal output
nkovela1 Jan 5, 2024
b91add7
Align keras requirments fo torch (#2272)
sampathweb Jan 5, 2024
95545ad
Modify preset kaggle handles to full path (#2279)
nkovela1 Jan 5, 2024
0b88c5f
Update base image aug layer tensor conversion (#2281)
sampathweb Jan 8, 2024
0f3fc04
Update version to 0.8.1 (#2282)
sampathweb Jan 8, 2024
5292bd9
Fix YOLOv8Detector deserialization (#2283)
nkovela1 Jan 8, 2024
c9511c8
Bump the python group with 4 updates (#2277)
dependabot[bot] Jan 8, 2024
a495ad0
Add Scorecard Action (#2267)
pnacht Jan 8, 2024
6698fcf
add nms serialization test (#2285)
divyashreepathihalli Jan 8, 2024
2f964c1
Add dict check for deserialization (#2286)
nkovela1 Jan 8, 2024
7af945a
updata dataset link (#2287)
divyashreepathihalli Jan 8, 2024
758a4c2
Version bump master to 0.8.2 (#2290)
sampathweb Jan 9, 2024
f5f6b9a
Move keras-cv markdown files to toplevel (#2291)
mattdangerw Jan 9, 2024
0e51edb
Add `version()` API to unify with Keras and KerasNLP (#2199)
grasskin Jan 12, 2024
0444db2
Update random_crop_and_zoom.py (#2294)
sachinprasadhs Jan 12, 2024
18c5297
bug fix (#2303)
haifeng-jin Jan 17, 2024
4e5e76a
Add BASNet Segmentation Model (#2006) (#2271)
hamidriasat Jan 17, 2024
4b7132a
Fix image.shape type (#2305)
sachinprasadhs Jan 18, 2024
b44b32d
Create workflow for auto assignment of issues and for stale issues (#…
sachinprasadhs Jan 29, 2024
85a8956
Fix format and Update Vectorized Base (#2323)
sampathweb Jan 30, 2024
f3809c5
Fix CI Test for Basnet OOM and PyCoCo Test Failure for JAX (#2322)
sampathweb Jan 30, 2024
43da18d
Reduce memory consumption for BasNet tests (#2325)
tirthasheshpatel Jan 30, 2024
4ca55a0
Remove Bazel steps from Contributing Guide (#2324)
sampathweb Jan 31, 2024
4f2072e
Update version to 0.8.3 (#2327)
sampathweb Jan 31, 2024
3b28b03
Bump the github-actions group with 3 updates (#2330)
dependabot[bot] Feb 5, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
FROM mcr.microsoft.com/vscode/devcontainers/python:3.8
FROM mcr.microsoft.com/vscode/devcontainers/python:3.9
COPY setup.sh /setup.sh
1 change: 1 addition & 0 deletions .devcontainer/setup.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
sudo pip install --upgrade pip
sudo pip install -r requirements.txt --progress-bar off
sudo pip install -e ".[tests]"
sudo apt update
sudo apt install -y clang-format
4 changes: 2 additions & 2 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ Fixes # (issue)
Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.

<!--
Feel free to tag @ianstenbit and @jbischof in your reviews.
<!--
Feel free to tag @divyashreepathihalli and @sampathweb in your reviews.
-->

<!--
Expand Down
23 changes: 23 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"
groups:
github-actions:
patterns:
- "*"
- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "monthly"
groups:
python:
patterns:
- "*"
59 changes: 32 additions & 27 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,79 +3,84 @@ name: Tests
on:
push:
pull_request:
workflow_call:
release:
types: [created]

permissions:
contents: read

jobs:
test:
name: Test the code with tf.keras
keras_2:
name: Test the code with Keras 2
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v1
- uses: actions/checkout@v4
- name: Set up Python 3.9
uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: 3.9
- name: Get pip cache dir
id: pip-cache
run: |
python -m pip install --upgrade pip setuptools
echo "::set-output name=dir::$(pip cache dir)"
- name: pip cache
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: ${{ steps.pip-cache.outputs.dir }}
key: ${{ runner.os }}-pip-${{ hashFiles('setup.py') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
pip install tensorflow>=2.13.0
pip install tensorflow~=2.14
pip install torch>=2.0.1+cpu
pip install "jax[cpu]"
pip install keras-core
pip install -e ".[tests]" --progress-bar off --upgrade
- name: Test with pytest
env:
KAGGLE_USERNAME: ${{ secrets.KAGGLE_USERNAME }}
KAGGLE_KEY: ${{ secrets.KAGGLE_KEY }}
TEST_CUSTOM_OPS: false
run: |
pytest keras_cv/ --ignore keras_cv/models/legacy/ --durations 0
multibackend:
name: Test the code with Keras Core
keras_3:
name: Test the code with Keras 3
strategy:
fail-fast: false
matrix:
backend: [tensorflow, jax, torch]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v1
- uses: actions/checkout@v4
- name: Set up Python 3.9
uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: 3.9
- name: Get pip cache dir
id: pip-cache
run: |
python -m pip install --upgrade pip setuptools
echo "::set-output name=dir::$(pip cache dir)"
- name: pip cache
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: ${{ steps.pip-cache.outputs.dir }}
key: ${{ runner.os }}-pip-${{ hashFiles('setup.py') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
pip install tensorflow>=2.13.0
pip install "jax[cpu]"
pip install torch>=2.0.1+cpu
pip install torchvision>=0.15.1
pip install keras-core
pip install -r requirements.txt
pip install -e ".[tests]" --progress-bar off --upgrade
- name: Test with pytest
env:
TEST_CUSTOM_OPS: false # TODO(ianstenbit): test custom ops, or figure out what our story is here
KERAS_BACKEND: ${{ matrix.backend }}
KAGGLE_USERNAME: ${{ secrets.KAGGLE_USERNAME}}
KAGGLE_KEY: ${{ secrets.KAGGLE_KEY}}
JAX_ENABLE_X64: true
run: |
pytest keras_cv/bounding_box \
Expand All @@ -94,31 +99,31 @@ jobs:
name: Check the code format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v1
- uses: actions/checkout@v4
- name: Set up Python 3.9
uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: 3.9
- name: Get pip cache dir
id: pip-cache
run: |
python -m pip install --upgrade pip setuptools
echo "::set-output name=dir::$(pip cache dir)"
- name: pip cache
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: ${{ steps.pip-cache.outputs.dir }}
key: ${{ runner.os }}-pip-${{ hashFiles('setup.py') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
pip install tensorflow>=2.13.0
pip install tensorflow~=2.14
pip install -e ".[tests]" --progress-bar off --upgrade
- name: Lint
run: bash shell/lint.sh
- name: Clang
uses: DoozyX/clang-format-lint-action@v0.14
uses: DoozyX/clang-format-lint-action@v0.17
with:
source: '.'
extensions: 'h,c,cpp,hpp,cc'
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/auto-assignment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: auto-assignment
on:
issues:
types:
- opened

permissions:
contents: read
issues: write
pull-requests: write

jobs:
welcome:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/github-script@v7
with:
script: |
const script = require('./\.github/workflows/scripts/auto-assignment.js')
script({github, context})
6 changes: 4 additions & 2 deletions .github/workflows/devcontainer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,18 @@ on: # rebuild any PRs and main branch changes
- '.devcontainer/**'
- 'workflows/**'

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
steps:

- name: Checkout (GitHub)
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Build and run dev container task
uses: devcontainers/ci@v0.2
uses: devcontainers/ci@v0.3
with:
runCmd: pytest keras_cv/ --ignore keras_cv/models
50 changes: 50 additions & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Nightly

on:
workflow_dispatch: # To Generate wheels on demand outside of schedule.
schedule:
- cron: '0 3 * * *' # run at 3 AM UTC / 8 PM PDT

permissions:
contents: read

jobs:
run-test-for-nightly:
uses: ./.github/workflows/actions.yml
nightly:
name: Build Wheel file and upload
needs: [run-test-for-nightly]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.9
- name: Get pip cache dir
id: pip-cache
run: |
python -m pip install --upgrade pip setuptools
echo "::set-output name=dir::$(pip cache dir)"
- name: pip cache
uses: actions/cache@v4
with:
path: ${{ steps.pip-cache.outputs.dir }}
key: ${{ runner.os }}-pip-${{ hashFiles('setup.py') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools
pip install twine
pip install -r requirements.txt --progress-bar off
- name: Build wheel file
run: |
export BUILD_WITH_CUSTOM_OPS=false
python pip_build.py --nightly
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_NIGHTLY_API_TOKEN }}
packages-dir: dist/
verbose: true
Loading
Loading