This repository was archived by the owner on Jul 9, 2025. It is now read-only.
Commit 9803dc3
0.14 (#172)
* Better sampler (#160)
* working verison ish
* faster sampler
* Remove quickdraw notebooks.
Co-authored-by: Owen Vallis <ovallis@google.com>
* * Add get_slice to SingleShotMemorySampler
* Make get_examples() -> _get_examples()
* Update doc strings to refer to classes_per_batch and examples_per_class_per_batch
* Update notebook to also use examples_per_class
* Update Return types of _get_examples() and generate_batch() to use FloatTensor and IntTensor
* Set version to 0.14
* Run workflow on push for master only and on pull_request for all branches.
* Add create_index method to enable setting an index outside of the compile call. (#164)
fix #163
* * Add sampler_io_cookbook notebook
* Fix get_slice in tfds sampler
* other small sampler fixes
* Remove randomflip from mnist augmentation in sampler cookbook.
* Add link to sampler notebook in examples readme.
* * Remove tf.gather from memory_samplers._get_examples(). Replace with faster for loop over lists and convert to np.array
* Improve docstring coverage
* Basic formatting using yamf
* Reorder top level imports in __init__
* Update batch info when initializing sampler to better reflect the initial batch size and number of augmenters.
* kaggle first
* Raise errors if users try to evaluate over an empty index or pass an … (#169)
* Raise errors if users try to evaluate over an empty index or pass an empty set of lookupd to the evaluators.
* Add hints to index Exceptions.
* Make batch size msg clearer.
* MultiSampler now samples without replacement unless the class size is <
num_examples_per_class. In that case, we warn the user and then
sample with replacement. The warning will only be printed once per
class.
Also fixed a mypy error in the img_augments.py module.
* Update SimilarityModel.compile() arg order to be consistent with the
Keras Model.compile().
* Enforce that class_mapping is map by calling .get() and move the class_label code into it's own function.
* Update hello world to remove class_mapping from viz_neighbors_imgs as we can just use the class ids.
* Ensure class mapping in nn_viz requires a dict (#170)
* Enforce that class_mapping is map by calling .get() and move the class_label code into it's own function.
* Update hello world to remove class_mapping from viz_neighbors_imgs as we can just use the class ids.
* Add support for passing distance thresholds and matcher in callbacks.
* Update new for 0.14 in README
Co-authored-by: Elie Bursztein <github@elie.net>1 parent 1591d56 commit 9803dc3
File tree
25 files changed
+6876
-724
lines changed- examples
- tensorflow_similarity
- evaluators
- losses
- models
- samplers
- visualization
- tests
- samplers
- visualization
25 files changed
+6876
-724
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
| 23 | + | |
| 24 | + | |
27 | 25 | | |
28 | 26 | | |
29 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
16 | 18 | | |
| 19 | + | |
17 | 20 | | |
| 21 | + | |
18 | 22 | | |
| 23 | + | |
19 | 24 | | |
| 25 | + | |
20 | 26 | | |
21 | 27 | | |
22 | 28 | | |
23 | 29 | | |
24 | 30 | | |
25 | 31 | | |
26 | 32 | | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
0 commit comments