-
Notifications
You must be signed in to change notification settings - Fork 104
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
Cherrypick master #331
Merged
Merged
Cherrypick master #331
Commits on May 5, 2023
-
Update verbose printing to display the count of indexed items. Verbose output was missing an f-string prefix and also returned the entire shape. Now we just return the number of examples.
Configuration menu - View commit details
-
Copy full SHA for 374d9c5 - Browse repository at this point
Copy the full SHA 374d9c5View commit details -
* fixes #323 Default indexer distance is now cosine in Sim Model. Calling create_index method now defaults to cosine distance. Additionally, auto distance defaults to cosine if no distance is passed to compile. * fixes #322 remove all calls to tf.convert_to_tensor in SimModel. * Update gitignore to exclude models and datasets from the example notebooks. * Update multi-modal notebook to remove the call to compile. * Patch bump
Configuration menu - View commit details
-
Copy full SHA for e2c84b6 - Browse repository at this point
Copy the full SHA e2c84b6View commit details -
Remove check for tf.shape in index. Input can also be tuple or dict, …
…so we should use len() here.
Configuration menu - View commit details
-
Copy full SHA for e98c707 - Browse repository at this point
Copy the full SHA e98c707View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0fb78e2 - Browse repository at this point
Copy the full SHA 0fb78e2View commit details -
* Create tfdata_sampler.py Initial version of new tf.data.Dataset sampler. * Refactor and clean up the tf data sampler. * Add initial tests for tfdata_sampler * Reformat TFDataSampler test file. * Fix proto dep issue in github workflow tests. py 3.10 breaks with protobuf > 3.20.x * Setting env var didn't work. Trying again with pinning the protobuf version to 3.20.1 * Check TF version before creating the tf dataset counter. * Format file * Remove as_numpy_iterator when creating the list of grouped datasets. * Also move class_list filter to before the group_by function * Apply the total_examples_per_class as a take() function on each grouped dataset * Remove as much casting as possible from the dataset. Certain functions expect an int64 though and require casting. * Refactor to move the filter by class list out of the window_group_by function. * Add class list filter test. * Move augment_fn and load_fn to before the repeat and batch functions. This change means the aug and load functions apply per example now. This will make it easier to apply random augmentations per example and is more consistent with how we implemented it in the existing memory sampler. This change also improves the tests for all parts of the module. * Add support for handling tuple and dict values for y. This change adds support for passing a callable to parse the correct class id element for batch sampling. By default y is assumed to be a 1D tensor with the class ids and the function is lambda y:y. Otherwise we accept an int or str and construct a parser to get the class id tensor.
Configuration menu - View commit details
-
Copy full SHA for a9a8e23 - Browse repository at this point
Copy the full SHA a9a8e23View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9537511 - Browse repository at this point
Copy the full SHA 9537511View commit details -
Configuration menu - View commit details
-
Copy full SHA for f979517 - Browse repository at this point
Copy the full SHA f979517View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2522de5 - Browse repository at this point
Copy the full SHA 2522de5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7206f23 - Browse repository at this point
Copy the full SHA 7206f23View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.