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

Introduce keras-io documentation for KerasCV #852

Merged
merged 50 commits into from
May 17, 2022
Merged
Changes from 1 commit
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
86e6c89
begin creating KerasCV documentation
LukeWood Apr 12, 2022
a1e4156
Add citation blurb
LukeWood Apr 12, 2022
a27b3b3
Add first guide
LukeWood Apr 13, 2022
227a2e9
Adds a first guide for KerasCV
LukeWood Apr 13, 2022
36d63be
Add API Docs
LukeWood Apr 13, 2022
a3d0599
Update w/ Sayak Comments
LukeWood Apr 14, 2022
d6d44fd
Add COCO metrics guide
LukeWood Apr 14, 2022
ed8d719
Update guides_master to include COCO metrics guide
LukeWood Apr 14, 2022
0787c31
Fix imports
LukeWood Apr 14, 2022
c16975e
Reformat -> fix lint errors
LukeWood Apr 14, 2022
74493ca
Fix issue with batching
LukeWood Apr 14, 2022
c4767c4
Update to remove tf.function
LukeWood Apr 14, 2022
921606d
Remove file
LukeWood Apr 15, 2022
6ac791c
Make rescaling occur inside model
LukeWood Apr 15, 2022
9ca843d
Copyedits
fchollet Apr 15, 2022
85ae149
Re-add latest changes
fchollet Apr 15, 2022
6dd8c1f
Update guides per comments
LukeWood Apr 18, 2022
450d9fc
Run black
LukeWood Apr 18, 2022
5552d03
Update per matt comments
LukeWood Apr 19, 2022
1907752
Add COCO metrics guide
LukeWood Apr 14, 2022
2d75832
Reformat -> fix lint errors
LukeWood Apr 14, 2022
c527aef
Add an example on distilling ViTs through attention (#849)
sayakpaul Apr 11, 2022
fe296cc
added object detection with vision transformer py file (#842)
kdave123 Apr 12, 2022
6c0036b
Make rescaling occur inside model
LukeWood Apr 15, 2022
bdf0b8d
Copyedits
fchollet Apr 15, 2022
1fc236f
Re-add latest changes
fchollet Apr 15, 2022
8f11d98
Update guides per comments
LukeWood Apr 18, 2022
be24a65
Run black
LukeWood Apr 18, 2022
9e75032
Update guide to add `augmentations_per_image` from `num_layers`
LukeWood Apr 19, 2022
34d914f
Update ecosystem
LukeWood May 11, 2022
e2dd057
Update guide
LukeWood Apr 26, 2022
403d2ab
Add FourierMix
LukeWood Apr 26, 2022
32a1d6b
Update cutmix and mixup per Elie's feedback
LukeWood Apr 27, 2022
172ec52
Add repeat() calls
LukeWood Apr 27, 2022
caf8908
Updates to RandAugment
LukeWood May 5, 2022
8d6cfc9
Fix lambda
LukeWood May 5, 2022
4bfd554
remove broken link
LukeWood May 5, 2022
db97b78
Address Sayak comments
LukeWood May 5, 2022
ae036a2
Remove unneeded parens
LukeWood May 5, 2022
afc9a3e
Uncapitolize
LukeWood May 11, 2022
2a27580
Remove duplicate guide
LukeWood May 11, 2022
07cdf14
Grammar changes
LukeWood May 11, 2022
69123dc
checkout origin/master for spurious changes
LukeWood May 11, 2022
e15e776
Remove duplciated TF cloud section
LukeWood May 12, 2022
d65113e
Add guides for KerasCV
LukeWood May 17, 2022
28ad6a7
Update broken guide links
LukeWood May 17, 2022
35bb80d
Update broken guide link
LukeWood May 17, 2022
e844f9a
Fix broekn relation cells
LukeWood May 17, 2022
3b3100f
add genfiles
LukeWood May 17, 2022
9da5a73
Force introduce the templates/guides/keras_cv dir
LukeWood May 17, 2022
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
Prev Previous commit
Next Next commit
Fix issue with batching
  • Loading branch information
LukeWood committed May 17, 2022
commit 74493cab81bed60ce265d72c252ce2dcba1d56e2
8 changes: 3 additions & 5 deletions guides/keras_cv/cut_mix_mix_up_and_rand_augment.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,12 @@ def prepare(image, label):
def prepare_dataset(dataset, split):
if split == "train":
return (
dataset.batch(BATCH_SIZE)
.map(prepare, num_parallel_calls=AUTOTUNE)
dataset.map(prepare, num_parallel_calls=AUTOTUNE)
.shuffle(10 * BATCH_SIZE)
.batch(BATCH_SIZE)
)
if split == "test":
return dataset.map(
lambda x, y: prepare(x, y), num_parallel_calls=AUTOTUNE
).batch(BATCH_SIZE)
return dataset.map(prepare, num_parallel_calls=AUTOTUNE).batch(BATCH_SIZE)


def load_dataset(split="train"):
Expand Down